当前位置:网站首页>MindSpore:【JupyterLab】查看数据时报错
MindSpore:【JupyterLab】查看数据时报错
2022-07-30 19:04:00 【小乐快乐】
问题描述:
【大概介绍】
我在利用ImageFolderDataset自定义数据集后,创建了数据集,然后想查看一下数据,结果报错。
【问题现象】
Resize: image shape is not <H,W,C> or <H,W>.
【源代码截图(附件有源代码)】
解决方案:
1. 你的报错信息如下:
2. 代码为:
3. 说明:
报错信息提示resize_op的入参不是HWC,然后对应到代码上,发现map操作中少了Decode操作,故:你现在的代码中Resize的入参是图像的bytes,而不是Decode之后的HWC,所以你需要在map操作中添加 CV.Decode() 操作。
边栏推荐
- Anaconda Navigator卡在loading applications
- MYSQL(基本篇)——一篇文章带你走进MYSQL的奇妙世界
- What is a RESTful API?
- [Use of Qt Designer tool]
- 第一次进入小程序判断
- SimpleOSS第三方库libcurl与引擎libcurl错误解决方法
- What is the difference between a cloud database and an on-premises database?
- Common linked list problems and their Go implementation
- 实体中增加操作方法
- CIMC Shilian Dafeitong is the global industrial artificial intelligence AI leader, the world's top AI core technology, high generalization, high robustness, sparse sample continuous learning, industri
猜你喜欢
VBA 连接Access数据库和Excle
CIMC Shilian Dafeitong is the global industrial artificial intelligence AI leader, the world's top AI core technology, high generalization, high robustness, sparse sample continuous learning, industri
SimpleOSS第三方库libcurl与引擎libcurl错误解决方法
The advanced version of the Niu Ke brushing series (team competition, sorting subsequences, inverting strings, deleting common characters, repairing pastures)
中集世联达飞瞳全球工业人工智能AI领军者,全球顶尖AI核心技术高泛化性高鲁棒性稀疏样本持续学习,工业级高性能成熟AI产品规模应用
MongoDB打破了原则引入SQL?
The advanced version of the cattle brushing series (search for rotating sorted arrays, inversion of the specified range in the linked list)
Mysql execution principle analysis
Does the satellite phone communicate directly with the satellite or through a ground station?
The Meta metaverse division lost 2.8 billion in the second quarter!Still want to keep betting?Metaverse development has yet to see a way out!
随机推荐
实体中增加操作方法
LeetCode Exercise - Two Questions About Finding Sum of Array Elements
6 yuan per catty, why do Japanese companies come to China to collect cigarette butts?
Node encapsulates a console progress bar plugin
Codeblocks + Widgets create window code analysis
【Prometheus】Prometheus联邦的一次优化记录[续]
谷歌AlphaFold近日宣称预测出地球上几乎所有蛋白质结构
Tensorflow2.0 混淆矩阵与打印准确率不符
解决终极bug,项目最终能顺利部署上线。
crontab中写go run不执行的问题
Common linked list problems and their Go implementation
JS提升:Promise中reject与then之间的关系
【剑指 Offe】剑指 Offer 18. 删除链表的节点
node封装一个控制台进度条插件
【每日一道LeetCode】——191. 位1的个数
Scala学习:breakable
Scala学习:类和对象
第十七届“振兴杯”全国青年 职业技能大赛——计算机程序设计员(云计算平台与运维)参赛回顾与总结
第一次进入小程序判断
CIMC Shilian Dafeitong is the global industrial artificial intelligence AI leader, the world's top AI core technology, high generalization, high robustness, sparse sample continuous learning, industri