Update app.py
Browse files
app.py
CHANGED
@@ -35,10 +35,10 @@ def canny_filter(image):
|
|
35 |
|
36 |
# load control net and stable diffusion v1-5
|
37 |
controlnet, controlnet_params = FlaxControlNetModel.from_pretrained(
|
38 |
-
"jax-diffusers-event/canny-coyo1m", dtype=jnp.
|
39 |
)
|
40 |
pipe, params = FlaxStableDiffusionControlNetPipeline.from_pretrained(
|
41 |
-
"runwayml/stable-diffusion-v1-5", controlnet=controlnet, from_pt=True, dtype=jnp.
|
42 |
)
|
43 |
|
44 |
def infer(prompts, negative_prompts, image):
|
|
|
35 |
|
36 |
# load control net and stable diffusion v1-5
|
37 |
controlnet, controlnet_params = FlaxControlNetModel.from_pretrained(
|
38 |
+
"jax-diffusers-event/canny-coyo1m", dtype=jnp.float32
|
39 |
)
|
40 |
pipe, params = FlaxStableDiffusionControlNetPipeline.from_pretrained(
|
41 |
+
"runwayml/stable-diffusion-v1-5", controlnet=controlnet, from_pt=True, dtype=jnp.float32
|
42 |
)
|
43 |
|
44 |
def infer(prompts, negative_prompts, image):
|