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

Use args.class_map for labels in inference.py #2319

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JosuaRieder
Copy link
Contributor

Addresses #1800

@rwightman
Copy link
Collaborator

@JosuaRieder thanks for the PR ... might have gathered from my comment in the bug related to class map foder filtering though it's relatred, the class map should be treated separately from the label information. class map is used for filtering, it can actually remove class labels from a dataset while remapping to a different classifier layout.

Assigning descriptions, label names should be separate.

@JosuaRieder
Copy link
Contributor Author

Assigning descriptions, label names should be separate.

In that case, I may have misinterpreted what the intended use case of --class-map is.

What is the intended way to train an / infer with an efficientnet with custom classes?
I used --class-map class_map.txt --model efficientnet_b7 --num-classes 8 and it generally worked, both for training from scratch as well as finetuning.

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

Successfully merging this pull request may close these issues.

2 participants