Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -28,14 +28,14 @@ def create_key(seed=0):
|
|
28 |
|
29 |
# load control net and stable diffusion v1-5
|
30 |
controlnet, controlnet_params = FlaxControlNetModel.from_pretrained(
|
31 |
-
"learner/jax-diffuser-event", from_flax=True, dtype=jnp.
|
32 |
)
|
33 |
|
34 |
pipe, params = FlaxStableDiffusionControlNetPipeline.from_pretrained(
|
35 |
"runwayml/stable-diffusion-v1-5",
|
36 |
controlnet=controlnet,
|
37 |
from_pt=True,
|
38 |
-
dtype=jnp.
|
39 |
#safety_checker=None,
|
40 |
)
|
41 |
|
|
|
28 |
|
29 |
# load control net and stable diffusion v1-5
|
30 |
controlnet, controlnet_params = FlaxControlNetModel.from_pretrained(
|
31 |
+
"learner/jax-diffuser-event", from_flax=True, dtype=jnp.bfloat16
|
32 |
)
|
33 |
|
34 |
pipe, params = FlaxStableDiffusionControlNetPipeline.from_pretrained(
|
35 |
"runwayml/stable-diffusion-v1-5",
|
36 |
controlnet=controlnet,
|
37 |
from_pt=True,
|
38 |
+
dtype=jnp.bfloat16,
|
39 |
#safety_checker=None,
|
40 |
)
|
41 |
|