当前位置:网站首页>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
如下图所示:
即可解决~
参考文章:
边栏推荐
- [报错]Exception: Found duplicate column(s) in the data schema: `value`;
- easyui01
- 打造绿色数据中心,Colt DCS 是认真的!
- 702马力破百仅4.5秒!最强皮卡来袭,安全、舒适一个不落
- Back to the top of several options (JS)
- QT - connect USB camera
- Pyqt5 rapid development and practice 3.1 QT designer quick start
- Leetcode-209. subarray with the smallest length (binary, prefix and, sliding window)
- The company cannot access station B
- easyui03
猜你喜欢

Common library installation
![[error reported]exception: found duplicate column (s) in the data schema: `value`;](/img/df/ca676633ca6d5e8c0a870be0732707.png)
[error reported]exception: found duplicate column (s) in the data schema: `value`;

702 horsepower breaks through 100 in only 4.5 seconds! The strongest pickup truck comes, safe and comfortable

702马力破百仅4.5秒!最强皮卡来袭,安全、舒适一个不落

QT——LCDNumber

Load orb dictionary

X 2 Earn必须依靠旁氏启动?Gamefi的出路在哪?(上)

数据中台建设(二):数据中台简单介绍

easyui04

Leetcode-209. subarray with the smallest length (binary, prefix and, sliding window)
随机推荐
QT - connect USB camera
ORBSLAM2 CmakeLists文件结构解析
[vscode] how to connect to the server remotely
公司无法访问b站
Leetcode-209. subarray with the smallest length (binary, prefix and, sliding window)
并发三大性质
剑指 Offer 25. 合并两个排序的链表
Classic Bluetooth connection process
easyui04
Understanding of Abstract Programming
Three properties of concurrency
easyui02
Creation and modification of basic tables and data in them by SQL statements of SQL Server
Several ways of communication between threads
PostgreSQL in Linux and windows installation and introductory basic tutorial
数据库组成索引和约束
脉冲波形的产生与变换
Cmake常用命令总结
《微信小程序-进阶篇》Lin-ui组件库源码分析-Button组件(一)
After 4 months of job search and 15 interviews, I finally got 3 offers, ranking P7+