File size: 1,996 Bytes
da4598e
 
 
 
 
 
 
 
 
 
 
 
 
 
75409e7
da4598e
75409e7
 
da4598e
 
 
 
 
75409e7
da4598e
 
 
 
75409e7
 
da4598e
 
75409e7
da4598e
 
 
75409e7
 
da4598e
75409e7
 
 
da4598e
 
 
75409e7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
license: mit
library_name: pytorch
pipeline_tag: image-to-image
tags:
- deblurring
- motion-deblurring
- video-deblurring
- image-restoration
- dbis
---

# dbis-Turtle

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.

The same method faster and lighter: [Illaitar/dbisf-Turtle](https://huggingface.co/Illaitar/dbisf-Turtle). 
Every model: the [dbis collection](https://huggingface.co/collections/Illaitar/dbis-6b09930cbf629d8d89c027ba).

## Use

```bash
pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved"
python -m dbis.run dbis-Turtle blurry_frames/ sharp_frames/   # a folder of frames (one clip) or a video file
```

```python
import dbis
net = dbis.load("dbis-Turtle")   # fetches the file from this repository on first use and checks its sha256
out = net.restore(frames)   # frames [T, 3, H, W], [B, T, 3, H, W] or [3, H, W]
```

## File

| File | Size | GoPro PSNR, dB | Time per 720p frame |
|---|---:|---:|---:|
| `dbis-Turtle.safetensors` | 236 MB | 34.5598 | 723.9 ms |
| the authors' code and checkpoint | 237 MB | 34.5598 | 760.9 ms |

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).

`dbis-Turtle.json` here has the file's sha256, the source checkpoint and its md5, and the network's arguments. `.safetensors`, float32.

## Terms

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.