fffiloni commited on
Commit
1da813a
1 Parent(s): 12262f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1619,8 +1619,9 @@ if __name__ == "__main__":
1619
  parser.add_argument('--experiment_name', default="AccDiffusion")
1620
 
1621
  args = parser.parse_args()
1622
-
1623
- pipe = AccDiffusionSDXLPipeline.from_pretrained(args.model_ckpt, torch_dtype=torch.float16).to("cuda")
 
1624
 
1625
 
1626
  # GRADIO MODE
 
1619
  parser.add_argument('--experiment_name', default="AccDiffusion")
1620
 
1621
  args = parser.parse_args()
1622
+
1623
+ vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch.float16)
1624
+ pipe = AccDiffusionSDXLPipeline.from_pretrained(args.model_ckpt, vae=vae, torch_dtype=torch.float16).to("cuda")
1625
 
1626
 
1627
  # GRADIO MODE