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

Feature Extraction #16

Open
gkv91 opened this issue Apr 17, 2018 · 1 comment
Open

Feature Extraction #16

gkv91 opened this issue Apr 17, 2018 · 1 comment

Comments

@gkv91
Copy link

gkv91 commented Apr 17, 2018

Hi,
p3d = P3D199(pretrained=True,num_classes=400,modality='RGB')
modules=list(p3d.children())[:-2]
nw_p3d=nn.Sequential(*modules)
data=torch.autograd.Variable(torch.rand(10,3,16,224,224))
p3d_out=nw_p3d(data)

I wrote the above code to extract video features. But it gave the error, ValueError: Expected 4D tensor as input, got 5D tensor instead. What will be the reason?
Thanks

@AndyHon
Copy link

AndyHon commented Apr 23, 2019

Have you solved this problem?how did you solve it?

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

2 participants