在运行YOLOv5算法的时候,运算过程中会一直出现F:\Anaconda\envs\yolov5-1\lib\site-packages\torchvision\io\image.py:11: UserWarning: Failed to load image Python extension: Could not find module 'F:\Anaconda\envs\yolov5-1\Lib\site-packages\torchvision\image.pyd' (or one of its dependencies). Try using the full path with constructor syntax.
warn(f"Failed to load image Python extension: {e}")
运行到后面会报出以下的错误
RuntimeError: CUDA out of memory. Tried to allocate 14.00 MiB (GPU 0; 2.00 GiB total capacity; 1.17 GiB already allocated; 0 bytes free; 1.21 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

YOLOv5算法报错
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
2条回答 默认 最新
- 爱晚乏客游 2021-12-27 17:30关注
CUDA out of memory 提示你显存不够,吧batchsize减小或者imgz减小
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报