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

DETR checkpoint mismatch for JHMDB #4

Closed
wenzhengzeng opened this issue Aug 28, 2022 · 4 comments
Closed

DETR checkpoint mismatch for JHMDB #4

wenzhengzeng opened this issue Aug 28, 2022 · 4 comments

Comments

@wenzhengzeng
Copy link

Thanks for your great work. I notice that the DETR model used in JHMDB is different from that in AVA. For example, as mentioned in models/tuber_ava.py line 43:

if self.dataset_mode != 'ava':
self.avg_s = nn.AdaptiveAvgPool3d((1, 1, 1))
self.query_embed = nn.Embedding(num_queries * temporal_length, hidden_dim)
else:
self.query_embed = nn.Embedding(num_queries, hidden_dim)

Currently, it seems only detr.pth for AVA dataset is provided. As a result, when running the code for JHMDB, there will be an error:
size mismatch for module.query_embed.weight: copying a param with shape torch.Size([10, 256]) from checkpoint, the shape in current model is torch.Size([320, 256]).

Can you provide the right pre-trained DETR checkpoint (i.e., detr.pth) for JHMDB? Thanks.

@coocoo90
Copy link
Contributor

coocoo90 commented Sep 1, 2022

Thanks for being interested with TubeR. We have fixed the issue, please see PR #6.

@wenzhengzeng
Copy link
Author

Thanks for your help. I wonder where the pre-trained DETR comes from, is it directly pre-trained on COCO for object detection?

@coocoo90
Copy link
Contributor

coocoo90 commented Sep 3, 2022 via email

@wenzhengzeng
Copy link
Author

Thanks for your reply.

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