运行yolov7时遇到报错:
RuntimeError: CUDA out of memory. Tried to allocate 26.00 MiB (GPU 0; 9.77 GiB total capacity; 7.78 GiB already allocated; 24.69
解决方法:
把batchsize设置小一点,然后再一点一点加大。我是减小到8就可以了。
运行yolov7时遇到报错:
RuntimeError: CUDA out of memory. Tried to allocate 26.00 MiB (GPU 0; 9.77 GiB total capacity; 7.78 GiB already allocated; 24.69
解决方法:
把batchsize设置小一点,然后再一点一点加大。我是减小到8就可以了。