ultralytics / JSON2YOLO

Convert JSON annotations into YOLO format.

Home Page:https://docs.ultralytics.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to read images from GCP in labelbox_json2yolo.py

jchristo12 opened this issue · comments

The images I annotated with Labelbox are stored in a GCP bucket. When I attempt to run the script, it cannot find the images in the Labelbox json because the image is stored on GCS.

How can this script be used when images aren't stored locally but instead in GCP?

This is the error I see:
[Errno 22] Invalid argument: 'gs://[bucket_name]/[folder_name]/[image_name].jpg'

Figured this out. Solution can be found here

I'm glad to hear that you were able to find a solution. The labelbox_json2yolo.py script currently does not support reading images directly from GCP. However, you can manually download the images from GCP and store them locally before running the script. This way, the script will be able to locate and read the images without issues. If you have further questions or need assistance with anything else related to the YOLO repos, feel free to ask.