Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
8295726
1
Parent(s):
585249a
Update app.py
Browse files
app.py
CHANGED
@@ -149,7 +149,7 @@ def inpaint(image, width, height, overlap_percentage, num_inference_steps, resiz
|
|
149 |
|
150 |
final_prompt = f"{prompt_input} , high quality, 4k"
|
151 |
|
152 |
-
generator = torch.Generator(device="cuda").manual_seed(42)
|
153 |
|
154 |
result = pipe(
|
155 |
prompt=final_prompt,
|
@@ -158,7 +158,7 @@ def inpaint(image, width, height, overlap_percentage, num_inference_steps, resiz
|
|
158 |
control_image=cnet_image,
|
159 |
control_mask=mask,
|
160 |
num_inference_steps=num_inference_steps,
|
161 |
-
generator=generator,
|
162 |
controlnet_conditioning_scale=0.9,
|
163 |
guidance_scale=3.5,
|
164 |
negative_prompt="",
|
|
|
149 |
|
150 |
final_prompt = f"{prompt_input} , high quality, 4k"
|
151 |
|
152 |
+
#generator = torch.Generator(device="cuda").manual_seed(42)
|
153 |
|
154 |
result = pipe(
|
155 |
prompt=final_prompt,
|
|
|
158 |
control_image=cnet_image,
|
159 |
control_mask=mask,
|
160 |
num_inference_steps=num_inference_steps,
|
161 |
+
#generator=generator,
|
162 |
controlnet_conditioning_scale=0.9,
|
163 |
guidance_scale=3.5,
|
164 |
negative_prompt="",
|