AlekseyCalvin commited on
Commit
364cc78
·
verified ·
1 Parent(s): 071200f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -51,7 +51,9 @@ pipe = diffusers.ZImagePipeline.from_pretrained("dimitribarbot/Z-Image-Turbo-BF1
51
 
52
  device = "cuda" if torch.cuda.is_available() else "cpu"
53
 
54
- pipe.vae = DiffusersAutoencoderKL.from_pretrained("kaiyuyue/FLUX.2-dev-vae", torch_dtype=torch.float16, scaling_factor = 0.3611, shift_factor = 0.1159).to("cuda")
 
 
55
 
56
  #pipe.enable_model_cpu_offload()
57
 
 
51
 
52
  device = "cuda" if torch.cuda.is_available() else "cpu"
53
 
54
+ pipe.vae = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=torch.float16).to("cuda")
55
+
56
+ #pipe.vae = DiffusersAutoencoderKL.from_pretrained("kaiyuyue/FLUX.2-dev-vae", torch_dtype=torch.float16, scaling_factor = 0.3611, shift_factor = 0.1159).to("cuda")
57
 
58
  #pipe.enable_model_cpu_offload()
59