Spaces:
Running
on
A10G
Running
on
A10G
Linoy Tsaban
commited on
Commit
•
1c66b3f
1
Parent(s):
a00cde7
Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ sd_model_id = "runwayml/stable-diffusion-v1-5"
|
|
47 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
48 |
sd_pipe = StableDiffusionPipeline.from_pretrained(sd_model_id, torch_dtype=torch.float16).to(device)
|
49 |
sd_pipe.scheduler = DDIMScheduler.from_config(sd_model_id, subfolder = "scheduler")
|
50 |
-
sem_pipe = SemanticStableDiffusionPipeline.from_pretrained(sd_model_id,
|
51 |
|
52 |
|
53 |
def edit(input_image, input_image_prompt='', target_prompt='', edit_prompt='',
|
|
|
47 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
48 |
sd_pipe = StableDiffusionPipeline.from_pretrained(sd_model_id, torch_dtype=torch.float16).to(device)
|
49 |
sd_pipe.scheduler = DDIMScheduler.from_config(sd_model_id, subfolder = "scheduler")
|
50 |
+
sem_pipe = SemanticStableDiffusionPipeline.from_pretrained(sd_model_id,torch_dtype=torch.float16).to(device)
|
51 |
|
52 |
|
53 |
def edit(input_image, input_image_prompt='', target_prompt='', edit_prompt='',
|