nsfwalex commited on
Commit
6603b74
·
verified ·
1 Parent(s): 2a1c625

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -56,12 +56,12 @@ def load_pipeline_and_scheduler():
56
  ckpt_dir = snapshot_download(repo_id=cfg["model_id"])
57
 
58
  # Load the models
59
- vae = AutoencoderKL.from_pretrained(os.path.join(ckpt_dir, "vae"), dtype=torch.float16)
60
 
61
  pipe = StableDiffusionXLPipeline.from_pretrained(
62
  ckpt_dir,
63
  vae=vae,
64
- dtype=torch.float16,
65
  use_safetensors=True,
66
  #variant="fp16"
67
  )
 
56
  ckpt_dir = snapshot_download(repo_id=cfg["model_id"])
57
 
58
  # Load the models
59
+ vae = AutoencoderKL.from_pretrained(os.path.join(ckpt_dir, "vae"), torch_dtype=torch.float16)
60
 
61
  pipe = StableDiffusionXLPipeline.from_pretrained(
62
  ckpt_dir,
63
  vae=vae,
64
+ torch_dtype=torch.float16,
65
  use_safetensors=True,
66
  #variant="fp16"
67
  )