No warning when forgetting to set num_classes in train.py? #844
Unanswered
alexander-soare
asked this question in
Ideas
Replies: 1 comment 3 replies
-
@alexander-soare yes, that's a potential issue, having a warning wouldn't be a bad idea, but there is no formal dataset api to compare dataset classes to model... |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Wondering if I should promote this to an issue (and also know you have timm bits in progress).
I noticed I was able to train on a 10 class dataset without setting
num_classes
, meaning my model was using the defaultnum_classes
. I only realised what was happening after a little while, but there were no warnings or errors.LabelSmoothingCrossEntropy
uses a gather according to target labels so it doesn't care if the output has more classes than the target.Beta Was this translation helpful? Give feedback.
All reactions