AlekseyCalvin commited on
Commit
9b08a1e
·
verified ·
1 Parent(s): d3e235c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -44,7 +44,6 @@ with open('loras.json', 'r') as f:
44
  #dtype = torch.bfloat16
45
  #base_model = "AlekseyCalvin/Artsy_Lite_Flux_v1_by_jurdn_Diffusers"
46
  #pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=dtype).to("cuda")
47
- ##pipe.vae = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=torch.float16).to("cuda")
48
 
49
  #pipe = diffusers.ZImagePipeline.from_pretrained("Disty0/Z-Image-Turbo-SDNQ-uint4-svd-r32", torch_dtype=torch.bfloat16)
50
  #torch.cuda.empty_cache()
@@ -52,7 +51,9 @@ 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
  ##The repa-e vae generates extremely noisy outputs for some reason.
 
44
  #dtype = torch.bfloat16
45
  #base_model = "AlekseyCalvin/Artsy_Lite_Flux_v1_by_jurdn_Diffusers"
46
  #pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=dtype).to("cuda")
 
47
 
48
  #pipe = diffusers.ZImagePipeline.from_pretrained("Disty0/Z-Image-Turbo-SDNQ-uint4-svd-r32", torch_dtype=torch.bfloat16)
49
  #torch.cuda.empty_cache()
 
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
+ pipe.vae = AutoencoderKL.from_pretrained("AlekseyCalvin/AnimeVAE_by_Anzhc_for_Flux_ZiT", torch_dtype=torch.float32).to("cuda")
56
+
57
 
58
  #pipe.vae = AutoencoderKL.from_pretrained("REPA-E/e2e-flux-vae", torch_dtype=torch.bfloat16).to("cuda")
59
  ##The repa-e vae generates extremely noisy outputs for some reason.