Spaces:
Runtime error
Runtime error
Update app.py (#1)
Browse files- Update app.py (a69c653be1654eaeea5bc90bc8476ed0e632a6b6)
Co-authored-by: Merve Noyan <[email protected]>
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 |
|