Skip to content

adding class names to the model checkpoint during training #115

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

Open
farukalamai opened this issue Apr 4, 2025 · 2 comments
Open

adding class names to the model checkpoint during training #115

farukalamai opened this issue Apr 4, 2025 · 2 comments

Comments

@farukalamai
Copy link
Contributor

farukalamai commented Apr 4, 2025

I was checking the fintuning notebook of rf-detr. And I think it will be better if we directly access the class name from the model file for custom model.

Current approach:

import supervision as sv

ds = sv.DetectionDataset.from_coco(
    images_directory_path=f"{dataset.location}/test",
    annotations_path=f"{dataset.location}/test/_annotations.coco.json",
)

I have tried to change the main.py to save the class names in model checkpoint. But it's returning empty list. Do you have any suggestion what things I have to change? or maybe you will add that feature.

@SkalskiP
Copy link
Collaborator

SkalskiP commented Apr 4, 2025

@probicheaux have you been able to solve this with #105 ?

@farukalamai
Copy link
Contributor Author

Hey @SkalskiP, I have opened a pr for this feature #119

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

2 participants