Spaces:
Runtime error
Runtime error
Linoy Tsaban
commited on
Commit
Β·
1fda3ba
1
Parent(s):
24da6c0
Update app.py
Browse files
app.py
CHANGED
@@ -47,9 +47,9 @@ def sample(zs, wts, prompt_tar="", skip=36, cfg_scale_tar=15, eta = 1):
|
|
47 |
return img
|
48 |
|
49 |
# load pipelines
|
50 |
-
|
51 |
# sd_model_id = "CompVis/stable-diffusion-v1-4"
|
52 |
-
sd_model_id = "stabilityai/stable-diffusion-2-base"
|
53 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
54 |
sd_pipe = StableDiffusionPipeline.from_pretrained(sd_model_id).to(device)
|
55 |
sd_pipe.scheduler = DDIMScheduler.from_config(sd_model_id, subfolder = "scheduler")
|
|
|
47 |
return img
|
48 |
|
49 |
# load pipelines
|
50 |
+
sd_model_id = "runwayml/stable-diffusion-v1-5"
|
51 |
# sd_model_id = "CompVis/stable-diffusion-v1-4"
|
52 |
+
# sd_model_id = "stabilityai/stable-diffusion-2-base"
|
53 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
54 |
sd_pipe = StableDiffusionPipeline.from_pretrained(sd_model_id).to(device)
|
55 |
sd_pipe.scheduler = DDIMScheduler.from_config(sd_model_id, subfolder = "scheduler")
|