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

Pretrained model: SG, GS messed up? #10

Open
mishast opened this issue Apr 2, 2021 · 0 comments
Open

Pretrained model: SG, GS messed up? #10

mishast opened this issue Apr 2, 2021 · 0 comments

Comments

@mishast
Copy link

mishast commented Apr 2, 2021

Strange.
I have similar images 's1.jpg', 's2.jpg'

Case 1:

model_state_file = 'sop_uncropped_resnet50_SG_1536_0.1_0.5_0.1_128_model.pth'
gd_config = 'SG'
num_classes = 11318
state_dict = torch.load(model_state_file, map_location=torch.device('cpu'))
net = Model('resnet50', gd_config, 1536, num_classes)
net.load_state_dict(state_dict)
net.eval()

Loss (Equlidean) = 0.48

Case 2:
I change gd_config to 'GS'

model_state_file = 'sop_uncropped_resnet50_SG_1536_0.1_0.5_0.1_128_model.pth'
gd_config = 'GS'
num_classes = 11318
state_dict = torch.load(model_state_file, map_location=torch.device('cpu'))
net = Model('resnet50', gd_config, 1536, num_classes)
net.load_state_dict(state_dict)
net.eval()

Loss (Equlidean) = 0.14

For other products - the same.

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