Spaces:
Runtime error
Runtime error
fix scheduler
Browse files
app.py
CHANGED
|
@@ -34,9 +34,8 @@ pipe, params = FlaxStableDiffusionControlNetPipeline.from_pretrained(
|
|
| 34 |
controlnet=cnet,
|
| 35 |
revision="flax",
|
| 36 |
dtype=jnp.bfloat16,
|
| 37 |
-
scheduler=FlaxScoreSdeVeScheduler()
|
| 38 |
)
|
| 39 |
-
|
| 40 |
#pipe.enable_model_cpu_offload()
|
| 41 |
#pipe.enable_xformers_memory_efficient_attention()
|
| 42 |
|
|
|
|
| 34 |
controlnet=cnet,
|
| 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 |
|