当前位置:网站首页>torch在高版本训练的模型在低版本中使用报错
torch在高版本训练的模型在低版本中使用报错
2022-06-12 06:20:00 【嗯呢嗯呢】
pttempted to read a PyTorch file with version 3, but the maximum supported version for reading is 2.
解决:
首先用高版本的torch读入后重新保存。
model = torch.load('model_name.pt')
torch.save(model, 'save_path', _use_new_zipfile_serialization=False)
然后在低版本中读取。
torch.load('model path', map_location='cpu')
边栏推荐
- Univariate linear regression model
- Getting started with houdininengine HDA and UE4
- The vs 2019 community version Microsoft account cannot be logged in and activated offline
- Summary of some problems in sensor bring up
- C # converts the hexadecimal code form of text to text (ASCII)
- leetcode 704. Binary search
- Overview of camera image quality
- Multithreading Foundation (XI) -- prevent CPU from occupying 100%
- On the normalization of camera rotation interpolation
- leetcode 35. Search insert location
猜你喜欢

Findasync and include LINQ statements - findasync and include LINQ statements

Word vector training based on nnlm

Chartextcnn (Ag dataset - news topic classification)

关于 Sensor flicker/banding现象的解释

Multithreading (4) -- no lock (2) -- Atomic related atomic classes

Leetcode personal question solution (Sword finger offer3-5) 3 Duplicate number in array, 4 Find in 2D array, 5 Replace spaces

Redis configuration (IV) -- cluster

RNN model

Dlib face detection

dlib 人脸检测
随机推荐
cv2.fillPoly coco annotator segment坐标转化为mask图像
Unity3d display FPS script
Pytorch implementation of regression model
Unity surface shader with template buffer
Leetcode sword finger offer (Second Edition) complete version of personal questions
Word2Vec
PHP一句话木马深度详细剖析
Leetcode January 10 daily question 306 Additive number
Redis configuration (IV) -- cluster
OverFeat: Integrated Recognition, Localization and Detection using Convolutional Networks
相机图像质量概述
Summary of some problems in sensor bring up
Video based fire smoke detection using robust AdaBoost
(UE4 4.27) customize primitivecomponent
PHP 开发环境搭建及数据库增删改查
leetcode 300. Longest increasing subsequence
勤于奋寻找联盟程序方法介绍
Piecewise Bezier curve
Get the size of the picture
LeetCode-1405. Longest happy string