当前位置:网站首页>Record the errors encountered in the pytorch training model once
Record the errors encountered in the pytorch training model once
2022-06-21 11:52:00 【Wsyoneself】
- Missing key(s) in state_dict: "first_conv.bias",
- Solve settings :model.load_state_dict(checkpoint,strict=False)
- TypeError: 'Generator' object is not subscriptable
- solve : Unify saving and loading ( For example, the model is saved , Just load the whole model and then load_state, If you save a super parameter , Then put it directly into the model , no need load_state 了 )
- Report errors :ValueError: The length of the input vector x must be greater than padlen, which is 18.
- solve :y = signal.filtfilt(b, a, x,axis=0)
- Report errors :ValueError: operands could not be broadcast together with shapes (323596,2) (323596,)
- reason : Output to view the data in the original warehouse x The dimension of is one-dimensional ( Such as (96161,)), The dimension of the newly added data is two-dimensional ( Such as (321199, 2),(549108, 2))
- Error resolution :x_tmp=[token for st in x for token in st] This will turn numpy Turned into list, There is no shape The attribute is
- Correct the problem : Yes shape The attributes are array Can be used directly flatten Turn it into 1 Dimensional , If you need to change to another dimension, you can use reshape
- Expected weight to be a vector of size equal to the number of channels in input, but got weight of shape [512] and input of shape [512, 7622]
- solve : take input To transpose
边栏推荐
- What if the server is invaded
- 考研政英平均分出炉!你目前什么水平?
- External-Attention-tensorflow(更新中)
- Heavyweight, mapstruct 1.5 was released. This time, it finally supports the transformation of map into bean!
- 中信建投券商是跟启牛学堂存在什么关系?开券商账户安全吗
- Typera free version, without cracking, can be installed and used directly
- Rename all files in the folder with one click
- Is 100W data table faster than 1000W data table query?
- R & S oscilloscope software, introduction to upper computer software ns-scope of rod and Schwartz oscilloscope
- DDoS attack and defense: from principle to practice
猜你喜欢

适配器电源自动测试设备|充电器ATE测试系统NSAT-8000介绍

2022 HV electrician judgment questions and answers

Heavyweight, mapstruct 1.5 was released. This time, it finally supports the transformation of map into bean!

Deep water area involvement

In the graduation season, tell me about my feelings when I first entered the workplace as a student

Is 100W data table faster than 1000W data table query?

考研政英平均分出炉!你目前什么水平?

2022年安全员-C证上岗证题目及答案

旅行不能治愈心灵

100w的数据表比1000w的数据表查询更快吗?
随机推荐
电源老化测试系统定制|充电桩自动化测试系统NSAT-8000概述
Rectangular coverage area
重磅,MapStruct 1.5 发布,这次终于支持Map转为Bean了!
MySQL-DML
工厂模式实现
2022年安全员-A证考试模拟100题及在线模拟考试
【云原生 | Devops篇】Jenkins安装与实战(二)
HMS Core机器学习服务身份证识别功能,实现信息高效录入
Flink调优(一)资源调优、背压问题的分析
Shell process control - 35. Multi branch case conditional statements
Second harmonyos training
Adapter power supply automatic test equipment | introduction to charger ATE test system nsat-8000
Discussion on outsourcing safety development management and control
广东发产品检测券,消费者也有份
DDoS攻击与防御:从原理到实践
DevSecOps:应当做好的十件事
Simulated 100 questions of 2022 safety officer-a certificate examination and online simulated examination
DevSecOps:S-SDLC企业最佳实践
2022 safety officer-b certificate retraining question bank and simulated examination
Chapter VIII web project testing