Add TransNetV2 ONNX model, license and model card
Browse files- LICENSE +21 -0
- README.md +38 -0
- transnetv2.onnx +3 -0
LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2020 Tomáš Souček
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
library_name: onnx
|
| 4 |
+
pipeline_tag: video-classification
|
| 5 |
+
tags:
|
| 6 |
+
- transnetv2
|
| 7 |
+
- shot-boundary-detection
|
| 8 |
+
- scene-detection
|
| 9 |
+
- video
|
| 10 |
+
- onnx
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# TransNetV2 (ONNX)
|
| 14 |
+
|
| 15 |
+
`transnetv2.onnx` — an ONNX export of **TransNetV2** for shot boundary
|
| 16 |
+
detection (finding the hard cuts and gradual transitions between the shots of
|
| 17 |
+
a video). Runs client-side with onnxruntime-web.
|
| 18 |
+
|
| 19 |
+
## Inputs / outputs
|
| 20 |
+
|
| 21 |
+
- **Input:** `input` float32 `[1, 100, 27, 48, 3]` — a window of 100 frames,
|
| 22 |
+
each resized to 48x27, RGB, values 0..255 (the graph divides by 255 itself).
|
| 23 |
+
- **Outputs:** two float32 `[1, 100, 1]` per-frame **probabilities** (the
|
| 24 |
+
sigmoid is already applied):
|
| 25 |
+
- single-frame — the frame a cut lands on (the last frame of the outgoing shot);
|
| 26 |
+
- many-hot — every frame inside a transition (dissolve, fade, …).
|
| 27 |
+
- Upstream inference slides the window by 50 frames with 25 frames of context
|
| 28 |
+
either side and keeps the middle 50 predictions of each window.
|
| 29 |
+
|
| 30 |
+
## Provenance & license
|
| 31 |
+
|
| 32 |
+
- **Model:** TransNetV2 — *TransNet V2: An effective deep network architecture
|
| 33 |
+
for fast shot transition detection* (Souček & Lokoč, 2020),
|
| 34 |
+
[soCzech/TransNetV2](https://github.com/soCzech/TransNetV2). Code and model
|
| 35 |
+
weights are released under the **MIT license**
|
| 36 |
+
(`Copyright (c) 2020 Tomáš Souček`), included here as `LICENSE`.
|
| 37 |
+
- **ONNX export:** [elya5/transnetv2](https://huggingface.co/elya5/transnetv2)
|
| 38 |
+
(MIT), mirrored verbatim.
|
transnetv2.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c4d54a682bace32f25136ef83ca2c9d403e8f8193775efeb995172a0d95a8e0c
|
| 3 |
+
size 31250929
|