RuntimeError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 4.00 GiB total capacity; 2.72 GiB already allocated; 19.74 MiB free; 2.77 GiB reserved in total by PyTorch)
RuntimeError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 4.00 GiB total capacity; 2.72 GiB already allocated; 19.74 MiB free; 2.77 GiB reserved in total by PyTorch)背景:运行YOLACT实例分割代码时,报错。原因:显卡太小(穷病)解决:修改beach_size的个数,调大或调小,知道不报错,一般调为beach_si