Spaces:
Running
on
Zero
Running
on
Zero
Upload folder using huggingface_hub
Browse files- inference.py +1 -1
inference.py
CHANGED
@@ -48,6 +48,6 @@ def inference(
|
|
48 |
|
49 |
for iter in tqdm(range(iterations), desc='The magic is happening ✨'):
|
50 |
optimizer.step(lambda: closure(iter))
|
51 |
-
print(f'Loss ({iter+1}):', min_losses[iter])
|
52 |
|
53 |
return generated_image
|
|
|
48 |
|
49 |
for iter in tqdm(range(iterations), desc='The magic is happening ✨'):
|
50 |
optimizer.step(lambda: closure(iter))
|
51 |
+
if iter % 10 == 0: print(f'Loss ({iter+1}):', min_losses[iter])
|
52 |
|
53 |
return generated_image
|