Illaitar commited on
Commit
aba6272
·
verified ·
1 Parent(s): c777a20

dbisf-Turtle: weight file, cards and terms (1/1)

Browse files
Files changed (5) hide show
  1. LICENSE.md +7 -0
  2. README.md +46 -0
  3. dbisf-Turtle.json +29 -0
  4. dbisf-Turtle.wpk +3 -0
  5. licenses/Turtle-LICENSE.txt +3 -0
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).
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
+ - 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: [Illaitar/dbis-Turtle](https://huggingface.co/Illaitar/dbis-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 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
+ ## File
34
+
35
+ | File | Size | GoPro PSNR, dB | Time per 720p frame |
36
+ |---|---:|---:|---:|
37
+ | `dbisf-Turtle.wpk` | 68 MB | 34.5316 | 198.7 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
+ `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).
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.
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