使用colab进行训练时出现如下问题:
|
1 2 3 4 5 6 7 8 9 10 11 |
/usr/local/lib/python3.6/dist-packages/mmcv/runner/epoch_based_runner.py:181: UserWarning: Runner was deprecated, please use EpochBasedRunner instead 'Runner was deprecated, please use EpochBasedRunner instead') /usr/local/lib/python3.6/dist-packages/mmcv/runner/base_runner.py:63: UserWarning: batch_processor is deprecated, please implement train_step() and val_step() in the model instead. warnings.warn('batch_processor is deprecated, please implement ' 2020-09-29 03:25:25,281 - mmdet - INFO - Start running, host: root@06ffd23f9f49, work_dir: 2020-09-29 03:25:25,281 - mmdet - INFO - workflow: [('train', 1)], max: 24 epochs /pytorch/aten/src/ATen/native/IndexingUtils.h:20: UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead. /pytorch/aten/src/ATen/native/IndexingUtils.h:20: UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead. /pytorch/aten/src/ATen/native/IndexingUtils.h:20: UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead. /pytorch/aten/src/ATen/native/IndexingUtils.h:20: UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead. /pytorch/aten/src/ATen/native/IndexingUtils.h:20: UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead. |
经查,是pytorch版本的问题,当pytorch版本改为1.1.0时,该问题消失,如果对pytorch版本有要求,可以在train.py中加入:
|
1 2 |
import warnings warnings.filterwarnings("ignore", category=UserWarning) |
这也是目前官方推荐的解决方法。





最新评论
同样
站长您好,亚马逊云咨询推广资源,望建立联系,可邮件,谢谢。
换友情链接吗?
看你的站做的挺不错的
恭喜!!太强了,硕博连读啊
雁过留毛,人过留名。
看不懂但大受震撼
每天都在战争,希望2026和平.