-
Notifications
You must be signed in to change notification settings - Fork 150
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
GoogLe Net implementation #86
Comments
from torchvision.models import googlenet
import torch
model = googlenet(pretrained=True)
extractor = torch.nn.Sequential(*list(model.children())[:-2])
im = torch.randn(1,3,720,1280) # NCHW
feature = extractor(im).cpu().numpy().flatten() # [1,1024,1,1] -> [1024] i try like this... |
I wonder if he is using the pool5 layer of the googlenet network for feature extraction, so is that the code you wrote? Or is there some other additional code. |
I write the code myself. |
@ehdrndd Can you share your feature extraction code? Or give a link, thanks! You can add a contact if it is convenient |
In which part of the code is the GoogLe Net as the first part of the DSN specified?
The text was updated successfully, but these errors were encountered: