当前位置:网站首页>AttributeError: type object ‘Image‘ has no attribute ‘fromarray‘
AttributeError: type object ‘Image‘ has no attribute ‘fromarray‘
2022-07-02 10:36:00 【AI Hao】
Error description :
Traceback (most recent call last):
File "D:\OCR\DBNet.pytorch-master\tools\predict.py", line 195, in <module>
img = rec_image(img, boxes_max,model_cls)
File "D:\OCR\DBNet.pytorch-master\tools\predict.py", line 160, in rec_image
img = transform_test(Image.fromarray(dst_img))
AttributeError: type object 'Image' has no attribute 'fromarray'
Reason for the error :
Import Image Wrong method !
Error import : from PIL.Image import Image
Import correctly : from PIL import Image
边栏推荐
- [pit avoidance guide] pit encountered using ugui: the text component cannot indent the first line by two spaces
- VLAN experiment
- AutoCAD - layer Linetype
- [Fantasy 4] the transformation from U3D to UE4
- Blender模型导入ue、碰撞设置
- How to achieve the top progress bar effect in background management projects
- [MySQL] an exception occurs when connecting to MySQL: connection must be valid and open
- 01安装虚拟机
- 2.14 is it Valentine's day or Valentine's day when the mainstream market continues to fluctuate and wait for changes?
- 【避坑指南】使用UGUI遇到的坑:Text组件无法首行缩进两格
猜你喜欢

Database dictionary Navicat automatic generation version

pytest--之测试报告allure配置

Ctrip starts mixed office. How can small and medium-sized enterprises achieve mixed office?

Blender海洋制作

Blender摄像机环绕运动、动画渲染、视频合成

stm32和電機開發(上比特系統)

Flutter环境配置保姆级教程,让doctor一绿到底

Blender camera surround motion, animation rendering, video synthesis

Postman -- use

Introduction and Principle notes of UE4 material
随机推荐
2021-10-04
【教程】如何让VisualStudio的HelpViewer帮助文档独立运行
07数据导入Sqoop
Unreal material editor foundation - how to connect a basic material
flume 190 INSTALL
【JetBrain Rider】构建项目出现异常:未找到导入的项目“D:\VisualStudio2017\IDE\MSBuild\15.0\Bin\Roslyn\Microsoft.CSh
数据库字典Navicat自动生成版本
01-spooldir
Delivery mode design of Spartacus UI of SAP e-commerce cloud
高考的意义是什么
Considerations for Apache deploying static web page projects
[Fantasy 4] the transformation from U3D to UE4
Blender模型导入ue、碰撞设置
flink 提交程序
Flink calculates topn hot list in real time
Mock Server基本使用方法
sqoop的表的导入
Blender石头雕刻
Blender摄像机环绕运动、动画渲染、视频合成
【Unity3D】无法正确获取RectTransform的属性值导致计算出错