CrowdCounting-P2PNet icon indicating copy to clipboard operation
CrowdCounting-P2PNet copied to clipboard

when I run run_test.py, CUDA out of memory

Open Foolssss opened this issue 2 years ago • 3 comments

RuntimeError: CUDA out of memory. Tried to allocate 88.00 MiB (GPU 0; 8.00 GiB total capacity; 6.17 GiB already allocated; 63.69 MiB free; 6.23 GiB reserved in total by PyTorch)

Foolssss avatar Mar 29 '22 08:03 Foolssss

我也刚运行了run_test.py,是没有问题的

conan-CV avatar Mar 29 '22 14:03 conan-CV

我也刚运行了run_test.py,是没有问题的

你测试的图像是多大尺寸的,测试了几张图像?

Foolssss avatar Mar 30 '22 08:03 Foolssss

hi @fyh-cumtb , I encountered the same problem. later I found this is because of the image size. my image was in 4k res, I converted it into the size of demo1.jpg 's size (available under this repository's vis directory) using cv2.resize(), now it's working for me.

Mukilan-Mohanachandran avatar Oct 27 '22 02:10 Mukilan-Mohanachandran