当前位置:网站首页>AttributeError: type object ‘Image‘ has no attribute ‘fromarray‘
AttributeError: type object ‘Image‘ has no attribute ‘fromarray‘
2022-07-02 06:36:00 【AI浩】
错误描述:
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'
错误的原因:
导入Image的方法错误!
错误导入: from PIL.Image import Image
正确导入: from PIL import Image
边栏推荐
- 【避坑指南】Unity3D项目接入腾讯Bugly工具时遇到的坑
- pytest--之测试报告allure配置
- Blender石头雕刻
- [unity3d] nested use layout group to make scroll view with dynamic sub object height
- Junit5 supports suite methods
- This article takes you to learn in detail what is fiber to home FTTH
- The primary market project galaxy will conduct public offering on coinlist on February 17
- 01-spooldir
- Zlib download and use
- [pit avoidance guide] pit encountered by unity3d project when accessing Tencent bugly tool
猜你喜欢
虚幻材质编辑器基础——如何连接一个最基本的材质
[ue5] two implementation methods of AI random roaming blueprint (role blueprint and behavior tree)
Blender multi lens (multi stand) switching
[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
Blender model import UE, collision settings
ICLR 2022: how does AI recognize "things I haven't seen"?
UE4夜间打光笔记
Webui automated learning
Delivery mode design of Spartacus UI of SAP e-commerce cloud
This monitoring system makes workers tremble: turnover intention and fishing can be monitored. After the dispute, the product page has 404
随机推荐
虚幻AI蓝图基础笔记(万字整理)
【Unity3D】制作进度条——让Image同时具有Filled和Sliced的功能
ue虚幻引擎程序化植物生成器设置——如何快速生成大片森林
【避坑指南】使用UGUI遇到的坑:Text组件无法首行缩进两格
ue虛幻引擎程序化植物生成器設置——如何快速生成大片森林
About the college entrance examination
MySQL -- time zone / connector / driver type
[unreal] key to open the door blueprint notes
传输优化抽象
Applet development summary
Introduction and Principle notes of UE4 material
【避坑指南】Unity3D项目接入腾讯Bugly工具时遇到的坑
Zlib download and use
Blender volume fog
Leetcode -- the nearest common ancestor of 236 binary tree
Project practice, redis cluster technology learning (12)
Configuration programmée du générateur de plantes du moteur illusoire UE - - Comment générer rapidement une grande forêt
Junit4 runs MVN test test suite upgrade scheme
2021-10-04
Operator exercises