Skip to content

Commit

Permalink
Added video inference examples and fixed a bug loading pretrained vid…
Browse files Browse the repository at this point in the history
…eo models.
  • Loading branch information
dbolya committed Jun 9, 2023
1 parent 34142c9 commit f3087b7
Show file tree
Hide file tree
Showing 4 changed files with 189 additions and 17 deletions.
202 changes: 187 additions & 15 deletions examples/inference.ipynb

Large diffs are not rendered by default.

Binary file added examples/vid/dog.mp4
Binary file not shown.
Binary file added examples/vid/goat.mp4
Binary file not shown.
4 changes: 2 additions & 2 deletions hiera/hiera.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,9 +473,9 @@ def hiera_huge_224(**kwdargs):
@pretrained_model({
"mae_k400_ft_k400": "https://dl.fbaipublicfiles.com/hiera/hiera_base_16x224.pth",
}, default="mae_k400_ft_k400")
def hiera_base_16x224(**kwdargs):
def hiera_base_16x224(num_classes: int = 400, **kwdargs):
return Hiera(
num_classes=400, # K400 has 400 classes
num_classes=num_classes, # K400 has 400 classes
input_size=(16, 224, 224),
q_stride=(1, 2, 2),
mask_unit_size=(1, 8, 8),
Expand Down

0 comments on commit f3087b7

Please sign in to comment.