Spaces:
Runtime error
Runtime error
Xu Ma
commited on
Commit
·
ed7b670
1
Parent(s):
fe60785
Update main.py
Browse files
main.py
CHANGED
@@ -520,9 +520,9 @@ def main_func(target, experiment, cfg_arg):
|
|
520 |
pydiffvg.imwrite(imshow, filename, gamma=gamma)
|
521 |
|
522 |
### added for app
|
523 |
-
if
|
524 |
# print(f"debug: {t}, {filename} {img.size()}")
|
525 |
-
return img.detach().cpu().numpy(),
|
526 |
|
527 |
x = img.unsqueeze(0).permute(0, 3, 1, 2) # HWC -> NCHW
|
528 |
|
|
|
520 |
pydiffvg.imwrite(imshow, filename, gamma=gamma)
|
521 |
|
522 |
### added for app
|
523 |
+
if t%30==0 and t !=0 :
|
524 |
# print(f"debug: {t}, {filename} {img.size()}")
|
525 |
+
return img.detach().cpu().numpy(), t
|
526 |
|
527 |
x = img.unsqueeze(0).permute(0, 3, 1, 2) # HWC -> NCHW
|
528 |
|