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

Running out of 80GB RAM ONLY during second Animation #438

Open
rslosch opened this issue Oct 29, 2024 · 1 comment
Open

Running out of 80GB RAM ONLY during second Animation #438

rslosch opened this issue Oct 29, 2024 · 1 comment

Comments

@rslosch
Copy link

rslosch commented Oct 29, 2024

I am using Runpod with an RTX 4090 with 16 vCPU 83 GB RAM.

I am using driving videos from 2-3min. The first animation always completes with 60-70% of Memory utilized.
When running the second animation directly after, it completes the animation but I get the following log when it's writing:
0:01:34pipe:: corrupt input packet in stream 0 [rawvideo @ 0x654c1c0] Invalid buffer size, packet size 65536 < expected frame_size 2359296 Error while decoding stream #0:0: Invalid argument

Runpod flashes to 100% memory utilization and then Liveportrait crashes. I am then able to run the first animation only when restarting the app.

Any suggestions for why this might be are appreciated.

@cleardusk
Copy link
Member

In theory, the GPU memory should not overflow, as LivePortrait currently performs inference frame by frame. One situation that can occur is when the driving video is too long, causing the video to be converted into a CUDA tensor and exceeding the memory limit. This can be addressed by decoding the driver video frame by frame (needing modification of the inference : ) )

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