当前位置:网站首页>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() 操作。
边栏推荐
- AWS 控制台
- Talking about Contrastive Learning (Contrastive Learning) the first bullet
- 中集世联达飞瞳全球工业人工智能AI领军者,全球顶尖AI核心技术高泛化性高鲁棒性稀疏样本持续学习,工业级高性能成熟AI产品规模应用
- 攻防世界web-Cat
- Go 系统收集
- SimpleOSS第三方库libcurl与引擎libcurl错误解决方法
- Tensorflow2.0 confusion matrix does not match printing accuracy
- Deepen school-enterprise cooperation and build an "overpass" for the growth of technical and skilled talents
- Range.CopyFromRecordset 方法 (Excel)
- 架构师如何成长
猜你喜欢

【Pointing to Offer】Pointing to Offer 22. The kth node from the bottom in the linked list

The advanced version of the Niu Ke brushing series (team competition, sorting subsequences, inverting strings, deleting common characters, repairing pastures)

牛客刷题系列之进阶版(搜索旋转排序数组,链表内指定区间反转)

kotlin by lazy

vxe-table实现复选框鼠标拖动选中

NXP IMX8QXP更换DDR型号操作流程

Immersive experience iFLYTEK 2022 Consumer Expo "Official Designated Product"

Meta元宇宙部门第二季度亏损28亿!仍要继续押注?元宇宙发展尚未看到出路!

【Pointing to Offer】Pointing to Offer 18. Delete the node of the linked list

Delay queue optimization (2)
随机推荐
什么是 RESTful API?
Basic use of scrapy
vxe-table实现复选框鼠标拖动选中
牛客刷题系列之进阶版(组队竞赛,排序子序列,倒置字符串, 删除公共字符,修理牧场)
golang日志库zerolog使用记录
Scrapy framework is introduced
SwiftUI iOS Boutique Open Source Project Complete Baked Food Recipe App based on SQLite (tutorial including source code)
Delay queue optimization (2)
VS Code connects to SQL Server
[TypeScript]编译配置
《痞子衡嵌入式半月刊》 第 59 期
延时队列优化 (2)
【Prometheus】Prometheus联邦的一次优化记录[续]
VS Code 连接SQL Server
Scala学习:breakable
SimpleOSS第三方库libcurl与引擎libcurl错误解决方法
一文读懂“语言模型”
沉浸式体验科大讯飞2022消博会“官方指定产品”
自然语言处理nltk
The advanced version of the Niu Ke brushing series (team competition, sorting subsequences, inverting strings, deleting common characters, repairing pastures)