MCPcopy Index your code
hub / github.com/OpenGVLab/UniFormerV2

github.com/OpenGVLab/UniFormerV2 @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
996 symbols 2,501 edges 104 files 671 documented · 67%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

UniFormerV2

This repo is the official implementation of "UniFormerV2: Spatiotemporal Learning by Arming Image ViTs with Video UniFormer". By Kunchang Li, Yali Wang, Yinan He, Yizhuo Li, Yi Wang, Limin Wang and Yu Qiao.

Update

11/14/2023

Thanks for Innat'help @innat. Now our models also support Keras! 😄

07/14/2023

UniFormerV2 has been accepted by ICCV2023! 🎉

02/13/2023

UniFormerV2 has been integrated into MMAction2. Training code will be provided soon! 😄

11/20/2022

We give a video demo in hugging face. Have a try! 😄

11/19/2022

We give a blog in Chinese Zhihu.

11/18/2022

All the code, models and configs are provided. Don't hesitate to open an issue if you have any problem! 🙋🏻

Introduction

In UniFormerV2, we propose a generic paradigm to build a powerful family of video networks, by arming the pre-trained ViTs with efficient UniFormer designs. It inherits the concise style of the UniFormer block. But it contains brand- new local and global relation aggregators, which allow for preferable accuracy-computation balance by seamlessly integrating advantages from both ViTs and UniFormer. teaser It gets the state-of-the-art recognition performance on 8 popular video benchmarks, including scene-related Kinetics-400/600/700 and Moments in Time, temporal-related Something-Something V1/V2, untrimmed ActivityNet and HACS. In particular, it is the first model to achieve 90% top-1 accuracy on Kinetics-400.

PWC PWC PWC PWC PWC PWC PWC PWC

Model Zoo

All the models can be found in MODEL_ZOO.

Instructions

See INSTRUCTIONS for more details about: - Environment installation - Dataset preparation - Training and validation

Cite Uniformer

If you find this repository useful, please use the following BibTeX entry for citation.

@misc{li2022uniformerv2,
      title={UniFormerV2: Spatiotemporal Learning by Arming Image ViTs with Video UniFormer}, 
      author={Kunchang Li and Yali Wang and Yinan He and Yizhuo Li and Yi Wang and Limin Wang and Yu Qiao},
      year={2022},
      eprint={2211.09552},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

License

This project is released under the MIT license. Please see the LICENSE file for more information.

Acknowledgement

This repository is built based on UniFormer and SlowFast repository.

Core symbols most depended-on inside this repo

join
called by 89
slowfast/visualization/demo_loader.py
get
called by 27
slowfast/visualization/async_predictor.py
reset
called by 24
slowfast/utils/meters.py
reset
called by 21
slowfast/utils/meters_co.py
get
called by 19
slowfast/utils/ava_evaluation/np_box_list.py
get_field
called by 19
slowfast/utils/ava_evaluation/np_box_list.py
num_boxes
called by 11
slowfast/utils/ava_evaluation/np_box_list.py
has_field
called by 11
slowfast/utils/ava_evaluation/np_box_list.py

Shape

Method 476
Function 396
Class 124

Languages

Python100%

Modules by API surface

slowfast/utils/meters_co.py55 symbols
slowfast/utils/meters.py55 symbols
slowfast/datasets/rand_augment.py42 symbols
slowfast/models/uniformer.py41 symbols
extract_clip/model.py36 symbols
slowfast/datasets/cv2_transform.py32 symbols
slowfast/utils/ava_evaluation/object_detection_evaluation.py31 symbols
slowfast/visualization/async_predictor.py28 symbols
slowfast/datasets/transform.py27 symbols
slowfast/models/uniformerv2_model.py26 symbols
slowfast/models/video_model_builder.py21 symbols
slowfast/models/resnet_helper.py21 symbols

For agents

$ claude mcp add UniFormerV2 \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact