当前位置:网站首页>Pytorch——基于mmseg/mmdet训练报错:RuntimeError: Expected to have finished reduction in the prior iteration
Pytorch——基于mmseg/mmdet训练报错:RuntimeError: Expected to have finished reduction in the prior iteration
2022-07-26 11:15:00 【Irving.Gao】
报错截图
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

解决方法
在配置文件中,加入:
find_unused_parameters = True
如下图所示:
即可解决~
参考文章:
边栏推荐
- Pyqt5 rapid development and practice Chapter 1 understanding pyqt5
- 10 个 Reduce 常用“奇技淫巧”
- MySQL locking mechanism
- Orbslam2 cmakelists File Structure Parsing
- Access rights - private, public, protected
- Le audio specification overview
- FINEOS宣布2022年GroupTech Connect活动开放注册
- [learning progress] may
- MySql基础知识汇总
- 数据中台建设(二):数据中台简单介绍
猜你喜欢

Pyqt5 rapid development and practice 3.1 QT designer quick start
![[vscode]如何远程连接服务器](/img/b4/9a80ad995bd589596d8b064215b55a.png)
[vscode]如何远程连接服务器

UDF and analysis case of sparksql, 220725,

Le audio specification overview

easyui01

MySQL locking mechanism

MySQL transaction details

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

QT——LCDNumber

Mongodb - use $type to query whether the type of a field is XXX
随机推荐
Can SAIC mingjue get out of the haze if its products are unable to sell and decline
A new technical director asked me to do an IP territorial function~
数据库组成 触发器
数据中台建设(二):数据中台简单介绍
[idea] how to create a new project
[error reported]exception: found duplicate column (s) in the data schema: `value`;
[报错]看日志看什么
Generation and transformation of pulse waveform
QT - connect USB camera
In depth interpretation of happens before principle
MySQL transaction details
[vscode] how to connect to the server remotely
Notes on intellectual property law in Yu classroom
Introduction to authoringrealm
leetcode-209. 长度最小的子数组(二分、前缀和、滑动窗口)
Scrapy IP agent is not responding
[报错]Exception: Found duplicate column(s) in the data schema: `value`;
SQL statement of SQL server creates database
3dunity game project actual combat - aircraft war
28.文件目录解析代码实现