dbis-Turtle: weight file, cards and terms (1/1)
Browse files- LICENSE.md +4 -4
- README.md +13 -12
LICENSE.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
-
# Terms of the weight
|
| 2 |
|
| 3 |
-
|
|
| 4 |
|---|---|---|
|
| 5 |
-
| `dbis-Turtle.safetensors`
|
| 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
|
|
|
|
| 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).
|
README.md
CHANGED
|
@@ -12,34 +12,35 @@ tags:
|
|
| 12 |
|
| 13 |
# dbis-Turtle
|
| 14 |
|
| 15 |
-
Turtle (Learning Truncated Causal History Model for Video Restoration, NeurIPS 2024) in plain PyTorch,
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
| 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
|
| 25 |
```
|
| 26 |
|
| 27 |
```python
|
| 28 |
import dbis
|
| 29 |
-
net = dbis.load("
|
| 30 |
-
out = net.restore(frames)
|
| 31 |
```
|
| 32 |
|
| 33 |
-
##
|
| 34 |
|
| 35 |
| File | Size | GoPro PSNR, dB | Time per 720p frame |
|
| 36 |
|---|---:|---:|---:|
|
| 37 |
-
| `dbis-Turtle.safetensors` | 236 MB | 34.5598
|
| 38 |
-
|
|
| 39 |
|
| 40 |
-
Time: the benchmark's latency harness, one A100, batch 1 (DBIS.md
|
| 41 |
-
|
|
|
|
| 42 |
|
| 43 |
## Terms
|
| 44 |
|
| 45 |
-
The
|
|
|
|
| 12 |
|
| 13 |
# dbis-Turtle
|
| 14 |
|
| 15 |
+
Turtle (Learning Truncated Causal History Model for Video Restoration, NeurIPS 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/Ascend-Research/Turtle.
|
| 16 |
|
| 17 |
+
The same method faster and lighter: [Illaitar/dbisf-Turtle](https://huggingface.co/Illaitar/dbisf-Turtle).
|
| 18 |
+
Every model: the [dbis collection](https://huggingface.co/collections/Illaitar/dbis-6b09930cbf629d8d89c027ba).
|
| 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-Turtle 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("dbis-Turtle") # 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 |
+
## File
|
| 34 |
|
| 35 |
| File | Size | GoPro PSNR, dB | Time per 720p frame |
|
| 36 |
|---|---:|---:|---:|
|
| 37 |
+
| `dbis-Turtle.safetensors` | 236 MB | 34.5598 | 723.9 ms |
|
| 38 |
+
| the authors' code and checkpoint | 237 MB | 34.5598 | 760.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-Turtle.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.
|