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

Segmentation Data Normalization for TrashCan Dataset #56

Open
rangganast opened this issue Oct 12, 2023 · 2 comments
Open

Segmentation Data Normalization for TrashCan Dataset #56

rangganast opened this issue Oct 12, 2023 · 2 comments

Comments

@rangganast
Copy link

Greetings,
I have been trying to use YOLOv8 recently using TrashCan dataset
However, I still don't know how to normalize segmentation label data.

I look everywhere but I don't get any references about it.
Any ideas?

Thank you.

@rangganast rangganast changed the title Segmentation Data Normalization for COCO Dataset Segmentation Data Normalization for TrashCan Dataset Oct 12, 2023
@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

It looks like you've been exploring the data normalization process for segmentation label data using YOLOv8 with a TrashCan dataset. The script you've referenced, global_json2yolo.py, appears to provide functionality for converting COCO segmentation format to YOLO segmentation format, as well as for converting other COCO data formats to YOLO equivalent. Additionally, the script contains flags for modifying the format conversion process based on specific requirements.

While the global_json2yolo.py script seems to provide some relevant functionality, please ensure that it aligns with the specifications required for your TrashCan dataset. You can modify the script and its flags based on the dataset's specific structure and requirements to ensure accurate label data normalization.

Feel free to further inquire about any specific details or concerns you may have about the data normalization process for the TrashCan dataset.

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

3 participants