Cognomen commited on
Commit
c0eeba9
β€’
1 Parent(s): 5898ca5

disabling for now

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -35,11 +35,11 @@ pipe, params = FlaxStableDiffusionControlNetPipeline.from_pretrained(
35
  revision="flax",
36
  dtype=jnp.bfloat16,
37
  )
38
- scheduler, scheduler_state = FlaxDPMSolverMultistepScheduler.from_pretrained(
39
- "./models/wd-1-5-b2-flax",
40
- subfolder="scheduler"
41
- )
42
- params["scheduler"] = scheduler_state
43
 
44
  #scheduler = FlaxDPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
45
  #pipe.enable_model_cpu_offload()
@@ -78,7 +78,7 @@ def infer(prompt, negative_prompt, image):
78
  image=cond_img_in,
79
  params=p_params,
80
  prng_seed=rng,
81
- num_inference_steps=20,
82
  neg_prompt_ids=n_prompt_in,
83
  jit=True,
84
  ).images
 
35
  revision="flax",
36
  dtype=jnp.bfloat16,
37
  )
38
+ #scheduler, scheduler_state = FlaxDPMSolverMultistepScheduler.from_pretrained(
39
+ # "./models/wd-1-5-b2-flax",
40
+ # subfolder="scheduler"
41
+ #)
42
+ #params["scheduler"] = scheduler_state
43
 
44
  #scheduler = FlaxDPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
45
  #pipe.enable_model_cpu_offload()
 
78
  image=cond_img_in,
79
  params=p_params,
80
  prng_seed=rng,
81
+ num_inference_steps=70,
82
  neg_prompt_ids=n_prompt_in,
83
  jit=True,
84
  ).images