Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
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 = "
|
| 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)
|