Created
February 22, 2019 06:56
-
-
Save budui/dc4e20e4e74f06ef46249d92f78f2ae5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How to change a model's fc layer. | |
# with this code, you can get a model's features | |
del model.fc | |
model.fc = lambda x:x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment