Linoy Tsaban commited on
Commit
3a0e4b6
1 Parent(s): ccd7eb4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -15,7 +15,8 @@ from transformers import AutoProcessor, BlipForConditionalGeneration
15
  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
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
20
  vae = AutoencoderKL.from_pretrained("stabilityai/sd-vae-ft-mse", torch_dtype=torch.float16)
21
  pipe = SemanticStableDiffusionImg2ImgPipeline_DPMSolver.from_pretrained(sd_model_id,vae=vae,torch_dtype=torch.float16, safety_checker=None, requires_safety_checker=False).to(device)
 
15
  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)