-
Couldn't load subscription status.
- Fork 17
Description
If this is your first time, please read our contributor guidelines:
https://github.com/mindspore-lab/mindcv/blob/main/CONTRIBUTING.md
Describe the bug/ 问题描述 (Mandatory / 必填)
把数据集转换成jpg格式的过程中报错
- Hardware Environment(
Ascend/GPU/CPU) / 硬件环境:
Please delete the backend not involved / 请删除不涉及的后端:
/device ascend
-
Software Environment / 软件环境 (Mandatory / 必填):
-- MindSpore version (e.g., 1.7.0.Bxxx) :
-- Python version (e.g., Python 3.7.5) :3.7.5
-- OS platform and distribution (e.g., Linux Ubuntu 16.04):EulerOS2.10
-- GCC/Compiler version (if compiled from source):7.3.0 -
Excute Mode / 执行模式 (Mandatory / 必填)(
PyNative/Graph):
Please delete the mode not involved / 请删除不涉及的模式:
/mode pynative
/mode graph
To Reproduce / 重现步骤 (Mandatory / 必填)
Steps to reproduce the behavior:
- 下载原始数据集并解压
- python utils/rec2jpg_dataset.py --include /nfs_for_sync/Mindlab_data/dataset/CASIA/faces_webface_112x112/ --output /nfs_for_sync/Mindlab_data/dataset/CASIA/output/
Expected behavior / 预期结果 (Mandatory / 必填)
如果解决报错问题
Screenshots/ 日志 / 截图 (Mandatory / 必填)
35%|██████████████████████████████████████████████▎ 78%|██████████████████████████████████████████████████████████████████████████████████████████████████████▌ | 381137/490624 [25:13<07:08, 255.80it/s]utils/rec2jpg_dataset.py:37: UserWarning: /nfs_for_sync/Mindlab_data/dataset/CASIA/output/7294/Figure_381141.png is a low contrast image
io.imsave(fpath, img)
93%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ | 458020/490624 [30:16<02:06, 257.37it/s]utils/rec2jpg_dataset.py:37: UserWarning: /nfs_for_sync/Mindlab_data/dataset/CASIA/output/9486/Figure_458025.png is a low contrast image
io.imsave(fpath, img)
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▉| 490623/490624 [32:24<00:00, 252.34it/s]
Traceback (most recent call last):
File "utils/rec2jpg_dataset.py", line 46, in
main(args.include, args.output)
File "utils/rec2jpg_dataset.py", line 28, in main
img = mx.image.imdecode(s).asnumpy()
File "/root/anaconda3/envs/zl/lib/python3.7/site-packages/mxnet/image/image.py", line 211, in imdecode
return cvimdecode(buf, *args, **kwargs)
File "", line 38, in _cvimdecode
File "/root/anaconda3/envs/zl/lib/python3.7/site-packages/mxnet/_ctypes/ndarray.py", line 91, in _imperative_invoke
ctypes.byref(out_stypes)))
File "/root/anaconda3/envs/zl/lib/python3.7/site-packages/mxnet/base.py", line 246, in check_call
raise get_last_ffi_error()
mxnet.base.MXNetError: Traceback (most recent call last):
File "../src/io/image_io.cc", line 189
MXNetError: Check failed: len > 0: Input cannot be an empty buffer
Additional context / 备注 (Optional / 选填)
Add any other context about the problem here.