yolox训练时出现错误

错误提示:

RuntimeError: CUDA out of memory._python


 解决办法:

原训练代码:


python tools/train.py -f exps/example/yolox_voc/yolox_voc_s.py -d 1 -b 16 --fp16 -o -c weights/yolox_s.pth


修正:


python tools/train.py -f exps/example/yolox_voc/yolox_voc_s.py -d 1 -b 16 -c weights/yolox_s.pth.tar