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

Labelbox2YOLO Json.load issue #102

Open
gruberanthony opened this issue Aug 21, 2024 · 4 comments
Open

Labelbox2YOLO Json.load issue #102

gruberanthony opened this issue Aug 21, 2024 · 4 comments
Labels
bug Something isn't working question Further information is requested

Comments

@gruberanthony
Copy link

There appears to be an issue with the json.load for the labelbox conversion as each time I attempt to run the conversion using the raw json file that is downloaded via the sdk method from labelbox I get the following error:
"JSONDecodeError: Extra data: line 2 column 1 (char 4075)". Any assistance would be appreciated.

@UltralyticsAssistant UltralyticsAssistant added bug Something isn't working question Further information is requested labels Aug 21, 2024
@glenn-jocher
Copy link
Member

@gruberanthony thank you for reporting this issue. Please ensure you are using the latest version of the package. If the problem persists, could you share a minimal example of the JSON file causing the error? This will help us diagnose the issue more effectively.

@gruberanthony
Copy link
Author

@gruberanthony thank you for reporting this issue. Please ensure you are using the latest version of the package. If the problem persists, could you share a minimal example of the JSON file causing the error? This will help us diagnose the issue more effectively.

So it appears that the dataset I am using exports as a ndjson file but keeps the '.json' tag when using the sdk export options. However, after converting the file to .json I am able to get past the json.load issue and instead will have to change everything associated with the paths to the image url and the associated labels for the bounding box etc. I have added a shortened example of my json file from Labelbox as an example.
LabelBoxJSON_example.json

@gruberanthony
Copy link
Author

I updated the conversion for anyone that may have similar JSON as myself. The only additional thing is simply running the .ndjson through the additional file I have attached. Let me know if this is a one off occurrence as I found this really odd.
LabelBox2YOLO_updated.zip

@glenn-jocher
Copy link
Member

@gruberanthony thank you for sharing your solution and the updated conversion file. It's possible that the issue is specific to certain Labelbox exports. If others encounter similar problems, your contribution will be valuable. If you have any further questions or run into additional issues, feel free to reach out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants