Update app.py

#1
by merve HF staff - opened
Files changed (1) hide show
  1. app.py +2 -2
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.float32
32
  )
33
 
34
  pipe, params = FlaxStableDiffusionControlNetPipeline.from_pretrained(
35
  "runwayml/stable-diffusion-v1-5",
36
  controlnet=controlnet,
37
  from_pt=True,
38
- dtype=jnp.float32,
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