Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imageio.mimsave error #75

Open
yusufbrima opened this issue Jun 8, 2023 · 1 comment
Open

imageio.mimsave error #75

yusufbrima opened this issue Jun 8, 2023 · 1 comment

Comments

@yusufbrima
Copy link

Got an error while running:

python main.py btcvae_celeba_mini -d dsprites -l celeba --lr 0.001 -b 256 -e 5

Pointing to ./utils/visualize.py line 429:

imageio.mimsave(self.save_filename, self.images, fps=FPS_GIF)

Changing the argument from fps to duration in the following code which converts from frames per second (fps) to duration seem to resolve the issue

imageio.mimsave(self.save_filename, self.images, duration=(1000 * 1/FPS_GIF))

@YannDubs
Copy link
Owner

YannDubs commented Jul 5, 2023

thanks for flagging this, the issue seems to be imageio/imageio#973

if you send a PR I'd be happy to merge it. Another possibility would be downgrading imageio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants