当前位置:网站首页>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
边栏推荐
- Blender模型导入ue、碰撞设置
- Allure -- common configuration items
- [unity3d] production progress bar - make image have the functions of filled and sliced at the same time
- VLAN experiment
- [200 Shengxin literatures] 95 multiomics exploration TNBC
- Message mechanism -- getting to know messages and message queues for the first time
- Deep understanding of redis cache avalanche / cache breakdown / cache penetration
- Lunix reallocates root and home space memory
- 【JetBrain Rider】构建项目出现异常:未找到导入的项目“D:\VisualStudio2017\IDE\MSBuild\15.0\Bin\Roslyn\Microsoft.CSh
- 合并有序数列
猜你喜欢

AutoCAD - layer Linetype

【避坑指南】使用UGUI遇到的坑:Text组件无法首行缩进两格

虚幻材质编辑器基础——如何连接一个最基本的材质

VLAN experiment

快速做出原型
![[unity3d] nested use layout group to make scroll view with dynamic sub object height](/img/b2/edab4ab48e1401934dcce7218df662.png)
[unity3d] nested use layout group to make scroll view with dynamic sub object height

How to judge the quality of primary market projects when the market is depressed?

07 data import sqoop

Understand the composition of building energy-saving system

Blender体积雾
随机推荐
ERROR 1118 (42000): Row size too large (&gt; 8126)
flink 提交程序
Zlib download and use
14.信号量的代码实现
KS009基于SSH实现宠物管理系统
js promise.all
02-taildir source
Flutter环境配置保姆级教程,让doctor一绿到底
01-spooldir
Blender海洋制作
【MySQL】连接MySQL时出现异常:Connection must be valid and open
Shutter - canvas custom graph
flume 190 INSTALL
Edge computing accelerates live video scenes: clearer, smoother, and more real-time
01安装虚拟机
2021-10-04
Blender体积雾
Feature (5): how to organize information
【虚幻4】从U3D到UE4的转型之路
flume 190 INSTALL