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] Support ViTPose #1937

Merged
merged 18 commits into from
Apr 20, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rectify the comment
  • Loading branch information
Annbless committed Jan 29, 2023
commit e79e6366a29235ebad4ab8f242bda361333694a6
2 changes: 1 addition & 1 deletion tests/test_backbones/test_vit.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def test_vit_backbone():
imgs = torch.randn(1, 257, 768)
model._pos_embeding(imgs, (16, 16), model.pos_embed, cls_token=True)

# Test pos embed resize with wrong pos shape
# Test pos embed resize with cls token using wrong pos shape
model.pos_embed = torch.nn.Parameter(torch.randn(1, 201, 768))
with pytest.raises(ValueError):
model._pos_embeding(imgs, (14, 14), model.pos_embed, cls_token=True)