Because my gpu memory is too small, when I run demo.py I get the following error
RuntimeError: CUDA out of memory. Tried to allocate 666.00 MiB (GPU 0; 2.00 GiB total capacity; 557.62 MiB already allocated; 549.02 MiB free; 662.00 MiB reserved in total by PyTorch)
How do I modify the code so that it can run on 2G memory, thanks!
Because my gpu memory is too small, when I run demo.py I get the following error
RuntimeError: CUDA out of memory. Tried to allocate 666.00 MiB (GPU 0; 2.00 GiB total capacity; 557.62 MiB already allocated; 549.02 MiB free; 662.00 MiB reserved in total by PyTorch)
How do I modify the code so that it can run on 2G memory, thanks!