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

GoogLe Net implementation #86

Open
mdit108 opened this issue Jul 24, 2022 · 5 comments
Open

GoogLe Net implementation #86

mdit108 opened this issue Jul 24, 2022 · 5 comments

Comments

@mdit108
Copy link

mdit108 commented Jul 24, 2022

In which part of the code is the GoogLe Net as the first part of the DSN specified?

@HERIUN
Copy link

HERIUN commented Sep 21, 2022

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...

@ruanzhijian
Copy link

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.

@ehdrndd
Copy link

ehdrndd commented May 10, 2023

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.

@ruanzhijian
Copy link

@ehdrndd Can you share your feature extraction code? Or give a link, thanks! You can add a contact if it is convenient

@HERIUN
Copy link

HERIUN commented May 15, 2023

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

4 participants