bkhmsi commited on
Commit
0243ed4
1 Parent(s): 1595547

downscale final image

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -239,8 +239,9 @@ def run_main_app(semantic_concept, word, script, prompt_suffix, font_name, num_s
239
  img = img[:, :, :3]
240
 
241
  if step % skip == 0:
242
- gif_frames += [img.detach().cpu().numpy()*255]
243
-
 
244
 
245
  filename = os.path.join(cfg.experiment_dir, "video-svg", f"iter{step:04d}.svg")
246
  check_and_create_dir(filename)
 
239
  img = img[:, :, :3]
240
 
241
  if step % skip == 0:
242
+ img_numpy = img.detach().cpu().numpy()*255
243
+ img_numpy = np.resize(img_numpy, (200, 200))
244
+ gif_frames += [img_numpy]
245
 
246
  filename = os.path.join(cfg.experiment_dir, "video-svg", f"iter{step:04d}.svg")
247
  check_and_create_dir(filename)