Xu Ma commited on
Commit
fc558da
1 Parent(s): 455b3a2

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -4
main.py CHANGED
@@ -519,10 +519,10 @@ def main_func(target, experiment, cfg_arg):
519
  imshow = img.detach().cpu()
520
  pydiffvg.imwrite(imshow, filename, gamma=gamma)
521
 
522
- ### added for app
523
- if int(t)%30==0:
524
- print(f"debug: {t}, {filename} {img.size()}")
525
- return img.detach().cpu().numpy(), int(t)
526
 
527
  x = img.unsqueeze(0).permute(0, 3, 1, 2) # HWC -> NCHW
528
 
 
519
  imshow = img.detach().cpu()
520
  pydiffvg.imwrite(imshow, filename, gamma=gamma)
521
 
522
+ ### added for app
523
+ if int(t)%30==0:
524
+ print(f"debug: {t}, {filename} {img.size()}")
525
+ return img.detach().cpu().numpy(), int(t)
526
 
527
  x = img.unsqueeze(0).permute(0, 3, 1, 2) # HWC -> NCHW
528