当前位置:网站首页>nuScenes——数据集配置过程中遇到图像文件缺失或大小为0时的补救方法
nuScenes——数据集配置过程中遇到图像文件缺失或大小为0时的补救方法
2022-06-24 19:35:00 【Irving.Gao】
解压后图像大小为0
在训练过程中,在读取这个图像文件时遇到报错,因此来查看该图像是否存在问题,果然大小为0。
解决方法
- 定位问题图像在哪个数据集的压缩包中
首先我们需要在所有数据集压缩包中找到该文件:(需要一个一个尝试)
# tar tvf xxxxx.tgz | grep file_name
tar tvf v1.0-trainval04_blobs_camera.tgz | grep samples/CAM_BACK/n015-2018-08-03-15-21-40+0800__CAM_BACK__1533281213787525.jpg

- 单独解压该文件并放回到数据集中:
# tar zxfv xxxxx.tgz file_name
tar zxfv v1.0-trainval04_blobs_camera.tgz samples/CAM_BACK/n015-2018-08-03-15-21-40+0800__CAM_BACK__1533281213787525.jpg

cp samples/CAM_BACK/n015-2018-08-03-15-21-40+0800__CAM_BACK__1533281213787525.jpg trainval/samples/CAM_BACK/n015-2018-08-03-15-21-40+0800__CAM_BACK__1533281213787525.jpg

可以看到上述问题就解决啦。
边栏推荐
猜你喜欢

L2 元年,Arbitrum Nitro 升级带来更兼容高效的开发体验

Principles of Ethernet port mirroring, link aggregation and VLAN Technology

NiO, bio, AIO

leetcode:515. 在每个树行中找最大值【无脑bfs】
![Find the maximum value in each tree row [extension of one of the hierarchical traversals]](/img/5b/81ff20b61c0719ceb6873e44878859.png)
Find the maximum value in each tree row [extension of one of the hierarchical traversals]

Chapter 10 project communication management

零代码即可将数据可视化应用到企业管理中
![leetcode:45. Jumping game II [classic greed]](/img/69/ac5ac8fe22dbb8ab719d09efda4a54.png)
leetcode:45. Jumping game II [classic greed]

Huada 04A operating mode / low power consumption mode

Embedded development: tips and tricks -- clean jump from boot loader to application code
随机推荐
Flutter-使用 typedef的注意事项
A pit in try with resources
磁盘的结构
Development of live broadcast software app, and automatic left-right sliding rotation chart advertising
Rotate the square array of two-dimensional array clockwise by 90 °
In the multi network card environment, the service IP registered by Nacos is incorrect, resulting in inaccessible services
Online filing process
直播软件app开发,左右自动滑动的轮播图广告
代理模式详解
String exercise summary 2
NIO、BIO、AIO
A girl has been making hardware for ten years. 。。
Process communication mode
Kubevela v1.2 release: the graphical operation console velaux you want is finally here
Docker 安装 MySQL 8.0,详细步骤
字符串习题总结2
leetcode:515. 在每个树行中找最大值【无脑bfs】
磁盤的結構
Flutter 库冲突问题解决
The profound meaning of unlimited ecological development in Poka -- Multidimensional Interpretation of parallel chain