当前位置:网站首页>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 :
边栏推荐
- Rigorous proof of Behrman's expectation equation
- Acwing727.菱形图案
- Synchronized and reentrantlock
- 武林头条-建站小能手争霸赛
- Substance Painter 2021软件安装包下载及安装教程
- PostgreSQL in Linux and windows installation and introductory basic tutorial
- 测试用例千万不能随便,记录由一个测试用例异常引起的思考
- 找工作4个月,面试15家,终于拿到3个offer,定级P7+
- 数据库组成索引和约束
- 36. [difference between const function and function]
猜你喜欢

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

MySQL locking mechanism

Common library installation

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

PostgreSQL in Linux and windows installation and introductory basic tutorial

《微信小程序-进阶篇》Lin-ui组件库源码分析-Button组件(一)

Can SAIC mingjue get out of the haze if its products are unable to sell and decline

QT——LCDNumber

【万字长文】使用 LSM-Tree 思想基于.Net 6.0 C# 实现 KV 数据库(案例版)

安科瑞余压监控系统在住宅小区的应用方案
随机推荐
线程之间的几种通信方式
Pyqt5 rapid development and practice 3.1 QT designer quick start
Synchronized and reentrantlock
Basic recursive equation of DP
Query advanced alias
Introduction to authoringrealm
Understanding of Abstract Programming
swagger2.9.2教程 与swagger3.0.0教程
Mlx90640 infrared thermal imager temperature sensor module development notes (6)
Colt DCS is serious about building a green data center!
如何配置JdbcRealm数据源呢?
Basic concepts of JVM and memory management model
Database composition trigger
ESP8266-Arduino编程实例-开发环境搭建(基于Arduino IDE)
常用库安装
Summary of common cmake commands
An error occurred in the scrapy shell
想让照片中的云飘起来?视频编辑服务一键动效3步就能实现
702 horsepower breaks through 100 in only 4.5 seconds! The strongest pickup truck comes, safe and comfortable
【转载】多元高斯分布(The Multivariate normal distribution)