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

Where are temp frames kept? #5

Open
Ainaemaet opened this issue Nov 28, 2023 · 2 comments
Open

Where are temp frames kept? #5

Ainaemaet opened this issue Nov 28, 2023 · 2 comments

Comments

@Ainaemaet
Copy link

Hello, a nice little project you have here. I'm getting some great results.
Just wondering if you can please tell me where are temp frames saved to before putting them together?

A couple times now I've run into an issue (self induced) where I am running a generation that is just at the edge of what my 24Gb vram will allow, and after the loading and generating it hangs forever (seemingly, for hours at least) at the final step.
Would be nice to know where things are going before being fed into ffmpeg so I can stitch them together manually!

@ExponentialML
Copy link

@Ainaemaet There is a bug with the VAE where I ran into this problem. You can use this mini batching-esque code to fix it at:

video_clip = vae.decode(video_clip / 0.18215).sample # [16, 3, 256, 256]

video_frames = []

for i in range(video_clip.shape[0]):
    frame = vae.decode(video_clip[[i]] / 0.18215).sample # [16, 3, 256, 256]
    video_frames.append(frame)
  
video_clip = torch.cat(video_frames, dim=0)

As for the temporary frames, everything is done in memory and not saved to disk until inference is complete.

@Ainaemaet
Copy link
Author

Thanks for getting back to me so quickly, I will have to wait and try it out in the morning (it's 3am here atm) but I'll report how that works.

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