CoolFace
Modelpublic

Tonic/video-swin-transformer

sourceHugging Faceotherupdated 2y agoView on Hugging Face
3likes17downloads
Model Card

Collection shoaib6174/videoswintransformer/1

Collection of Video Swin Transformers feature extractor models.

<!-- task: video-feature-extraction -->

Overview

This collection contains different Video Swin Transformer [1] models. The original model weights are provided from [2]. There were ported to Keras models (tf.keras.Model) and then serialized as TensorFlow SavedModels. The porting steps are available in [3].

About the models

These models can be directly used to extract features from videos. These models are accompanied by Colab Notebooks with fine-tuning steps for action-recognition task and video-classification.

The table below provides a performance summary:

model_namepre-train datasetfine-tune datasetacc@1(%)acc@5(%)
swintinypatch244window877kinetics400_1kImageNet-1KKinetics 400(1k78.893.6
swinsmallpatch244window877kinetics400_1kImageNet-1KKinetics 400(1k)80.694.5
swinbasepatch244window877kinetics400_1kImageNet-1KKinetics 400(1k)80.696.6
swinbasepatch244window877kinetics400_22kImageNet-12KKinetics 400(1k)82.795.5
swinbasepatch244window877kinetics600_22kImageNet-1KKinetics 600(1k)84.096.5
swinbasepatch244window1677sthv2Kinetics 400Something-Something V269.692.7

These scores for all the models are taken from [2].

Video Swin Transformer Feature extractors Models

Notes

The input shape for these models are [None, 3, 32, 224, 224] representing [batch_size, channels, frames, height, width]. To create models with different input shape use this notebook.

References

[1] Video Swin Transformer Ze et al. [2] Video Swin Transformers GitHub [3] GSOC-22-Video-Swin-Transformers GitHub

Acknowledgements