当前位置:网站首页>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
边栏推荐
- flink 提交程序
- Sum the two numbers to find the target value
- Solution of mysql8 forgetting password file in Windows Environment
- [IDL] Research
- 14.信号量的代码实现
- stm32和電機開發(上比特系統)
- Mock Server基本使用方法
- Deep understanding of redis cache avalanche / cache breakdown / cache penetration
- Project practice, redis cluster technology learning (11)
- 01 install virtual machine
猜你喜欢

Feature (5): how to organize information

MPLS experiment

The primary market project galaxy will conduct public offering on coinlist on February 17

Determine whether there are duplicate elements in the array

Redis set password

VLAN experiment

【虚幻4】UMG组件的简介与使用(更新中...)
![[Fantasy 4] the transformation from U3D to UE4](/img/bb/665eba3c8cd774c94fe14f169121da.png)
[Fantasy 4] the transformation from U3D to UE4

判断数组中是否存在重复元素

Allure -- common configuration items
随机推荐
《MySQL 8 DBA基础教程》简介
How to judge the quality of primary market projects when the market is depressed?
Vscode auto format
Blender ocean production
Blender volume fog
js setTimeout()与面试题
Aiphacode is not a substitute for programmers, but a tool for developers
[unity3d] production progress bar - make image have the functions of filled and sliced at the same time
pytest框架实现前后置
01-spooldir
Is this code PHP MySQL redundant?
[200 Shengxin literatures] 95 multiomics exploration TNBC
网络通信学习
AttributeError: type object ‘Image‘ has no attribute ‘fromarray‘
合并有序数列
【Unity3D】无法正确获取RectTransform的属性值导致计算出错
Understand the composition of building energy-saving system
【Unity3D】制作进度条——让Image同时具有Filled和Sliced的功能
2021-10-02
Leetcode -- the nearest common ancestor of 236 binary tree