当前位置:网站首页>预训练模型参数不匹配
预训练模型参数不匹配
2022-06-28 05:40:00 【TBYourHero】
model = ViT(num_classes=10)
ckpt = torch.load('vit-in1k.pth', map_location='cpu')
msg = model.load_state_dict(ckpt, strict=False)
print(msg)# 剔除掉,不加载即可
ckpt.pop('head.weight')
ckpt.pop('head.bias')
边栏推荐
- 6. 毕业设计温湿度监控系统(ESP8266 + DHT11 +OLED 实时上传温湿度数据给公网服务器并在OLED显示屏上显示实时温湿度)
- Capacity scheduling absolute value configuration queue usage and pit avoidance
- V4l2 driver layer analysis
- bash install. SH ******** error
- 北斗三号短报文终端在大坝安全监测方案的应用
- [JVM] - Division de la mémoire en JVM
- qtcanpool 知 07:Ribbon
- Quartus replication IP core
- Qtcanpool knowledge 07:ribbon
- 【Linux】——使用xshell在Linux上安装MySQL及实现Webapp的部署
猜你喜欢

To batch add background pictures and color changing effects to videos

Detailed usage configuration of the shutter textbutton, overview of the shutter buttonstyle style and Practice

Online yaml to JSON tool

Animation de ligne

Data middle office: six questions data middle office
![[Verilog quick start of Niuke online question brushing series] ~ one out of four multiplexer](/img/1f/becda82f3136678c58dd8ed7bec8fe.png)
[Verilog quick start of Niuke online question brushing series] ~ one out of four multiplexer

Jdbc的使用

Lhasa accordion

Application of Beidou No.3 short message terminal in dam safety monitoring scheme

函数栈帧的创建和销毁
随机推荐
8VC Venture Cup 2017 - Elimination Round D. PolandBall and Polygon
codeforces每日5题(均1700)
If a programmer goes to prison, will he be assigned to write code?
jsp连接oracle实现登录注册(简单)
指定默认参数值 仍报错:error: the following arguments are required:
Capacity scheduling absolute value configuration queue usage and pit avoidance
Solution of dam safety automatic monitoring system for medium and small reservoirs
Data midrange: implementation and summary of AI midrange
Rxswift -- (1) create a project
Question bank and answers of 2022 materialman general basic (materialman) operation certificate examination
bash install.sh ********错误
Jenkins continues integration 2
Mysql-16-subquery
5G网络整体架构
数据中台:一篇带你深入浅出了解数据中台
Why does the company choose cloud database? What is its charm!
ERP软件公司选型的重要根据
Oracle 常用基础函数
Data center: Seven Swords of data governance
1404. number of steps to reduce binary representation to 1