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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -52,9 +52,10 @@ pipe = diffusers.ZImagePipeline.from_pretrained("dimitribarbot/Z-Image-Turbo-BF1
52
 
53
  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.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.
 
52
 
53
  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.bfloat16).to("cuda")
58
+ ##The repa-e vae generates extremely noisy outputs for some reason.
59
 
60
  #pipe.vae = DiffusersAutoencoderKL.from_pretrained("kaiyuyue/FLUX.2-dev-vae", torch_dtype=torch.float16, scaling_factor = 0.3611, shift_factor = 0.1159).to("cuda")
61
  ## Alas, the model would need to be retrained to work with the Flux2 vae, with its doubled channel count of 32.