当前位置:网站首页>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
边栏推荐
- Flutter环境配置保姆级教程,让doctor一绿到底
- [Fantasy 4] the transformation from U3D to UE4
- Ctrip starts mixed office. How can small and medium-sized enterprises achieve mixed office?
- Nonlinear optimization: establishment of slam model
- 快速做出原型
- Stm32 et développement de moteurs (système supérieur)
- Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer
- Project practice, redis cluster technology learning (11)
- MySQL -- time zone / connector / driver type
- MPLS experiment
猜你喜欢
Operator-1初识Operator
《MySQL 8 DBA基础教程》简介
The primary market project galaxy will conduct public offering on coinlist on February 17
Shutter - canvas custom graph
Blender volume fog
Network real-time video streaming based on OpenCV
Blender stone carving
Flink实时计算topN热榜
Basic usage of mock server
[pit avoidance guide] pit encountered using ugui: the text component cannot indent the first line by two spaces
随机推荐
【虚幻4】从U3D到UE4的转型之路
Pywin32打开指定窗口
2021-10-02
2021-10-02
Nonlinear optimization: steepest descent method, Newton method, Gauss Newton method, Levenberg Marquardt method
2021-09-12
【Visual Studio】每次打开一个Unity3D的脚本,都会自动重新打开一个新的VS2017
Solution of mysql8 forgetting password file in Windows Environment
[jetbrain rider] an exception occurred in the construction project: the imported project "d:\visualstudio2017\ide\msbuild\15.0\bin\roslyn\microsoft.csh" was not found
MySQL -- time zone / connector / driver type
07 data import sqoop
Following nym, the new project Galaxy token announced by coinlist is gal
[IDL] Research
使用Windbg静态分析dump文件(实战经验总结)
Flink calculates topn hot list in real time
Project practice, redis cluster technology learning (11)
Test -- Summary of interview questions
js promise.all
Operator exercises
2021-10-04