Cognomen commited on
Commit
256d247
Β·
1 Parent(s): ac5f118

disable unipc

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -35,7 +35,7 @@ pipe, params = FlaxStableDiffusionControlNetPipeline.from_pretrained(
35
  revision="flax",
36
  dtype=jnp.bfloat16,
37
  )
38
- pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
39
  #pipe.enable_model_cpu_offload()
40
  #pipe.enable_xformers_memory_efficient_attention()
41
 
@@ -71,8 +71,8 @@ def infer(prompt, negative_prompt, image):
71
  image=cond_img_in,
72
  prng_seed=rng,
73
  neg_prompt_ids=n_prompt_in,
74
- #num_inference_steps=20,
75
  params=p_params,
 
76
  jit=True
77
  ).images
78
 
 
35
  revision="flax",
36
  dtype=jnp.bfloat16,
37
  )
38
+ #pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
39
  #pipe.enable_model_cpu_offload()
40
  #pipe.enable_xformers_memory_efficient_attention()
41
 
 
71
  image=cond_img_in,
72
  prng_seed=rng,
73
  neg_prompt_ids=n_prompt_in,
 
74
  params=p_params,
75
+ num_inference_steps=20,
76
  jit=True
77
  ).images
78