当前位置:网站首页>AttributeError: module ‘torchvision. transforms‘ has no attribute ‘Scale‘
AttributeError: module ‘torchvision. transforms‘ has no attribute ‘Scale‘
2022-07-17 22:59:00 【weixin_ thirty-nine million four hundred and fifty thousand one】
1. problem :
AttributeError: module ‘torchvision.transforms‘ has no attribute 'Scale'
2. Reference resources :
3. solve :
Maybe because the code uses torchvision Written in the old version , In the old version transforms No, Scale attribute . But now you use torchvision The new version runs this code , However, the new version torchvision Medium transforms No, Scale attribute , So there's an error .
The line of code where the error is reported , hold Scale Change to Resize Just fine .
primary :
After the reform :

边栏推荐
- [untitled] CSDN
- NLP learning | first acquaintance with NLP
- What form of disk storage does the storage interface of polardb for PostgreSQL support?
- Postman interface test tool
- 明解C语言第四章习题
- How to solve common errors of JMeter
- In 2022, how can I get started with smart home
- Set set
- Open source -- accurately locate the center of gravity coordinates of the model
- Vs prompt when opening the project: when loading the file with Unicode (UTF-8) encoding * * *, some bytes have been replaced with Unicode replacement characters.
猜你喜欢

Alibaba Dharma Institute dialogue team recruits research interns!

How do Internet companies implement paging and limit MySQL?

【重识云原生】第四章云网络4.9.4.1节——智能网卡SmartNIC方案综述

List集合

Information system project manager must recite the core examination points (42) SWOT analysis method

App & Web testing tools

The U.S. government will invest $56million in solar product manufacturing projects

Flink 在 B 站的多元化探索与实践

通信方式——8080并口

Postman接口测试工具
随机推荐
Open source -- accurately locate the center of gravity coordinates of the model
MySQL - Transaction: MySQL transaction log (redo, undo)
About NLP self supervised learning, I was asked to collapse during the interview!
ArkUI常见问题汇总【系列3】
c语言基础篇:猜数字小游戏
开源篇--精准定位 模型重心坐标
MySQL - MySQL download address
c语言基础篇:操作符
Explain the exercises in Chapter 4 of C language
Learning notes of inclusion exclusion principle
In 2022, how can I get started with smart home
list的使用方式
Comment les entreprises Internet réalisent - elles la pagination, prenez MySQL Strength limit?
Information system project manager must recite the core examination points (42) SWOT analysis method
Tips - xftp set default local folder
scratch绘制多变的正方形 电子学会图形化编程scratch等级考试四级真题和答案解析2022年6月
Hybrid domain attention mechanism CBAM in CNN
The U.S. government will invest $56million in solar product manufacturing projects
Communication mode - 8080 parallel port
基于PolarDB for PostgreSQL的Docker开发镜像如何准备编译环境?