AlekseyCalvin commited on
Commit
d1f7f57
·
verified ·
1 Parent(s): 8bcba46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -54,7 +54,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
54
 
55
  #pipe.vae = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=torch.float16).to("cuda")
56
 
57
- pipe.vae = AutoencoderKL.from_pretrained("REPA-E/e2e-flux-vae", torch_dtype=torch.float16).to("cuda")
58
 
59
  #pipe.vae = DiffusersAutoencoderKL.from_pretrained("kaiyuyue/FLUX.2-dev-vae", torch_dtype=torch.float16, scaling_factor = 0.3611, shift_factor = 0.1159).to("cuda")
60
  ## Alas, the model would need to be retrained to work with the Flux2 vae, with its doubled channel count of 32.
 
54
 
55
  #pipe.vae = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=torch.float16).to("cuda")
56
 
57
+ pipe.vae = AutoencoderKL.from_pretrained("REPA-E/e2e-flux-vae", torch_dtype=torch.bfloat16).to("cuda")
58
 
59
  #pipe.vae = DiffusersAutoencoderKL.from_pretrained("kaiyuyue/FLUX.2-dev-vae", torch_dtype=torch.float16, scaling_factor = 0.3611, shift_factor = 0.1159).to("cuda")
60
  ## Alas, the model would need to be retrained to work with the Flux2 vae, with its doubled channel count of 32.