Spaces:
Runtime error
Runtime error
Update injection_main.py
Browse files- injection_main.py +3 -3
injection_main.py
CHANGED
|
@@ -328,10 +328,9 @@ def invert(
|
|
| 328 |
timesteps = list(reversed(pipe.scheduler.timesteps))
|
| 329 |
|
| 330 |
# Initialize tqdm progress bar
|
| 331 |
-
|
| 332 |
-
|
| 333 |
-
for i in progress_bar:
|
| 334 |
print(f"Iteration type: {type(i)}, value: {i}") # Debugging statement
|
|
|
|
| 335 |
if isinstance(i, (int, float)):
|
| 336 |
i = int(i)
|
| 337 |
else:
|
|
@@ -384,6 +383,7 @@ def invert(
|
|
| 384 |
|
| 385 |
|
| 386 |
|
|
|
|
| 387 |
def style_image_with_inversion(
|
| 388 |
pipe,
|
| 389 |
input_image,
|
|
|
|
| 328 |
timesteps = list(reversed(pipe.scheduler.timesteps))
|
| 329 |
|
| 330 |
# Initialize tqdm progress bar
|
| 331 |
+
for i in range(num_inference_steps - 1):
|
|
|
|
|
|
|
| 332 |
print(f"Iteration type: {type(i)}, value: {i}") # Debugging statement
|
| 333 |
+
|
| 334 |
if isinstance(i, (int, float)):
|
| 335 |
i = int(i)
|
| 336 |
else:
|
|
|
|
| 383 |
|
| 384 |
|
| 385 |
|
| 386 |
+
|
| 387 |
def style_image_with_inversion(
|
| 388 |
pipe,
|
| 389 |
input_image,
|