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

Exception(f"at index {i}") from se Exception: at index 0 #20

Open
MBelkhechine opened this issue Aug 31, 2018 · 0 comments
Open

Exception(f"at index {i}") from se Exception: at index 0 #20

MBelkhechine opened this issue Aug 31, 2018 · 0 comments

Comments

@MBelkhechine
Copy link

MBelkhechine commented Aug 31, 2018

I am trying to convert this Kitti Road/Lane Detection Evaluation 2013 to Pascal voc like dataset.

I have renamed calib folders (found under training and testing folders) to label_2 and I have created the train.txt like it was instructed. The first lines of train.txt are the following:
um_000000
um_000001
um_000002
um_000003
um_000004
um_000005
um_000006
um_000007

When I convert it I get the following validation error:

INFO:root:Namespace(filter_images_without_labels=False, from_key='kitti', from_path='./Kitti/data_road', select_only_known_labels=False, to_key='voc', to_path='./Kitti-voc')
Traceback (most recent call last):
File "/home/bm-pc/Documents/Thesis/vod-converter-master/vod_converter/converter.py", line 147, in validate_image_detections
validate_schema(image_detection, IMAGE_DETECTION_SCHEMA)
File "/home/bm-pc/Documents/Thesis/vod-converter-master/vod_converter/converter.py", line 22, in validate_schema
return raw_validate(data, schema, types={"array": (list, tuple)})
File "/home/bm-pc/.local/lib/python3.6/site-packages/jsonschema/validators.py", line 541, in validate
cls(schema, *args, **kwargs).validate(instance)
File "/home/bm-pc/.local/lib/python3.6/site-packages/jsonschema/validators.py", line 130, in validate
raise error
jsonschema.exceptions.ValidationError: -387.5744 is less than the minimum of 0

Failed validating 'minimum' in schema['properties']['detections']['items']['properties']['left']:
{'minimum': 0, 'type': 'number'}

On instance['detections'][1]['left']:
-387.5744

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "../vod-converter-master/vod_converter/main.py", line 92, in
filter_images_without_labels=args.filter_images_without_labels))
File "../vod-converter-master/vod_converter/main.py", line 40, in main
filter_images_without_labels=filter_images_without_labels)
File "/home/bm-pc/Documents/Thesis/vod-converter-master/vod_converter/converter.py", line 134, in convert
validate_image_detections(image_detections)
File "/home/bm-pc/Documents/Thesis/vod-converter-master/vod_converter/converter.py", line 149, in validate_image_detections
raise Exception(f"at index {i}") from se
Exception: at index 0

Could you tell me please what did I miss or this converter is intended to be used only with these Kitti datasets:

Thank you.

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