Spaces:
Running
Running
yonishafir
commited on
Commit
•
e06413e
1
Parent(s):
5453ac3
Update app.py
Browse files
app.py
CHANGED
@@ -97,7 +97,7 @@ pipe.fuse_lora()
|
|
97 |
pipe = pipe.to(device)
|
98 |
# pipe.enable_xformers_memory_efficient_attention()
|
99 |
|
100 |
-
generator = torch.Generator(device='cuda
|
101 |
|
102 |
vae = pipe.vae
|
103 |
|
@@ -120,8 +120,8 @@ def predict(dict, prompt="", negative_prompt = default_negative_prompt, guidance
|
|
120 |
negative_prompt = None
|
121 |
|
122 |
|
123 |
-
init_image = dict["image"].convert("RGB")
|
124 |
-
mask = dict["mask"].convert("L")
|
125 |
|
126 |
width, height = get_size(init_image)
|
127 |
|
|
|
97 |
pipe = pipe.to(device)
|
98 |
# pipe.enable_xformers_memory_efficient_attention()
|
99 |
|
100 |
+
generator = torch.Generator(device='cuda').manual_seed(123456)
|
101 |
|
102 |
vae = pipe.vae
|
103 |
|
|
|
120 |
negative_prompt = None
|
121 |
|
122 |
|
123 |
+
init_image = dict["image"].convert("RGB").resize((1024, 1024))
|
124 |
+
mask = dict["mask"].convert("L").resize((1024, 1024))
|
125 |
|
126 |
width, height = get_size(init_image)
|
127 |
|