Spaces:
Running
on
Zero
Running
on
Zero
Update optimized.py
Browse files- optimized.py +2 -2
optimized.py
CHANGED
@@ -99,8 +99,8 @@ def generate_image(prompt, scale, steps, control_image, controlnet_conditioning_
|
|
99 |
controlnet_conditioning_scale=controlnet_conditioning_scale,
|
100 |
num_inference_steps=steps,
|
101 |
guidance_scale=guidance_scale,
|
102 |
-
height=
|
103 |
-
width=
|
104 |
).images[0]
|
105 |
print(f"VRAM used: {torch.cuda.memory_allocated()/1e9:.2f}GB")
|
106 |
# Aggressive memory cleanup
|
|
|
99 |
controlnet_conditioning_scale=controlnet_conditioning_scale,
|
100 |
num_inference_steps=steps,
|
101 |
guidance_scale=guidance_scale,
|
102 |
+
height=h,
|
103 |
+
width=w
|
104 |
).images[0]
|
105 |
print(f"VRAM used: {torch.cuda.memory_allocated()/1e9:.2f}GB")
|
106 |
# Aggressive memory cleanup
|