当前位置:网站首页>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() 操作。
边栏推荐
- WEBSOCKETPP使用简介+demo
- 一文读懂“语言模型”
- VS Code 连接SQL Server
- 谷歌AlphaFold近日宣称预测出地球上几乎所有蛋白质结构
- C# wpf borderless window add shadow effect
- What kind of framework is friendly to developers?
- 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
- golang日志库zerolog使用记录
- 【每日一道LeetCode】——191. 位1的个数
- MySql中@符号的使用
猜你喜欢

The advanced version of the cattle brushing series (search for rotating sorted arrays, inversion of the specified range in the linked list)

VBA connects Access database and Excel

Pytorch foundation -- tensorboard use (1)

OneFlow源码解析:Op、Kernel与解释器

Codeblocks + Widgets create window code analysis

MySQL data types

6 yuan per catty, why do Japanese companies come to China to collect cigarette butts?

NXP IMX8QXP更换DDR型号操作流程

【hbuilder】运行不了部分项目 , 打开终端 无法输入指令

"Ruffian Heng Embedded Bimonthly" Issue 59
随机推荐
After 23 years of operation, the former "China's largest e-commerce website" has turned yellow...
第14章 类型信息
Read the "Language Model" in one article
What is the value of biomedical papers? How to translate the papers into Chinese and English?
阿里云武林头条活动分享
VBA批量将Excel数据导入Access数据库
跨域问题的解决方法
开心的聚餐
Critical Reviews | 南农邹建文组综述全球农田土壤抗生素与耐药基因分布
MYSQL(基本篇)——一篇文章带你走进MYSQL的奇妙世界
第4章 控制执行流程
OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.解决方法
又一家公司面试的内容
【hbuilder】运行不了部分项目 , 打开终端 无法输入指令
【科普】无线电波怎样传送信息?
Go 系统收集
Recommendation | People who are kind to you, don't repay them by inviting them to eat
VBA connects Access database and Excel
VS Code 连接SQL Server
LeetCode Exercise - Two Questions About Finding Sum of Array Elements