当前位置:网站首页>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
边栏推荐
猜你喜欢

Rectangular coverage area

【云原生 | Devops篇】Jenkins安装与实战(二)

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

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

Flink调优(一)资源调优、背压问题的分析

1108. IP 地址无效化

Typera free version, without cracking, can be installed and used directly

有意思的鼠标指针交互探究

typora免费版,无需破解,安装直接使用

Citus 11 for Postgres 完全开源,可从任何节点查询(Citus 官方博客)
随机推荐
Matrial3d parameter analysis
Operation control entry to Fang Si
知识点:PCB电路板的几种特殊布线方法
MySQL-DQL
一文搞懂 Flink OperatorChain 对象重用
The k-th small__
使用Huggingface在矩池云快速加载预训练模型和数据集
Illustrated with pictures and texts -- wechat applet to obtain the user's geographic location information and call Tencent map API to obtain the user's specific location
Introduction to common source oscilloscope software and RIGOL oscilloscope upper computer software ns-scope
Devsecops: s-sdlc enterprise best practices
DevSecOps:S-SDLC企业最佳实践
Flink调优(一)资源调优、背压问题的分析
Is 100W data table faster than 1000W data table query?
20N10-ASEMI中低压MOS管20N10
MySQL-DQL
Five steps to successfully complete threat modeling
ThinkPHP安全开发规范
One article quick learning - playing with MySQL time operation function and detailed explanation of time matching operation + instance code
图文并茂--微信小程序,获取用户地理位置信息,并调用腾讯地图API来获取用户具体位置
Is the Huatai Securities account given by qiniu school true? Is it safe to open an account