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

There are absolutely no explanations on how to run the code or what parameters one should use #53

Open
matheth opened this issue Jul 10, 2023 · 5 comments

Comments

@matheth
Copy link

matheth commented Jul 10, 2023

No description provided.

@hack-r
Copy link

hack-r commented Jul 27, 2023

you run the code like this

python code.py

the last line of the file has the name of .json file, so you would just edit that. Having said that, I agree - it could stand to be flushed out quite a lot. They need a video example.

LabelBox should really be the ones providing this. Both companies are kind of just like "meh, you'll figure it out".

@potSm0ker
Copy link

ya a quick comment at the top of each of the scripts stating "the last line of the file has the name of .json file, so you would just edit that." would have been nice

@potSm0ker
Copy link

these scripts dont work dont waste your time thinking about it

@ryouchinsa
Copy link

Thanks for writing the issue.
We check it works using this script global_json2yolo.py.

Looking at the global_json2yolo code, there are some flags.
Converting the COCO bbox format to YOLO bbox format.

use_segments=False,
use_keypoints=False,

Converting the COCO segmentation format to YOLO segmentation format.

use_segments=True,
use_keypoints=False,

Converting the COCO keypoints format to YOLO keypoints format.

use_segments=False,
use_keypoints=True,

To convert the COCO segmentation format to YOLO segmentation format.

if __name__ == '__main__':
    source = 'COCO'

    if source == 'COCO':
        convert_coco_json('../datasets/coco/annotations',  # directory with *.json
                          use_segments=True,
                          use_keypoints=False,
                          cls91to80=False)

This is the folder structure when we run the script.

スクリーンショット 2023-10-25 20 51 05

Please let us know your opinion.

@glenn-jocher
Copy link
Member

You're welcome! We understand your concerns. Our team has tested the provided script and it works as expected. The script uses flags to customize the conversion from COCO format to YOLO format, including options for segments and keypoints conversion. Running the script with the appropriate flags should produce the desired output. We recommend trying the example provided and adjusting the script for your specific needs. Let us know if you encounter any issues or need further assistance.

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

5 participants