Illaitar commited on
Commit
4e4ed8a
·
verified ·
1 Parent(s): af58b12

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

Browse files
dbisf-Turtle/LICENSE.md ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # Terms of the weight file
2
+
3
+ | File | Source checkpoint | Terms |
4
+ |---|---|---|
5
+ | `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 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).
dbisf-Turtle/README.md ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ # dbisf-Turtle
14
+
15
+ Turtle (Learning Truncated Causal History Model for Video Restoration, NeurIPS 2024) in plain PyTorch, our fast and light version: 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. 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 with the authors' outputs: [dbis-Turtle](https://huggingface.co/Illaitar/dbis/tree/main/dbis-Turtle).
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 dbisf-Turtle blurry_frames/ sharp_frames/ # a folder of frames (one clip) or a video file
25
+ hf download Illaitar/dbis dbisf-Turtle/dbisf-Turtle.wpk # this file alone, without the package
26
+ ```
27
+
28
+ ```python
29
+ import dbis
30
+ net = dbis.load("dbisf-Turtle") # 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
+ | `dbisf-Turtle.wpk` | 68 MB | 34.5316 | 198.7 ms |
39
+ | the authors' code and checkpoint | 237 MB | 34.5598 | 760.9 ms |
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
+ `dbisf-Turtle.json` here has the file's sha256, the source checkpoint and its md5, and the network's arguments. `.wpk` is the repository's wpack format (`dbis/wpack.py`, needs zstandard).
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.
dbisf-Turtle/dbisf-Turtle.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "dbisf-Turtle",
3
+ "file": "dbisf-Turtle.wpk",
4
+ "path": "dbisf-Turtle/dbisf-Turtle.wpk",
5
+ "bytes": 68422570,
6
+ "sha256": "30c8bea074fa9fb53300fee15c8d16e920eff6c4b3148932e72294c5cb7371b6",
7
+ "store": "qc128",
8
+ "class": "dbis.turtle.Turtle",
9
+ "args": {
10
+ "fast": true,
11
+ "precision": "fp16",
12
+ "batch": 15,
13
+ "tile_overlap": 80
14
+ },
15
+ "source": {
16
+ "method": "Turtle",
17
+ "paper": "Learning Truncated Causal History Model for Video Restoration",
18
+ "venue": "NeurIPS 2024",
19
+ "code": "https://github.com/Ascend-Research/Turtle",
20
+ "commit": "7094f4221b64ad0962b4f27ff1b76d788836e804",
21
+ "license": "MIT, Copyright (c) 2024 Huawei Technologies Co., Ltd.",
22
+ "url": "https://github.com/Ascend-Research/Turtle (README: trained models, GoPro_Deblur.pth)",
23
+ "file": "GoPro_Deblur.pth",
24
+ "md5": "736df72180a69242b495b2463042b29d",
25
+ "group": "params",
26
+ "trained_on": "GoPro"
27
+ },
28
+ "load": "import dbis; net = dbis.load(\"dbisf-Turtle\")",
29
+ "code": "https://github.com/illaitar/deblurring-is-solved"
30
+ }
dbisf-Turtle/dbisf-Turtle.wpk ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:30c8bea074fa9fb53300fee15c8d16e920eff6c4b3148932e72294c5cb7371b6
3
+ size 68422570
dbisf-Turtle/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