ayanoby commited on
Commit
ea71eee
·
verified ·
1 Parent(s): cd9a324

RIFE v4.6 for the Hexagon V69 NPU (15 frame sizes)

Browse files
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2021 hzwer
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,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ base_model: hzwer/Practical-RIFE
4
+ tags:
5
+ - hexanima
6
+ - qualcomm
7
+ - hexagon
8
+ - npu
9
+ - qnn
10
+ - video-frame-interpolation
11
+ - rife
12
+ ---
13
+
14
+ # RIFE v4.6 for the Hexagon NPU (HexAnima)
15
+
16
+ [Practical-RIFE](https://github.com/hzwer/Practical-RIFE) v4.6 (hzwer, MIT) video frame interpolation converted to QNN HTP context binaries (Hexagon V69, Snapdragon 8 Gen 1 / 8+ Gen 1, fp16) for the HexAnima Android app (https://github.com/ayanoby/hexanima): Upscale -> Video, x2 / x4 frames per second.
17
+
18
+ One file per frame size, `rife_t<H>x<W>.bin`: input `[1, 6, H, W]` (two RGB frames in 0..1, channels 0-2 and 3-5), output `[1, 3, H, W]` (the frame between them). The sides are multiples of 32; the app pads a video with its edge pixels to the smallest file that covers it. The time is about 0.04 s plus 0.45 microseconds per pixel for one new frame.
19
+
20
+ `manifest.json` lists the size and sha256 of every file; the app downloads only the size a video needs. Checked against the original fp32 model on the phone: 67.6 dB (256 x 448 test pair, practically identical). These files only run on that chip generation; they are not general ONNX/PyTorch weights.
21
+
22
+ Converted from `flownet.pkl` (v4.6, `IFNet_HDv3`) with the warp written as `grid_sample`, exported to ONNX (opset 17), `qairt-converter` (batch 1, fp16) and `qnn-context-binary-generator`. License: MIT (see `LICENSE`, Copyright (c) 2021 hzwer); these are modified (converted) copies of the original weights.
manifest.json ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "files": [
3
+ {
4
+ "path": "rife_t1024x1024.bin",
5
+ "size": 38050192,
6
+ "sha256": "6d1fd58b3dad183b42dc336a6cb4cb9d2f9c32b8186c3b7111160a2188cd52e9"
7
+ },
8
+ {
9
+ "path": "rife_t1024x576.bin",
10
+ "size": 25958800,
11
+ "sha256": "9f57a6cccc07f09927c6ee4799ae4b6da4f7a339d0318eca69b3d96c905d8f7f"
12
+ },
13
+ {
14
+ "path": "rife_t1024x768.bin",
15
+ "size": 30009744,
16
+ "sha256": "8c05f647f5761f644fa937f5c0faa96ea4a6d3cb883f5e8d540b6076e31b8f42"
17
+ },
18
+ {
19
+ "path": "rife_t1280x768.bin",
20
+ "size": 33933712,
21
+ "sha256": "0970e09572c61a9cf2ac2e75caa5ee85a73e71733a71fe9264484c3a70952ced"
22
+ },
23
+ {
24
+ "path": "rife_t256x256.bin",
25
+ "size": 12360080,
26
+ "sha256": "059fb3ca7f036929e45380875e5457c4392f41d54676272f6a7533d7ab578862"
27
+ },
28
+ {
29
+ "path": "rife_t256x448.bin",
30
+ "size": 13154704,
31
+ "sha256": "bb9c9b45c6194049e1ed1fbdac40e873b556dd5891e726a8997e9ea96484d98f"
32
+ },
33
+ {
34
+ "path": "rife_t384x512.bin",
35
+ "size": 14240144,
36
+ "sha256": "e6c3b2b25e8cde3000d75fc9d4cfa4fdd6285fc6864069d3e9178de8454ac402"
37
+ },
38
+ {
39
+ "path": "rife_t512x384.bin",
40
+ "size": 14715280,
41
+ "sha256": "a9fa84ceebce6a7123ddb3b2849e4dd749e5064b4e40924c55488537bf883e6f"
42
+ },
43
+ {
44
+ "path": "rife_t512x512.bin",
45
+ "size": 15645072,
46
+ "sha256": "caa86124185d4cc551909494c88177adbd0319d665e1e4c373281cf5ea7d3451"
47
+ },
48
+ {
49
+ "path": "rife_t512x768.bin",
50
+ "size": 17594768,
51
+ "sha256": "b6a1bcf64f711dc3cd6667aea933c3ac7127088e7565223417e27b029feaec5a"
52
+ },
53
+ {
54
+ "path": "rife_t576x1024.bin",
55
+ "size": 22231440,
56
+ "sha256": "8f72143a820b47fe5dc93455a504b2be49f1952e3d309b5421633fd239bc6e08"
57
+ },
58
+ {
59
+ "path": "rife_t768x1024.bin",
60
+ "size": 28891536,
61
+ "sha256": "120cc8aab6e5610888f7cb5e8dcab4504e2fefc44b17f7f64bede1a0092732ff"
62
+ },
63
+ {
64
+ "path": "rife_t768x1280.bin",
65
+ "size": 32303504,
66
+ "sha256": "ca4f48d0aceb5ca52651e97b9c420a66ed34d291a27d7d8295c5e83d703460c5"
67
+ },
68
+ {
69
+ "path": "rife_t768x512.bin",
70
+ "size": 18319760,
71
+ "sha256": "5f97f06b079a5b2a9e5f3373ee7fd16e09905955714283853efcf687bfb6d2f4"
72
+ },
73
+ {
74
+ "path": "rife_t768x768.bin",
75
+ "size": 22993296,
76
+ "sha256": "3d18eccb7367d20ae29a378d330731213f2d15b96b7950fea72a64ddebc8c171"
77
+ },
78
+ {
79
+ "path": "LICENSE",
80
+ "size": 1062,
81
+ "sha256": "7932fb49341512b959b1744a6d9cbb39e5a1ec89da438a34d0454d5d8df9fecd"
82
+ },
83
+ {
84
+ "path": "README.md",
85
+ "size": 1464,
86
+ "sha256": "9983b2ee9a6cebc31494e7f9a62bbd788e055426621b497b9cc9f159417347ea"
87
+ }
88
+ ]
89
+ }
rife_t1024x1024.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6d1fd58b3dad183b42dc336a6cb4cb9d2f9c32b8186c3b7111160a2188cd52e9
3
+ size 38050192
rife_t1024x576.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f57a6cccc07f09927c6ee4799ae4b6da4f7a339d0318eca69b3d96c905d8f7f
3
+ size 25958800
rife_t1024x768.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8c05f647f5761f644fa937f5c0faa96ea4a6d3cb883f5e8d540b6076e31b8f42
3
+ size 30009744
rife_t1280x768.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0970e09572c61a9cf2ac2e75caa5ee85a73e71733a71fe9264484c3a70952ced
3
+ size 33933712
rife_t256x256.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:059fb3ca7f036929e45380875e5457c4392f41d54676272f6a7533d7ab578862
3
+ size 12360080
rife_t256x448.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bb9c9b45c6194049e1ed1fbdac40e873b556dd5891e726a8997e9ea96484d98f
3
+ size 13154704
rife_t384x512.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e6c3b2b25e8cde3000d75fc9d4cfa4fdd6285fc6864069d3e9178de8454ac402
3
+ size 14240144
rife_t512x384.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9fa84ceebce6a7123ddb3b2849e4dd749e5064b4e40924c55488537bf883e6f
3
+ size 14715280
rife_t512x512.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:caa86124185d4cc551909494c88177adbd0319d665e1e4c373281cf5ea7d3451
3
+ size 15645072
rife_t512x768.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b6a1bcf64f711dc3cd6667aea933c3ac7127088e7565223417e27b029feaec5a
3
+ size 17594768
rife_t576x1024.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f72143a820b47fe5dc93455a504b2be49f1952e3d309b5421633fd239bc6e08
3
+ size 22231440
rife_t768x1024.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:120cc8aab6e5610888f7cb5e8dcab4504e2fefc44b17f7f64bede1a0092732ff
3
+ size 28891536
rife_t768x1280.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ca4f48d0aceb5ca52651e97b9c420a66ed34d291a27d7d8295c5e83d703460c5
3
+ size 32303504
rife_t768x512.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f97f06b079a5b2a9e5f3373ee7fd16e09905955714283853efcf687bfb6d2f4
3
+ size 18319760
rife_t768x768.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d18eccb7367d20ae29a378d330731213f2d15b96b7950fea72a64ddebc8c171
3
+ size 22993296