When I'm running :python main.py --phase=train --work-dir=PATH_TO_SAVE_RESULTS --device=0
I got this error :
RuntimeError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 6.00 GiB total capacity; 4.40 GiB already allocated; 0 bytes free; 4.81 GiB reserved in total by PyTorch)
When I'm running :
python main.py --phase=train --work-dir=PATH_TO_SAVE_RESULTS --device=0
I got this error :RuntimeError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 6.00 GiB total capacity; 4.40 GiB already allocated; 0 bytes free; 4.81 GiB reserved in total by PyTorch)