当前位置:网站首页>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')
边栏推荐
- Video summary with long short term memory
- On the normalization of camera rotation interpolation
- About why GPU early-z reduces overdraw
- . Net core and Net framework comparison
- Chartextcnn (Ag dataset - news topic classification)
- Tips for using the potplayer video player
- Bulk Rename Utility
- LeetCode-1576. Replace all question marks
- (UE4 4.27) UE4 adds a customized meshpass to realize the edge illumination of the mobile terminal
- The unity3d script searches for colliders with overlaps within the specified radius
猜你喜欢

Leetcode January 10 daily question 306 Additive number

Summary of some problems in sensor bring up

Multithreading (2) -- pipeline (2) -- synchronized underlying monitor, lightweight, biased lock, lock inflation

Leetcode January 13 daily question 747 At least twice the maximum number of other numbers

Dlib face detection

sqlite交叉編譯動態庫

Bert use

2D human pose estimation for pose estimation - pifpaf:composite fields for human pose estimation

Multithreading (V) -- concurrency tools (I) -- thread pool (II) -- related contents of ThreadPoolExecutor

Opencv_ 100 questions_ Chapter V (21-25)
随机推荐
Explanation of sensor flicker/banding phenomenon
Android studio mobile development creates a new database and obtains picture and text data from the database to display on the listview list
单通道图片的读入
About why GPU early-z reduces overdraw
2D human pose estimation for pose estimation - pifpaf:composite fields for human pose estimation
Multithreading (V) -- Concurrent tools (II) -- j.u.c concurrent contracting (I) -- AQS and reentrantlock principles
Modifying theme styles in typora
Information content security experiment of Harbin Institute of Technology
leetcode 704. Binary search
Overview of camera image quality
Redis队列
摄像头拍摄运动物体,产生运动模糊/拖影的原因分析
Pytorch implementation of regression model
Sqlite Cross - compile Dynamic Library
C # converts the hexadecimal code form of text to text (ASCII)
Leetcode January 10 daily question 306 Additive number
Multithreading (4) -- no lock (2) -- Atomic related atomic classes
LeetCode-1189. Maximum number of balloons
Computer composition and design work05 ——fifth verson
Chartextcnn (Ag dataset - news topic classification)