Spaces:
Runtime error
Runtime error
downscale final image
Browse files
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 |
-
|
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)
|