solov2训练报错记录

solov2训练报错



前言


一、solov2在adelaidet上训练

Train Your Own Models
To train a model with “train_net.py”, first
setup the corresponding datasets following
datasets/README.md,

then run:

OMP_NUM_THREADS=1 python tools/train_net.py \
    --config-file configs/FCOS-Detection/R_50_1x.yaml \
    --num-gpus 8 \
    OUTPUT_DIR training_dir/fcos_R_50_1x

To evaluate the model after training, run:

OMP_NUM_THREADS=1 python tools/train_net.py \
    --config-file configs/FCOS-Detection/R_50_1x.yaml \
    --eval-only \
    --num-gpus 8 \
    OUTPUT_DIR training_dir/fcos_R_50_1x \
    MODEL.WEIGHTS training_dir/fcos_R_50_1x/model_final.pth

二、报错记录

1.cannot import name ‘string_metric’ from ‘rapidfuzz’

解决方法:
rapidfuzz版本过高

pip install rapidfuzz==1.1.1

2.return _mask.decode([rleObjs])[:,:,0]
TypeError: ‘NoneType’ object is not subscriptable

检查代码后,发现pycocotools未正确安装。
解决方法:
卸载重新安装pycocotools ,下载链接

cd PythonAPI #进入setup.py文件目录
python setup.py build_ext --inplace
python setup.py build_ext install

报错:: UserWarning: floordiv is deprecated, and its behavior will change in a future version of pytorch. It currently rounds toward 0 (like the ‘trunc’ function NOT ‘floor’).
原因:gpuRAM太小(本机电脑4g,完全不够用),或者batchsize太大。
解决方法:
使用用服务器训练。


  • 5
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值