diff --git a/dbisf-FFTformer/README.md b/dbisf-FFTformer/README.md new file mode 100644 index 0000000000000000000000000000000000000000..7c2f552373ef121c35c9c509d323c5697fa72b28 --- /dev/null +++ b/dbisf-FFTformer/README.md @@ -0,0 +1,46 @@ +--- +license: mit +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-FFTformer + +FFTformer (Efficient Frequency Domain-based Transformers for High-Quality Image Deblurring, CVPR 2023) 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' checkpoint (trained on GoPro) by the conversion 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/kkkls/FFTformer. + +The same checkpoint in other versions: [dbis-FFTformer](https://huggingface.co/Illaitar/dbis/tree/main/dbis-FFTformer). +Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis). + +## Use + +```bash +pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved" +python -m dbis.run dbisf-FFTformer blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-FFTformer/dbisf-FFTformer.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-FFTformer") # fetches only this folder's file 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 | +|---|---:|---:|---:| +| `dbisf-FFTformer.wpk` | 28 MB | 34.1554 | 194.3 ms | +| the authors' code and checkpoint | 66 MB | 34.1559 | 732.0 ms | + +PSNR: the 1,111 GoPro test frames, 8-bit outputs, as the benchmark runs the method. Time: the benchmark's latency harness, one A100, batch 1 ([DBIS.md](https://github.com/illaitar/deblurring-is-solved/blob/main/DBIS.md)). + +`dbisf-FFTformer.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). + +## Terms + +The file keeps the terms of the checkpoint it is made from: MIT. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbisf-FFTformer/dbisf-FFTformer.json b/dbisf-FFTformer/dbisf-FFTformer.json new file mode 100644 index 0000000000000000000000000000000000000000..c502f7256ef1e466f0c561a3e3339c8b21a065df --- /dev/null +++ b/dbisf-FFTformer/dbisf-FFTformer.json @@ -0,0 +1,27 @@ +{ + "model": "dbisf-FFTformer", + "file": "dbisf-FFTformer.wpk", + "path": "dbisf-FFTformer/dbisf-FFTformer.wpk", + "bytes": 27746471, + "sha256": "79198d0b6418795f39fa0ec64e4ec6c9742663822c9dfbb0b84c92d1db92ff71", + "store": "f16", + "class": "dbis.fftformer.FFTformer", + "args": { + "fast": true + }, + "source": { + "method": "FFTformer", + "paper": "Efficient Frequency Domain-based Transformers for High-Quality Image Deblurring", + "venue": "CVPR 2023", + "code": "https://github.com/kkkls/FFTformer", + "commit": "01306b5d4072146a011c8c6e9d4927cf4607f1d5", + "license": "MIT, Copyright (c) 2023 kkkls", + "url": "https://github.com/kkkls/FFTformer/tree/main/pretrain_model (in the repo)", + "file": "fftformer_GoPro.pth", + "md5": "b676ab0188cd1c953b26f836cd965842", + "group": null, + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-FFTformer\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-FFTformer/dbisf-FFTformer.wpk b/dbisf-FFTformer/dbisf-FFTformer.wpk new file mode 100644 index 0000000000000000000000000000000000000000..f769ac7e9ed0e02064ef3e55f8a5b5836b727b9c --- /dev/null +++ b/dbisf-FFTformer/dbisf-FFTformer.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:79198d0b6418795f39fa0ec64e4ec6c9742663822c9dfbb0b84c92d1db92ff71 +size 27746471 diff --git a/dbisf-FFTformer/licenses/FFTformer-LICENSE.txt b/dbisf-FFTformer/licenses/FFTformer-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..f8aa90213cdd0b37d0fd98a1c07d847e5c938417 --- /dev/null +++ b/dbisf-FFTformer/licenses/FFTformer-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ebbb97354efc45d568b5bd7100a3e70447256b7bbbe0c6d340cd382103751e30 +size 1062 diff --git a/dbisf-FGST/LICENSE.md b/dbisf-FGST/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..91d19b3d7b4cdaee339d0c54247d62b05d914b4d --- /dev/null +++ b/dbisf-FGST/LICENSE.md @@ -0,0 +1,7 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-FGST.wpk` | `FGST_gopro.pth` of [linjing7/VR-Baseline](https://github.com/linjing7/VR-Baseline) (commit df795c3) | Apache-2.0, Copyright (c) MMEditing Authors (`licenses/VR-Baseline-LICENSE.txt`) | + +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). diff --git a/dbisf-FGST/README.md b/dbisf-FGST/README.md new file mode 100644 index 0000000000000000000000000000000000000000..6cb7dd3ed76dcdcb8b3c1a012de638517f896056 --- /dev/null +++ b/dbisf-FGST/README.md @@ -0,0 +1,47 @@ +--- +license: apache-2.0 +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- video-deblurring +- image-restoration +- dbis +--- + +# dbisf-FGST + +FGST (Flow-Guided Sparse Transformer for Video Deblurring, ICML 2022) 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' checkpoint (trained on GoPro) by the conversion 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/linjing7/VR-Baseline. + +The same checkpoint in other versions: [dbis-FGST](https://huggingface.co/Illaitar/dbis/tree/main/dbis-FGST). +Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis). + +## Use + +```bash +pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved" +python -m dbis.run dbisf-FGST blurry_frames/ sharp_frames/ # a folder of frames (one clip) or a video file +hf download Illaitar/dbis dbisf-FGST/dbisf-FGST.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-FGST") # fetches only this folder's file 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 | +|---|---:|---:|---:| +| `dbisf-FGST.wpk` | 17 MB | 33.0337 | 216.2 ms | +| the authors' code and checkpoint | 117 MB | 33.0336 | 2.06 s | + +PSNR: the 1,111 GoPro test frames, 8-bit outputs, as the benchmark runs the method. Time: the benchmark's latency harness, one A100, batch 1 ([DBIS.md](https://github.com/illaitar/deblurring-is-solved/blob/main/DBIS.md)). + +`dbisf-FGST.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). + +## Terms + +The file keeps the terms of the checkpoint it is made from: Apache-2.0. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbisf-FGST/dbisf-FGST.json b/dbisf-FGST/dbisf-FGST.json new file mode 100644 index 0000000000000000000000000000000000000000..42f5c00e238506053cc9fcdc0954be2e998fdf6e --- /dev/null +++ b/dbisf-FGST/dbisf-FGST.json @@ -0,0 +1,34 @@ +{ + "model": "dbisf-FGST", + "file": "dbisf-FGST.wpk", + "path": "dbisf-FGST/dbisf-FGST.wpk", + "bytes": 16554878, + "sha256": "553def0fd286ef37743f9d9e2a324412f0a4e0a275b064c327969cf27872f814", + "store": "f16", + "class": "dbis.fgst.FGST", + "args": { + "fast": true, + "precision": "fp16", + "flow_precision": "fp16", + "guard": true, + "stream_plan": [ + 6, + 6 + ] + }, + "source": { + "method": "FGST", + "paper": "Flow-Guided Sparse Transformer for Video Deblurring", + "venue": "ICML 2022", + "code": "https://github.com/linjing7/VR-Baseline", + "commit": "df795c3611ebfc99079c0ba43ad4524daa7fa8c8", + "license": "Apache-2.0, Copyright (c) MMEditing Authors", + "url": "https://drive.google.com/file/d/1hG-sYmCAWYxRTpUFz3enxvJrP9V0PCgk/view (README of VR-Baseline, FGST GoPro model)", + "file": "FGST_gopro.pth", + "md5": "a9de9d85dc29202b9f745f6741b35331", + "group": "state_dict", + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-FGST\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-FGST/dbisf-FGST.wpk b/dbisf-FGST/dbisf-FGST.wpk new file mode 100644 index 0000000000000000000000000000000000000000..388f8911127e327dc0cf4f8e4e6b0f0a248cd936 --- /dev/null +++ b/dbisf-FGST/dbisf-FGST.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:553def0fd286ef37743f9d9e2a324412f0a4e0a275b064c327969cf27872f814 +size 16554878 diff --git a/dbisf-FGST/licenses/VR-Baseline-LICENSE.txt b/dbisf-FGST/licenses/VR-Baseline-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..f98fed1a17b511c1aa6d9c090b66d3245ded6a3f --- /dev/null +++ b/dbisf-FGST/licenses/VR-Baseline-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2421dad0343e349994a824a26474ed9b616556d353248fa5cf1b371760742cbd +size 11424 diff --git a/dbisf-GRL-B/LICENSE.md b/dbisf-GRL-B/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..18d078c9f3b81e8cf7517cea8d3e52e3b201e7e9 --- /dev/null +++ b/dbisf-GRL-B/LICENSE.md @@ -0,0 +1,7 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-GRL-B.wpk` | `db_motion_grl_base_gopro.ckpt` of [ofsoundof/GRL-Image-Restoration](https://github.com/ofsoundof/GRL-Image-Restoration) (commit 3123fca) | MIT, Copyright (c) 2023 Yawei Li (`licenses/GRL-Image-Restoration-LICENSE.txt`) | + +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). diff --git a/dbisf-GRL-B/README.md b/dbisf-GRL-B/README.md new file mode 100644 index 0000000000000000000000000000000000000000..fa4d716c8867fb4f34dd7839657f57b2108962cc --- /dev/null +++ b/dbisf-GRL-B/README.md @@ -0,0 +1,46 @@ +--- +license: mit +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-GRL-B + +GRL (Efficient and Explicit Modelling of Image Hierarchies for Image Restoration, CVPR 2023) 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' checkpoint (trained on GoPro) by the conversion 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/ofsoundof/GRL-Image-Restoration. + +The same checkpoint in other versions: [dbis-GRL-B](https://huggingface.co/Illaitar/dbis/tree/main/dbis-GRL-B), [dbis-GRL-Btiled](https://huggingface.co/Illaitar/dbis/tree/main/dbis-GRL-Btiled), [dbisf-GRL-Btiled](https://huggingface.co/Illaitar/dbis/tree/main/dbisf-GRL-Btiled). +Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis). + +## Use + +```bash +pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved" +python -m dbis.run dbisf-GRL-B blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-GRL-B/dbisf-GRL-B.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-GRL-B") # fetches only this folder's file 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 | +|---|---:|---:|---:| +| `dbisf-GRL-B.wpk` | 24 MB | 33.6576 | 1.30 s | +| the authors' code and checkpoint | 80 MB | 33.6588 | 4.14 s | + +PSNR: the 1,111 GoPro test frames, 8-bit outputs, as the benchmark runs the method. Time: the benchmark's latency harness, one A100, batch 1 ([DBIS.md](https://github.com/illaitar/deblurring-is-solved/blob/main/DBIS.md)). + +`dbisf-GRL-B.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). + +## Terms + +The file keeps the terms of the checkpoint it is made from: MIT. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbisf-GRL-B/dbisf-GRL-B.json b/dbisf-GRL-B/dbisf-GRL-B.json new file mode 100644 index 0000000000000000000000000000000000000000..4ac38aea13a5cd9155677fa947dd4bd052940ef7 --- /dev/null +++ b/dbisf-GRL-B/dbisf-GRL-B.json @@ -0,0 +1,27 @@ +{ + "model": "dbisf-GRL-B", + "file": "dbisf-GRL-B.wpk", + "path": "dbisf-GRL-B/dbisf-GRL-B.wpk", + "bytes": 23804858, + "sha256": "ebe47482f9c7c4eb88bf3e54792e9b34f3ed167c75de808dbfd03f4c4920f3e6", + "store": "qc128", + "class": "dbis.grl.GRL", + "args": { + "fast": true + }, + "source": { + "method": "GRL", + "paper": "Efficient and Explicit Modelling of Image Hierarchies for Image Restoration", + "venue": "CVPR 2023", + "code": "https://github.com/ofsoundof/GRL-Image-Restoration", + "commit": "3123fcadfee2107d813c5e8fff58227f14c989bc", + "license": "MIT, Copyright (c) 2023 Yawei Li", + "group": "state_dict", + "url": "https://github.com/ofsoundof/GRL-Image-Restoration/releases/download/v1.0.0/db_motion_grl_base_gopro.ckpt", + "file": "db_motion_grl_base_gopro.ckpt", + "md5": "4004aada5aa1e1ee88f544cc171fa43b", + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-GRL-B\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-GRL-B/dbisf-GRL-B.wpk b/dbisf-GRL-B/dbisf-GRL-B.wpk new file mode 100644 index 0000000000000000000000000000000000000000..9cba45a629441f85de1e3fe4d2c88ce6106ff3e4 --- /dev/null +++ b/dbisf-GRL-B/dbisf-GRL-B.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ebe47482f9c7c4eb88bf3e54792e9b34f3ed167c75de808dbfd03f4c4920f3e6 +size 23804858 diff --git a/dbisf-GRL-B/licenses/GRL-Image-Restoration-LICENSE.txt b/dbisf-GRL-B/licenses/GRL-Image-Restoration-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..a737a50cc3d8852881440f3bf47d99912856a7e5 --- /dev/null +++ b/dbisf-GRL-B/licenses/GRL-Image-Restoration-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:693a4ac2d13dc8df502de9abae8a03084cf6f347dbdef8ffa8a36207c3c37ed5 +size 1065 diff --git a/dbisf-GRL-Btiled/LICENSE.md b/dbisf-GRL-Btiled/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..18d078c9f3b81e8cf7517cea8d3e52e3b201e7e9 --- /dev/null +++ b/dbisf-GRL-Btiled/LICENSE.md @@ -0,0 +1,7 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-GRL-B.wpk` | `db_motion_grl_base_gopro.ckpt` of [ofsoundof/GRL-Image-Restoration](https://github.com/ofsoundof/GRL-Image-Restoration) (commit 3123fca) | MIT, Copyright (c) 2023 Yawei Li (`licenses/GRL-Image-Restoration-LICENSE.txt`) | + +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). diff --git a/dbisf-GRL-Btiled/README.md b/dbisf-GRL-Btiled/README.md new file mode 100644 index 0000000000000000000000000000000000000000..6e2ca316f34d647defc4495b41f0ea9a20612366 --- /dev/null +++ b/dbisf-GRL-Btiled/README.md @@ -0,0 +1,46 @@ +--- +license: mit +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-GRL-Btiled + +GRL (Efficient and Explicit Modelling of Image Hierarchies for Image Restoration, CVPR 2023) 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' checkpoint (trained on GoPro) by the conversion 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/ofsoundof/GRL-Image-Restoration. + +The same checkpoint in other versions: [dbis-GRL-B](https://huggingface.co/Illaitar/dbis/tree/main/dbis-GRL-B), [dbis-GRL-Btiled](https://huggingface.co/Illaitar/dbis/tree/main/dbis-GRL-Btiled), [dbisf-GRL-B](https://huggingface.co/Illaitar/dbis/tree/main/dbisf-GRL-B). +Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis). + +## Use + +```bash +pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved" +python -m dbis.run dbisf-GRL-Btiled blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-GRL-Btiled/dbisf-GRL-B.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-GRL-Btiled") # fetches only this folder's file 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 | +|---|---:|---:|---:| +| `dbisf-GRL-B.wpk` | 24 MB | 33.9250 | 1.83 s | +| the authors' code and checkpoint | 80 MB | 33.9263 | 10.97 s | + +PSNR: the 1,111 GoPro test frames, 8-bit outputs, as the benchmark runs the method. Time: the benchmark's latency harness, one A100, batch 1 ([DBIS.md](https://github.com/illaitar/deblurring-is-solved/blob/main/DBIS.md)). + +`dbisf-GRL-B.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). + +## Terms + +The file keeps the terms of the checkpoint it is made from: MIT. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbisf-GRL-Btiled/dbisf-GRL-B.json b/dbisf-GRL-Btiled/dbisf-GRL-B.json new file mode 100644 index 0000000000000000000000000000000000000000..e6b558d40306add1fa102b426ce6a537013a7157 --- /dev/null +++ b/dbisf-GRL-Btiled/dbisf-GRL-B.json @@ -0,0 +1,30 @@ +{ + "model": "dbisf-GRL-Btiled", + "file": "dbisf-GRL-B.wpk", + "path": "dbisf-GRL-Btiled/dbisf-GRL-B.wpk", + "bytes": 23804858, + "sha256": "ebe47482f9c7c4eb88bf3e54792e9b34f3ed167c75de808dbfd03f4c4920f3e6", + "store": "qc128", + "class": "dbis.grl.GRL", + "args": { + "fast": true, + "tile": 480, + "tile_overlap": 48, + "batch": 6 + }, + "source": { + "method": "GRL", + "paper": "Efficient and Explicit Modelling of Image Hierarchies for Image Restoration", + "venue": "CVPR 2023", + "code": "https://github.com/ofsoundof/GRL-Image-Restoration", + "commit": "3123fcadfee2107d813c5e8fff58227f14c989bc", + "license": "MIT, Copyright (c) 2023 Yawei Li", + "group": "state_dict", + "url": "https://github.com/ofsoundof/GRL-Image-Restoration/releases/download/v1.0.0/db_motion_grl_base_gopro.ckpt", + "file": "db_motion_grl_base_gopro.ckpt", + "md5": "4004aada5aa1e1ee88f544cc171fa43b", + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-GRL-Btiled\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-GRL-Btiled/dbisf-GRL-B.wpk b/dbisf-GRL-Btiled/dbisf-GRL-B.wpk new file mode 100644 index 0000000000000000000000000000000000000000..9cba45a629441f85de1e3fe4d2c88ce6106ff3e4 --- /dev/null +++ b/dbisf-GRL-Btiled/dbisf-GRL-B.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ebe47482f9c7c4eb88bf3e54792e9b34f3ed167c75de808dbfd03f4c4920f3e6 +size 23804858 diff --git a/dbisf-GRL-Btiled/licenses/GRL-Image-Restoration-LICENSE.txt b/dbisf-GRL-Btiled/licenses/GRL-Image-Restoration-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..a737a50cc3d8852881440f3bf47d99912856a7e5 --- /dev/null +++ b/dbisf-GRL-Btiled/licenses/GRL-Image-Restoration-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:693a4ac2d13dc8df502de9abae8a03084cf6f347dbdef8ffa8a36207c3c37ed5 +size 1065 diff --git a/dbisf-Ghost-DeblurGAN/LICENSE.md b/dbisf-Ghost-DeblurGAN/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..f6860fb69e08d876438718aeb47e23c5a903c6d2 --- /dev/null +++ b/dbisf-Ghost-DeblurGAN/LICENSE.md @@ -0,0 +1,7 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-Ghost-DeblurGAN.wpk` | `fpn_ghostnet_gm_hin.h5` of [York-SDCNLab/Ghost-DeblurGAN](https://github.com/York-SDCNLab/Ghost-DeblurGAN) (commit b135613) | MIT, Copyright (c) 2021 York-SDCNLab (`licenses/Ghost-DeblurGAN-LICENSE.txt`) | + +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). diff --git a/dbisf-Ghost-DeblurGAN/README.md b/dbisf-Ghost-DeblurGAN/README.md new file mode 100644 index 0000000000000000000000000000000000000000..4de58d42bb5e278d813a2dd6283b4f2a4a176743 --- /dev/null +++ b/dbisf-Ghost-DeblurGAN/README.md @@ -0,0 +1,46 @@ +--- +license: mit +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-Ghost-DeblurGAN + +Ghost-DeblurGAN (Application of Ghost-DeblurGAN to Fiducial Marker Detection, IROS 2022) 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' checkpoint (trained on GoPro) by the conversion 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/York-SDCNLab/Ghost-DeblurGAN. + +The same checkpoint in other versions: [dbis-Ghost-DeblurGAN](https://huggingface.co/Illaitar/dbis/tree/main/dbis-Ghost-DeblurGAN). +Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis). + +## Use + +```bash +pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved" +python -m dbis.run dbisf-Ghost-DeblurGAN blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-Ghost-DeblurGAN/dbisf-Ghost-DeblurGAN.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-Ghost-DeblurGAN") # fetches only this folder's file 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 | +|---|---:|---:|---:| +| `dbisf-Ghost-DeblurGAN.wpk` | 2 MB | 27.5558 | 2.5 ms | +| the authors' code and checkpoint | 6 MB | 27.5582 | 2.8 ms | + +PSNR: the 1,111 GoPro test frames, 8-bit outputs, as the benchmark runs the method. Time: the benchmark's latency harness, one A100, batch 1 ([DBIS.md](https://github.com/illaitar/deblurring-is-solved/blob/main/DBIS.md)). + +`dbisf-Ghost-DeblurGAN.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). + +## Terms + +The file keeps the terms of the checkpoint it is made from: MIT. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbisf-Ghost-DeblurGAN/dbisf-Ghost-DeblurGAN.json b/dbisf-Ghost-DeblurGAN/dbisf-Ghost-DeblurGAN.json new file mode 100644 index 0000000000000000000000000000000000000000..6852ca5ac1b7208034b59f96bded80da32a46d6d --- /dev/null +++ b/dbisf-Ghost-DeblurGAN/dbisf-Ghost-DeblurGAN.json @@ -0,0 +1,27 @@ +{ + "model": "dbisf-Ghost-DeblurGAN", + "file": "dbisf-Ghost-DeblurGAN.wpk", + "path": "dbisf-Ghost-DeblurGAN/dbisf-Ghost-DeblurGAN.wpk", + "bytes": 1516190, + "sha256": "7fa20ea19a198b9523c6b0ed79d656107afacc48e51b82a4543e43442160b6ed", + "store": "qc32", + "class": "dbis.ghostdeblurgan.GhostDeblurGAN", + "args": { + "fast": true + }, + "source": { + "method": "Ghost-DeblurGAN", + "paper": "Application of Ghost-DeblurGAN to Fiducial Marker Detection", + "venue": "IROS 2022", + "code": "https://github.com/York-SDCNLab/Ghost-DeblurGAN", + "commit": "b135613a81b4be8fdacc7663849f42e64a5569a8", + "license": "MIT, Copyright (c) 2021 York-SDCNLab", + "url": "https://github.com/York-SDCNLab/Ghost-DeblurGAN/raw/b135613a81b4be8fdacc7663849f42e64a5569a8/trained_weights/fpn_ghostnet_gm_hin.h5", + "file": "fpn_ghostnet_gm_hin.h5", + "md5": "bb3bc27306700a277cbac85a472a1d55", + "group": "model", + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-Ghost-DeblurGAN\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-Ghost-DeblurGAN/dbisf-Ghost-DeblurGAN.wpk b/dbisf-Ghost-DeblurGAN/dbisf-Ghost-DeblurGAN.wpk new file mode 100644 index 0000000000000000000000000000000000000000..81b67c0eb6153824fcc16ff47b8899a0d64e73b7 --- /dev/null +++ b/dbisf-Ghost-DeblurGAN/dbisf-Ghost-DeblurGAN.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7fa20ea19a198b9523c6b0ed79d656107afacc48e51b82a4543e43442160b6ed +size 1516190 diff --git a/dbisf-Ghost-DeblurGAN/licenses/Ghost-DeblurGAN-LICENSE.txt b/dbisf-Ghost-DeblurGAN/licenses/Ghost-DeblurGAN-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..9946286053dc43cc75746defcebbb38bf18b196a --- /dev/null +++ b/dbisf-Ghost-DeblurGAN/licenses/Ghost-DeblurGAN-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:39b6eacaa688bcb18e7dae20df705ba6a2f1ae630be7192a2d838ea3cd800da8 +size 1069 diff --git a/dbisf-HI-Diff/LICENSE.md b/dbisf-HI-Diff/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..f2a9168323338c601fe89fd4d4729a3c9078781d --- /dev/null +++ b/dbisf-HI-Diff/LICENSE.md @@ -0,0 +1,9 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-HI-Diff.wpk` | `net_g.pth` of [zhengchen1999/HI-Diff](https://github.com/zhengchen1999/HI-Diff) (commit b3bfd16) | Apache-2.0 (repository LICENSE) (`licenses/HI-Diff-LICENSE.txt`) | +| the same file | `net_le_dm.pth` of [zhengchen1999/HI-Diff](https://github.com/zhengchen1999/HI-Diff) | Apache-2.0 (repository LICENSE) (`licenses/HI-Diff-LICENSE.txt`) | +| the same file | `net_d.pth` of [zhengchen1999/HI-Diff](https://github.com/zhengchen1999/HI-Diff) | Apache-2.0 (repository LICENSE) (`licenses/HI-Diff-LICENSE.txt`) | + +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). diff --git a/dbisf-HI-Diff/README.md b/dbisf-HI-Diff/README.md new file mode 100644 index 0000000000000000000000000000000000000000..27eb0129776617dab806d7368134b2f45f17c101 --- /dev/null +++ b/dbisf-HI-Diff/README.md @@ -0,0 +1,46 @@ +--- +license: apache-2.0 +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-HI-Diff + +HI-Diff (Hierarchical Integration Diffusion Model for Realistic Image Deblurring, NeurIPS 2023) 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' checkpoint (trained on GoPro) by the conversion 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/zhengchen1999/HI-Diff. + +The same checkpoint in other versions: [dbis-HI-Diff](https://huggingface.co/Illaitar/dbis/tree/main/dbis-HI-Diff). +Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis). + +## Use + +```bash +pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved" +python -m dbis.run dbisf-HI-Diff blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-HI-Diff/dbisf-HI-Diff.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-HI-Diff") # fetches only this folder's file 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 | +|---|---:|---:|---:| +| `dbisf-HI-Diff.wpk` | 28 MB | 33.3210 | 95.2 ms | +| the authors' code and checkpoint | 114 MB | 33.3243 | 138.4 ms | + +PSNR: the 1,111 GoPro test frames, 8-bit outputs, as the benchmark runs the method. Time: the benchmark's latency harness, one A100, batch 1 ([DBIS.md](https://github.com/illaitar/deblurring-is-solved/blob/main/DBIS.md)). + +`dbisf-HI-Diff.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). + +## Terms + +The file keeps the terms of the checkpoint it is made from: Apache-2.0. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbisf-HI-Diff/dbisf-HI-Diff.json b/dbisf-HI-Diff/dbisf-HI-Diff.json new file mode 100644 index 0000000000000000000000000000000000000000..301d3e48196b782b9d620cb34994eeb86586ad68 --- /dev/null +++ b/dbisf-HI-Diff/dbisf-HI-Diff.json @@ -0,0 +1,43 @@ +{ + "model": "dbisf-HI-Diff", + "file": "dbisf-HI-Diff.wpk", + "path": "dbisf-HI-Diff/dbisf-HI-Diff.wpk", + "bytes": 28102211, + "sha256": "f148df5ac7bf0840d857a7a26fa4d1b8acdc06558ed8f2ab09d9b31c34719db3", + "store": "qc48", + "class": "dbis.hidiff.HIDiff", + "args": { + "fast": true + }, + "source": { + "method": "HI-Diff", + "paper": "Hierarchical Integration Diffusion Model for Realistic Image Deblurring", + "venue": "NeurIPS 2023", + "code": "https://github.com/zhengchen1999/HI-Diff", + "commit": "b3bfd167997e27f8edd57681cf70e5031a0e35f2", + "license": "Apache-2.0 (repository LICENSE)", + "url": "https://drive.google.com/file/d/1cx0vCV5Z5fklnbqonZQad37vt4armEbT (HI_Diff_GoPro.zip, md5 807b2366269a46c84e9e15c571a11624)", + "file": "HI_Diff_GoPro.zip/net_g.pth", + "md5": "ed5e93cb4e75cd7ae03876b2d3592d3d", + "group": "params", + "trained_on": "GoPro", + "extra": [ + { + "file": "HI_Diff_GoPro.zip/net_le_dm.pth", + "md5": "faa35bc6a432f41a10814c69cd6e726a", + "group": "params", + "code": "https://github.com/zhengchen1999/HI-Diff", + "license": "Apache-2.0 (repository LICENSE)" + }, + { + "file": "HI_Diff_GoPro.zip/net_d.pth", + "md5": "5aacf9b320f1ca27a429476c75d75459", + "group": "params", + "code": "https://github.com/zhengchen1999/HI-Diff", + "license": "Apache-2.0 (repository LICENSE)" + } + ] + }, + "load": "import dbis; net = dbis.load(\"dbisf-HI-Diff\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-HI-Diff/dbisf-HI-Diff.wpk b/dbisf-HI-Diff/dbisf-HI-Diff.wpk new file mode 100644 index 0000000000000000000000000000000000000000..18627aaa68564314a30ef95b2bbc72635778357c --- /dev/null +++ b/dbisf-HI-Diff/dbisf-HI-Diff.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f148df5ac7bf0840d857a7a26fa4d1b8acdc06558ed8f2ab09d9b31c34719db3 +size 28102211 diff --git a/dbisf-HI-Diff/licenses/HI-Diff-LICENSE.txt b/dbisf-HI-Diff/licenses/HI-Diff-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..44c155473af4c453b32d4bd7ff92c277ce6ff0fe --- /dev/null +++ b/dbisf-HI-Diff/licenses/HI-Diff-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:22ccdb96a3c66180f47ca2a40841c36f72a2f8ec7d7cb3fd28fa4f44f1edc257 +size 11345 diff --git a/dbisf-HINet/LICENSE.md b/dbisf-HINet/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..4a86f9a6fa921809c793ece7bdc543b1716b346e --- /dev/null +++ b/dbisf-HINet/LICENSE.md @@ -0,0 +1,7 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-HINet.wpk` | `HINet-GoPro.pth` of [megvii-model/HINet](https://github.com/megvii-model/HINet) (commit 4e72315) | MIT, Copyright (c) 2021 megvii-model (`licenses/HINet-LICENSE.txt`) | + +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). diff --git a/dbisf-HINet/README.md b/dbisf-HINet/README.md new file mode 100644 index 0000000000000000000000000000000000000000..803715de24788c76f07b8d2da72697850f00dd1c --- /dev/null +++ b/dbisf-HINet/README.md @@ -0,0 +1,46 @@ +--- +license: mit +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-HINet + +HINet (HINet: Half Instance Normalization Network for Image Restoration, CVPR Workshops 2021) 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' checkpoint (trained on GoPro) by the conversion 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/megvii-model/HINet. + +The same checkpoint in other versions: [dbis-HINet](https://huggingface.co/Illaitar/dbis/tree/main/dbis-HINet). +Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis). + +## Use + +```bash +pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved" +python -m dbis.run dbisf-HINet blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-HINet/dbisf-HINet.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-HINet") # fetches only this folder's file 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 | +|---|---:|---:|---:| +| `dbisf-HINet.wpk` | 79 MB | 32.8931 | 27.4 ms | +| the authors' code and checkpoint | 355 MB | 32.9013 | 29.9 ms | + +PSNR: the 1,111 GoPro test frames, 8-bit outputs, as the benchmark runs the method. Time: the benchmark's latency harness, one A100, batch 1 ([DBIS.md](https://github.com/illaitar/deblurring-is-solved/blob/main/DBIS.md)). + +`dbisf-HINet.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). + +## Terms + +The file keeps the terms of the checkpoint it is made from: MIT. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbisf-HINet/dbisf-HINet.json b/dbisf-HINet/dbisf-HINet.json new file mode 100644 index 0000000000000000000000000000000000000000..16d410ab6d3c8c2b77af987a961e03e0129f0333 --- /dev/null +++ b/dbisf-HINet/dbisf-HINet.json @@ -0,0 +1,27 @@ +{ + "model": "dbisf-HINet", + "file": "dbisf-HINet.wpk", + "path": "dbisf-HINet/dbisf-HINet.wpk", + "bytes": 78722867, + "sha256": "2da522fca3516c6b43533d83baf8fe7799a07e38bc5b30d0b54dfb8f0f34772f", + "store": "qc32", + "class": "dbis.hinet.HINet", + "args": { + "fast": true + }, + "source": { + "method": "HINet", + "paper": "HINet: Half Instance Normalization Network for Image Restoration", + "venue": "CVPR Workshops 2021", + "code": "https://github.com/megvii-model/HINet", + "commit": "4e7231543090e6280d03fac22b3bb6869a25dfad", + "license": "MIT, Copyright (c) 2021 megvii-model", + "url": "https://github.com/megvii-model/HINet (README, GoPro model link, Google Drive)", + "file": "HINet-GoPro.pth", + "md5": "a3b30d9633f869af1d06bf08c2c490bc", + "group": "params", + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-HINet\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-HINet/dbisf-HINet.wpk b/dbisf-HINet/dbisf-HINet.wpk new file mode 100644 index 0000000000000000000000000000000000000000..ce35b2eb2be89f73bd384b84881f61aceaa32536 --- /dev/null +++ b/dbisf-HINet/dbisf-HINet.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2da522fca3516c6b43533d83baf8fe7799a07e38bc5b30d0b54dfb8f0f34772f +size 78722867 diff --git a/dbisf-HINet/licenses/HINet-LICENSE.txt b/dbisf-HINet/licenses/HINet-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..97b9c011f0bfbed9845b60e85f9e62098b5a3015 --- /dev/null +++ b/dbisf-HINet/licenses/HINet-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bbaaec617997a76f67ae2a8b8c7bd13e9bd560004e7200d2e9904e7deb469998 +size 12467 diff --git a/dbisf-IDBlau-FFTformer/LICENSE.md b/dbisf-IDBlau-FFTformer/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..6469b7a783b0b25850e04c93609fdc560a2b61bd --- /dev/null +++ b/dbisf-IDBlau-FFTformer/LICENSE.md @@ -0,0 +1,9 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-IDBlau-FFTformer.wpk` | `FFTformer_GoPro.pth` of [plusgood-steven/ID-Blau](https://github.com/plusgood-steven/ID-Blau) (commit 414a4a8) | **No license stated.** not stated (no license file in the ID-Blau repository); architecture MIT, Copyright (c) 2023 kkkls (no license file in the repository) | + +No license stated: the repository of the source checkpoint has no license, so its authors keep all rights to it. This file is shared for research and evaluation only, as the benchmark uses it; ask the authors before any other use. + +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). diff --git a/dbisf-IDBlau-FFTformer/README.md b/dbisf-IDBlau-FFTformer/README.md new file mode 100644 index 0000000000000000000000000000000000000000..9f97c1324a728a8d544e157740b184da43265926 --- /dev/null +++ b/dbisf-IDBlau-FFTformer/README.md @@ -0,0 +1,50 @@ +--- +license: other +license_name: no-license-stated +license_link: LICENSE.md +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-IDBlau-FFTformer + +> **No license stated by the authors**: this file keeps the terms of its source checkpoint, no license stated (see `LICENSE.md`); without a license, the authors keep all rights. + +FFTformer + ID-Blau (ID-Blau: Image Deblurring by Implicit Diffusion-based reBLurring AUgmentation, CVPR 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' checkpoint (trained on GoPro) by the conversion 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/plusgood-steven/ID-Blau. + +The same checkpoint in other versions: [dbis-IDBlau-FFTformer](https://huggingface.co/Illaitar/dbis/tree/main/dbis-IDBlau-FFTformer). +Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis). + +## Use + +```bash +pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved" +python -m dbis.run dbisf-IDBlau-FFTformer blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-IDBlau-FFTformer/dbisf-IDBlau-FFTformer.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-IDBlau-FFTformer") # fetches only this folder's file 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 | +|---|---:|---:|---:| +| `dbisf-IDBlau-FFTformer.wpk` | 28 MB | 34.2935 | 196.9 ms | +| the authors' code and checkpoint | 66 MB | 34.2936 | 726.9 ms | + +PSNR: the 1,111 GoPro test frames, 8-bit outputs, as the benchmark runs the method. Time: the benchmark's latency harness, one A100, batch 1 ([DBIS.md](https://github.com/illaitar/deblurring-is-solved/blob/main/DBIS.md)). + +`dbisf-IDBlau-FFTformer.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). + +## Terms + +The file keeps the terms of the checkpoint it is made from: no license stated. See `LICENSE.md`. Cite the method's paper when you use its weights. diff --git a/dbisf-IDBlau-FFTformer/dbisf-IDBlau-FFTformer.json b/dbisf-IDBlau-FFTformer/dbisf-IDBlau-FFTformer.json new file mode 100644 index 0000000000000000000000000000000000000000..303ed426f43215aebec5d743494e458e69990aa4 --- /dev/null +++ b/dbisf-IDBlau-FFTformer/dbisf-IDBlau-FFTformer.json @@ -0,0 +1,28 @@ +{ + "model": "dbisf-IDBlau-FFTformer", + "file": "dbisf-IDBlau-FFTformer.wpk", + "path": "dbisf-IDBlau-FFTformer/dbisf-IDBlau-FFTformer.wpk", + "bytes": 28075258, + "sha256": "b97e96ee3f6d7a5bb8f47148232af77bff8062fa778757233fde5ce8cb22678b", + "store": "f16", + "class": "dbis.fftformer.FFTformer", + "args": { + "offset": 0.5, + "fast": true + }, + "source": { + "method": "FFTformer + ID-Blau", + "paper": "ID-Blau: Image Deblurring by Implicit Diffusion-based reBLurring AUgmentation", + "venue": "CVPR 2024", + "code": "https://github.com/plusgood-steven/ID-Blau", + "commit": "414a4a808034b7ed179a5f93d45caa739d54ebeb", + "license": "not stated (no license file in the ID-Blau repository); architecture MIT, Copyright (c) 2023 kkkls", + "group": "model_state", + "trained_on": "GoPro", + "url": "https://drive.google.com/file/d/1WlpJ5Ch6-ARwpRs62dJJ6q7qGDtL0vXg", + "file": "FFTformer_GoPro.pth", + "md5": "a1614fa71d5d73deb1a2e33540e1d609" + }, + "load": "import dbis; net = dbis.load(\"dbisf-IDBlau-FFTformer\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-IDBlau-FFTformer/dbisf-IDBlau-FFTformer.wpk b/dbisf-IDBlau-FFTformer/dbisf-IDBlau-FFTformer.wpk new file mode 100644 index 0000000000000000000000000000000000000000..477d32577e21ba1a7a7198954f2b11e32f5b8747 --- /dev/null +++ b/dbisf-IDBlau-FFTformer/dbisf-IDBlau-FFTformer.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b97e96ee3f6d7a5bb8f47148232af77bff8062fa778757233fde5ce8cb22678b +size 28075258 diff --git a/dbisf-IDBlau-MIMO-UNetPlus/LICENSE.md b/dbisf-IDBlau-MIMO-UNetPlus/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..79d16aec2b4968ece529bbc259043f1f0468e43b --- /dev/null +++ b/dbisf-IDBlau-MIMO-UNetPlus/LICENSE.md @@ -0,0 +1,9 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-IDBlau-MIMO-UNetPlus.wpk` | `MIMO_UNetPlus_GoPro.pth` of [plusgood-steven/ID-Blau](https://github.com/plusgood-steven/ID-Blau) (commit 414a4a8) | **No license stated.** none stated (no LICENSE file in the repository): all rights reserved by the authors (no license file in the repository) | + +No license stated: the repository of the source checkpoint has no license, so its authors keep all rights to it. This file is shared for research and evaluation only, as the benchmark uses it; ask the authors before any other use. + +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). diff --git a/dbisf-IDBlau-MIMO-UNetPlus/README.md b/dbisf-IDBlau-MIMO-UNetPlus/README.md new file mode 100644 index 0000000000000000000000000000000000000000..6ccd45c01cd9ef8c860cf3ae83c4a4d43c7ef7b6 --- /dev/null +++ b/dbisf-IDBlau-MIMO-UNetPlus/README.md @@ -0,0 +1,50 @@ +--- +license: other +license_name: no-license-stated +license_link: LICENSE.md +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-IDBlau-MIMO-UNetPlus + +> **No license stated by the authors**: this file keeps the terms of its source checkpoint, no license stated (see `LICENSE.md`); without a license, the authors keep all rights. + +MIMO-UNet+ + ID-Blau (ID-Blau: Image Deblurring by Implicit Diffusion-based reBLurring AUgmentation, CVPR 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' checkpoint (trained on GoPro) by the conversion 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/plusgood-steven/ID-Blau. + +The same checkpoint in other versions: [dbis-IDBlau-MIMO-UNetPlus](https://huggingface.co/Illaitar/dbis/tree/main/dbis-IDBlau-MIMO-UNetPlus). +Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis). + +## Use + +```bash +pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved" +python -m dbis.run dbisf-IDBlau-MIMO-UNetPlus blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-IDBlau-MIMO-UNetPlus/dbisf-IDBlau-MIMO-UNetPlus.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-IDBlau-MIMO-UNetPlus") # fetches only this folder's file 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 | +|---|---:|---:|---:| +| `dbisf-IDBlau-MIMO-UNetPlus.wpk` | 15 MB | 32.9209 | 38.8 ms | +| the authors' code and checkpoint | 65 MB | 32.9309 | 45.9 ms | + +PSNR: the 1,111 GoPro test frames, 8-bit outputs, as the benchmark runs the method. Time: the benchmark's latency harness, one A100, batch 1 ([DBIS.md](https://github.com/illaitar/deblurring-is-solved/blob/main/DBIS.md)). + +`dbisf-IDBlau-MIMO-UNetPlus.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). + +## Terms + +The file keeps the terms of the checkpoint it is made from: no license stated. See `LICENSE.md`. Cite the method's paper when you use its weights. diff --git a/dbisf-IDBlau-MIMO-UNetPlus/dbisf-IDBlau-MIMO-UNetPlus.json b/dbisf-IDBlau-MIMO-UNetPlus/dbisf-IDBlau-MIMO-UNetPlus.json new file mode 100644 index 0000000000000000000000000000000000000000..39e5f7c08a3d2591aee117dcf9ca5dcd9659f099 --- /dev/null +++ b/dbisf-IDBlau-MIMO-UNetPlus/dbisf-IDBlau-MIMO-UNetPlus.json @@ -0,0 +1,29 @@ +{ + "model": "dbisf-IDBlau-MIMO-UNetPlus", + "file": "dbisf-IDBlau-MIMO-UNetPlus.wpk", + "path": "dbisf-IDBlau-MIMO-UNetPlus/dbisf-IDBlau-MIMO-UNetPlus.wpk", + "bytes": 14526470, + "sha256": "b928368fe9d65f3f3c3c7c0aad28782aa93ab38ecad232abd2c47c508fa6afa3", + "store": "qc32", + "class": "dbis.mimounet.MIMOUNet", + "args": { + "num_res": 20, + "centered": true, + "fast": true + }, + "source": { + "method": "MIMO-UNet+ + ID-Blau", + "paper": "ID-Blau: Image Deblurring by Implicit Diffusion-based reBLurring AUgmentation", + "venue": "CVPR 2024", + "code": "https://github.com/plusgood-steven/ID-Blau", + "commit": "414a4a808034b7ed179a5f93d45caa739d54ebeb", + "license": "none stated (no LICENSE file in the repository): all rights reserved by the authors", + "group": "model_state", + "url": "https://drive.google.com/file/d/1xCDyw-KMchbWI8M53AdCKXv33eYucRMn/view", + "file": "MIMO_UNetPlus_GoPro.pth", + "md5": "5a4ef72a850f7b6acf2ab2e369cdb937", + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-IDBlau-MIMO-UNetPlus\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-IDBlau-MIMO-UNetPlus/dbisf-IDBlau-MIMO-UNetPlus.wpk b/dbisf-IDBlau-MIMO-UNetPlus/dbisf-IDBlau-MIMO-UNetPlus.wpk new file mode 100644 index 0000000000000000000000000000000000000000..0c4b9708c94f1e04089c82e7cb87bcb609dcd836 --- /dev/null +++ b/dbisf-IDBlau-MIMO-UNetPlus/dbisf-IDBlau-MIMO-UNetPlus.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b928368fe9d65f3f3c3c7c0aad28782aa93ab38ecad232abd2c47c508fa6afa3 +size 14526470 diff --git a/dbisf-IDBlau-Restormer/LICENSE.md b/dbisf-IDBlau-Restormer/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..9124c2e65d7932985d106b9ed665e61cfa77804f --- /dev/null +++ b/dbisf-IDBlau-Restormer/LICENSE.md @@ -0,0 +1,9 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-IDBlau-Restormer.wpk` | `Restormer_GoPro.pth` of [plusgood-steven/ID-Blau](https://github.com/plusgood-steven/ID-Blau) (commit 414a4a8) | **No license stated.** none stated in the repository (architecture MIT, Restormer) (no license file in the repository) | + +No license stated: the repository of the source checkpoint has no license, so its authors keep all rights to it. This file is shared for research and evaluation only, as the benchmark uses it; ask the authors before any other use. + +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). diff --git a/dbisf-IDBlau-Restormer/README.md b/dbisf-IDBlau-Restormer/README.md new file mode 100644 index 0000000000000000000000000000000000000000..458b2eac2087735a248d1c779d809f559847fda7 --- /dev/null +++ b/dbisf-IDBlau-Restormer/README.md @@ -0,0 +1,50 @@ +--- +license: other +license_name: no-license-stated +license_link: LICENSE.md +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-IDBlau-Restormer + +> **No license stated by the authors**: this file keeps the terms of its source checkpoint, no license stated (see `LICENSE.md`); without a license, the authors keep all rights. + +ID-Blau (Restormer) (ID-Blau: Image Deblurring by Implicit Diffusion-based reBLurring AUgmentation, CVPR 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' checkpoint (trained on GoPro) by the conversion 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/plusgood-steven/ID-Blau. + +The same checkpoint in other versions: [dbis-IDBlau-Restormer](https://huggingface.co/Illaitar/dbis/tree/main/dbis-IDBlau-Restormer). +Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis). + +## Use + +```bash +pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved" +python -m dbis.run dbisf-IDBlau-Restormer blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-IDBlau-Restormer/dbisf-IDBlau-Restormer.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-IDBlau-Restormer") # fetches only this folder's file 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 | +|---|---:|---:|---:| +| `dbisf-IDBlau-Restormer.wpk` | 26 MB | 33.5040 | 103.3 ms | +| the authors' code and checkpoint | 105 MB | 33.5110 | 151.1 ms | + +PSNR: the 1,111 GoPro test frames, 8-bit outputs, as the benchmark runs the method. Time: the benchmark's latency harness, one A100, batch 1 ([DBIS.md](https://github.com/illaitar/deblurring-is-solved/blob/main/DBIS.md)). + +`dbisf-IDBlau-Restormer.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). + +## Terms + +The file keeps the terms of the checkpoint it is made from: no license stated. See `LICENSE.md`. Cite the method's paper when you use its weights. diff --git a/dbisf-IDBlau-Restormer/dbisf-IDBlau-Restormer.json b/dbisf-IDBlau-Restormer/dbisf-IDBlau-Restormer.json new file mode 100644 index 0000000000000000000000000000000000000000..d2fe322f48d58e018b4696a8ca8af1e175ff318d --- /dev/null +++ b/dbisf-IDBlau-Restormer/dbisf-IDBlau-Restormer.json @@ -0,0 +1,28 @@ +{ + "model": "dbisf-IDBlau-Restormer", + "file": "dbisf-IDBlau-Restormer.wpk", + "path": "dbisf-IDBlau-Restormer/dbisf-IDBlau-Restormer.wpk", + "bytes": 25791384, + "sha256": "972adb1e01779a41b295bb5a64cc7e16bd537410ec6a9f4c76b0108660da14fa", + "store": "qc48", + "class": "dbis.restormer.Restormer", + "args": { + "centered": true, + "fast": true + }, + "source": { + "method": "ID-Blau (Restormer)", + "paper": "ID-Blau: Image Deblurring by Implicit Diffusion-based reBLurring AUgmentation", + "venue": "CVPR 2024", + "code": "https://github.com/plusgood-steven/ID-Blau", + "commit": "414a4a808034b7ed179a5f93d45caa739d54ebeb", + "license": "none stated in the repository (architecture MIT, Restormer)", + "group": "model_state", + "url": "https://drive.google.com/uc?id=10nYuvdK0y3MzoKjx3XvEQOAqGa93Nw3F", + "file": "Restormer_GoPro.pth", + "md5": "2d5faa5baf0141df908fbc55ecee643a", + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-IDBlau-Restormer\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-IDBlau-Restormer/dbisf-IDBlau-Restormer.wpk b/dbisf-IDBlau-Restormer/dbisf-IDBlau-Restormer.wpk new file mode 100644 index 0000000000000000000000000000000000000000..134782f8417d52fba74dc5cf6005e70fc883096b --- /dev/null +++ b/dbisf-IDBlau-Restormer/dbisf-IDBlau-Restormer.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:972adb1e01779a41b295bb5a64cc7e16bd537410ec6a9f4c76b0108660da14fa +size 25791384 diff --git a/dbisf-IR-SDE/LICENSE.md b/dbisf-IR-SDE/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..4dc57141e327fd238483de20ce4695704ba620d4 --- /dev/null +++ b/dbisf-IR-SDE/LICENSE.md @@ -0,0 +1,7 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-IR-SDE.wpk` | `ir-sde-deblurring.pth` of [Algolzw/image-restoration-sde](https://github.com/Algolzw/image-restoration-sde) (commit 2598d73) | MIT, Copyright (c) 2023 Ziwei Luo (`licenses/image-restoration-sde-LICENSE.txt`) | + +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). diff --git a/dbisf-IR-SDE/README.md b/dbisf-IR-SDE/README.md new file mode 100644 index 0000000000000000000000000000000000000000..3776fd79673e70e95b94847f8f908a759a3cc9d0 --- /dev/null +++ b/dbisf-IR-SDE/README.md @@ -0,0 +1,46 @@ +--- +license: mit +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-IR-SDE + +IR-SDE (Image Restoration with Mean-Reverting Stochastic Differential Equations, ICML 2023) 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' checkpoint (trained on GoPro) by the conversion 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/Algolzw/image-restoration-sde. + +The same checkpoint in other versions: [dbis-IR-SDE](https://huggingface.co/Illaitar/dbis/tree/main/dbis-IR-SDE). +Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis). + +## Use + +```bash +pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved" +python -m dbis.run dbisf-IR-SDE blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-IR-SDE/dbisf-IR-SDE.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-IR-SDE") # fetches only this folder's file 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 | +|---|---:|---:|---:| +| `dbisf-IR-SDE.wpk` | 232 MB | 27.9622 | 6.35 s | +| the authors' code and checkpoint | 549 MB | 27.9819 | 12.59 s | + +PSNR: the 1,111 GoPro test frames, 8-bit outputs, as the benchmark runs the method. Time: the benchmark's latency harness, one A100, batch 1 ([DBIS.md](https://github.com/illaitar/deblurring-is-solved/blob/main/DBIS.md)). + +`dbisf-IR-SDE.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). + +## Terms + +The file keeps the terms of the checkpoint it is made from: MIT. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbisf-IR-SDE/dbisf-IR-SDE.json b/dbisf-IR-SDE/dbisf-IR-SDE.json new file mode 100644 index 0000000000000000000000000000000000000000..2294b51111b791e05e891e58a91235b0ff2188ff --- /dev/null +++ b/dbisf-IR-SDE/dbisf-IR-SDE.json @@ -0,0 +1,38 @@ +{ + "model": "dbisf-IR-SDE", + "file": "dbisf-IR-SDE.wpk", + "path": "dbisf-IR-SDE/dbisf-IR-SDE.wpk", + "bytes": 232324554, + "sha256": "c30bab6563a68277d32279efbb381da13dba86a9b6a7284b7099fcb221f9aa05", + "store": "f16", + "class": "dbis.irsde.IRSDE", + "args": { + "in_nc": 3, + "out_nc": 3, + "nf": 64, + "depth": 4, + "max_sigma": 10, + "T": 100, + "eps": 0.005, + "seed": 0, + "fast": true, + "fast_dtype": "fp16", + "channels_last": true, + "fast_compile": "default" + }, + "source": { + "method": "IR-SDE", + "paper": "Image Restoration with Mean-Reverting Stochastic Differential Equations", + "venue": "ICML 2023", + "code": "https://github.com/Algolzw/image-restoration-sde", + "commit": "2598d73cde3a1e2cf78c4ba4923414e1f4b90393", + "license": "MIT, Copyright (c) 2023 Ziwei Luo", + "url": "https://drive.google.com/file/d/1MZzKbY8I63id4Ro3T5TWGNYM0-JIbpB2", + "file": "ir-sde-deblurring.pth", + "md5": "f3231f9aaea97867b0198288e7f703a7", + "group": null, + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-IR-SDE\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-IR-SDE/dbisf-IR-SDE.wpk b/dbisf-IR-SDE/dbisf-IR-SDE.wpk new file mode 100644 index 0000000000000000000000000000000000000000..5b696f542faad2a78a0b655a195044ce08e0569e --- /dev/null +++ b/dbisf-IR-SDE/dbisf-IR-SDE.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c30bab6563a68277d32279efbb381da13dba86a9b6a7284b7099fcb221f9aa05 +size 232324554 diff --git a/dbisf-IR-SDE/licenses/image-restoration-sde-LICENSE.txt b/dbisf-IR-SDE/licenses/image-restoration-sde-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..15720057f6a1ae157fe6dbe928947865c33c919f --- /dev/null +++ b/dbisf-IR-SDE/licenses/image-restoration-sde-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:118eaf90e2db91cbd03cc245e848a98ebe96eabd888389e223f02a827e5707b6 +size 1066 diff --git a/dbisf-LaKDNet-L/LICENSE.md b/dbisf-LaKDNet-L/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..3e054e661529133aa28ba7f23083c2496263b25f --- /dev/null +++ b/dbisf-LaKDNet-L/LICENSE.md @@ -0,0 +1,7 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-LaKDNet-L.wpk` | `train_on_gopro_l.pth` of [lingyanruan/LaKDNet](https://github.com/lingyanruan/LaKDNet) (commit 0c6b262) | AGPL-3.0 (GNU Affero General Public License v3), as the repository's LICENSE states (`licenses/LaKDNet-LICENSE.txt`) | + +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). diff --git a/dbisf-LaKDNet-L/README.md b/dbisf-LaKDNet-L/README.md new file mode 100644 index 0000000000000000000000000000000000000000..7919a73c34fbc6dce375a7471041e5a5f78efdcf --- /dev/null +++ b/dbisf-LaKDNet-L/README.md @@ -0,0 +1,46 @@ +--- +license: agpl-3.0 +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-LaKDNet-L + +LaKDNet (Revisiting Image Deblurring with an Efficient ConvNet, arXiv 2023 (2302.02234)) 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' checkpoint (trained on GoPro) by the conversion 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/lingyanruan/LaKDNet. + +The same checkpoint in other versions: [dbis-LaKDNet-L](https://huggingface.co/Illaitar/dbis/tree/main/dbis-LaKDNet-L). +Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis). + +## Use + +```bash +pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved" +python -m dbis.run dbisf-LaKDNet-L blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-LaKDNet-L/dbisf-LaKDNet-L.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-LaKDNet-L") # fetches only this folder's file 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 | +|---|---:|---:|---:| +| `dbisf-LaKDNet-L.wpk` | 44 MB | 33.7186 | 194.0 ms | +| the authors' code and checkpoint | 150 MB | 33.7222 | 257.7 ms | + +PSNR: the 1,111 GoPro test frames, 8-bit outputs, as the benchmark runs the method. Time: the benchmark's latency harness, one A100, batch 1 ([DBIS.md](https://github.com/illaitar/deblurring-is-solved/blob/main/DBIS.md)). + +`dbisf-LaKDNet-L.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). + +## Terms + +The file keeps the terms of the checkpoint it is made from: AGPL-3.0. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbisf-LaKDNet-L/dbisf-LaKDNet-L.json b/dbisf-LaKDNet-L/dbisf-LaKDNet-L.json new file mode 100644 index 0000000000000000000000000000000000000000..96b89e15da2ca4006a381e30fe16e737d6fd1720 --- /dev/null +++ b/dbisf-LaKDNet-L/dbisf-LaKDNet-L.json @@ -0,0 +1,28 @@ +{ + "model": "dbisf-LaKDNet-L", + "file": "dbisf-LaKDNet-L.wpk", + "path": "dbisf-LaKDNet-L/dbisf-LaKDNet-L.wpk", + "bytes": 43936689, + "sha256": "fcf827f9ea9ed960e495438af0c8a4a3c2c9af335de698b05305a8d2a7272595", + "store": "qc128", + "class": "dbis.lakdnet.LaKDNet", + "args": { + "dim": 48, + "fast": true + }, + "source": { + "method": "LaKDNet", + "paper": "Revisiting Image Deblurring with an Efficient ConvNet", + "venue": "arXiv 2023 (2302.02234)", + "code": "https://github.com/lingyanruan/LaKDNet", + "commit": "0c6b262cd84bfaa407d79e085010fa90ea7446e6", + "license": "AGPL-3.0 (GNU Affero General Public License v3), as the repository's LICENSE states", + "url": "https://lakdnet.mpi-inf.mpg.de/Weights/Motion/train_on_gopro_l/train_on_gopro_l.pth", + "file": "train_on_gopro_l.pth", + "md5": "8708f86bbe7457a3b860b4e8431ae628", + "group": null, + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-LaKDNet-L\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-LaKDNet-L/dbisf-LaKDNet-L.wpk b/dbisf-LaKDNet-L/dbisf-LaKDNet-L.wpk new file mode 100644 index 0000000000000000000000000000000000000000..bf5b14b58e65db2dbdb575d4db2afd9bdd192083 --- /dev/null +++ b/dbisf-LaKDNet-L/dbisf-LaKDNet-L.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fcf827f9ea9ed960e495438af0c8a4a3c2c9af335de698b05305a8d2a7272595 +size 43936689 diff --git a/dbisf-LaKDNet-L/licenses/LaKDNet-LICENSE.txt b/dbisf-LaKDNet-L/licenses/LaKDNet-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..851ad90126e58c2f3e0852391f7c272cc8975bcb --- /dev/null +++ b/dbisf-LaKDNet-L/licenses/LaKDNet-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8486a10c4393cee1c25392769ddd3b2d6c242d6ec7928e1414efff7dfb2f07ef +size 34523 diff --git a/dbisf-LaKDNet-S/LICENSE.md b/dbisf-LaKDNet-S/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..e2106fe3068a738d56eae098e20d175a0288e030 --- /dev/null +++ b/dbisf-LaKDNet-S/LICENSE.md @@ -0,0 +1,7 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-LaKDNet-S.wpk` | `train_on_gopro_s.pth` of [lingyanruan/LaKDNet](https://github.com/lingyanruan/LaKDNet) (commit 0c6b262) | AGPL-3.0 (GNU Affero General Public License v3), as the repository's LICENSE states (`licenses/LaKDNet-LICENSE.txt`) | + +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). diff --git a/dbisf-LaKDNet-S/README.md b/dbisf-LaKDNet-S/README.md new file mode 100644 index 0000000000000000000000000000000000000000..8d5ba45829181b9798b4ccc6b1c7251ae1e674e9 --- /dev/null +++ b/dbisf-LaKDNet-S/README.md @@ -0,0 +1,46 @@ +--- +license: agpl-3.0 +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-LaKDNet-S + +LaKDNet (Revisiting Image Deblurring with an Efficient ConvNet, arXiv 2023 (2302.02234)) 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' checkpoint (trained on GoPro) by the conversion 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/lingyanruan/LaKDNet. + +The same checkpoint in other versions: [dbis-LaKDNet-S](https://huggingface.co/Illaitar/dbis/tree/main/dbis-LaKDNet-S). +Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis). + +## Use + +```bash +pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved" +python -m dbis.run dbisf-LaKDNet-S blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-LaKDNet-S/dbisf-LaKDNet-S.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-LaKDNet-S") # fetches only this folder's file 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 | +|---|---:|---:|---:| +| `dbisf-LaKDNet-S.wpk` | 20 MB | 33.3463 | 127.5 ms | +| the authors' code and checkpoint | 69 MB | 33.3524 | 165.9 ms | + +PSNR: the 1,111 GoPro test frames, 8-bit outputs, as the benchmark runs the method. Time: the benchmark's latency harness, one A100, batch 1 ([DBIS.md](https://github.com/illaitar/deblurring-is-solved/blob/main/DBIS.md)). + +`dbisf-LaKDNet-S.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). + +## Terms + +The file keeps the terms of the checkpoint it is made from: AGPL-3.0. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbisf-LaKDNet-S/dbisf-LaKDNet-S.json b/dbisf-LaKDNet-S/dbisf-LaKDNet-S.json new file mode 100644 index 0000000000000000000000000000000000000000..5cc848714ab3793cf10826735795dcf96607ff58 --- /dev/null +++ b/dbisf-LaKDNet-S/dbisf-LaKDNet-S.json @@ -0,0 +1,28 @@ +{ + "model": "dbisf-LaKDNet-S", + "file": "dbisf-LaKDNet-S.wpk", + "path": "dbisf-LaKDNet-S/dbisf-LaKDNet-S.wpk", + "bytes": 20409898, + "sha256": "4f1ab978d54ca148dea4cbfb3954d57e5e9f6c0b3de80e13bbe49be13e7cf5e6", + "store": "qc128", + "class": "dbis.lakdnet.LaKDNet", + "args": { + "dim": 32, + "fast": true + }, + "source": { + "method": "LaKDNet", + "paper": "Revisiting Image Deblurring with an Efficient ConvNet", + "venue": "arXiv 2023 (2302.02234)", + "code": "https://github.com/lingyanruan/LaKDNet", + "commit": "0c6b262cd84bfaa407d79e085010fa90ea7446e6", + "license": "AGPL-3.0 (GNU Affero General Public License v3), as the repository's LICENSE states", + "url": "https://lakdnet.mpi-inf.mpg.de/Weights/Motion/train_on_gopro_s/train_on_gopro_s.pth", + "file": "train_on_gopro_s.pth", + "md5": "37d75d71c4e378c7f32b6f22d78e951b", + "group": null, + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-LaKDNet-S\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-LaKDNet-S/dbisf-LaKDNet-S.wpk b/dbisf-LaKDNet-S/dbisf-LaKDNet-S.wpk new file mode 100644 index 0000000000000000000000000000000000000000..539337a1a4988c5ef58869303ab13c39504771e2 --- /dev/null +++ b/dbisf-LaKDNet-S/dbisf-LaKDNet-S.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f1ab978d54ca148dea4cbfb3954d57e5e9f6c0b3de80e13bbe49be13e7cf5e6 +size 20409898 diff --git a/dbisf-LaKDNet-S/licenses/LaKDNet-LICENSE.txt b/dbisf-LaKDNet-S/licenses/LaKDNet-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..851ad90126e58c2f3e0852391f7c272cc8975bcb --- /dev/null +++ b/dbisf-LaKDNet-S/licenses/LaKDNet-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8486a10c4393cee1c25392769ddd3b2d6c242d6ec7928e1414efff7dfb2f07ef +size 34523 diff --git a/dbisf-LoFormer-L/LICENSE.md b/dbisf-LoFormer-L/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..8ee17ffcff5757151095e09619490e25610f8668 --- /dev/null +++ b/dbisf-LoFormer-L/LICENSE.md @@ -0,0 +1,9 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-LoFormer-L.wpk` | `net_g_GoPro.pth` of [INVOKERer/LoFormer](https://github.com/INVOKERer/LoFormer) (commit 5c20415) | **Non-commercial use only.** Academic Public License (LICENSE.md of the repository): non-commercial use only, same license, keep the notice (`licenses/LoFormer-LICENSE.txt`) | + +Non-commercial: the license of the source checkpoint allows non-commercial use only, and so does this file. + +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). diff --git a/dbisf-LoFormer-L/README.md b/dbisf-LoFormer-L/README.md new file mode 100644 index 0000000000000000000000000000000000000000..d4ba5d2769b833da1e102e953c346192c2452646 --- /dev/null +++ b/dbisf-LoFormer-L/README.md @@ -0,0 +1,50 @@ +--- +license: other +license_name: non-commercial-terms-of-the-authors +license_link: LICENSE.md +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-LoFormer-L + +> **Non-commercial use only**: this file keeps the terms of its source checkpoint, Academic Public License, non-commercial (see `LICENSE.md`). + +LoFormer (LoFormer: Local Frequency Transformer for Image Deblurring, ACM MM 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' checkpoint (trained on GoPro) by the conversion 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/INVOKERer/LoFormer. + +The same checkpoint in other versions: [dbis-LoFormer-L](https://huggingface.co/Illaitar/dbis/tree/main/dbis-LoFormer-L). +Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis). + +## Use + +```bash +pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved" +python -m dbis.run dbisf-LoFormer-L blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-LoFormer-L/dbisf-LoFormer-L.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-LoFormer-L") # fetches only this folder's file 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 | +|---|---:|---:|---:| +| `dbisf-LoFormer-L.wpk` | 45 MB | 33.3284 | 181.2 ms | +| the authors' code and checkpoint | 197 MB | 33.3514 | 840.0 ms | + +PSNR: the 1,111 GoPro test frames, 8-bit outputs, as the benchmark runs the method. Time: the benchmark's latency harness, one A100, batch 1 ([DBIS.md](https://github.com/illaitar/deblurring-is-solved/blob/main/DBIS.md)). + +`dbisf-LoFormer-L.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). + +## Terms + +The file keeps the terms of the checkpoint it is made from: Academic Public License, non-commercial. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbisf-LoFormer-L/dbisf-LoFormer-L.json b/dbisf-LoFormer-L/dbisf-LoFormer-L.json new file mode 100644 index 0000000000000000000000000000000000000000..e8e0f27db9f1274af85d101ae60b4d3106d2f86a --- /dev/null +++ b/dbisf-LoFormer-L/dbisf-LoFormer-L.json @@ -0,0 +1,29 @@ +{ + "model": "dbisf-LoFormer-L", + "file": "dbisf-LoFormer-L.wpk", + "path": "dbisf-LoFormer-L/dbisf-LoFormer-L.wpk", + "bytes": 45441691, + "sha256": "810e613afe899bd77f6d366af57bba469d43261eb7ad687f1a4078e7f7da2150", + "store": "qc32", + "class": "dbis.loformer.LoFormer", + "args": { + "fast": true, + "fast_dtype": "fp16", + "fast_dct": "fft2" + }, + "source": { + "method": "LoFormer", + "paper": "LoFormer: Local Frequency Transformer for Image Deblurring", + "venue": "ACM MM 2024", + "code": "https://github.com/INVOKERer/LoFormer", + "commit": "5c2041591ececb5fcc7df51b2d6ab1ae4bf3f50c", + "license": "Academic Public License (LICENSE.md of the repository): non-commercial use only, same license, keep the notice", + "url": "https://drive.google.com/drive/folders/1gPh3tjShDSKhBhbm6OtL_4caYkwDr2lW (ckpt/Loformer-L)", + "file": "net_g_GoPro.pth", + "md5": "62af8f876be8d7100e6640893cca81ca", + "group": "params", + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-LoFormer-L\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-LoFormer-L/dbisf-LoFormer-L.wpk b/dbisf-LoFormer-L/dbisf-LoFormer-L.wpk new file mode 100644 index 0000000000000000000000000000000000000000..8d1c8c22ffd83f90a5c3a4806c27ea2204ed7629 --- /dev/null +++ b/dbisf-LoFormer-L/dbisf-LoFormer-L.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:810e613afe899bd77f6d366af57bba469d43261eb7ad687f1a4078e7f7da2150 +size 45441691 diff --git a/dbisf-LoFormer-L/licenses/LoFormer-LICENSE.txt b/dbisf-LoFormer-L/licenses/LoFormer-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..cfefd91687a0767525b090a9e0f437edc80f13f0 --- /dev/null +++ b/dbisf-LoFormer-L/licenses/LoFormer-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:52a05e70f19a0d04af725c09c039b7006feb9c09cabc962e12a8912e6cdef00a +size 1343 diff --git a/dbisf-M3SNet-32-TLC/LICENSE.md b/dbisf-M3SNet-32-TLC/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..5352c461e310dfc0dcb668b050204defe270ee83 --- /dev/null +++ b/dbisf-M3SNet-32-TLC/LICENSE.md @@ -0,0 +1,9 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-M3SNet-32.wpk` | `deblur_model_best_32.pth` of [Tombs98/M3SNet](https://github.com/Tombs98/M3SNet) (commit 3e16bd2) | **Non-commercial use only.** ACADEMIC PUBLIC LICENSE (LICENSE.md of the repo): non-commercial use, modification and distribution only, license and copyright notice required, same license; no commercial use (`licenses/M3SNet-LICENSE.txt`) | + +Non-commercial: the license of the source checkpoint allows non-commercial use only, and so does this file. + +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). diff --git a/dbisf-M3SNet-32-TLC/README.md b/dbisf-M3SNet-32-TLC/README.md new file mode 100644 index 0000000000000000000000000000000000000000..8ee71fe3b24e06b92b67ec8c567715922f44e47b --- /dev/null +++ b/dbisf-M3SNet-32-TLC/README.md @@ -0,0 +1,50 @@ +--- +license: other +license_name: non-commercial-terms-of-the-authors +license_link: LICENSE.md +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-M3SNet-32-TLC + +> **Non-commercial use only**: this file keeps the terms of its source checkpoint, Academic Public License, non-commercial (see `LICENSE.md`). + +M3SNet (A Mountain-Shaped Single-Stage Network for Accurate Image Restoration (Gao et al.), arXiv 2305.05146, 2023) 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' checkpoint (trained on GoPro) by the conversion 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/Tombs98/M3SNet. + +The same checkpoint in other versions: [dbis-M3SNet-32](https://huggingface.co/Illaitar/dbis/tree/main/dbis-M3SNet-32), [dbis-M3SNet-32-TLC](https://huggingface.co/Illaitar/dbis/tree/main/dbis-M3SNet-32-TLC), [dbisf-M3SNet-32](https://huggingface.co/Illaitar/dbis/tree/main/dbisf-M3SNet-32). +Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis). + +## Use + +```bash +pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved" +python -m dbis.run dbisf-M3SNet-32-TLC blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-M3SNet-32-TLC/dbisf-M3SNet-32.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-M3SNet-32-TLC") # fetches only this folder's file 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 | +|---|---:|---:|---:| +| `dbisf-M3SNet-32.wpk` | 29 MB | 32.9024 | 15.7 ms | +| the authors' code and checkpoint | 67 MB | – | 66.8 ms | + +PSNR: the 1,111 GoPro test frames, 8-bit outputs, as the benchmark runs the method. Time: the benchmark's latency harness, one A100, batch 1 ([DBIS.md](https://github.com/illaitar/deblurring-is-solved/blob/main/DBIS.md)). + +`dbisf-M3SNet-32.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). + +## Terms + +The file keeps the terms of the checkpoint it is made from: Academic Public License, non-commercial. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbisf-M3SNet-32-TLC/dbisf-M3SNet-32.json b/dbisf-M3SNet-32-TLC/dbisf-M3SNet-32.json new file mode 100644 index 0000000000000000000000000000000000000000..307e31bd8fb35e52edcf80672f69cba4724cfbe0 --- /dev/null +++ b/dbisf-M3SNet-32-TLC/dbisf-M3SNet-32.json @@ -0,0 +1,33 @@ +{ + "model": "dbisf-M3SNet-32-TLC", + "file": "dbisf-M3SNet-32.wpk", + "path": "dbisf-M3SNet-32-TLC/dbisf-M3SNet-32.wpk", + "bytes": 28833888, + "sha256": "34690ea7c3c17be238423ced2544d4899e428010696253036477004fa6a26de4", + "store": "f16", + "class": "dbis.m3snet.M3SNet", + "args": { + "width": 32, + "tlc": "exact", + "fast": true, + "scales": { + "stream_scale": 4, + "block_scales": {} + } + }, + "source": { + "method": "M3SNet", + "paper": "A Mountain-Shaped Single-Stage Network for Accurate Image Restoration (Gao et al.)", + "venue": "arXiv 2305.05146, 2023", + "code": "https://github.com/Tombs98/M3SNet", + "commit": "3e16bd2aad7aadb4130575286dfa357cfce36007", + "license": "ACADEMIC PUBLIC LICENSE (LICENSE.md of the repo): non-commercial use, modification and distribution only, license and copyright notice required, same license; no commercial use", + "group": "state_dict", + "trained_on": "GoPro", + "url": "https://drive.google.com/file/d/15X6dUwvt1txXA1kOEyEHcvvQ_i7dVlVa (authors' Google Drive folder 1y4BEX7LagtXVO98ZItSbJJl7WWM3gnbD)", + "file": "deblur_model_best_32.pth", + "md5": "7c3b36f842e2082401667b2b717fc13d" + }, + "load": "import dbis; net = dbis.load(\"dbisf-M3SNet-32-TLC\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-M3SNet-32-TLC/dbisf-M3SNet-32.wpk b/dbisf-M3SNet-32-TLC/dbisf-M3SNet-32.wpk new file mode 100644 index 0000000000000000000000000000000000000000..ceb3a077c65b345c880934416888f3c32d807afa --- /dev/null +++ b/dbisf-M3SNet-32-TLC/dbisf-M3SNet-32.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:34690ea7c3c17be238423ced2544d4899e428010696253036477004fa6a26de4 +size 28833888 diff --git a/dbisf-M3SNet-32-TLC/licenses/M3SNet-LICENSE.txt b/dbisf-M3SNet-32-TLC/licenses/M3SNet-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..ff58fdf3d2bbe612636e0f6c71b7b5d7d03c154e --- /dev/null +++ b/dbisf-M3SNet-32-TLC/licenses/M3SNet-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:512b837ce0e60d309e6481ca795eac2445c21f5cf84a908cd9cc2bcf6818cf9c +size 1320 diff --git a/dbisf-M3SNet-32/LICENSE.md b/dbisf-M3SNet-32/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..5352c461e310dfc0dcb668b050204defe270ee83 --- /dev/null +++ b/dbisf-M3SNet-32/LICENSE.md @@ -0,0 +1,9 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-M3SNet-32.wpk` | `deblur_model_best_32.pth` of [Tombs98/M3SNet](https://github.com/Tombs98/M3SNet) (commit 3e16bd2) | **Non-commercial use only.** ACADEMIC PUBLIC LICENSE (LICENSE.md of the repo): non-commercial use, modification and distribution only, license and copyright notice required, same license; no commercial use (`licenses/M3SNet-LICENSE.txt`) | + +Non-commercial: the license of the source checkpoint allows non-commercial use only, and so does this file. + +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). diff --git a/dbisf-M3SNet-32/README.md b/dbisf-M3SNet-32/README.md new file mode 100644 index 0000000000000000000000000000000000000000..f7aea1a995af70d70f3b2c3e29a41882abcd834f --- /dev/null +++ b/dbisf-M3SNet-32/README.md @@ -0,0 +1,50 @@ +--- +license: other +license_name: non-commercial-terms-of-the-authors +license_link: LICENSE.md +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-M3SNet-32 + +> **Non-commercial use only**: this file keeps the terms of its source checkpoint, Academic Public License, non-commercial (see `LICENSE.md`). + +M3SNet (A Mountain-Shaped Single-Stage Network for Accurate Image Restoration (Gao et al.), arXiv 2305.05146, 2023) 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' checkpoint (trained on GoPro) by the conversion 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/Tombs98/M3SNet. + +The same checkpoint in other versions: [dbis-M3SNet-32](https://huggingface.co/Illaitar/dbis/tree/main/dbis-M3SNet-32), [dbis-M3SNet-32-TLC](https://huggingface.co/Illaitar/dbis/tree/main/dbis-M3SNet-32-TLC), [dbisf-M3SNet-32-TLC](https://huggingface.co/Illaitar/dbis/tree/main/dbisf-M3SNet-32-TLC). +Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis). + +## Use + +```bash +pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved" +python -m dbis.run dbisf-M3SNet-32 blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-M3SNet-32/dbisf-M3SNet-32.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-M3SNet-32") # fetches only this folder's file 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 | +|---|---:|---:|---:| +| `dbisf-M3SNet-32.wpk` | 29 MB | 32.3241 | 14.5 ms | +| the authors' code and checkpoint | 67 MB | 32.3243 | 54.6 ms | + +PSNR: the 1,111 GoPro test frames, 8-bit outputs, as the benchmark runs the method. Time: the benchmark's latency harness, one A100, batch 1 ([DBIS.md](https://github.com/illaitar/deblurring-is-solved/blob/main/DBIS.md)). + +`dbisf-M3SNet-32.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). + +## Terms + +The file keeps the terms of the checkpoint it is made from: Academic Public License, non-commercial. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbisf-M3SNet-32/dbisf-M3SNet-32.json b/dbisf-M3SNet-32/dbisf-M3SNet-32.json new file mode 100644 index 0000000000000000000000000000000000000000..a61b5421a0aa8e00ab493ab09ba87ce252a25dbc --- /dev/null +++ b/dbisf-M3SNet-32/dbisf-M3SNet-32.json @@ -0,0 +1,33 @@ +{ + "model": "dbisf-M3SNet-32", + "file": "dbisf-M3SNet-32.wpk", + "path": "dbisf-M3SNet-32/dbisf-M3SNet-32.wpk", + "bytes": 28833888, + "sha256": "34690ea7c3c17be238423ced2544d4899e428010696253036477004fa6a26de4", + "store": "f16", + "class": "dbis.m3snet.M3SNet", + "args": { + "width": 32, + "tlc": null, + "fast": true, + "scales": { + "stream_scale": 4, + "block_scales": {} + } + }, + "source": { + "method": "M3SNet", + "paper": "A Mountain-Shaped Single-Stage Network for Accurate Image Restoration (Gao et al.)", + "venue": "arXiv 2305.05146, 2023", + "code": "https://github.com/Tombs98/M3SNet", + "commit": "3e16bd2aad7aadb4130575286dfa357cfce36007", + "license": "ACADEMIC PUBLIC LICENSE (LICENSE.md of the repo): non-commercial use, modification and distribution only, license and copyright notice required, same license; no commercial use", + "group": "state_dict", + "trained_on": "GoPro", + "url": "https://drive.google.com/file/d/15X6dUwvt1txXA1kOEyEHcvvQ_i7dVlVa (authors' Google Drive folder 1y4BEX7LagtXVO98ZItSbJJl7WWM3gnbD)", + "file": "deblur_model_best_32.pth", + "md5": "7c3b36f842e2082401667b2b717fc13d" + }, + "load": "import dbis; net = dbis.load(\"dbisf-M3SNet-32\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-M3SNet-32/dbisf-M3SNet-32.wpk b/dbisf-M3SNet-32/dbisf-M3SNet-32.wpk new file mode 100644 index 0000000000000000000000000000000000000000..ceb3a077c65b345c880934416888f3c32d807afa --- /dev/null +++ b/dbisf-M3SNet-32/dbisf-M3SNet-32.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:34690ea7c3c17be238423ced2544d4899e428010696253036477004fa6a26de4 +size 28833888 diff --git a/dbisf-M3SNet-32/licenses/M3SNet-LICENSE.txt b/dbisf-M3SNet-32/licenses/M3SNet-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..ff58fdf3d2bbe612636e0f6c71b7b5d7d03c154e --- /dev/null +++ b/dbisf-M3SNet-32/licenses/M3SNet-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:512b837ce0e60d309e6481ca795eac2445c21f5cf84a908cd9cc2bcf6818cf9c +size 1320 diff --git a/dbisf-M3SNet-64-TLC/LICENSE.md b/dbisf-M3SNet-64-TLC/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..4386f8acda85f010c5d1b61c19fbcdd853e78f9a --- /dev/null +++ b/dbisf-M3SNet-64-TLC/LICENSE.md @@ -0,0 +1,9 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-M3SNet-64.wpk` | `deblur_model_best-64.pth` of [Tombs98/M3SNet](https://github.com/Tombs98/M3SNet) (commit 3e16bd2) | **Non-commercial use only.** ACADEMIC PUBLIC LICENSE (LICENSE.md of the repo): non-commercial use, modification and distribution only, license and copyright notice required, same license; no commercial use (`licenses/M3SNet-LICENSE.txt`) | + +Non-commercial: the license of the source checkpoint allows non-commercial use only, and so does this file. + +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). diff --git a/dbisf-M3SNet-64-TLC/README.md b/dbisf-M3SNet-64-TLC/README.md new file mode 100644 index 0000000000000000000000000000000000000000..ee998457954e35e15bcc557de7079cc38527e1b2 --- /dev/null +++ b/dbisf-M3SNet-64-TLC/README.md @@ -0,0 +1,50 @@ +--- +license: other +license_name: non-commercial-terms-of-the-authors +license_link: LICENSE.md +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-M3SNet-64-TLC + +> **Non-commercial use only**: this file keeps the terms of its source checkpoint, Academic Public License, non-commercial (see `LICENSE.md`). + +M3SNet (A Mountain-Shaped Single-Stage Network for Accurate Image Restoration (Gao et al.), arXiv 2305.05146, 2023) 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' checkpoint (trained on GoPro) by the conversion 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/Tombs98/M3SNet. + +The same checkpoint in other versions: [dbis-M3SNet-64](https://huggingface.co/Illaitar/dbis/tree/main/dbis-M3SNet-64), [dbis-M3SNet-64-TLC](https://huggingface.co/Illaitar/dbis/tree/main/dbis-M3SNet-64-TLC), [dbisf-M3SNet-64](https://huggingface.co/Illaitar/dbis/tree/main/dbisf-M3SNet-64). +Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis). + +## Use + +```bash +pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved" +python -m dbis.run dbisf-M3SNet-64-TLC blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-M3SNet-64-TLC/dbisf-M3SNet-64.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-M3SNet-64-TLC") # fetches only this folder's file 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 | +|---|---:|---:|---:| +| `dbisf-M3SNet-64.wpk` | 114 MB | 33.7267 | 33.9 ms | +| the authors' code and checkpoint | 266 MB | – | 47.9 ms | + +PSNR: the 1,111 GoPro test frames, 8-bit outputs, as the benchmark runs the method. Time: the benchmark's latency harness, one A100, batch 1 ([DBIS.md](https://github.com/illaitar/deblurring-is-solved/blob/main/DBIS.md)). + +`dbisf-M3SNet-64.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). + +## Terms + +The file keeps the terms of the checkpoint it is made from: Academic Public License, non-commercial. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbisf-M3SNet-64-TLC/dbisf-M3SNet-64.json b/dbisf-M3SNet-64-TLC/dbisf-M3SNet-64.json new file mode 100644 index 0000000000000000000000000000000000000000..1aa3b7ac09892b4232cf0135fd07355e0d0cb76e --- /dev/null +++ b/dbisf-M3SNet-64-TLC/dbisf-M3SNet-64.json @@ -0,0 +1,33 @@ +{ + "model": "dbisf-M3SNet-64-TLC", + "file": "dbisf-M3SNet-64.wpk", + "path": "dbisf-M3SNet-64-TLC/dbisf-M3SNet-64.wpk", + "bytes": 113512390, + "sha256": "a9a18bca9c4c7afa23225d97c73f21de947a70b9d87c7055280e77f0cf076932", + "store": "f16", + "class": "dbis.m3snet.M3SNet", + "args": { + "width": 64, + "tlc": "exact", + "fast": true, + "scales": { + "stream_scale": 8, + "block_scales": {} + } + }, + "source": { + "method": "M3SNet", + "paper": "A Mountain-Shaped Single-Stage Network for Accurate Image Restoration (Gao et al.)", + "venue": "arXiv 2305.05146, 2023", + "code": "https://github.com/Tombs98/M3SNet", + "commit": "3e16bd2aad7aadb4130575286dfa357cfce36007", + "license": "ACADEMIC PUBLIC LICENSE (LICENSE.md of the repo): non-commercial use, modification and distribution only, license and copyright notice required, same license; no commercial use", + "group": "state_dict", + "trained_on": "GoPro", + "url": "https://drive.google.com/file/d/1CJeRsQr-Jzxs_a5pe85OyTZZHxzUj7Ws (authors' Google Drive folder 1y4BEX7LagtXVO98ZItSbJJl7WWM3gnbD)", + "file": "deblur_model_best-64.pth", + "md5": "f8a0abfa88282cea8c356761814f0e14" + }, + "load": "import dbis; net = dbis.load(\"dbisf-M3SNet-64-TLC\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-M3SNet-64-TLC/dbisf-M3SNet-64.wpk b/dbisf-M3SNet-64-TLC/dbisf-M3SNet-64.wpk new file mode 100644 index 0000000000000000000000000000000000000000..5e6b34637f1d6e2934d976c2ad5031cd755f3449 --- /dev/null +++ b/dbisf-M3SNet-64-TLC/dbisf-M3SNet-64.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a9a18bca9c4c7afa23225d97c73f21de947a70b9d87c7055280e77f0cf076932 +size 113512390 diff --git a/dbisf-M3SNet-64-TLC/licenses/M3SNet-LICENSE.txt b/dbisf-M3SNet-64-TLC/licenses/M3SNet-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..ff58fdf3d2bbe612636e0f6c71b7b5d7d03c154e --- /dev/null +++ b/dbisf-M3SNet-64-TLC/licenses/M3SNet-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:512b837ce0e60d309e6481ca795eac2445c21f5cf84a908cd9cc2bcf6818cf9c +size 1320 diff --git a/dbisf-M3SNet-64/LICENSE.md b/dbisf-M3SNet-64/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..4386f8acda85f010c5d1b61c19fbcdd853e78f9a --- /dev/null +++ b/dbisf-M3SNet-64/LICENSE.md @@ -0,0 +1,9 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-M3SNet-64.wpk` | `deblur_model_best-64.pth` of [Tombs98/M3SNet](https://github.com/Tombs98/M3SNet) (commit 3e16bd2) | **Non-commercial use only.** ACADEMIC PUBLIC LICENSE (LICENSE.md of the repo): non-commercial use, modification and distribution only, license and copyright notice required, same license; no commercial use (`licenses/M3SNet-LICENSE.txt`) | + +Non-commercial: the license of the source checkpoint allows non-commercial use only, and so does this file. + +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). diff --git a/dbisf-M3SNet-64/README.md b/dbisf-M3SNet-64/README.md new file mode 100644 index 0000000000000000000000000000000000000000..cb4f181dfb1f4866d474529ea676b6ec827245de --- /dev/null +++ b/dbisf-M3SNet-64/README.md @@ -0,0 +1,50 @@ +--- +license: other +license_name: non-commercial-terms-of-the-authors +license_link: LICENSE.md +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-M3SNet-64 + +> **Non-commercial use only**: this file keeps the terms of its source checkpoint, Academic Public License, non-commercial (see `LICENSE.md`). + +M3SNet (A Mountain-Shaped Single-Stage Network for Accurate Image Restoration (Gao et al.), arXiv 2305.05146, 2023) 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' checkpoint (trained on GoPro) by the conversion 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/Tombs98/M3SNet. + +The same checkpoint in other versions: [dbis-M3SNet-64](https://huggingface.co/Illaitar/dbis/tree/main/dbis-M3SNet-64), [dbis-M3SNet-64-TLC](https://huggingface.co/Illaitar/dbis/tree/main/dbis-M3SNet-64-TLC), [dbisf-M3SNet-64-TLC](https://huggingface.co/Illaitar/dbis/tree/main/dbisf-M3SNet-64-TLC). +Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis). + +## Use + +```bash +pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved" +python -m dbis.run dbisf-M3SNet-64 blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-M3SNet-64/dbisf-M3SNet-64.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-M3SNet-64") # fetches only this folder's file 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 | +|---|---:|---:|---:| +| `dbisf-M3SNet-64.wpk` | 114 MB | 33.0901 | 31.7 ms | +| the authors' code and checkpoint | 266 MB | 33.0904 | 35.4 ms | + +PSNR: the 1,111 GoPro test frames, 8-bit outputs, as the benchmark runs the method. Time: the benchmark's latency harness, one A100, batch 1 ([DBIS.md](https://github.com/illaitar/deblurring-is-solved/blob/main/DBIS.md)). + +`dbisf-M3SNet-64.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). + +## Terms + +The file keeps the terms of the checkpoint it is made from: Academic Public License, non-commercial. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbisf-M3SNet-64/dbisf-M3SNet-64.json b/dbisf-M3SNet-64/dbisf-M3SNet-64.json new file mode 100644 index 0000000000000000000000000000000000000000..21f82062f83a68df483fd9a5c8414a00d0b8a2d0 --- /dev/null +++ b/dbisf-M3SNet-64/dbisf-M3SNet-64.json @@ -0,0 +1,33 @@ +{ + "model": "dbisf-M3SNet-64", + "file": "dbisf-M3SNet-64.wpk", + "path": "dbisf-M3SNet-64/dbisf-M3SNet-64.wpk", + "bytes": 113512390, + "sha256": "a9a18bca9c4c7afa23225d97c73f21de947a70b9d87c7055280e77f0cf076932", + "store": "f16", + "class": "dbis.m3snet.M3SNet", + "args": { + "width": 64, + "tlc": null, + "fast": true, + "scales": { + "stream_scale": 8, + "block_scales": {} + } + }, + "source": { + "method": "M3SNet", + "paper": "A Mountain-Shaped Single-Stage Network for Accurate Image Restoration (Gao et al.)", + "venue": "arXiv 2305.05146, 2023", + "code": "https://github.com/Tombs98/M3SNet", + "commit": "3e16bd2aad7aadb4130575286dfa357cfce36007", + "license": "ACADEMIC PUBLIC LICENSE (LICENSE.md of the repo): non-commercial use, modification and distribution only, license and copyright notice required, same license; no commercial use", + "group": "state_dict", + "trained_on": "GoPro", + "url": "https://drive.google.com/file/d/1CJeRsQr-Jzxs_a5pe85OyTZZHxzUj7Ws (authors' Google Drive folder 1y4BEX7LagtXVO98ZItSbJJl7WWM3gnbD)", + "file": "deblur_model_best-64.pth", + "md5": "f8a0abfa88282cea8c356761814f0e14" + }, + "load": "import dbis; net = dbis.load(\"dbisf-M3SNet-64\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-M3SNet-64/dbisf-M3SNet-64.wpk b/dbisf-M3SNet-64/dbisf-M3SNet-64.wpk new file mode 100644 index 0000000000000000000000000000000000000000..5e6b34637f1d6e2934d976c2ad5031cd755f3449 --- /dev/null +++ b/dbisf-M3SNet-64/dbisf-M3SNet-64.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a9a18bca9c4c7afa23225d97c73f21de947a70b9d87c7055280e77f0cf076932 +size 113512390 diff --git a/dbisf-M3SNet-64/licenses/M3SNet-LICENSE.txt b/dbisf-M3SNet-64/licenses/M3SNet-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..ff58fdf3d2bbe612636e0f6c71b7b5d7d03c154e --- /dev/null +++ b/dbisf-M3SNet-64/licenses/M3SNet-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:512b837ce0e60d309e6481ca795eac2445c21f5cf84a908cd9cc2bcf6818cf9c +size 1320 diff --git a/dbisf-MAXIM-3S/LICENSE.md b/dbisf-MAXIM-3S/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..27fc75447fd505d78f067a8e5398fbf9600e9e19 --- /dev/null +++ b/dbisf-MAXIM-3S/LICENSE.md @@ -0,0 +1,7 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-MAXIM-3S.wpk` | `checkpoint.npz` of [google-research/maxim](https://github.com/google-research/maxim) (commit 3c82651) | Apache-2.0, Copyright 2022 Google LLC (`licenses/maxim-LICENSE.txt`) | + +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). diff --git a/dbisf-MAXIM-3S/README.md b/dbisf-MAXIM-3S/README.md new file mode 100644 index 0000000000000000000000000000000000000000..78b31270a79c8eb551f6c260630fa63d3450d30b --- /dev/null +++ b/dbisf-MAXIM-3S/README.md @@ -0,0 +1,46 @@ +--- +license: apache-2.0 +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-MAXIM-3S + +MAXIM (MAXIM: Multi-Axis MLP for Image Processing, CVPR 2022) 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' checkpoint (trained on GoPro) by the conversion 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/google-research/maxim. + +The same checkpoint in other versions: [dbis-MAXIM-3S](https://huggingface.co/Illaitar/dbis/tree/main/dbis-MAXIM-3S). +Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis). + +## Use + +```bash +pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved" +python -m dbis.run dbisf-MAXIM-3S blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-MAXIM-3S/dbisf-MAXIM-3S.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-MAXIM-3S") # fetches only this folder's file 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 | +|---|---:|---:|---:| +| `dbisf-MAXIM-3S.wpk` | 26 MB | 32.8950 | 108.7 ms | +| the authors' code and checkpoint | 270 MB | 32.9002 | 427.6 ms | + +PSNR: the 1,111 GoPro test frames, 8-bit outputs, as the benchmark runs the method. Time: the benchmark's latency harness, one A100, batch 1 ([DBIS.md](https://github.com/illaitar/deblurring-is-solved/blob/main/DBIS.md)). + +`dbisf-MAXIM-3S.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). + +## Terms + +The file keeps the terms of the checkpoint it is made from: Apache-2.0. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbisf-MAXIM-3S/dbisf-MAXIM-3S.json b/dbisf-MAXIM-3S/dbisf-MAXIM-3S.json new file mode 100644 index 0000000000000000000000000000000000000000..385edf01916d416dcad11b1d51a49d8d5cc00210 --- /dev/null +++ b/dbisf-MAXIM-3S/dbisf-MAXIM-3S.json @@ -0,0 +1,28 @@ +{ + "model": "dbisf-MAXIM-3S", + "file": "dbisf-MAXIM-3S.wpk", + "path": "dbisf-MAXIM-3S/dbisf-MAXIM-3S.wpk", + "bytes": 25628823, + "sha256": "cf604a121ec7f89e77d03dfe8e071c4a7efeb8e0f20e50a669422650590c3198", + "store": "qc128", + "class": "dbis.maxim.MAXIM", + "args": { + "fast": true + }, + "source": { + "method": "MAXIM", + "paper": "MAXIM: Multi-Axis MLP for Image Processing", + "venue": "CVPR 2022", + "code": "https://github.com/google-research/maxim", + "commit": "3c8265171ffccc80c3c9124844aef0d381609956", + "license": "Apache-2.0, Copyright 2022 Google LLC", + "file": "checkpoint.npz", + "group": null, + "url": "https://storage.googleapis.com/gresearch/maxim/ckpt/Deblurring/GoPro/checkpoint.npz", + "md5": "dbe224795c3fad8986bbad05d232ea34", + "trained_on": "GoPro", + "local": "weights/baselines/MAXIM/checkpoint.npz" + }, + "load": "import dbis; net = dbis.load(\"dbisf-MAXIM-3S\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-MAXIM-3S/dbisf-MAXIM-3S.wpk b/dbisf-MAXIM-3S/dbisf-MAXIM-3S.wpk new file mode 100644 index 0000000000000000000000000000000000000000..cb1959d86aa88fb0bae1884839c178b5e727ea26 --- /dev/null +++ b/dbisf-MAXIM-3S/dbisf-MAXIM-3S.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cf604a121ec7f89e77d03dfe8e071c4a7efeb8e0f20e50a669422650590c3198 +size 25628823 diff --git a/dbisf-MAXIM-3S/licenses/maxim-LICENSE.txt b/dbisf-MAXIM-3S/licenses/maxim-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..26868171b1c8b1964d677e0c1a4b36b578e18f1f --- /dev/null +++ b/dbisf-MAXIM-3S/licenses/maxim-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:58d1e17ffe5109a7ae296caafcadfdbe6a7d176f0bc4ab01e12a689b0499d8bd +size 11357 diff --git a/dbisf-MIMO-UNet/LICENSE.md b/dbisf-MIMO-UNet/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..53d1902e7dd31e898357f4d47fb66c07dc70b358 --- /dev/null +++ b/dbisf-MIMO-UNet/LICENSE.md @@ -0,0 +1,9 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-MIMO-UNet.wpk` | `MIMO-UNet.pkl` of [chosj95/MIMO-UNet](https://github.com/chosj95/MIMO-UNet) (commit 5c58013) | **No license stated.** none stated (no LICENSE file in the repository): all rights reserved by the authors (no license file in the repository) | + +No license stated: the repository of the source checkpoint has no license, so its authors keep all rights to it. This file is shared for research and evaluation only, as the benchmark uses it; ask the authors before any other use. + +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). diff --git a/dbisf-MIMO-UNet/README.md b/dbisf-MIMO-UNet/README.md new file mode 100644 index 0000000000000000000000000000000000000000..c83d3b2e554dbe403a526416713874f7a5e3c340 --- /dev/null +++ b/dbisf-MIMO-UNet/README.md @@ -0,0 +1,50 @@ +--- +license: other +license_name: no-license-stated +license_link: LICENSE.md +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-MIMO-UNet + +> **No license stated by the authors**: this file keeps the terms of its source checkpoint, no license stated (see `LICENSE.md`); without a license, the authors keep all rights. + +MIMO-UNet (Rethinking Coarse-to-Fine Approach in Single Image Deblurring, ICCV 2021) 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' checkpoint (trained on GoPro) by the conversion 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/chosj95/MIMO-UNet. + +The same checkpoint in other versions: [dbis-MIMO-UNet](https://huggingface.co/Illaitar/dbis/tree/main/dbis-MIMO-UNet). +Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis). + +## Use + +```bash +pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved" +python -m dbis.run dbisf-MIMO-UNet blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-MIMO-UNet/dbisf-MIMO-UNet.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-MIMO-UNet") # fetches only this folder's file 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 | +|---|---:|---:|---:| +| `dbisf-MIMO-UNet.wpk` | 6 MB | 31.7188 | 17.0 ms | +| the authors' code and checkpoint | 27 MB | 31.7249 | 20.7 ms | + +PSNR: the 1,111 GoPro test frames, 8-bit outputs, as the benchmark runs the method. Time: the benchmark's latency harness, one A100, batch 1 ([DBIS.md](https://github.com/illaitar/deblurring-is-solved/blob/main/DBIS.md)). + +`dbisf-MIMO-UNet.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). + +## Terms + +The file keeps the terms of the checkpoint it is made from: no license stated. See `LICENSE.md`. Cite the method's paper when you use its weights. diff --git a/dbisf-MIMO-UNet/dbisf-MIMO-UNet.json b/dbisf-MIMO-UNet/dbisf-MIMO-UNet.json new file mode 100644 index 0000000000000000000000000000000000000000..ff35cc03f4795e0aeca2e2414f117b5ab77ea0bf --- /dev/null +++ b/dbisf-MIMO-UNet/dbisf-MIMO-UNet.json @@ -0,0 +1,28 @@ +{ + "model": "dbisf-MIMO-UNet", + "file": "dbisf-MIMO-UNet.wpk", + "path": "dbisf-MIMO-UNet/dbisf-MIMO-UNet.wpk", + "bytes": 6156778, + "sha256": "c68335d1533b94d4e1f3d4d10536660f32ff82d24e57387b5b43153ae5034635", + "store": "qc32", + "class": "dbis.mimounet.MIMOUNet", + "args": { + "num_res": 8, + "fast": true + }, + "source": { + "method": "MIMO-UNet", + "paper": "Rethinking Coarse-to-Fine Approach in Single Image Deblurring", + "venue": "ICCV 2021", + "code": "https://github.com/chosj95/MIMO-UNet", + "commit": "5c580135ed1c03344ac9c741267324ff90b5f209", + "license": "none stated (no LICENSE file in the repository): all rights reserved by the authors", + "group": "model", + "url": "https://drive.google.com/file/d/1EQJoQj3YMLFfzrbgzWMD3Xj96RqLdIlx/view", + "file": "MIMO-UNet.pkl", + "md5": "ab8495a8bdbb08b0b364717660e1ef33", + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-MIMO-UNet\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-MIMO-UNet/dbisf-MIMO-UNet.wpk b/dbisf-MIMO-UNet/dbisf-MIMO-UNet.wpk new file mode 100644 index 0000000000000000000000000000000000000000..e9fa5693d17f7fdaaf2a9ccd8cb515bdb38a0de8 --- /dev/null +++ b/dbisf-MIMO-UNet/dbisf-MIMO-UNet.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c68335d1533b94d4e1f3d4d10536660f32ff82d24e57387b5b43153ae5034635 +size 6156778 diff --git a/dbisf-MIMO-UNetPlus/LICENSE.md b/dbisf-MIMO-UNetPlus/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..9bcb26e40c8c69864c61d89aeb23982d7f581d7b --- /dev/null +++ b/dbisf-MIMO-UNetPlus/LICENSE.md @@ -0,0 +1,9 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-MIMO-UNetPlus.wpk` | `MIMO-UNetPlus.pkl` of [chosj95/MIMO-UNet](https://github.com/chosj95/MIMO-UNet) (commit 5c58013) | **No license stated.** none stated (no LICENSE file in the repository): all rights reserved by the authors (no license file in the repository) | + +No license stated: the repository of the source checkpoint has no license, so its authors keep all rights to it. This file is shared for research and evaluation only, as the benchmark uses it; ask the authors before any other use. + +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). diff --git a/dbisf-MIMO-UNetPlus/README.md b/dbisf-MIMO-UNetPlus/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b36a227d7003d05c39b1004c1104bcb5026be828 --- /dev/null +++ b/dbisf-MIMO-UNetPlus/README.md @@ -0,0 +1,50 @@ +--- +license: other +license_name: no-license-stated +license_link: LICENSE.md +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-MIMO-UNetPlus + +> **No license stated by the authors**: this file keeps the terms of its source checkpoint, no license stated (see `LICENSE.md`); without a license, the authors keep all rights. + +MIMO-UNet+ (Rethinking Coarse-to-Fine Approach in Single Image Deblurring, ICCV 2021) 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' checkpoint (trained on GoPro) by the conversion 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/chosj95/MIMO-UNet. + +The same checkpoint in other versions: [dbis-MIMO-UNetPlus](https://huggingface.co/Illaitar/dbis/tree/main/dbis-MIMO-UNetPlus). +Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis). + +## Use + +```bash +pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved" +python -m dbis.run dbisf-MIMO-UNetPlus blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-MIMO-UNetPlus/dbisf-MIMO-UNetPlus.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-MIMO-UNetPlus") # fetches only this folder's file 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 | +|---|---:|---:|---:| +| `dbisf-MIMO-UNetPlus.wpk` | 15 MB | 32.4380 | 38.8 ms | +| the authors' code and checkpoint | 65 MB | 32.4428 | 46.1 ms | + +PSNR: the 1,111 GoPro test frames, 8-bit outputs, as the benchmark runs the method. Time: the benchmark's latency harness, one A100, batch 1 ([DBIS.md](https://github.com/illaitar/deblurring-is-solved/blob/main/DBIS.md)). + +`dbisf-MIMO-UNetPlus.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). + +## Terms + +The file keeps the terms of the checkpoint it is made from: no license stated. See `LICENSE.md`. Cite the method's paper when you use its weights. diff --git a/dbisf-MIMO-UNetPlus/dbisf-MIMO-UNetPlus.json b/dbisf-MIMO-UNetPlus/dbisf-MIMO-UNetPlus.json new file mode 100644 index 0000000000000000000000000000000000000000..13d141147750e34a2ae6f8620214b5c45610eaec --- /dev/null +++ b/dbisf-MIMO-UNetPlus/dbisf-MIMO-UNetPlus.json @@ -0,0 +1,28 @@ +{ + "model": "dbisf-MIMO-UNetPlus", + "file": "dbisf-MIMO-UNetPlus.wpk", + "path": "dbisf-MIMO-UNetPlus/dbisf-MIMO-UNetPlus.wpk", + "bytes": 14542409, + "sha256": "07de7a83ac7f088bab64fb310d0ad7bd9b76550a17b52c202679e569b2117052", + "store": "qc32", + "class": "dbis.mimounet.MIMOUNet", + "args": { + "num_res": 20, + "fast": true + }, + "source": { + "method": "MIMO-UNet+", + "paper": "Rethinking Coarse-to-Fine Approach in Single Image Deblurring", + "venue": "ICCV 2021", + "code": "https://github.com/chosj95/MIMO-UNet", + "commit": "5c580135ed1c03344ac9c741267324ff90b5f209", + "license": "none stated (no LICENSE file in the repository): all rights reserved by the authors", + "group": "model", + "url": "https://drive.google.com/file/d/166sufeHcdDTgXHNbCRzTC4T6DzuflB5m/view", + "file": "MIMO-UNetPlus.pkl", + "md5": "b8f18087a6ebf6ab677680e70f28b160", + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-MIMO-UNetPlus\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-MIMO-UNetPlus/dbisf-MIMO-UNetPlus.wpk b/dbisf-MIMO-UNetPlus/dbisf-MIMO-UNetPlus.wpk new file mode 100644 index 0000000000000000000000000000000000000000..0feb991ed63632de12b3c606c629f1d2bec435e4 --- /dev/null +++ b/dbisf-MIMO-UNetPlus/dbisf-MIMO-UNetPlus.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:07de7a83ac7f088bab64fb310d0ad7bd9b76550a17b52c202679e569b2117052 +size 14542409 diff --git a/dbisf-MISCFilter/LICENSE.md b/dbisf-MISCFilter/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..8944e14e3a2468904a359c8ae5f7f72e787bcb2c --- /dev/null +++ b/dbisf-MISCFilter/LICENSE.md @@ -0,0 +1,7 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-MISCFilter.wpk` | `GoPro.pth` of [ChengxuLiu/MISCFilter](https://github.com/ChengxuLiu/MISCFilter) (commit aca59a8) | MIT, Copyright (c) 2024 Chengxu Liu (`licenses/MISCFilter-LICENSE.txt`) | + +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). diff --git a/dbisf-MISCFilter/README.md b/dbisf-MISCFilter/README.md new file mode 100644 index 0000000000000000000000000000000000000000..8a1f8e7a150430c0557b911085d780b1b88958e1 --- /dev/null +++ b/dbisf-MISCFilter/README.md @@ -0,0 +1,46 @@ +--- +license: mit +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-MISCFilter + +MISCFilter (Motion-adaptive Separable Collaborative Filters for Blind Motion Deblurring, CVPR 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' checkpoint (trained on GoPro) by the conversion 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/ChengxuLiu/MISCFilter. + +The same checkpoint in other versions: [dbis-MISCFilter](https://huggingface.co/Illaitar/dbis/tree/main/dbis-MISCFilter), [dbis-MISCFiltertiled](https://huggingface.co/Illaitar/dbis/tree/main/dbis-MISCFiltertiled), [dbisf-MISCFiltertiled](https://huggingface.co/Illaitar/dbis/tree/main/dbisf-MISCFiltertiled). +Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis). + +## Use + +```bash +pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved" +python -m dbis.run dbisf-MISCFilter blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-MISCFilter/dbisf-MISCFilter.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-MISCFilter") # fetches only this folder's file 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 | +|---|---:|---:|---:| +| `dbisf-MISCFilter.wpk` | 17 MB | 32.0170 | 136.6 ms | +| the authors' code and checkpoint | 69 MB | 32.0218 | 267.8 ms | + +PSNR: the 1,111 GoPro test frames, 8-bit outputs, as the benchmark runs the method. Time: the benchmark's latency harness, one A100, batch 1 ([DBIS.md](https://github.com/illaitar/deblurring-is-solved/blob/main/DBIS.md)). + +`dbisf-MISCFilter.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). + +## Terms + +The file keeps the terms of the checkpoint it is made from: MIT. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbisf-MISCFilter/dbisf-MISCFilter.json b/dbisf-MISCFilter/dbisf-MISCFilter.json new file mode 100644 index 0000000000000000000000000000000000000000..81c70a6979bc00d18fa9507e8bba1fb672b472fb --- /dev/null +++ b/dbisf-MISCFilter/dbisf-MISCFilter.json @@ -0,0 +1,27 @@ +{ + "model": "dbisf-MISCFilter", + "file": "dbisf-MISCFilter.wpk", + "path": "dbisf-MISCFilter/dbisf-MISCFilter.wpk", + "bytes": 16952116, + "sha256": "0e8df8a7553adeaa4e5e08289a04b68783d4e919cddefb3710b7b2ba91034ccf", + "store": "qc128", + "class": "dbis.miscfilter.MISCFilter", + "args": { + "fast": true + }, + "source": { + "method": "MISCFilter", + "paper": "Motion-adaptive Separable Collaborative Filters for Blind Motion Deblurring", + "venue": "CVPR 2024", + "code": "https://github.com/ChengxuLiu/MISCFilter", + "commit": "aca59a8884cdf91f894dd0e7ca9f2527e4c9fd74", + "license": "MIT, Copyright (c) 2024 Chengxu Liu", + "url": "https://drive.google.com/file/d/1XsySc2rDCzoqZ0-Ph1dFYQ49_APb5Eay (checkpoints.zip, md5 1687ece4e869f1c04bf8fff55a3db014; file inside the zip)", + "group": "state_dict", + "file": "checkpoints/GoPro.pth", + "md5": "ad6a0968f56a8c65ac38479b56df863b", + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-MISCFilter\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-MISCFilter/dbisf-MISCFilter.wpk b/dbisf-MISCFilter/dbisf-MISCFilter.wpk new file mode 100644 index 0000000000000000000000000000000000000000..bbdf6a8dce455f5fac460e339d0becfa2f1e006b --- /dev/null +++ b/dbisf-MISCFilter/dbisf-MISCFilter.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0e8df8a7553adeaa4e5e08289a04b68783d4e919cddefb3710b7b2ba91034ccf +size 16952116 diff --git a/dbisf-MISCFilter/licenses/MISCFilter-LICENSE.txt b/dbisf-MISCFilter/licenses/MISCFilter-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..feb55fc041f7bdc1bd755b12a0e1a2190725a9ff --- /dev/null +++ b/dbisf-MISCFilter/licenses/MISCFilter-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4b8a06bced9859109cbfda5f3721a44ef6049c27c5c82ecf07156ea50f18a65a +size 1068 diff --git a/dbisf-MISCFiltertiled/LICENSE.md b/dbisf-MISCFiltertiled/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..8944e14e3a2468904a359c8ae5f7f72e787bcb2c --- /dev/null +++ b/dbisf-MISCFiltertiled/LICENSE.md @@ -0,0 +1,7 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-MISCFilter.wpk` | `GoPro.pth` of [ChengxuLiu/MISCFilter](https://github.com/ChengxuLiu/MISCFilter) (commit aca59a8) | MIT, Copyright (c) 2024 Chengxu Liu (`licenses/MISCFilter-LICENSE.txt`) | + +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). diff --git a/dbisf-MISCFiltertiled/README.md b/dbisf-MISCFiltertiled/README.md new file mode 100644 index 0000000000000000000000000000000000000000..6ce7bcce622c0b95697fac43b17b4748576852b5 --- /dev/null +++ b/dbisf-MISCFiltertiled/README.md @@ -0,0 +1,46 @@ +--- +license: mit +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-MISCFiltertiled + +MISCFilter (Motion-adaptive Separable Collaborative Filters for Blind Motion Deblurring, CVPR 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' checkpoint (trained on GoPro) by the conversion 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/ChengxuLiu/MISCFilter. + +The same checkpoint in other versions: [dbis-MISCFilter](https://huggingface.co/Illaitar/dbis/tree/main/dbis-MISCFilter), [dbis-MISCFiltertiled](https://huggingface.co/Illaitar/dbis/tree/main/dbis-MISCFiltertiled), [dbisf-MISCFilter](https://huggingface.co/Illaitar/dbis/tree/main/dbisf-MISCFilter). +Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis). + +## Use + +```bash +pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved" +python -m dbis.run dbisf-MISCFiltertiled blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-MISCFiltertiled/dbisf-MISCFilter.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-MISCFiltertiled") # fetches only this folder's file 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 | +|---|---:|---:|---:| +| `dbisf-MISCFilter.wpk` | 17 MB | 33.3392 | 88.8 ms | +| the authors' code and checkpoint | 69 MB | 33.3445 | 268.2 ms | + +PSNR: the 1,111 GoPro test frames, 8-bit outputs, as the benchmark runs the method. Time: the benchmark's latency harness, one A100, batch 1 ([DBIS.md](https://github.com/illaitar/deblurring-is-solved/blob/main/DBIS.md)). + +`dbisf-MISCFilter.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). + +## Terms + +The file keeps the terms of the checkpoint it is made from: MIT. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbisf-MISCFiltertiled/dbisf-MISCFilter.json b/dbisf-MISCFiltertiled/dbisf-MISCFilter.json new file mode 100644 index 0000000000000000000000000000000000000000..e2ec93e318475586bdaee4ce21f8fcdee7cc34c8 --- /dev/null +++ b/dbisf-MISCFiltertiled/dbisf-MISCFilter.json @@ -0,0 +1,28 @@ +{ + "model": "dbisf-MISCFiltertiled", + "file": "dbisf-MISCFilter.wpk", + "path": "dbisf-MISCFiltertiled/dbisf-MISCFilter.wpk", + "bytes": 16952116, + "sha256": "0e8df8a7553adeaa4e5e08289a04b68783d4e919cddefb3710b7b2ba91034ccf", + "store": "qc128", + "class": "dbis.miscfilter.MISCFilter", + "args": { + "fast": true, + "window": 256 + }, + "source": { + "method": "MISCFilter", + "paper": "Motion-adaptive Separable Collaborative Filters for Blind Motion Deblurring", + "venue": "CVPR 2024", + "code": "https://github.com/ChengxuLiu/MISCFilter", + "commit": "aca59a8884cdf91f894dd0e7ca9f2527e4c9fd74", + "license": "MIT, Copyright (c) 2024 Chengxu Liu", + "url": "https://drive.google.com/file/d/1XsySc2rDCzoqZ0-Ph1dFYQ49_APb5Eay (checkpoints.zip, md5 1687ece4e869f1c04bf8fff55a3db014; file inside the zip)", + "group": "state_dict", + "file": "checkpoints/GoPro.pth", + "md5": "ad6a0968f56a8c65ac38479b56df863b", + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-MISCFiltertiled\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-MISCFiltertiled/dbisf-MISCFilter.wpk b/dbisf-MISCFiltertiled/dbisf-MISCFilter.wpk new file mode 100644 index 0000000000000000000000000000000000000000..bbdf6a8dce455f5fac460e339d0becfa2f1e006b --- /dev/null +++ b/dbisf-MISCFiltertiled/dbisf-MISCFilter.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0e8df8a7553adeaa4e5e08289a04b68783d4e919cddefb3710b7b2ba91034ccf +size 16952116 diff --git a/dbisf-MISCFiltertiled/licenses/MISCFilter-LICENSE.txt b/dbisf-MISCFiltertiled/licenses/MISCFilter-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..feb55fc041f7bdc1bd755b12a0e1a2190725a9ff --- /dev/null +++ b/dbisf-MISCFiltertiled/licenses/MISCFilter-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4b8a06bced9859109cbfda5f3721a44ef6049c27c5c82ecf07156ea50f18a65a +size 1068 diff --git a/dbisf-MMP-RNN-GoPro/LICENSE.md b/dbisf-MMP-RNN-GoPro/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..8525dff4f48991e980c6a038213055ce658b2546 --- /dev/null +++ b/dbisf-MMP-RNN-GoPro/LICENSE.md @@ -0,0 +1,7 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-MMP-RNN-GoPro.wpk` | `GoPro_model_best.pth.tar` of [sollynoay/MMP-RNN](https://github.com/sollynoay/MMP-RNN) (commit 85f9906) | MIT, Copyright (c) 2022 Yusheng Wang (`licenses/MMP-RNN-LICENSE.txt`) | + +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). diff --git a/dbisf-MMP-RNN-GoPro/README.md b/dbisf-MMP-RNN-GoPro/README.md new file mode 100644 index 0000000000000000000000000000000000000000..e2c18e84a0504bf48ecdb1a7366c75ce4b878a26 --- /dev/null +++ b/dbisf-MMP-RNN-GoPro/README.md @@ -0,0 +1,47 @@ +--- +license: mit +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- video-deblurring +- image-restoration +- dbis +--- + +# dbisf-MMP-RNN-GoPro + +MMP-RNN (Efficient Video Deblurring Guided by Motion Magnitude, ECCV 2022) 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' checkpoint (trained on GoPro) by the conversion 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/sollynoay/MMP-RNN. + +The same checkpoint in other versions: [dbis-MMP-RNN-GoPro](https://huggingface.co/Illaitar/dbis/tree/main/dbis-MMP-RNN-GoPro). +Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis). + +## Use + +```bash +pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved" +python -m dbis.run dbisf-MMP-RNN-GoPro blurry_frames/ sharp_frames/ # a folder of frames (one clip) or a video file +hf download Illaitar/dbis dbisf-MMP-RNN-GoPro/dbisf-MMP-RNN-GoPro.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-MMP-RNN-GoPro") # fetches only this folder's file 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 | +|---|---:|---:|---:| +| `dbisf-MMP-RNN-GoPro.wpk` | 4 MB | 29.9566 | 13.2 ms | +| the authors' code and checkpoint | 42 MB | 29.9521 | 21.0 ms | + +PSNR: the 1,111 GoPro test frames, 8-bit outputs, as the benchmark runs the method. Time: the benchmark's latency harness, one A100, batch 1 ([DBIS.md](https://github.com/illaitar/deblurring-is-solved/blob/main/DBIS.md)). + +`dbisf-MMP-RNN-GoPro.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). + +## Terms + +The file keeps the terms of the checkpoint it is made from: MIT. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbisf-MMP-RNN-GoPro/dbisf-MMP-RNN-GoPro.json b/dbisf-MMP-RNN-GoPro/dbisf-MMP-RNN-GoPro.json new file mode 100644 index 0000000000000000000000000000000000000000..16ad239778d4b19acc056905f58175143a943924 --- /dev/null +++ b/dbisf-MMP-RNN-GoPro/dbisf-MMP-RNN-GoPro.json @@ -0,0 +1,30 @@ +{ + "model": "dbisf-MMP-RNN-GoPro", + "file": "dbisf-MMP-RNN-GoPro.wpk", + "path": "dbisf-MMP-RNN-GoPro/dbisf-MMP-RNN-GoPro.wpk", + "bytes": 4231258, + "sha256": "45248f70e0fff69b9cb7525c1c48f744451fe26db1a821cadf3bb9f5fd954a47", + "store": "qc64", + "class": "dbis.mmprnn.MMPRNN", + "args": { + "fast": true, + "precision": "fp16", + "channels_last": true, + "pad8": true + }, + "source": { + "method": "MMP-RNN", + "paper": "Efficient Video Deblurring Guided by Motion Magnitude", + "venue": "ECCV 2022", + "code": "https://github.com/sollynoay/MMP-RNN", + "commit": "85f990660a59c7666590e4e92576471327d3fb1d", + "license": "MIT, Copyright (c) 2022 Yusheng Wang", + "url": "https://github.com/sollynoay/MMP-RNN (README: pretrained models, GoPro)", + "file": "GoPro_model_best.pth.tar", + "md5": "8a4324057b20b302f8e6186bf7fb0863", + "group": "state_dict", + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-MMP-RNN-GoPro\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-MMP-RNN-GoPro/dbisf-MMP-RNN-GoPro.wpk b/dbisf-MMP-RNN-GoPro/dbisf-MMP-RNN-GoPro.wpk new file mode 100644 index 0000000000000000000000000000000000000000..0d2f785a27c2e017025876c8643d7335de56593a --- /dev/null +++ b/dbisf-MMP-RNN-GoPro/dbisf-MMP-RNN-GoPro.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:45248f70e0fff69b9cb7525c1c48f744451fe26db1a821cadf3bb9f5fd954a47 +size 4231258 diff --git a/dbisf-MMP-RNN-GoPro/licenses/MMP-RNN-LICENSE.txt b/dbisf-MMP-RNN-GoPro/licenses/MMP-RNN-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..b214ff00b9789158fcbe97aef62c50523ba66f77 --- /dev/null +++ b/dbisf-MMP-RNN-GoPro/licenses/MMP-RNN-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8ae359adef16571726a8fcd4ee439b398c2a4167165b399e712678a4c1c08b96 +size 1069 diff --git a/dbisf-MSDI-Net/LICENSE.md b/dbisf-MSDI-Net/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..13632ddaca34e6f602286c113a16ca9de55737c6 --- /dev/null +++ b/dbisf-MSDI-Net/LICENSE.md @@ -0,0 +1,9 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-MSDI-Net.wpk` | `msdi_net.pth` of [dasongli1/Learning_degradation](https://github.com/dasongli1/Learning_degradation) (commit 9ba7c63) | **No license stated.** none stated (no LICENSE file); SPADE-derived parts: CC BY-NC-SA 4.0, Copyright (C) 2019 NVIDIA Corporation (no license file in the repository) | + +No license stated: the repository of the source checkpoint has no license, so its authors keep all rights to it. This file is shared for research and evaluation only, as the benchmark uses it; ask the authors before any other use. + +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). diff --git a/dbisf-MSDI-Net/README.md b/dbisf-MSDI-Net/README.md new file mode 100644 index 0000000000000000000000000000000000000000..45bc4724ae1111bff7c93b5d0d0ff6432aae224f --- /dev/null +++ b/dbisf-MSDI-Net/README.md @@ -0,0 +1,50 @@ +--- +license: other +license_name: no-license-stated +license_link: LICENSE.md +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-MSDI-Net + +> **No license stated by the authors**: this file keeps the terms of its source checkpoint, no license stated (see `LICENSE.md`); without a license, the authors keep all rights. + +MSDI-Net (Learning Degradation Representations for Image Deblurring, ECCV 2022) 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' checkpoint (trained on GoPro) by the conversion 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/dasongli1/Learning_degradation. + +The same checkpoint in other versions: [dbis-MSDI-Net](https://huggingface.co/Illaitar/dbis/tree/main/dbis-MSDI-Net), [dbis-MSDI-Nettiled](https://huggingface.co/Illaitar/dbis/tree/main/dbis-MSDI-Nettiled), [dbisf-MSDI-Nettiled](https://huggingface.co/Illaitar/dbis/tree/main/dbisf-MSDI-Nettiled). +Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis). + +## Use + +```bash +pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved" +python -m dbis.run dbisf-MSDI-Net blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-MSDI-Net/dbisf-MSDI-Net.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-MSDI-Net") # fetches only this folder's file 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 | +|---|---:|---:|---:| +| `dbisf-MSDI-Net.wpk` | 201 MB | 32.5857 | 60.7 ms | +| the authors' code and checkpoint | 1100 MB | 32.5892 | 163.4 ms | + +PSNR: the 1,111 GoPro test frames, 8-bit outputs, as the benchmark runs the method. Time: the benchmark's latency harness, one A100, batch 1 ([DBIS.md](https://github.com/illaitar/deblurring-is-solved/blob/main/DBIS.md)). + +`dbisf-MSDI-Net.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). + +## Terms + +The file keeps the terms of the checkpoint it is made from: no license stated. See `LICENSE.md`. Cite the method's paper when you use its weights. diff --git a/dbisf-MSDI-Net/dbisf-MSDI-Net.json b/dbisf-MSDI-Net/dbisf-MSDI-Net.json new file mode 100644 index 0000000000000000000000000000000000000000..353e73eac4023b5fd6378b13de438ab449f9b2b5 --- /dev/null +++ b/dbisf-MSDI-Net/dbisf-MSDI-Net.json @@ -0,0 +1,28 @@ +{ + "model": "dbisf-MSDI-Net", + "file": "dbisf-MSDI-Net.wpk", + "path": "dbisf-MSDI-Net/dbisf-MSDI-Net.wpk", + "bytes": 200783519, + "sha256": "939e9c8518385a4faf8d385d5c83a3aa4950aa73654486e09ef6ea0be70877a8", + "store": "qc24", + "class": "dbis.msdinet.MSDINet", + "args": { + "grids": null, + "fast": true + }, + "source": { + "method": "MSDI-Net", + "paper": "Learning Degradation Representations for Image Deblurring", + "venue": "ECCV 2022", + "code": "https://github.com/dasongli1/Learning_degradation", + "commit": "9ba7c63a9a54d24463bc19ca2c480cd9fa834d0c", + "license": "none stated (no LICENSE file); SPADE-derived parts: CC BY-NC-SA 4.0, Copyright (C) 2019 NVIDIA Corporation", + "url": "https://drive.google.com/file/d/1HB06DPJ2bydHhjjuxmVGrQ7F63dbaKXL", + "file": "msdi_net.pth", + "md5": "1bb822a3050019ac9ef26b3aab2f2eb5", + "group": null, + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-MSDI-Net\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-MSDI-Net/dbisf-MSDI-Net.wpk b/dbisf-MSDI-Net/dbisf-MSDI-Net.wpk new file mode 100644 index 0000000000000000000000000000000000000000..d2bef1eeae31733fd61fb04a419e425315582bf0 --- /dev/null +++ b/dbisf-MSDI-Net/dbisf-MSDI-Net.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:939e9c8518385a4faf8d385d5c83a3aa4950aa73654486e09ef6ea0be70877a8 +size 200783519 diff --git a/dbisf-MSDI-Nettiled/LICENSE.md b/dbisf-MSDI-Nettiled/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..13632ddaca34e6f602286c113a16ca9de55737c6 --- /dev/null +++ b/dbisf-MSDI-Nettiled/LICENSE.md @@ -0,0 +1,9 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-MSDI-Net.wpk` | `msdi_net.pth` of [dasongli1/Learning_degradation](https://github.com/dasongli1/Learning_degradation) (commit 9ba7c63) | **No license stated.** none stated (no LICENSE file); SPADE-derived parts: CC BY-NC-SA 4.0, Copyright (C) 2019 NVIDIA Corporation (no license file in the repository) | + +No license stated: the repository of the source checkpoint has no license, so its authors keep all rights to it. This file is shared for research and evaluation only, as the benchmark uses it; ask the authors before any other use. + +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). diff --git a/dbisf-MSDI-Nettiled/README.md b/dbisf-MSDI-Nettiled/README.md new file mode 100644 index 0000000000000000000000000000000000000000..9c41b141587ad0401ee31accb409ccfa773999fb --- /dev/null +++ b/dbisf-MSDI-Nettiled/README.md @@ -0,0 +1,50 @@ +--- +license: other +license_name: no-license-stated +license_link: LICENSE.md +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-MSDI-Nettiled + +> **No license stated by the authors**: this file keeps the terms of its source checkpoint, no license stated (see `LICENSE.md`); without a license, the authors keep all rights. + +MSDI-Net (Learning Degradation Representations for Image Deblurring, ECCV 2022) 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' checkpoint (trained on GoPro) by the conversion 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/dasongli1/Learning_degradation. + +The same checkpoint in other versions: [dbis-MSDI-Net](https://huggingface.co/Illaitar/dbis/tree/main/dbis-MSDI-Net), [dbis-MSDI-Nettiled](https://huggingface.co/Illaitar/dbis/tree/main/dbis-MSDI-Nettiled), [dbisf-MSDI-Net](https://huggingface.co/Illaitar/dbis/tree/main/dbisf-MSDI-Net). +Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis). + +## Use + +```bash +pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved" +python -m dbis.run dbisf-MSDI-Nettiled blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-MSDI-Nettiled/dbisf-MSDI-Net.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-MSDI-Nettiled") # fetches only this folder's file 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 | +|---|---:|---:|---:| +| `dbisf-MSDI-Net.wpk` | 201 MB | 33.2666 | 69.8 ms | +| the authors' code and checkpoint | 1100 MB | 33.2752 | 181.1 ms | + +PSNR: the 1,111 GoPro test frames, 8-bit outputs, as the benchmark runs the method. Time: the benchmark's latency harness, one A100, batch 1 ([DBIS.md](https://github.com/illaitar/deblurring-is-solved/blob/main/DBIS.md)). + +`dbisf-MSDI-Net.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). + +## Terms + +The file keeps the terms of the checkpoint it is made from: no license stated. See `LICENSE.md`. Cite the method's paper when you use its weights. diff --git a/dbisf-MSDI-Nettiled/dbisf-MSDI-Net.json b/dbisf-MSDI-Nettiled/dbisf-MSDI-Net.json new file mode 100644 index 0000000000000000000000000000000000000000..864e5b1a959c9d03db8f22b060c6007a57f9f4f3 --- /dev/null +++ b/dbisf-MSDI-Nettiled/dbisf-MSDI-Net.json @@ -0,0 +1,28 @@ +{ + "model": "dbisf-MSDI-Nettiled", + "file": "dbisf-MSDI-Net.wpk", + "path": "dbisf-MSDI-Nettiled/dbisf-MSDI-Net.wpk", + "bytes": 200783519, + "sha256": "939e9c8518385a4faf8d385d5c83a3aa4950aa73654486e09ef6ea0be70877a8", + "store": "qc24", + "class": "dbis.msdinet.MSDINet", + "args": { + "grids": 256, + "fast": true + }, + "source": { + "method": "MSDI-Net", + "paper": "Learning Degradation Representations for Image Deblurring", + "venue": "ECCV 2022", + "code": "https://github.com/dasongli1/Learning_degradation", + "commit": "9ba7c63a9a54d24463bc19ca2c480cd9fa834d0c", + "license": "none stated (no LICENSE file); SPADE-derived parts: CC BY-NC-SA 4.0, Copyright (C) 2019 NVIDIA Corporation", + "url": "https://drive.google.com/file/d/1HB06DPJ2bydHhjjuxmVGrQ7F63dbaKXL", + "file": "msdi_net.pth", + "md5": "1bb822a3050019ac9ef26b3aab2f2eb5", + "group": null, + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-MSDI-Nettiled\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-MSDI-Nettiled/dbisf-MSDI-Net.wpk b/dbisf-MSDI-Nettiled/dbisf-MSDI-Net.wpk new file mode 100644 index 0000000000000000000000000000000000000000..d2bef1eeae31733fd61fb04a419e425315582bf0 --- /dev/null +++ b/dbisf-MSDI-Nettiled/dbisf-MSDI-Net.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:939e9c8518385a4faf8d385d5c83a3aa4950aa73654486e09ef6ea0be70877a8 +size 200783519