Linoy Tsaban
commited on
Commit
•
b592002
1
Parent(s):
9b96547
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).to(device)
|
49 |
sd_pipe.scheduler = DDIMScheduler.from_config(sd_model_id, subfolder = "scheduler")
|
50 |
-
sem_pipe = SemanticStableDiffusionPipeline.from_pretrained(sd_model_id).to(device)
|
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).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='',
|