soCzech/TransNetV2
soCzech/TransNetV2 has 1,080 GitHub stars and 156 forks. Star changes are not measured yet. Last checked 2026-11-09 10:42 UTC. Last push 2023-12-04.
TransNet V2: Shot Boundary Detection Neural Network
Measured star growth
- in 24h
- Update delayed
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalTransNet V2: Shot Boundary Detection Neural Network
This repository contains code for TransNet V2: An effective deep network architecture for fast shot transition detection.
Our reevaluation of other publicly available state-of-the-art shot boundary methods (F1 scores):
| Model | ClipShots | BBC Planet Earth | RAI |
|---|---|---|---|
| TransNet V2 (this repo) | 77.9 | 96.2 | 93.9 |
| TransNet (github) | 73.5 | 92.9 | 94.3 |
| Hassanien et al. (github) | 75.9 | 92.6 | 93.9 |
| Tang et al., ResNet baseline (github) | 76.1 | 89.3 | 92.8 |
:movie_camera: USE IT ON YOUR VIDEO
:arrow_right: See inference folder and its README file. :arrow_left:
:rocket: PYTORCH VERSION for inference RELEASED
See inference-pytorch folder and its README file.
REPLICATE THE WORK
Note the datasets for training are tens of gigabytes in size, hundreds of gigabytes when exported.
You do not need to train the network, use code and instructions in inference folder to detect shots in your videos.
This repository contains all that is needed to run any experiment for TransNet V2 network including network training and dataset creation. All experiments should be runnable in this NVIDIA DOCKER file.
In general these steps need to be done in order to replicate our work (in training folder):
- Download RAI and BBC Planet Earth test datasets (link). Download ClipShots train/test dataset (link). Optionally get IACC.3 dataset.
- Edit and run
consolidate_datasets.pyin order to transform ground truth from all the datasets into one common format. - Take some videos from ClipShotsTrain aside as a validation dataset.
- Run
create_dataset.pyto create all train/validation/test datasets. - Run
training.py ../configs/transnetv2.ginto train a model. - Run
evaluate.py /path/to/run_log_dir epoch_no /path/to/test_datasetfor proper evaluation.
CREDITS
If found useful, please cite us;)
This paper: TransNet V2: An effective deep network architecture for fast shot transition detection
@article{soucek2020transnetv2, title={TransNet V2: An effective deep network architecture for fast shot transition detection}, author={Sou{\v{c}}ek, Tom{\'a}{\v{s}} and Loko{\v{c}}, Jakub}, year={2020}, journal={arXiv preprint arXiv:2008.04838}, }ACM Multimedia paper of the older version: A Framework for Effective Known-item Search in Video
The older version paper: TransNet: A deep network for fast detection of common shot transitions
Explore related projects
tensorflow/tensorflow
An Open Source Machine Learning Framework for Everyone
201,427 starshuggingface/transformers
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
168,711 starsAUTOMATIC1111/stable-diffusion-webui
Stable Diffusion web UI
165,274 starsComfy-Org/ComfyUI
The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
146,024 stars