Spaces:
Runtime error
Runtime error
disabling for now
Browse files
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=
|
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
|