当前位置:网站首页>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() 操作。
边栏推荐
- 跨域问题的解决方法
- 生物医学论文有何价值 论文中译英怎样翻译效果好
- JsonUtil基于字符串操作josn
- NXP IMX8QXP replacement DDR model operation process
- MongoDB打破了原则引入SQL?
- 防抖和节流有什么区别,分别用于什么场景?
- 【网站放大镜效果】两种方式实现
- 【Swords Offer】Swords Offer 17. Print n digits from 1 to the largest
- 【总结】1396- 60+个 VSCode 插件,打造好用的编辑器
- NC | 西湖大学陶亮组-TMPRSS2“助攻”病毒感染并介导索氏梭菌出血毒素的宿主入侵...
猜你喜欢
![【Prometheus】Prometheus联邦的一次优化记录[续]](/img/5d/56e171b7a02584337a0cfe5c731fb2.png)
【Prometheus】Prometheus联邦的一次优化记录[续]

SimpleOSS第三方库libcurl与引擎libcurl错误解决方法

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

《痞子衡嵌入式半月刊》 第 59 期

VS Code 连接SQL Server

Talking about Contrastive Learning (Contrastive Learning) the first bullet

解决终极bug,项目最终能顺利部署上线。

【网站放大镜效果】两种方式实现

VS Code connects to SQL Server

Spark学习:用spark实现ETL
随机推荐
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
中集世联达工业级成熟航运港口人工智能AI产品规模化应用,打造新一代高效能智慧港口和创新数字港口,全球港航人工智能能领军者中集飞瞳
mysql的多实例
生物医学论文有何价值 论文中译英怎样翻译效果好
跨域问题的解决方法
The advanced version of the cattle brushing series (search for rotating sorted arrays, inversion of the specified range in the linked list)
Talking about Contrastive Learning (Contrastive Learning) the first bullet
Deepen school-enterprise cooperation and build an "overpass" for the growth of technical and skilled talents
Tensorflow2.0 confusion matrix does not match printing accuracy
【Prometheus】Prometheus联邦的一次优化记录[续]
自然语言处理nltk
After 23 years of operation, the former "China's largest e-commerce website" has turned yellow...
荐号 | 对你有恩的人,不要请吃饭来报答
【剑指 Offer】剑指 Offer 22. 链表中倒数第k个节点
Range.CopyFromRecordset 方法 (Excel)
LeetCode Exercise - Two Questions About Finding Sum of Array Elements
golang日志库zerolog使用记录
【网站放大镜效果】两种方式实现
7.30模拟赛总结
scrapy基本使用