-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Finetune pretrained model with custom number of classes #408
Comments
Refer to: #19 (comment) |
I want to freeze all the layers except the classifier layers (the last 2 layers), Does that accessible ? |
Try to use |
And If you feel we have help you, give us a STAR! : ) |
you helped me a lot, sure I will, thank u ^^ |
Hi again :D, u said before that i could freeze the backbone by wrapping the features extracted with torch.no_grad(), second thing is i found that the backbone recognizer for slowfast is 3D not 2D, Is there a big difference between the 2 recognizers whilem finetunining the model with my custom video dataset ? |
Hi,
Do you have the ability for finetuning slowfast model but with 2 classes only?
in another word (could I change the number of classes of the last layer of "pretrained slowfastNet model"
because I want to take the feature from that pretrained model then classify those features with a simple 2 dense layers,
but I need to end up with one model, not 2 models (one for feature extraction and the other for classifying)
Thanks in advanced
The text was updated successfully, but these errors were encountered: