当前位置:网站首页>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
边栏推荐
- delete和truncate
- The 8th Blue Bridge Cup 2017 - frog jumping cup
- MySQL triggers, stored procedures, stored functions
- freemark中插入图片
- JVM系列(4)——内存溢出(OOM)
- Markdown syntax support test
- MySQL事务
- 7-10 longest symmetric substring (25 points) (violence problem solution) C language
- Split and merge multiple one-dimensional arrays into two-dimensional arrays
- Usage and difference of shellexecute, shellexecuteex and winexec in QT
猜你喜欢
Radar equipment (greedy)
SQL注入
SQL statement simple optimization
opensips(1)——安装opensips详细流程
2-軟件設計原則
Navicate连接oracle(11g)时ORA:28547 Connection to server failed probable Oeacle Net admin error
SQL语句简单优化
mysql中duplicate key update
C, class library
Differences between sea level anatomy and sea surface height anatomy
随机推荐
The role of brackets' [] 'in the parameter writing method in MDN documents
XXL job pit guide XXL RPC remoting error (connect timed out)
solidity合约DOS攻击
Pilotage growth · ingenuity empowerment -- yonmaster developer training and pilotage plan is fully launched
Insert picture in freemark
7-10 longest symmetric substring (25 points) (violence problem solution) C language
io. lettuce. core. RedisCommandExecutionException: ERR wrong number of arguments for ‘auth‘ command
Sea Level Anomaly 和 Sea Surface Height Anomaly 的区别
软件架构设计——软件架构风格
Markdown syntax support test
一文读懂当前常用的加密技术体系(对称、非对称、信息摘要、数字签名、数字证书、公钥体系)
MySQL triggers, stored procedures, stored functions
提升独立站转化率攻略 | 挽回弃购用户
opensips(1)——安装opensips详细流程
Flutter nouvelle génération de rendu graphique Impeller
Common interview questions - 4 (MySQL)
Idea plug-in --- playing songs in the background
转置卷积(Transposed Convolution)
Summary of redis classic interview questions 2022
SQL语句简单优化