当前位置:网站首页>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() 操作。
边栏推荐
- The use of terminal split screen tool Terminalx
- What is the value of biomedical papers? How to translate the papers into Chinese and English?
- 【科普】无线电波怎样传送信息?
- MYSQL(基本篇)——一篇文章带你走进MYSQL的奇妙世界
- scrapy基本使用
- VBA 连接Access数据库和Excle
- requet.getHeader(“token“) 为null
- 几个GTest、GMock的例子
- LeetCode Exercise - Two Questions About Finding Sum of Array Elements
- 牛客刷题系列之进阶版(搜索旋转排序数组,链表内指定区间反转)
猜你喜欢
LeetCode Exercise - Two Questions About Finding Sum of Array Elements
After 23 years of operation, the former "China's largest e-commerce website" has turned yellow...
Mysql执行原理剖析
Golang logging library zerolog use record
开心的聚餐
一文读懂“语言模型”
自然语言处理nltk
Immersive experience iFLYTEK 2022 Consumer Expo "Official Designated Product"
Fixed asset visualization intelligent management system
中集世联达飞瞳全球工业人工智能AI领军者,全球顶尖AI核心技术高泛化性高鲁棒性稀疏样本持续学习,工业级高性能成熟AI产品规模应用
随机推荐
生物医学论文有何价值 论文中译英怎样翻译效果好
AI基础:图解Transformer
SwiftUI iOS 精品开源项目之 完整烘焙食品菜谱App基于SQLite(教程含源码)
MongoDB打破了原则引入SQL?
【PHPWord】PHPOffice 套件之PHPWord快速入门
The use of terminal split screen tool Terminalx
Listen to the boot broadcast
Swiper轮播图片并播放背景音乐
Chapter 14 Type Information
终端分屏工具Terminalx的使用
部分分类网络性能对比
Two-point answer naked question (plus a little pigeonhole principle)
SimpleOSS third-party library libcurl and engine libcurl error solution
DM8:单库单实例搭建本地数据守护服务
DM8: Single database and single instance to build a local data guard service
【每日一道LeetCode】——191. 位1的个数
解决终极bug,项目最终能顺利部署上线。
深入浅出边缘云 | 3. 资源配置
mysql的多实例
JsonUtil基于字符串操作josn