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

how to use the include_top parameter in pretrained model? #337

Open
lck666666 opened this issue Oct 15, 2022 · 0 comments
Open

how to use the include_top parameter in pretrained model? #337

lck666666 opened this issue Oct 15, 2022 · 0 comments

Comments

@lck666666
Copy link

lck666666 commented Oct 15, 2022

I can use the include_top parameter in EfficientNet.from_name, but in EfficientNet.from_pretrained, I cannot use that. So, if I want to change the last layer of the pretrained model by self.base_model = nn.Sequential(*list(base_model.children())[:-1]), it has the error in forward function.

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

1 participant