Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BDD100k det conversion error #121

Open
IMcDougall opened this issue Sep 23, 2022 · 0 comments
Open

BDD100k det conversion error #121

IMcDougall opened this issue Sep 23, 2022 · 0 comments

Comments

@IMcDougall
Copy link

IMcDougall commented Sep 23, 2022

When I try to run this command:
python -m bdd100k.label.to_coco -m det -i bdd100k/labels/det_20/det_train.json -o data/bdd/labels/det_20/det_train_cocofmt.json
I receive the following error:

[2022-09-23 16:25:55,619 to_coco.py:301 main] Mode: det
remove-ignore: False
ignore-as-class: False
[2022-09-23 16:25:55,619 to_coco.py:307 main] Loading annotations...
[2022-09-23 16:26:02,429 to_coco.py:318 main] Converting annotations...
10%|████████ | 6879/69863 [00:00<00:08, 7435.14it/s]
Traceback (most recent call last):
File "/u/m/c/mcdougall/miniconda3/envs/torch310/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/u/m/c/mcdougall/miniconda3/envs/torch310/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/u/m/c/mcdougall/miniconda3/envs/torch310/lib/python3.10/site-packages/bdd100k-1.0.0-py3.10.egg/bdd100k/label/to_coco.py", line 337, in
main()
File "/u/m/c/mcdougall/miniconda3/envs/torch310/lib/python3.10/site-packages/bdd100k-1.0.0-py3.10.egg/bdd100k/label/to_coco.py", line 322, in main
coco = bdd100k2coco_det(
File "/u/m/c/mcdougall/miniconda3/envs/torch310/lib/python3.10/site-packages/bdd100k-1.0.0-py3.10.egg/bdd100k/label/to_coco.py", line 145, in bdd100k2coco_det
if frame["labels"]:
KeyError: 'labels'

This error does not occur when running with ${SET_NAME} equal to val

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant