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

Save video? #11

Open
ninajlu opened this issue Nov 8, 2022 · 4 comments
Open

Save video? #11

ninajlu opened this issue Nov 8, 2022 · 4 comments

Comments

@ninajlu
Copy link

ninajlu commented Nov 8, 2022

How do you save or view the video created?

@lucidrains
Copy link
Owner

you can use this function i'll port it over here once i get some more training code in place

@ninajlu
Copy link
Author

ninajlu commented Nov 8, 2022

Thanks! I'm getting this error with the ToPILImage() line if I run
video_tensor_to_gif(entire_video, "test.gif")
ValueError: pic should be 2/3 dimensional. Got 4 dimensions.
I saw that the shape of the entire_video tensor is 5 dimensions--what's do the dimensions represent and how do I fix the error?
entire_video.shape # (1, 3, 17 + 14 + 14 = 45, 256, 256)

@lucidrains
Copy link
Owner

@ninajlu i'll get it built by end of the week

you won't see any videos btw, not without training it first

@Feiruuuu
Copy link

I have the same issue where all the videos I save are pixelated, but I've tried different codecs, and it still doesn't work.

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

3 participants