I have been trying to train with PyTorch for Yolact following the guide: https://github.com/dbolya/yolact
Current GPU is RTX2070 and cudatoolkit of 11.1.1 is used.
When I run the following:
python train.py --config=yolact_base_config --batch_size=8
I keep running into this error
RuntimeError: CUDA out of memory. Tried to allocate 50.00 MiB (GPU 0; 7.79 GiB total capacity; 5.98 GiB already allocated; 22.88 MiB free; 6.40 GiB reserved in total by PyTorch)
I have tried decreasing the maximum size of the pictures in max_size
under config.py but the CUDA error continue to persist. I decrease the batch size as well but it does not seem to improve.