Xu Ma commited on
Commit
ed7b670
1 Parent(s): fe60785

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
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 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
 
 
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