Illaitar commited on
Commit
75409e7
·
verified ·
1 Parent(s): da4598e

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

Browse files
Files changed (2) hide show
  1. LICENSE.md +4 -4
  2. README.md +13 -12
LICENSE.md CHANGED
@@ -1,7 +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).
 
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, 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.
 
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.