Learner merve HF staff commited on
Commit
e454d64
1 Parent(s): 0575d34

Update app.py (#1)

Browse files

- Update app.py (a69c653be1654eaeea5bc90bc8476ed0e632a6b6)


Co-authored-by: Merve Noyan <[email protected]>

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