当前位置:网站首页>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() 操作。
边栏推荐
猜你喜欢
SwiftUI iOS Boutique Open Source Project Complete Baked Food Recipe App based on SQLite (tutorial including source code)
Deepen school-enterprise cooperation and build an "overpass" for the growth of technical and skilled talents
Delay queue optimization (2)
OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.解决方法
谷歌AlphaFold近日宣称预测出地球上几乎所有蛋白质结构
阿里云武林头条活动分享
[TypeScript]编译配置
荐号 | 对你有恩的人,不要请吃饭来报答
ctf.show_web5
C# wpf 无边框窗口添加阴影效果
随机推荐
Delay queue optimization (2)
Talking about Contrastive Learning (Contrastive Learning) the first bullet
Immersive experience iFLYTEK 2022 Consumer Expo "Official Designated Product"
Entering the applet for the first time
【剑指 Offe】剑指 Offer 18. 删除链表的节点
VBA connects Access database and Excel
LeetCode每日一题(1717. Maximum Score From Removing Substrings)
WEBSOCKETPP使用简介+demo
AI Basics: Graphical Transformer
The advanced version of the Niu Ke brushing series (team competition, sorting subsequences, inverting strings, deleting common characters, repairing pastures)
VBA 运行时错误‘-2147217900(80040e14):自动化(Automation)错误
Go system collection
Scala学习:breakable
kotlin by lazy
【hbuilder】运行不了部分项目 , 打开终端 无法输入指令
After 23 years of operation, the former "China's largest e-commerce website" has turned yellow...
运营 23 年,昔日“国内第一大电商网站”黄了...
Listen to the boot broadcast
尊重客观事实
高并发秒杀项目总结