labelme2coco.py unable to convert image in BMP format
ZJDATY opened this issue · 0 comments
ZJDATY commented
Provide environment information
python labelme2coco.py --input_dir D://Bamboo --output_dir bamboo --labels=labels1.txt --noviz
What OS are you using?
win11
Describe the Bug
(labelme) D:\pyworkspaces\labelme2coco>python labelme2coco.py --input_dir D://Bamboo --output_dir bamboo --labels=label
s1.txt --noviz
——————————————————————————————————————————————————
| Creating dataset dir: bamboo
| Image number: 0
| Json number: 1135
Traceback (most recent call last):
File "labelme2coco.py", line 550, in <module>
main()
File "labelme2coco.py", line 534, in main
x_train, x_test, y_train, y_test = train_test_split(feature_files, label_files, test_size=0.3)
File "D:\ProgramData\Anaconda3\envs\labelme\lib\site-packages\sklearn\model_selection\_split.py", line 2172, in train_
test_split
arrays = indexable(*arrays)
File "D:\ProgramData\Anaconda3\envs\labelme\lib\site-packages\sklearn\utils\validation.py", line 356, in indexable
check_consistent_length(*result)
File "D:\ProgramData\Anaconda3\envs\labelme\lib\site-packages\sklearn\utils\validation.py", line 320, in check_consist
ent_length
" samples: %r" % [int(l) for l in lengths])
ValueError: Found input variables with inconsistent numbers of samples: [0, 1135]
Expected Behavior
Unable to convert image in BMP format,When I changed the suffix to jpg, it became normal.
To Reproduce
No response