AILab-CVC / VideoCrafter

VideoCrafter2: Overcoming Data Limitations for High-Quality Video Diffusion Models
https://ailab-cvc.github.io/videocrafter2/
Other
4.46k stars 327 forks source link

CUDA out of memory #78

Open esmaei1 opened 2 months ago

esmaei1 commented 2 months ago

When I run bash ./scripts/run_text2video.sh I always get this error: torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 80.00 MiB (GPU 0; 10.90 GiB total capacity; 10.36 GiB already allocated; 83.50 MiB free; 10.54 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

jagan607 commented 1 month ago

Hi @esmaei1 , the error message shows that you don't have enough GPU to run the generation. What's your GPU size. At least, you need 18 GB to run.