当前位置:网站首页>torch. Load load model error: can't get attribute 'VAE_ vc‘ on <module ‘__ main__‘ From 'xxxx() run file path‘
torch. Load load model error: can't get attribute 'VAE_ vc‘ on <module ‘__ main__‘ From 'xxxx() run file path‘
2022-06-29 12:00:00 【Wsyoneself】
Error reason :torch.load When loading the model, you actually need to refer to the network structure to build an instance object corresponding to the network , Reference source required class, Therefore, the reason for this error is the network class Not in the run file
solve :
(1) Simple solution : The Internet class Copy the code into the run file
(2) Refer to my blog :python Dynamically import self written modules or classes _Wsyoneself The blog of -CSDN Blog
Import all the contents of the file where the network is located , Such as
from xxxx import *Test again to run correctly ~
边栏推荐
- 稳定币风险状况:USDT 和 USDC 安全吗?
- Leetcode 535 encryption and decryption of tinyurl [map] the leetcode road of heroding
- 合约量化交易系统玩法开发 (现成案例分析)
- 基于字节码的统一异常上报实践
- Babbitt | yuancosmos daily must read: HTC announced the launch of the first yuancosmos mobile phone, which costs about 2700 yuan. What are the new ways to play
- Qt学习15 用户界面与业务逻辑的分离
- [HBZ sharing] InnoDB principle of MySQL
- Good news | Haitai Fangyuan has passed the cmmi-3 qualification certification, and its R & D capability has been internationally recognized
- Numpy的ndarray数组基础
- Qt学习07 Qt中的坐标系统
猜你喜欢

How to identify the exact length and width of the contour

Nature | biosynthetic potential of global marine microbiome

龙书虎书鲸书啃不动?试试豆瓣评分9.5的猴书

Qt学习03 Qt的诞生和本质

MATLAB Gui 实现点击按钮,打开文件对话框,导入图片功能

QT learning 16 parent-child relationships between QT objects

Ensure drinking water safety! Panyu Shawan waterway water quality online monitoring system passed the acceptance

Pytorch - 分布式通信原语(附源码)

易快报:我们用 Zadig 实现万次构建部署,聪明运维,释放开发生产力

Qt学习06 窗口部件及窗口类型
随机推荐
杰理之关于 TWS 配对方式配置【篇】
又拍云 Redis 的改进之路
助力极致体验,火山引擎边缘计算最佳实践
基础类型变量声明
Numpy的ndarray数组基础
ONES 创始人王颖奇对话《财富》(中文版):中国有没有优秀的软件?
申请uniapp离线打包时的AppKey
Qt学习07 Qt中的坐标系统
如何通过WinDbg获取方法参数值
Rebuild confidence in China's scientific research - the latest nature index 2022 released that China's research output increased the most
iMile 利用 Zadig 多云环境周部署千次,跨云跨地域持续交付全球业务
Qt学习05 Qt Creator工程介绍
[HBZ sharing] principle of semaphore and countdownlatch
Qt学习10 初探 Qt 中的消息处理
AOSP ~ Logcat 持久化
QT learning 09 calculator interface code reconstruction
杰理之关于 TWS 配对方式配置【篇】
保障饮用水安全!番禺沙湾水道水质在线监测系统通过验收
2.8万字的Callable和Future面试知识点总结,看完我直接面进了字节跳动,原谅我有点飘了(下)
开源机器学习平台