pytorch-vsumm-reinforce icon indicating copy to clipboard operation
pytorch-vsumm-reinforce copied to clipboard

GoogLe Net implementation

Open mdit108 opened this issue 3 years ago • 5 comments

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

mdit108 avatar Jul 24 '22 17:07 mdit108

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

HERIUN avatar Sep 21 '22 10:09 HERIUN

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.

ruanzhijian avatar May 10 '23 07:05 ruanzhijian

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 avatar May 10 '23 10:05 ehdrndd

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

ruanzhijian avatar May 12 '23 06:05 ruanzhijian

@ruanzhijian It may help you.

https://github.com/HERIUN/vsumm-reinforce_re/blob/main/generate_dataset.py

HERIUN avatar May 15 '23 02:05 HERIUN