You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
model_loader.py in Hugging Face and GitHub are different, with github version containing code that will run when importing the class.
There is also no import torch.nn as nn in either version, making net.classifier[2] = nn.Identity() fail.