PeterL1n / BackgroundMattingV2

Real-Time High-Resolution Background Matting
MIT License
6.81k stars 950 forks source link

CUDA out of memory with 8.00GB #174

Closed zinuoli closed 2 years ago

zinuoli commented 2 years ago

Hello! 大佬你们好! I recieve an error when I tried to run the dataset of yours b1.mp4 and the error is RuntimeError:CUDA out of memory. Tried to allocate 1.48 GiB (GPU 0; 8.00 GiB total capacity; 3.86 GiB already allocated; 628.69 MiB free; 5.68 GiB reserved in total by PyTorch). Is my GPU memory insufficient? I supposed it would run with 8Gb of GPU MEM. Does it need more MEM? Looking forward to your reply if you guys are free, thank you!

zinuoli commented 2 years ago

Now I've successfully run the program via output of pha, but another error ouccured like IndexError: Idx: 389 out of length: 416 , the video indeed has been ouput but the quality was not that good. image How can I avoid it?

zinuoli commented 2 years ago

problem solved, thank you.