当前位置:网站首页>PolarMask is not in the models registry
PolarMask is not in the models registry
2022-04-22 06:03:00 【蓝域小兵】
这个问题出现在我将PolarMask的模型和配置文件拷贝到新安装的mmdetection中训练时发生的。
首先说主要原因,是因为PYTHONPATH环境变量中没有mmdetection下的build的某个子子目录(仔细看安装时的提示就解决了)
解决方法:
- 卸载mmdetection(或者也可以不卸载?我没试)
https://blog.csdn.net/jiraiya_wl/article/details/111404703 - 在~/.bashrc中写
(路径改成你自己的)
export PYTHONPATH="/mnt/h/Experiments/Code/mmdetection-2.21.0/build/bdist.linux-x86_64/egg/:$PYTHONPATH"
- 使环境变量生效
source ~/.bashrc
- 重新安装mmdetection
python setup.py install develop
我出现的问题解决方法就是这样,接下来就是硬件性能不够,加钱的问题了。
ImportError: cannot import name ‘force_fp32’
从mmdetection1迁移到mmdetection2
这两个函数需要这样导入
from mmcv.runner import auto_fp16, force_fp32
PolarMask: FPN: init() got an unexpected keyword argument ‘extra_convs_on_inputs’
这是在mmdetection种,应该把extra_convs_on_inputs和add_extra_convs这两个参数都统一了,extra_convs_on_inputs=False应该就等于直接
add_extra_convs=True,具体查看fpn.py的源码和
https://zhuanlan.zhihu.com/p/183098688
版权声明
本文为[蓝域小兵]所创,转载请带上原文链接,感谢
https://blog.csdn.net/u013238941/article/details/122937396
边栏推荐
- Use of Excel vlookup function
- 对象需要额外新增属性,无需在实体新增属性,返回所需信息
- 使用stream load向doris写数据的案例
- 2021-09-03 爬虫模板(只支持静态页面)
- 手动写智能指针shared_ptr功能
- 常用的各种工具类 状态栏 缓存 转化 获取app信息 剪切板 文件操作 加解密操作
- Encapsulate wechat applet to obtain longitude and latitude + permission determination + guidance authorization in real time (no 30 second delay)
- 移动端触底加载动画 (uni)
- 梭杆菌(Fusobacterium)——共生菌,机会菌,癌杆菌
- Encapsulating a uni network request (uni. Request)
猜你喜欢
随机推荐
App update
ES6 array method record
使用RecyclerView实现左右并排分类选择
树莓派+opencv+opencv--人脸检测------------环境搭建
CLion+OpenCV 识别身份证号码---检测身份证号码
昇級版微生物16s測序報告|解讀
Nested use of Excel if, and and or functions
glide 4.0.0 之后与图片选择器Matisse 冲突
封装uni网络请求(uni.request)
spark案例——wordcount
2020即将结束,特殊又难忘。
ERROR: Could not find a version that satisfies the requirement win32gui
Canvas和SVG的区别
Win10下AI CC 2019安装教程(超级详细-小白版)
微信小程序登录流程
Flink的安装部署及WordCount测试
检索式问答系统baseline
List<Map>复制:浅拷贝与深拷贝
好用的textview跑马灯效果
手把手教你一小时设计基于matlab的信号发生器GUI界面(2)









