Illaitar commited on
Commit
cab4a2a
·
verified ·
1 Parent(s): 1e57d6b

one folder per model: weight file, cards and terms (1/6)

Browse files
LICENSE.md CHANGED
@@ -1,18 +1,5 @@
1
- # Terms of the weight files
2
 
3
- The files are converted from checkpoints released by the methods' authors. Each keeps the terms of its source; the
4
- license texts are in `licenses/`.
5
 
6
- | Files | Source checkpoint | Terms |
7
- |---|---|---|
8
- | `dbis-NAFNet-64.safetensors`, `dbisf-NAFNet-64.wpk` | `NAFNet-GoPro-width64.pth` of [megvii-research/NAFNet](https://github.com/megvii-research/NAFNet) (commit 2b4af71) | MIT, Copyright (c) 2022 megvii-model (`licenses/NAFNet-LICENSE.txt`) |
9
- | `dbis-BSSTNet.safetensors`, `dbisf-BSSTNet.wpk` | `BSST_gopro.pth` of [huicongzhang/BSSTNet](https://github.com/huicongzhang/BSSTNet) (commit c35a43c) | MIT, as its README states ("This project is open sourced under MIT license"); the repository has no LICENSE file |
10
- | the same two files | `raft-things.pth` of [princeton-vl/RAFT](https://github.com/princeton-vl/RAFT) | BSD 3-Clause, Copyright (c) 2020, princeton-vl (`licenses/RAFT-LICENSE.txt`) |
11
- | `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`) |
12
- | `dbis-Turtle.safetensors`, `dbisf-Turtle.wpk` | `GoPro_Deblur.pth` of [Ascend-Research/Turtle](https://github.com/Ascend-Research/Turtle) (commit 7094f42) | MIT, Copyright (c) 2024 Huawei Technologies Co., Ltd. (`licenses/Turtle-LICENSE.txt`) |
13
-
14
- Changes made to the source checkpoints (also stated for the Apache License 2.0, section 4): tensors renamed to the names
15
- of our code, tensors folded into the next layers where that is exact up to float rounding, fixed tensors that the code
16
- rebuilds dropped, and in the dbisf files the weights rounded per output channel and entropy coded. The conversion is
17
- `python -m dbis.convert` of https://github.com/illaitar/deblurring-is-solved; it checks the md5 of every source
18
- checkpoint (listed in each file's JSON card).
 
1
+ # Terms
2
 
3
+ The weight files in this repository are made from the authors' released checkpoints and keep their terms. Each model folder has its own `LICENSE.md` (the source checkpoint and its terms) and the license texts in `licenses/`; the table of the README lists them. The code that made and reads the files is MIT licensed: https://github.com/illaitar/deblurring-is-solved.
 
4
 
5
+ 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 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 the file's JSON card).
 
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
@@ -1,11 +1,50 @@
1
  ---
2
  license: other
3
- license_name: per-file-terms-of-the-authors
4
  license_link: LICENSE.md
5
  library_name: pytorch
6
  pipeline_tag: image-to-image
 
 
 
 
 
 
7
  ---
8
 
9
- # dbis: one repository per model now
10
 
11
- The weight files of dbis and dbisf ([deblurring is solved?](https://github.com/illaitar/deblurring-is-solved)) are hosted in one repository per model, named as the model, each with the terms of its source and its card: the [dbis collection](https://huggingface.co/collections/Illaitar/dbis-6b09930cbf629d8d89c027ba). `dbis.load` fetches from there. The files here are the same and stay for older versions of the package.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: other
3
+ license_name: per-model-terms-of-the-authors
4
  license_link: LICENSE.md
5
  library_name: pytorch
6
  pipeline_tag: image-to-image
7
+ tags:
8
+ - deblurring
9
+ - motion-deblurring
10
+ - video-deblurring
11
+ - image-restoration
12
+ - dbis
13
  ---
14
 
15
+ # dbis: every weight file of deblurring is solved?
16
 
17
+ Plain-PyTorch re-implementations of published deblurring networks ([deblurring is solved?](https://github.com/illaitar/deblurring-is-solved), [benchmark site](https://illaitar.github.io/deblurring-is-solved/)): `dbis-<method>` gives the authors' outputs, `dbisf-<method>` is our fast and light version (at most 0.05 dB below the authors on every test set of the benchmark). One folder per model, each with its weight file, a JSON card (sha256, source checkpoint and its md5, the network's arguments), a model card and the terms of the checkpoint it is made from.
18
+
19
+ ## Download one model, not the repository
20
+
21
+ ```bash
22
+ pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved"
23
+ ```
24
+
25
+ ```python
26
+ import dbis
27
+ net = dbis.load("dbisf-NAFNet-64") # fetches only dbisf-NAFNet-64/dbisf-NAFNet-64.wpk, checks its sha256
28
+
29
+ from huggingface_hub import hf_hub_download # or without the package
30
+ f = hf_hub_download("Illaitar/dbis", "dbisf-NAFNet-64/dbisf-NAFNet-64.wpk")
31
+ ```
32
+
33
+ `hf download Illaitar/dbis dbisf-Turtle/dbisf-Turtle.wpk` works from the shell; `hf download Illaitar/dbis --include "dbisf-Turtle/*"` takes the whole folder.
34
+
35
+ ## Models
36
+
37
+ | Model | Method | File | Size | GoPro PSNR, dB | Terms of the source |
38
+ |---|---|---|---:|---:|---|
39
+ | [dbis-NAFNet-64](https://huggingface.co/Illaitar/dbis/tree/main/dbis-NAFNet-64) | NAFNet (ECCV 2022) | `dbis-NAFNet-64.safetensors` | 271 MB | 33.7103 | mit |
40
+ | [dbisf-NAFNet-64](https://huggingface.co/Illaitar/dbis/tree/main/dbisf-NAFNet-64) | NAFNet (ECCV 2022) | `dbisf-NAFNet-64.wpk` | 66 MB | 33.7041 | mit |
41
+ | [dbis-BSSTNet](https://huggingface.co/Illaitar/dbis/tree/main/dbis-BSSTNet) | BSSTNet (CVPR 2024) | `dbis-BSSTNet.safetensors` | 175 MB | 35.9662 | other |
42
+ | [dbisf-BSSTNet](https://huggingface.co/Illaitar/dbis/tree/main/dbisf-BSSTNet) | BSSTNet (CVPR 2024) | `dbisf-BSSTNet.wpk` | 42 MB | 35.9425 | other |
43
+ | [dbis-DSTNetPlus-L](https://huggingface.co/Illaitar/dbis/tree/main/dbis-DSTNetPlus-L) | DSTNet+ L (TPAMI 2025) | `dbis-DSTNetPlus-L.safetensors` | 56 MB | 35.7078 | apache-2.0 |
44
+ | [dbisf-DSTNetPlus-L](https://huggingface.co/Illaitar/dbis/tree/main/dbisf-DSTNetPlus-L) | DSTNet+ L (TPAMI 2025) | `dbisf-DSTNetPlus-L.wpk` | 16 MB | 35.6999 | apache-2.0 |
45
+ | [dbis-Turtle](https://huggingface.co/Illaitar/dbis/tree/main/dbis-Turtle) | Turtle (NeurIPS 2024) | `dbis-Turtle.safetensors` | 236 MB | 34.5598 | mit |
46
+ | [dbisf-Turtle](https://huggingface.co/Illaitar/dbis/tree/main/dbisf-Turtle) | Turtle (NeurIPS 2024) | `dbisf-Turtle.wpk` | 68 MB | 34.5316 | mit |
47
+ | [dbis-Concertormer](https://huggingface.co/Illaitar/dbis/tree/main/dbis-Concertormer) | Concertormer (ICCV 2025) | `dbis-Concertormer.safetensors` | 202 MB | – | mit |
48
+ | [dbis-Concertormer-lite](https://huggingface.co/Illaitar/dbis/tree/main/dbis-Concertormer-lite) | Concertormer-lite (ICCV 2025) | `dbis-Concertormer-lite.safetensors` | 116 MB | – | mit |
49
+
50
+ Terms: every folder keeps the terms of the checkpoint it is made from (its `LICENSE.md` and `licenses/`); cite the method's paper when you use its weights. The loose files at the top level are the layout of 26.11, kept for older versions of the package.
dbis-BSSTNet/LICENSE.md ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # Terms of the weight file
2
+
3
+ | File | Source checkpoint | Terms |
4
+ |---|---|---|
5
+ | `dbis-BSSTNet.safetensors` | `BSST_gopro.pth` of [huicongzhang/BSSTNet](https://github.com/huicongzhang/BSSTNet) (commit c35a43c) | MIT, as its README states ("This project is open sourced under MIT license"); the repository has no LICENSE file |
6
+ | the same file | `raft-things.pth` of [princeton-vl/RAFT](https://github.com/princeton-vl/RAFT) | BSD 3-Clause, Copyright (c) 2020, princeton-vl (`licenses/RAFT-LICENSE.txt`) |
7
+
8
+ 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 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 the file's JSON card).
dbis-BSSTNet/README.md ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: mit-and-bsd-3-clause
4
+ license_link: LICENSE.md
5
+ library_name: pytorch
6
+ pipeline_tag: image-to-image
7
+ tags:
8
+ - deblurring
9
+ - motion-deblurring
10
+ - video-deblurring
11
+ - image-restoration
12
+ - dbis
13
+ ---
14
+
15
+ # dbis-BSSTNet
16
+
17
+ BSSTNet (Blur-aware Spatio-temporal Sparse Transformer for Video Deblurring, CVPR 2024) in plain PyTorch, our code and weight file, the same outputs as the authors' code. 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/huicongzhang/BSSTNet.
18
+
19
+ The same method faster and lighter: [dbisf-BSSTNet](https://huggingface.co/Illaitar/dbis/tree/main/dbisf-BSSTNet).
20
+ Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis).
21
+
22
+ ## Use
23
+
24
+ ```bash
25
+ pip install "deblurring-is-solved[bsst] @ git+https://github.com/illaitar/deblurring-is-solved"
26
+ python -m dbis.run dbis-BSSTNet blurry_frames/ sharp_frames/ # a folder of frames (one clip) or a video file
27
+ hf download Illaitar/dbis dbis-BSSTNet/dbis-BSSTNet.safetensors # this file alone, without the package
28
+ ```
29
+
30
+ ```python
31
+ import dbis
32
+ net = dbis.load("dbis-BSSTNet") # fetches only this folder's file on first use and checks its sha256
33
+ out = net.restore(frames) # frames [T, 3, H, W], [B, T, 3, H, W] or [3, H, W]
34
+ ```
35
+
36
+ ## File
37
+
38
+ | File | Size | GoPro PSNR, dB | Time per 720p frame |
39
+ |---|---:|---:|---:|
40
+ | `dbis-BSSTNet.safetensors` | 175 MB | 35.9662 | 30.58 s |
41
+ | the authors' code and checkpoint | 209 MB | 35.9662 | 25.56 s |
42
+
43
+ PSNR: the 1,111 GoPro test frames, 8-bit outputs. Time: the benchmark's latency harness, one A100, batch 1 ([DBIS.md](https://github.com/illaitar/deblurring-is-solved/blob/main/DBIS.md) has every number and option).
44
+
45
+ `dbis-BSSTNet.json` here has the file's sha256, the source checkpoint and its md5, and the network's arguments. `.safetensors`, float32.
46
+
47
+ ## Terms
48
+
49
+ The file keeps the terms of the checkpoint it is made from: see `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights.
dbis-BSSTNet/dbis-BSSTNet.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "dbis-BSSTNet",
3
+ "file": "dbis-BSSTNet.safetensors",
4
+ "path": "dbis-BSSTNet/dbis-BSSTNet.safetensors",
5
+ "bytes": 174980008,
6
+ "sha256": "cc35ec20c837463413060557cc8671c614ce9e2a8402465daff56c82c45a928a",
7
+ "store": "float32",
8
+ "class": "dbis.bsst.BSSTNet",
9
+ "args": {
10
+ "patch_batch": 1
11
+ },
12
+ "source": {
13
+ "method": "BSSTNet",
14
+ "paper": "Blur-aware Spatio-temporal Sparse Transformer for Video Deblurring",
15
+ "venue": "CVPR 2024",
16
+ "code": "https://github.com/huicongzhang/BSSTNet",
17
+ "commit": "c35a43c669243ffc9566946491eac139dcd2680c",
18
+ "license": "MIT (stated in the README of the repository)",
19
+ "url": "https://drive.google.com/drive/folders/19v8wsg8aWayaVhNBmnj2vk4LrvmdViW8",
20
+ "file": "BSST_gopro.pth",
21
+ "md5": "e9f71df3bd8a678919a89db16b01dcfa",
22
+ "group": "params",
23
+ "trained_on": "GoPro",
24
+ "extra": [
25
+ {
26
+ "file": "raft-things.pth",
27
+ "md5": "55b58de5d9022eb37893916d246e14a3",
28
+ "group": null,
29
+ "code": "https://github.com/princeton-vl/RAFT",
30
+ "license": "BSD-3-Clause, Copyright (c) 2020, princeton-vl",
31
+ "url": "https://dl.dropboxusercontent.com/s/4j4z58wuv8o0mfz/models.zip (models/raft-things.pth; the authors' code loads it from model_zoos/, see the BSSTNet folder above)"
32
+ }
33
+ ]
34
+ },
35
+ "load": "import dbis; net = dbis.load(\"dbis-BSSTNet\")",
36
+ "code": "https://github.com/illaitar/deblurring-is-solved"
37
+ }
dbis-BSSTNet/dbis-BSSTNet.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc35ec20c837463413060557cc8671c614ce9e2a8402465daff56c82c45a928a
3
+ size 174980008
dbis-BSSTNet/licenses/RAFT-LICENSE.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:399af7e243d625e8dea2b3f81fec676ea19bacf7d9ce8cfd4ce15530d8a66173
3
+ size 1512