Illaitar commited on
Commit
b94fc74
·
verified ·
1 Parent(s): 7952281

dbis-DSTNetPlus-L: weight files, cards and terms (1/1)

Browse files
LICENSE.md ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # Terms of the weight files
2
+
3
+ | Files | Source checkpoint | Terms |
4
+ |---|---|---|
5
+ | `dbis-DSTNetPlus-L.safetensors`, `dbisf-DSTNetPlus-L.wpk` | `DSTNetPlus_L_gopro.pth` of [sunny2109/DSTNet-plus](https://github.com/sunny2109/DSTNet-plus) (release v0.1.0) | Apache License 2.0 (`licenses/DSTNet-plus-LICENSE.txt`) |
6
+
7
+ Changes made to the source checkpoint (also stated for the Apache License 2.0, section 4): tensors renamed to the names of our code, tensors folded into the next layers where that is exact up to float rounding, fixed tensors that the code rebuilds dropped, and in the dbisf files the weights rounded per output channel and entropy coded. The conversion is `python -m dbis.convert` of https://github.com/illaitar/deblurring-is-solved; it checks the md5 of every source checkpoint (listed in each file's JSON card).
README.md ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: pytorch
4
+ pipeline_tag: image-to-image
5
+ tags:
6
+ - deblurring
7
+ - motion-deblurring
8
+ - video-deblurring
9
+ - image-restoration
10
+ - dbis
11
+ ---
12
+
13
+ # dbis-DSTNetPlus-L
14
+
15
+ DSTNet+ L (Learning Efficient Deep Discriminative Spatial and Temporal Networks for Video Deblurring, TPAMI 2025) in plain PyTorch, made from the authors' GoPro checkpoint by `python -m dbis.convert` of [deblurring is solved?](https://github.com/illaitar/deblurring-is-solved) ([benchmark site](https://illaitar.github.io/deblurring-is-solved/)). The authors' code: https://github.com/sunny2109/DSTNet-plus.
16
+
17
+ - **dbis-DSTNetPlus-L**: our code and weight file, the same outputs as the authors' code.
18
+ - **dbisf-DSTNetPlus-L**: fast and light: a shorter run time and a smaller file, at most 0.05 dB below the authors' mean PSNR on every test set of the benchmark.
19
+
20
+ ## Use
21
+
22
+ ```bash
23
+ pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved"
24
+ python -m dbis.run dbisf-DSTNetPlus-L blurry_frames/ sharp_frames/ # a folder of frames (one clip) or a video file
25
+ ```
26
+
27
+ ```python
28
+ import dbis
29
+ net = dbis.load("dbisf-DSTNetPlus-L") # fetches the file from this repository on first use and checks its sha256
30
+ out = net.restore(frames) # frames [T, 3, H, W], [B, T, 3, H, W] or [3, H, W]
31
+ ```
32
+
33
+ ## Files
34
+
35
+ | File | Size | GoPro PSNR, dB | Time per 720p frame |
36
+ |---|---:|---:|---:|
37
+ | `dbis-DSTNetPlus-L.safetensors` | 56 MB | 35.7078 (authors 35.7078) | 3.45 s (authors 3.01 s) |
38
+ | `dbisf-DSTNetPlus-L.wpk` | 16 MB | 35.6999 | 584.9 ms |
39
+
40
+ Time: the benchmark's latency harness, one A100, batch 1 (DBIS.md of the repository has every number and option).
41
+ Each file has a JSON card here (`<file>.json`) with its sha256, the source checkpoint and its md5, and the network's arguments. `.safetensors` files are float32; `.wpk` files are the repository's wpack format (`dbis/wpack.py`, needs zstandard).
42
+
43
+ ## Terms
44
+
45
+ The files keep the terms of the checkpoint they are made from: see `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights.
dbis-DSTNetPlus-L.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "dbis-DSTNetPlus-L",
3
+ "file": "dbis-DSTNetPlus-L.safetensors",
4
+ "bytes": 56392588,
5
+ "sha256": "378a5fca3c72b17467ab5d9a39d7c43291b513891f9faa44f86aeb489a5bc3cd",
6
+ "store": "float32",
7
+ "class": "dbis.dstnetplus.DSTNetPlus",
8
+ "args": {},
9
+ "source": {
10
+ "method": "DSTNet+ L",
11
+ "paper": "Learning Efficient Deep Discriminative Spatial and Temporal Networks for Video Deblurring",
12
+ "venue": "TPAMI 2025",
13
+ "code": "https://github.com/sunny2109/DSTNet-plus",
14
+ "commit": "54363c15d8b924aa1ae56b8f835c1f0289954e95",
15
+ "license": "Apache License 2.0 (LICENSE.txt of the repository)",
16
+ "url": "https://github.com/sunny2109/DSTNet-plus/releases/tag/v0.1.0 (also https://huggingface.co/Meloo/DSTNetPlus)",
17
+ "file": "DSTNetPlus_L_gopro.pth",
18
+ "md5": "d7da9b176f72cd2c10c6c146fe481e65",
19
+ "group": "params",
20
+ "trained_on": "GoPro"
21
+ },
22
+ "load": "import dbis; net = dbis.load(\"dbis-DSTNetPlus-L\")",
23
+ "code": "https://github.com/illaitar/deblurring-is-solved"
24
+ }
dbis-DSTNetPlus-L.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:378a5fca3c72b17467ab5d9a39d7c43291b513891f9faa44f86aeb489a5bc3cd
3
+ size 56392588
dbisf-DSTNetPlus-L.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "dbisf-DSTNetPlus-L",
3
+ "file": "dbisf-DSTNetPlus-L.wpk",
4
+ "bytes": 16189274,
5
+ "sha256": "42a6934bce12fd88d30a1fe33de480070abb7d8311333a96f321f1de1a32cf1b",
6
+ "store": "qc128",
7
+ "class": "dbis.dstnetplus.DSTNetPlus",
8
+ "args": {
9
+ "precision": "fp16",
10
+ "exact_dynconv": false,
11
+ "fold_encoder": true,
12
+ "prop_channels_last": true,
13
+ "autotune": true
14
+ },
15
+ "source": {
16
+ "method": "DSTNet+ L",
17
+ "paper": "Learning Efficient Deep Discriminative Spatial and Temporal Networks for Video Deblurring",
18
+ "venue": "TPAMI 2025",
19
+ "code": "https://github.com/sunny2109/DSTNet-plus",
20
+ "commit": "54363c15d8b924aa1ae56b8f835c1f0289954e95",
21
+ "license": "Apache License 2.0 (LICENSE.txt of the repository)",
22
+ "url": "https://github.com/sunny2109/DSTNet-plus/releases/tag/v0.1.0 (also https://huggingface.co/Meloo/DSTNetPlus)",
23
+ "file": "DSTNetPlus_L_gopro.pth",
24
+ "md5": "d7da9b176f72cd2c10c6c146fe481e65",
25
+ "group": "params",
26
+ "trained_on": "GoPro"
27
+ },
28
+ "load": "import dbis; net = dbis.load(\"dbisf-DSTNetPlus-L\")",
29
+ "code": "https://github.com/illaitar/deblurring-is-solved"
30
+ }
dbisf-DSTNetPlus-L.wpk ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42a6934bce12fd88d30a1fe33de480070abb7d8311333a96f321f1de1a32cf1b
3
+ size 16189274
licenses/DSTNet-plus-LICENSE.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5447872f21ddc29dc0dc060d5c885513c01c904e9da9931bba69898a6fb4d415
3
+ size 11350