multimodalart HF staff commited on
Commit
389369b
1 Parent(s): 6448b18

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -16,6 +16,7 @@ transformer = FluxTransformer2DModel.from_pretrained(
16
  "black-forest-labs/FLUX.1-dev", subfolder='transformer', torch_dtype=torch.bfloat16
17
  )
18
  vae = AutoencoderKL.from_pretrained("black-forest-labs/FLUX.1-dev", subfolder="vae").to("cuda")
 
19
  pipe = FluxControlNetInpaintingPipeline.from_pretrained(
20
  "black-forest-labs/FLUX.1-dev",
21
  controlnet=controlnet,
 
16
  "black-forest-labs/FLUX.1-dev", subfolder='transformer', torch_dtype=torch.bfloat16
17
  )
18
  vae = AutoencoderKL.from_pretrained("black-forest-labs/FLUX.1-dev", subfolder="vae").to("cuda")
19
+ vae.to(torch.bfloat16)
20
  pipe = FluxControlNetInpaintingPipeline.from_pretrained(
21
  "black-forest-labs/FLUX.1-dev",
22
  controlnet=controlnet,