multimodalart HF Staff commited on
Commit
a2ee85e
·
verified ·
1 Parent(s): 6e5bffb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ from share_btn import community_icon_html, loading_icon_html, share_js
16
 
17
  # load pipelines
18
  # sd_model_id = "runwayml/stable-diffusion-v1-5"
19
- sd_model_id = "stabilityai/stable-diffusion-2-1-base"
20
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
21
  vae = AutoencoderKL.from_pretrained("stabilityai/sd-vae-ft-mse", torch_dtype=torch.float16)
22
  pipe = SemanticStableDiffusionImg2ImgPipeline_DPMSolver.from_pretrained(sd_model_id,vae=vae,torch_dtype=torch.float16, safety_checker=None, requires_safety_checker=False).to(device)
 
16
 
17
  # load pipelines
18
  # sd_model_id = "runwayml/stable-diffusion-v1-5"
19
+ sd_model_id = "sd-research/stable-diffusion-2-1-base"
20
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
21
  vae = AutoencoderKL.from_pretrained("stabilityai/sd-vae-ft-mse", torch_dtype=torch.float16)
22
  pipe = SemanticStableDiffusionImg2ImgPipeline_DPMSolver.from_pretrained(sd_model_id,vae=vae,torch_dtype=torch.float16, safety_checker=None, requires_safety_checker=False).to(device)