-
-
Notifications
You must be signed in to change notification settings - Fork 182
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
Feature : Image Classification model with arbitrary number of classes #5
Comments
Hey @murthy95, yes that would be great! I actually had this on my list but seems like I forgot to add it in the first version. For the pytorch template, that's fairly easy, you can just pass the number to the torchvision model, e.g. Some more thoughts:
Long-term it would also be great to infer this value automatically from the input data but for now manually setting it should be enough. |
@jrieke True for pytorch models its fairly easy but if we want to support pretrained imagenet weights for transfer learning we need to load weights and then change the final fc layer. At least this what I did in my PR if there is some better way please point it out. |
Arbitrary class training in Pytorch #5
Hello!
I am planning to add an option to declare number of classes for image classification model. This also helps for transfer learning.
The text was updated successfully, but these errors were encountered: