当前位置:网站首页>Pytoch -- error based on mmseg/mmdet training: runtimeerror: expected to have finished reduction in the priority iteration
Pytoch -- error based on mmseg/mmdet training: runtimeerror: expected to have finished reduction in the priority iteration
2022-07-26 11:38:00 【Irving.Gao】
Screenshot of error reporting
RuntimeError: Expected to have finished reduction in the prior iteration before starting a new one. This error indicates that your module has parameters that were not used in producing loss. You can enable unused parameter detection by passing the keyword argument
find_unused_parameters=Truetotorch.nn.parallel.DistributedDataParallel, and by
making sure allforwardfunction outputs participate in calculating loss.
If you already have done the above, then the distributed data parallel module wasn’t able to locate the output tensors in the return value of your module’sforwardfunction. Please include the loss function and the structure of the return value offorwardof your module when reporting this issue (e.g. list, dict, iterable).
Parameter indices which did not receive grad for rank 1: 109 110
In addition, you can set the environment variable TORCH_DISTRIBUTED_DEBUG to either INFO or DETAIL to print out information about which particular parameters did not receive gradient on this rank as part of this error

resolvent
In the configuration file , Join in :
find_unused_parameters = True
As shown in the figure below :
Can solve ~
Reference article :
边栏推荐
- [error reported]exception: found duplicate column (s) in the data schema: `value`;
- [cloud co creation] what good habits do you adhere to in order to write good code?
- Why give up NPM and turn to yarn
- 打造绿色数据中心,Colt DCS 是认真的!
- [开发工具] IEDA报红
- Pyqt5 rapid development and practice 3.1 QT designer quick start
- Hal library IIC simulation in punctual atom STM32 `define SDA_ IN() {GPIOB->MODER&=~(3<<(9*2));GPIOB->MODER|=0<<9*2;}` // PB9 input mode
- [学习进度]5月
- easyui01
- Load orb dictionary
猜你喜欢

记录个人遇到的错误

Pytorch——基于mmseg/mmdet训练报错:RuntimeError: Expected to have finished reduction in the prior iteration

Hal library IIC simulation in punctual atom STM32 `define SDA_ IN() {GPIOB->MODER&=~(3<<(9*2));GPIOB->MODER|=0<<9*2;}` // PB9 input mode

Basic concepts of JVM and memory management model

MLX90640 红外热成像仪测温传感器模块开发笔记(六)

找工作4个月,面试15家,终于拿到3个offer,定级P7+

一步一步入门使用g2o解决ICP问题-估计有匹配关系的两组3维点集之间的变换关系
![[development tool] ieda red](/img/2d/eec1f74c33ff21ae4951eae44b9369.png)
[development tool] ieda red
![[报错]Exception: Found duplicate column(s) in the data schema: `value`;](/img/df/ca676633ca6d5e8c0a870be0732707.png)
[报错]Exception: Found duplicate column(s) in the data schema: `value`;

公司无法访问b站
随机推荐
Integrity constraints of SQL Server database
Synchronized and reentrantlock
脉冲波形的产生与变换
702 horsepower breaks through 100 in only 4.5 seconds! The strongest pickup truck comes, safe and comfortable
10 个 Reduce 常用“奇技淫巧”
After 4 months of job search and 15 interviews, I finally got 3 offers, ranking P7+
PostgreSQL in Linux and windows installation and introductory basic tutorial
[idea] how to create a new project
Can SAIC mingjue get out of the haze if its products are unable to sell and decline
MySQL basic knowledge summary
easyui02
X 2 earn must rely on Ponzi startup? Where is the way out for gamefi? (top)
五万美元的年薪是如何花光的
Application scheme of ankerui residual pressure monitoring system in residential quarter
Rigorous proof of Behrman's expectation equation
4.1 配置Mysql与注册登录模块
PostgreSQL in Linux and windows installation and introductory basic tutorial
[learning progress] may
JS use webuploader to do blocking and breakpoint continuation of large files
A new technical director asked me to do an IP territorial function~