Update app.py
Browse fileschange dtype back
app.py
CHANGED
@@ -29,10 +29,10 @@ sketch_url = 'https://editor.p5js.org/kfahn/full/Ntzq9HWhx'
|
|
29 |
control_img = 'myimage.jpg'
|
30 |
|
31 |
controlnet, controlnet_params = FlaxControlNetModel.from_pretrained(
|
32 |
-
"JFoz/dog-cat-pose", dtype=jnp.
|
33 |
)
|
34 |
pipe, params = FlaxStableDiffusionControlNetPipeline.from_pretrained(
|
35 |
-
"runwayml/stable-diffusion-v1-5", controlnet=controlnet, revision="flax", dtype=jnp.
|
36 |
)
|
37 |
|
38 |
def infer(prompts, negative_prompts, image):
|
|
|
29 |
control_img = 'myimage.jpg'
|
30 |
|
31 |
controlnet, controlnet_params = FlaxControlNetModel.from_pretrained(
|
32 |
+
"JFoz/dog-cat-pose", dtype=jnp.bfloat16
|
33 |
)
|
34 |
pipe, params = FlaxStableDiffusionControlNetPipeline.from_pretrained(
|
35 |
+
"runwayml/stable-diffusion-v1-5", controlnet=controlnet, revision="flax", dtype=jnp.bfloat16
|
36 |
)
|
37 |
|
38 |
def infer(prompts, negative_prompts, image):
|