one folder per model: weight file, cards and terms (3/6)
Browse files- dbis-DSTNetPlus-L/README.md +47 -0
- dbis-DSTNetPlus-L/dbis-DSTNetPlus-L.json +25 -0
- dbis-DSTNetPlus-L/dbis-DSTNetPlus-L.safetensors +3 -0
- dbis-DSTNetPlus-L/licenses/DSTNet-plus-LICENSE.txt +3 -0
- dbis-NAFNet-64/LICENSE.md +7 -0
- dbis-NAFNet-64/README.md +46 -0
- dbis-NAFNet-64/dbis-NAFNet-64.json +27 -0
- dbis-NAFNet-64/dbis-NAFNet-64.safetensors +3 -0
- dbis-NAFNet-64/licenses/NAFNet-LICENSE.txt +3 -0
- dbis-Turtle/LICENSE.md +7 -0
dbis-DSTNetPlus-L/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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, 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/sunny2109/DSTNet-plus.
|
| 16 |
+
|
| 17 |
+
The same method faster and lighter: [dbisf-DSTNetPlus-L](https://huggingface.co/Illaitar/dbis/tree/main/dbisf-DSTNetPlus-L).
|
| 18 |
+
Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis).
|
| 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 dbis-DSTNetPlus-L blurry_frames/ sharp_frames/ # a folder of frames (one clip) or a video file
|
| 25 |
+
hf download Illaitar/dbis dbis-DSTNetPlus-L/dbis-DSTNetPlus-L.safetensors # this file alone, without the package
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
```python
|
| 29 |
+
import dbis
|
| 30 |
+
net = dbis.load("dbis-DSTNetPlus-L") # fetches only this folder's file on first use and checks its sha256
|
| 31 |
+
out = net.restore(frames) # frames [T, 3, H, W], [B, T, 3, H, W] or [3, H, W]
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
## File
|
| 35 |
+
|
| 36 |
+
| File | Size | GoPro PSNR, dB | Time per 720p frame |
|
| 37 |
+
|---|---:|---:|---:|
|
| 38 |
+
| `dbis-DSTNetPlus-L.safetensors` | 56 MB | 35.7078 | 3.45 s |
|
| 39 |
+
| the authors' code and checkpoint | 56 MB | 35.7078 | 3.01 s |
|
| 40 |
+
|
| 41 |
+
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).
|
| 42 |
+
|
| 43 |
+
`dbis-DSTNetPlus-L.json` here has the file's sha256, the source checkpoint and its md5, and the network's arguments. `.safetensors`, float32.
|
| 44 |
+
|
| 45 |
+
## Terms
|
| 46 |
+
|
| 47 |
+
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-DSTNetPlus-L/dbis-DSTNetPlus-L.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "dbis-DSTNetPlus-L",
|
| 3 |
+
"file": "dbis-DSTNetPlus-L.safetensors",
|
| 4 |
+
"path": "dbis-DSTNetPlus-L/dbis-DSTNetPlus-L.safetensors",
|
| 5 |
+
"bytes": 56392588,
|
| 6 |
+
"sha256": "378a5fca3c72b17467ab5d9a39d7c43291b513891f9faa44f86aeb489a5bc3cd",
|
| 7 |
+
"store": "float32",
|
| 8 |
+
"class": "dbis.dstnetplus.DSTNetPlus",
|
| 9 |
+
"args": {},
|
| 10 |
+
"source": {
|
| 11 |
+
"method": "DSTNet+ L",
|
| 12 |
+
"paper": "Learning Efficient Deep Discriminative Spatial and Temporal Networks for Video Deblurring",
|
| 13 |
+
"venue": "TPAMI 2025",
|
| 14 |
+
"code": "https://github.com/sunny2109/DSTNet-plus",
|
| 15 |
+
"commit": "54363c15d8b924aa1ae56b8f835c1f0289954e95",
|
| 16 |
+
"license": "Apache License 2.0 (LICENSE.txt of the repository)",
|
| 17 |
+
"url": "https://github.com/sunny2109/DSTNet-plus/releases/tag/v0.1.0 (also https://huggingface.co/Meloo/DSTNetPlus)",
|
| 18 |
+
"file": "DSTNetPlus_L_gopro.pth",
|
| 19 |
+
"md5": "d7da9b176f72cd2c10c6c146fe481e65",
|
| 20 |
+
"group": "params",
|
| 21 |
+
"trained_on": "GoPro"
|
| 22 |
+
},
|
| 23 |
+
"load": "import dbis; net = dbis.load(\"dbis-DSTNetPlus-L\")",
|
| 24 |
+
"code": "https://github.com/illaitar/deblurring-is-solved"
|
| 25 |
+
}
|
dbis-DSTNetPlus-L/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
|
dbis-DSTNetPlus-L/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
|
dbis-NAFNet-64/LICENSE.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Terms of the weight file
|
| 2 |
+
|
| 3 |
+
| File | Source checkpoint | Terms |
|
| 4 |
+
|---|---|---|
|
| 5 |
+
| `dbis-NAFNet-64.safetensors` | `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`) |
|
| 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 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-NAFNet-64/README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
library_name: pytorch
|
| 4 |
+
pipeline_tag: image-to-image
|
| 5 |
+
tags:
|
| 6 |
+
- deblurring
|
| 7 |
+
- motion-deblurring
|
| 8 |
+
- image-restoration
|
| 9 |
+
- dbis
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# dbis-NAFNet-64
|
| 13 |
+
|
| 14 |
+
NAFNet (Simple Baselines for Image Restoration, ECCV 2022) 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/megvii-research/NAFNet.
|
| 15 |
+
|
| 16 |
+
The same method faster and lighter: [dbisf-NAFNet-64](https://huggingface.co/Illaitar/dbis/tree/main/dbisf-NAFNet-64).
|
| 17 |
+
Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis).
|
| 18 |
+
|
| 19 |
+
## Use
|
| 20 |
+
|
| 21 |
+
```bash
|
| 22 |
+
pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved"
|
| 23 |
+
python -m dbis.run dbis-NAFNet-64 blurry.png sharp.png # an image, a folder of frames or a video
|
| 24 |
+
hf download Illaitar/dbis dbis-NAFNet-64/dbis-NAFNet-64.safetensors # this file alone, without the package
|
| 25 |
+
```
|
| 26 |
+
|
| 27 |
+
```python
|
| 28 |
+
import dbis
|
| 29 |
+
net = dbis.load("dbis-NAFNet-64") # fetches only this folder's file 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 |
+
## File
|
| 34 |
+
|
| 35 |
+
| File | Size | GoPro PSNR, dB | Time per 720p frame |
|
| 36 |
+
|---|---:|---:|---:|
|
| 37 |
+
| `dbis-NAFNet-64.safetensors` | 271 MB | 33.7103 | 33.5 ms |
|
| 38 |
+
| the authors' code and checkpoint | 272 MB | 33.7103 | 34.9 ms |
|
| 39 |
+
|
| 40 |
+
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).
|
| 41 |
+
|
| 42 |
+
`dbis-NAFNet-64.json` here has the file's sha256, the source checkpoint and its md5, and the network's arguments. `.safetensors`, float32.
|
| 43 |
+
|
| 44 |
+
## Terms
|
| 45 |
+
|
| 46 |
+
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-NAFNet-64/dbis-NAFNet-64.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "dbis-NAFNet-64",
|
| 3 |
+
"file": "dbis-NAFNet-64.safetensors",
|
| 4 |
+
"path": "dbis-NAFNet-64/dbis-NAFNet-64.safetensors",
|
| 5 |
+
"bytes": 271196556,
|
| 6 |
+
"sha256": "731f4a9d79703fd1f38e258582b67e8818f51fe0176acc64ac8acba0fef4fd61",
|
| 7 |
+
"store": "float32",
|
| 8 |
+
"class": "dbis.nafnet.NAFNet",
|
| 9 |
+
"args": {
|
| 10 |
+
"tlc": "exact"
|
| 11 |
+
},
|
| 12 |
+
"source": {
|
| 13 |
+
"method": "NAFNet",
|
| 14 |
+
"paper": "Simple Baselines for Image Restoration",
|
| 15 |
+
"venue": "ECCV 2022",
|
| 16 |
+
"code": "https://github.com/megvii-research/NAFNet",
|
| 17 |
+
"commit": "2b4af71ebe098a92a75910c233a3965a3e93ede4",
|
| 18 |
+
"license": "MIT, Copyright (c) 2022 megvii-model",
|
| 19 |
+
"url": "https://drive.google.com/file/d/1S0PVRbyTakYY9a82kujgZLbMihfNBLfC/view",
|
| 20 |
+
"file": "NAFNet-GoPro-width64.pth",
|
| 21 |
+
"md5": "7b7f519ce4203d701dc026ff0c3fd6e0",
|
| 22 |
+
"group": "params",
|
| 23 |
+
"trained_on": "GoPro"
|
| 24 |
+
},
|
| 25 |
+
"load": "import dbis; net = dbis.load(\"dbis-NAFNet-64\")",
|
| 26 |
+
"code": "https://github.com/illaitar/deblurring-is-solved"
|
| 27 |
+
}
|
dbis-NAFNet-64/dbis-NAFNet-64.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:731f4a9d79703fd1f38e258582b67e8818f51fe0176acc64ac8acba0fef4fd61
|
| 3 |
+
size 271196556
|
dbis-NAFNet-64/licenses/NAFNet-LICENSE.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a29ecef3456149898f08e4c71b11b33e7d333664e087bc212e84e18ddd6599ad
|
| 3 |
+
size 12466
|
dbis-Turtle/LICENSE.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Terms of the weight file
|
| 2 |
+
|
| 3 |
+
| File | Source checkpoint | Terms |
|
| 4 |
+
|---|---|---|
|
| 5 |
+
| `dbis-Turtle.safetensors` | `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`) |
|
| 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 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).
|