-
Notifications
You must be signed in to change notification settings - Fork 5
Description
1.首先就是mmcv-full版本的问题,这是个很关键的问题,中间很多次都是因为这个包,作者大大安装的是mmcv-full1.4.5,我的配置也是torch1.9.0+cuda11.1,按照指令会安装mmcv-full1.7.2,有时候会冲突有时候不会(这个包的兼容性是真的差),所以还是建议用跟作者大大一样的吧。
2.ImportError: cannot import name ‘Registry‘ from ‘mmcv.utils‘这个也是mmcv版本的问题,版本太高了,同上。
3.TypeError: stat: path should be string, bytes, os.PathLike or integer, not list。这个也是困扰了好久,最后使用了这个方法,成功了
https://blog.csdn.net/weixin_46310648/article/details/140213323
4.KeyError: “PointOBB is not in the models registry这个问题是把我劝退的问题,我尝试了市面上的很多方法,经验大多介绍的是:(1)检查模块是否加入registry了(2)检查_init_文件(3)记得跑python setup install
都解决不了,最后一直卸载mmcv-full,又安装,然后执行readme中的编译代码,最后突然好了。
5.readme推理阶段的第一个指令的第一部分好像要修改一下,我修改成这样就可以运行了
python tools/train.py \
--config configs2/pointobb/pointobb_r50_fpn_2x_dior.py \
--work-dir xxx/work_dir/test_pointobb_r50_fpn_2x_dior/ \
--cfg-options "evaluation.save_result_file='xxx/work_dir/test_pointobb_r50_fpn_2x_dior/pseudo_obb_result.json'" "evaluation.do_first_eval=True" "runner.max_epochs=0" "load_from='xxx/work_dir/pointobb_r50_fpn_2x_dior/epoch_15.pth'"
6.推理阶段会提示mmcv版本不符合,要求mmcv>=1.3.2, <=1.4.0。这可以不管,注销掉
还有一些别的问题 由于个人水平太差,复现的时间跨度有点大,不太想的起来,欢迎大家来讨论