I’ve uploaded a COCO object detection dataset successfully to my TAO API endpoint. dataset_convert
fails, though.
If using the notebook:
ds_format = "coco"
ds_type = "object_detection"
Trying to fetch default convert spec schema from the following endpoint:
{base_url}/datasets/{dataset_id}/specs/convert/schema"
I see a 500 error, and the following in kubectl logs:
FileNotFoundError: [Errno 2] No such file or directory: '/opt/api/specs_utils/specs/object_detection/object_detection - convert__coco.csv'
Full stack trace:
[2025-03-08 01:53:16,713] ERROR in app: Exception on /api/v1/users/b835bea2-c296-5e58-8958-5995ae3c3a3a/datasets/116c27a0-b10e-435e-975c-e8eab96b1910/specs/convert/schema [GET]
Traceback (most recent call last):
File "/venv/lib/python3.11/site-packages/flask/app.py", line 2190, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/flask/app.py", line 1486, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/flask/app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/venv/lib/python3.11/site-packages/flask/app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/api/app.py", line 85, in decorated_function
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/opt/api/app.py", line 1277, in dataset_specs_schema
response = app_handler.get_spec_schema(user_id, dataset_id, action, "dataset")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/api/handlers/app_handler.py", line 566, in get_spec_schema
json_schema = csv_to_json_schema.convert(CSV_PATH, inferred_class_names)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/api/specs_utils/csv_to_json_schema.py", line 132, in convert
with open(path, mode='r', encoding='utf-8-sig') as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/opt/api/specs_utils/specs/object_detection/object_detection - convert__coco.csv'
10.150.3.49 - - [08/Mar/2025:01:53:16 +0000] "GET /api/v1/users/b835bea2-c296-5e58-8958-5995ae3c3a3a/datasets/116c27a0-b10e-435e-975c-e8eab96b1910/specs/convert/schema HTTP/1.1" 500 415 "-" "python-requests/2.32.3"
Previously I’ve converted the following dataset types successfully in TAO:
- KITTI object detection
- COCO instance segmentation
Is there an issue with COCO + object detection specifically?
5 posts - 2 participants