dbis-BSSTNet: weight file, cards and terms (1/1)
Browse files- LICENSE.md +5 -5
- README.md +13 -12
LICENSE.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
-
# Terms of the weight
|
| 2 |
|
| 3 |
-
|
|
| 4 |
|---|---|---|
|
| 5 |
-
| `dbis-BSSTNet.safetensors`
|
| 6 |
-
| the same
|
| 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
|
|
|
|
| 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).
|
README.md
CHANGED
|
@@ -14,34 +14,35 @@ tags:
|
|
| 14 |
|
| 15 |
# dbis-BSSTNet
|
| 16 |
|
| 17 |
-
BSSTNet (Blur-aware Spatio-temporal Sparse Transformer for Video Deblurring, CVPR 2024) in plain PyTorch,
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
| 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
|
| 27 |
```
|
| 28 |
|
| 29 |
```python
|
| 30 |
import dbis
|
| 31 |
-
net = dbis.load("
|
| 32 |
-
out = net.restore(frames)
|
| 33 |
```
|
| 34 |
|
| 35 |
-
##
|
| 36 |
|
| 37 |
| File | Size | GoPro PSNR, dB | Time per 720p frame |
|
| 38 |
|---|---:|---:|---:|
|
| 39 |
-
| `dbis-BSSTNet.safetensors` | 175 MB | 35.9662
|
| 40 |
-
|
|
| 41 |
|
| 42 |
-
Time: the benchmark's latency harness, one A100, batch 1 (DBIS.md
|
| 43 |
-
|
|
|
|
| 44 |
|
| 45 |
## Terms
|
| 46 |
|
| 47 |
-
The
|
|
|
|
| 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: [Illaitar/dbisf-BSSTNet](https://huggingface.co/Illaitar/dbisf-BSSTNet).
|
| 20 |
+
Every model: the [dbis collection](https://huggingface.co/collections/Illaitar/dbis-6b09930cbf629d8d89c027ba).
|
| 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 |
```
|
| 28 |
|
| 29 |
```python
|
| 30 |
import dbis
|
| 31 |
+
net = dbis.load("dbis-BSSTNet") # fetches the file from this repository on first use and checks its sha256
|
| 32 |
+
out = net.restore(frames) # frames [T, 3, H, W], [B, T, 3, H, W] or [3, H, W]
|
| 33 |
```
|
| 34 |
|
| 35 |
+
## File
|
| 36 |
|
| 37 |
| File | Size | GoPro PSNR, dB | Time per 720p frame |
|
| 38 |
|---|---:|---:|---:|
|
| 39 |
+
| `dbis-BSSTNet.safetensors` | 175 MB | 35.9662 | 30.58 s |
|
| 40 |
+
| the authors' code and checkpoint | 209 MB | 35.9662 | 25.56 s |
|
| 41 |
|
| 42 |
+
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).
|
| 43 |
+
|
| 44 |
+
`dbis-BSSTNet.json` here has the file's sha256, the source checkpoint and its md5, and the network's arguments. `.safetensors`, float32.
|
| 45 |
|
| 46 |
## Terms
|
| 47 |
|
| 48 |
+
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.
|