当前位置:网站首页>ValueError: loaded state dict contains a parameter group that doesn‘t match the size of optimizer‘s
ValueError: loaded state dict contains a parameter group that doesn‘t match the size of optimizer‘s
2022-04-23 05:42:00 【fattt_】
解决训练时报错:ValueError: loaded state dict contains a parameter group that doesn’t match the size of optimizer’s group
大致意思:加载状态 dict 包含一个与优化器组的大小不匹配的参数组
暂时解决:直接注释掉 optimizer.load_state_dict(ckpt[‘optimizer’])
因为
if cfg.BACKBONE.TRAIN_EPOCH == epoch:
logger.info(‘start training backbone.’)
optimizer, lr_scheduler = build_opt_lr(model.module, epoch)
logger.info(“model\n{}”.format(describe(model.module)))
当epoch=10 的时候,optimizer会重新生成。
版权声明
本文为[fattt_]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_41332732/article/details/114395095
边栏推荐
- Package mall system based on SSM
- Frequently asked interview questions - 2 (computer network)
- JVM系列(4)——内存溢出(OOM)
- Pilotage growth · ingenuity empowerment -- yonmaster developer training and pilotage plan is fully launched
- MySQL transaction
- 第36期《AtCoder Beginner Contest 248 打比赛总结》
- MySQL的锁机制
- Frequently asked interview questions - 1 (non technical)
- ‘EddiesObservations‘ object has no attribute ‘filled‘
- 自定义异常类
猜你喜欢

Sea Level Anomaly 和 Sea Surface Height Anomaly 的区别

2 - principes de conception de logiciels

基于ssm 包包商城系统

Excel sets row and column colors according to cell contents

Flutter 新一代图形渲染器 Impeller

Navicate连接oracle(11g)时ORA:28547 Connection to server failed probable Oeacle Net admin error

Establish excel bookkeeping book through setting context menu

C, class library

‘EddiesObservations‘ object has no attribute ‘filled‘

框架解析1.系统架构简介
随机推荐
2-软件设计原则
Object to map
DBCP使用
MySQL triggers, stored procedures, stored functions
Strategy for improving the conversion rate of independent stations | recovering abandoned users
MySql基础狂神说
C language - Spoof shutdown applet
MySQL的锁机制
JDBC操作事务
框架解析1.系统架构简介
js数字大写方法
Ora: 28547 connection to server failed probable Oracle net admin error
MySQL create Oracle exercise table
ES6之解构函数
Relative reference and absolute reference of Excel
Sea Level Anomaly 和 Sea Surface Height Anomaly 的区别
橙单微服务之批量导入
Isosceles triangle - the 9th Lanqiao provincial competition - group C
类的加载与ClassLoader的理解
Golang implements Ping connectivity detection case through exec module