dbis-Turtle: weight files, cards and terms (1/1)
Browse files- LICENSE.md +7 -0
- README.md +45 -0
- dbis-Turtle.json +24 -0
- dbis-Turtle.safetensors +3 -0
- dbisf-Turtle.json +29 -0
- dbisf-Turtle.wpk +3 -0
- licenses/Turtle-LICENSE.txt +3 -0
LICENSE.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Terms of the weight files
|
| 2 |
+
|
| 3 |
+
| Files | Source checkpoint | Terms |
|
| 4 |
+
|---|---|---|
|
| 5 |
+
| `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`) |
|
| 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: mit
|
| 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-Turtle
|
| 14 |
+
|
| 15 |
+
Turtle (Learning Truncated Causal History Model for Video Restoration, NeurIPS 2024) 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/Ascend-Research/Turtle.
|
| 16 |
+
|
| 17 |
+
- **dbis-Turtle**: our code and weight file, the same outputs as the authors' code.
|
| 18 |
+
- **dbisf-Turtle**: 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-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("dbisf-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 |
+
## Files
|
| 34 |
+
|
| 35 |
+
| File | Size | GoPro PSNR, dB | Time per 720p frame |
|
| 36 |
+
|---|---:|---:|---:|
|
| 37 |
+
| `dbis-Turtle.safetensors` | 236 MB | 34.5598 (authors 34.5598) | 723.9 ms (authors 760.9 ms) |
|
| 38 |
+
| `dbisf-Turtle.wpk` | 68 MB | 34.5316 | 198.7 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-Turtle.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "dbis-Turtle",
|
| 3 |
+
"file": "dbis-Turtle.safetensors",
|
| 4 |
+
"bytes": 236397016,
|
| 5 |
+
"sha256": "3d80bf02e2f4ff6e949ca4db309fc39a2e6bb51143dc8ee4deb9317153a7b61d",
|
| 6 |
+
"store": "float32",
|
| 7 |
+
"class": "dbis.turtle.Turtle",
|
| 8 |
+
"args": {},
|
| 9 |
+
"source": {
|
| 10 |
+
"method": "Turtle",
|
| 11 |
+
"paper": "Learning Truncated Causal History Model for Video Restoration",
|
| 12 |
+
"venue": "NeurIPS 2024",
|
| 13 |
+
"code": "https://github.com/Ascend-Research/Turtle",
|
| 14 |
+
"commit": "7094f4221b64ad0962b4f27ff1b76d788836e804",
|
| 15 |
+
"license": "MIT, Copyright (c) 2024 Huawei Technologies Co., Ltd.",
|
| 16 |
+
"url": "https://github.com/Ascend-Research/Turtle (README: trained models, GoPro_Deblur.pth)",
|
| 17 |
+
"file": "GoPro_Deblur.pth",
|
| 18 |
+
"md5": "736df72180a69242b495b2463042b29d",
|
| 19 |
+
"group": "params",
|
| 20 |
+
"trained_on": "GoPro"
|
| 21 |
+
},
|
| 22 |
+
"load": "import dbis; net = dbis.load(\"dbis-Turtle\")",
|
| 23 |
+
"code": "https://github.com/illaitar/deblurring-is-solved"
|
| 24 |
+
}
|
dbis-Turtle.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3d80bf02e2f4ff6e949ca4db309fc39a2e6bb51143dc8ee4deb9317153a7b61d
|
| 3 |
+
size 236397016
|
dbisf-Turtle.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "dbisf-Turtle",
|
| 3 |
+
"file": "dbisf-Turtle.wpk",
|
| 4 |
+
"bytes": 68422570,
|
| 5 |
+
"sha256": "30c8bea074fa9fb53300fee15c8d16e920eff6c4b3148932e72294c5cb7371b6",
|
| 6 |
+
"store": "qc128",
|
| 7 |
+
"class": "dbis.turtle.Turtle",
|
| 8 |
+
"args": {
|
| 9 |
+
"fast": true,
|
| 10 |
+
"precision": "fp16",
|
| 11 |
+
"batch": 15,
|
| 12 |
+
"tile_overlap": 80
|
| 13 |
+
},
|
| 14 |
+
"source": {
|
| 15 |
+
"method": "Turtle",
|
| 16 |
+
"paper": "Learning Truncated Causal History Model for Video Restoration",
|
| 17 |
+
"venue": "NeurIPS 2024",
|
| 18 |
+
"code": "https://github.com/Ascend-Research/Turtle",
|
| 19 |
+
"commit": "7094f4221b64ad0962b4f27ff1b76d788836e804",
|
| 20 |
+
"license": "MIT, Copyright (c) 2024 Huawei Technologies Co., Ltd.",
|
| 21 |
+
"url": "https://github.com/Ascend-Research/Turtle (README: trained models, GoPro_Deblur.pth)",
|
| 22 |
+
"file": "GoPro_Deblur.pth",
|
| 23 |
+
"md5": "736df72180a69242b495b2463042b29d",
|
| 24 |
+
"group": "params",
|
| 25 |
+
"trained_on": "GoPro"
|
| 26 |
+
},
|
| 27 |
+
"load": "import dbis; net = dbis.load(\"dbisf-Turtle\")",
|
| 28 |
+
"code": "https://github.com/illaitar/deblurring-is-solved"
|
| 29 |
+
}
|
dbisf-Turtle.wpk
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:30c8bea074fa9fb53300fee15c8d16e920eff6c4b3148932e72294c5cb7371b6
|
| 3 |
+
size 68422570
|
licenses/Turtle-LICENSE.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b62eff5d03bdbab915bbc25f673b9fb723c938ebfbc01e1c8a0e3bf82a179bda
|
| 3 |
+
size 1085
|