diff --git a/dbis-VRT-DVD/LICENSE.md b/dbis-VRT-DVD/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..0c6f9c9c274a41c8a2ba6646af3997a46dd7d5c3 --- /dev/null +++ b/dbis-VRT-DVD/LICENSE.md @@ -0,0 +1,9 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbis-VRT-DVD.safetensors` | `005_VRT_videodeblurring_DVD.pth` of [JingyunLiang/VRT](https://github.com/JingyunLiang/VRT) (commit 94a5f50) | **Non-commercial use only.** CC BY-NC 4.0 (repository LICENSE), non-commercial use only; network_vrt.py header: Copyright (c) Facebook, Inc. and its affiliates, BSD license (`licenses/VRT-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/dbis-VRT-DVD/README.md b/dbis-VRT-DVD/README.md new file mode 100644 index 0000000000000000000000000000000000000000..70ac5dc64fe3e42104a8a25e5c38ca6944513d9f --- /dev/null +++ b/dbis-VRT-DVD/README.md @@ -0,0 +1,50 @@ +--- +license: cc-by-nc-4.0 +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- video-deblurring +- image-restoration +- dbis +--- + +# dbis-VRT-DVD + +> **Non-commercial use only**: this file keeps the terms of its source checkpoint, CC BY-NC 4.0, non-commercial (see `LICENSE.md`). + +VRT (VRT: A Video Restoration Transformer, IEEE TIP 2024 (arXiv 2201.12288)) in plain PyTorch, our code and weight file, the same outputs as the authors' code. Made from the authors' checkpoint (trained on DVD) 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/JingyunLiang/VRT. + +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 dbis-VRT-DVD blurry_frames/ sharp_frames/ # a folder of frames (one clip) or a video file +hf download Illaitar/dbis dbis-VRT-DVD/dbis-VRT-DVD.safetensors # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbis-VRT-DVD") # 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 | +|---|---:|---:|---:| +| `dbis-VRT-DVD.safetensors` | 106 MB | 31.5948 | – | +| the authors' code and checkpoint | – | 31.5948 | 103.83 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)). + +The outputs equal those of the authors' code on the GoPro frames of the equality check of its port (DBIS.md). + +`dbis-VRT-DVD.json` here has the file's sha256, the source checkpoint and its md5, and the network's arguments. `.safetensors`, float32. + +## Terms + +The file keeps the terms of the checkpoint it is made from: CC BY-NC 4.0, non-commercial. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbis-VRT-DVD/dbis-VRT-DVD.json b/dbis-VRT-DVD/dbis-VRT-DVD.json new file mode 100644 index 0000000000000000000000000000000000000000..2e9f4c8c9bb34d94373671891e03dfbd1a9a34e8 --- /dev/null +++ b/dbis-VRT-DVD/dbis-VRT-DVD.json @@ -0,0 +1,28 @@ +{ + "model": "dbis-VRT-DVD", + "file": "dbis-VRT-DVD.safetensors", + "path": "dbis-VRT-DVD/dbis-VRT-DVD.safetensors", + "bytes": 106207212, + "sha256": "547e09724ce1abbafeed34a116cf91c08379e5c056358755843cadb0b5cb1092", + "store": "float32", + "class": "dbis.vrt.VRT", + "args": { + "window": 12, + "tile": 256 + }, + "source": { + "method": "VRT", + "paper": "VRT: A Video Restoration Transformer", + "venue": "IEEE TIP 2024 (arXiv 2201.12288)", + "code": "https://github.com/JingyunLiang/VRT", + "commit": "94a5f504eb84aedf1314de5389f45f4ba1c2d022", + "license": "CC BY-NC 4.0 (repository LICENSE), non-commercial use only; network_vrt.py header: Copyright (c) Facebook, Inc. and its affiliates, BSD license", + "group": "params", + "url": "https://github.com/JingyunLiang/VRT/releases/download/v0.0/005_VRT_videodeblurring_DVD.pth", + "file": "005_VRT_videodeblurring_DVD.pth", + "md5": "82e06e98dd9b545a564d204bce08ea2c", + "trained_on": "DVD" + }, + "load": "import dbis; net = dbis.load(\"dbis-VRT-DVD\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbis-VRT-DVD/dbis-VRT-DVD.safetensors b/dbis-VRT-DVD/dbis-VRT-DVD.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..5592115296a8185a3e52704a1942dad6db84cf72 --- /dev/null +++ b/dbis-VRT-DVD/dbis-VRT-DVD.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:547e09724ce1abbafeed34a116cf91c08379e5c056358755843cadb0b5cb1092 +size 106207212 diff --git a/dbis-VRT-DVD/licenses/VRT-LICENSE.txt b/dbis-VRT-DVD/licenses/VRT-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..2550c1f1349c62014dd191d697bd41fecb7b7243 --- /dev/null +++ b/dbis-VRT-DVD/licenses/VRT-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:002f0a68d433bdd2d5c348f6cb47e8dba35fe8b898c52de59129322fcae34154 +size 19332 diff --git a/dbis-VRT-REDS/LICENSE.md b/dbis-VRT-REDS/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..7815549cf6bffeee320d6f34a8dbff35bcad2c25 --- /dev/null +++ b/dbis-VRT-REDS/LICENSE.md @@ -0,0 +1,9 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbis-VRT-REDS.safetensors` | `007_VRT_videodeblurring_REDS.pth` of [JingyunLiang/VRT](https://github.com/JingyunLiang/VRT) (commit 94a5f50) | **Non-commercial use only.** CC BY-NC 4.0 (repository LICENSE), non-commercial use only; network_vrt.py header: Copyright (c) Facebook, Inc. and its affiliates, BSD license (`licenses/VRT-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/dbis-VRT-REDS/README.md b/dbis-VRT-REDS/README.md new file mode 100644 index 0000000000000000000000000000000000000000..6e6ebb7161376c0626756e8617378400b0d79676 --- /dev/null +++ b/dbis-VRT-REDS/README.md @@ -0,0 +1,50 @@ +--- +license: cc-by-nc-4.0 +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- video-deblurring +- image-restoration +- dbis +--- + +# dbis-VRT-REDS + +> **Non-commercial use only**: this file keeps the terms of its source checkpoint, CC BY-NC 4.0, non-commercial (see `LICENSE.md`). + +VRT (VRT: A Video Restoration Transformer, IEEE TIP 2024 (arXiv 2201.12288)) in plain PyTorch, our code and weight file, the same outputs as the authors' code. Made from the authors' checkpoint (trained on REDS) 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/JingyunLiang/VRT. + +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 dbis-VRT-REDS blurry_frames/ sharp_frames/ # a folder of frames (one clip) or a video file +hf download Illaitar/dbis dbis-VRT-REDS/dbis-VRT-REDS.safetensors # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbis-VRT-REDS") # 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 | +|---|---:|---:|---:| +| `dbis-VRT-REDS.safetensors` | 106 MB | 27.6179 | – | +| the authors' code and checkpoint | – | 27.6179 | 103.83 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)). + +The outputs equal those of the authors' code on the GoPro frames of the equality check of its port (DBIS.md). + +`dbis-VRT-REDS.json` here has the file's sha256, the source checkpoint and its md5, and the network's arguments. `.safetensors`, float32. + +## Terms + +The file keeps the terms of the checkpoint it is made from: CC BY-NC 4.0, non-commercial. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbis-VRT-REDS/dbis-VRT-REDS.json b/dbis-VRT-REDS/dbis-VRT-REDS.json new file mode 100644 index 0000000000000000000000000000000000000000..19a01d096b4205e94f1aeade76e19e005a93997d --- /dev/null +++ b/dbis-VRT-REDS/dbis-VRT-REDS.json @@ -0,0 +1,28 @@ +{ + "model": "dbis-VRT-REDS", + "file": "dbis-VRT-REDS.safetensors", + "path": "dbis-VRT-REDS/dbis-VRT-REDS.safetensors", + "bytes": 106207212, + "sha256": "394dcd2442ffe806082ff501069fbe9e053d4913a15c9a42f1fb4e8d6f0261ca", + "store": "float32", + "class": "dbis.vrt.VRT", + "args": { + "window": 12, + "tile": 256 + }, + "source": { + "method": "VRT", + "paper": "VRT: A Video Restoration Transformer", + "venue": "IEEE TIP 2024 (arXiv 2201.12288)", + "code": "https://github.com/JingyunLiang/VRT", + "commit": "94a5f504eb84aedf1314de5389f45f4ba1c2d022", + "license": "CC BY-NC 4.0 (repository LICENSE), non-commercial use only; network_vrt.py header: Copyright (c) Facebook, Inc. and its affiliates, BSD license", + "group": "params", + "url": "https://github.com/JingyunLiang/VRT/releases/download/v0.0/007_VRT_videodeblurring_REDS.pth", + "file": "007_VRT_videodeblurring_REDS.pth", + "md5": "473858e944dabda1c84e66518c717aff", + "trained_on": "REDS" + }, + "load": "import dbis; net = dbis.load(\"dbis-VRT-REDS\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbis-VRT-REDS/dbis-VRT-REDS.safetensors b/dbis-VRT-REDS/dbis-VRT-REDS.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..30c45344dfa67bd0ff1facf5d6aab7a9c975eaac --- /dev/null +++ b/dbis-VRT-REDS/dbis-VRT-REDS.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:394dcd2442ffe806082ff501069fbe9e053d4913a15c9a42f1fb4e8d6f0261ca +size 106207212 diff --git a/dbis-VRT-REDS/licenses/VRT-LICENSE.txt b/dbis-VRT-REDS/licenses/VRT-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..2550c1f1349c62014dd191d697bd41fecb7b7243 --- /dev/null +++ b/dbis-VRT-REDS/licenses/VRT-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:002f0a68d433bdd2d5c348f6cb47e8dba35fe8b898c52de59129322fcae34154 +size 19332 diff --git a/dbis-X-Restormer/LICENSE.md b/dbis-X-Restormer/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..b0be36a276f1e949d31cb4fbe6c18f07020031bb --- /dev/null +++ b/dbis-X-Restormer/LICENSE.md @@ -0,0 +1,7 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbis-X-Restormer.safetensors` | `net_g_latest.pth` of [Andrew0613/X-Restormer](https://github.com/Andrew0613/X-Restormer) (commit e096da6) | MIT, Copyright (c) 2021 Xintao Wang and BasicSR-examples contributors (`licenses/X-Restormer-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/dbis-X-Restormer/README.md b/dbis-X-Restormer/README.md new file mode 100644 index 0000000000000000000000000000000000000000..4bf3e51ad4e0a8bba9df7ade0e4a9d721c79a98b --- /dev/null +++ b/dbis-X-Restormer/README.md @@ -0,0 +1,47 @@ +--- +license: mit +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbis-X-Restormer + +X-Restormer (A Comparative Study of Image Restoration Networks for General Backbone Network Design, ECCV 2024) in plain PyTorch, our code and weight file, the same outputs as the authors' code. 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/Andrew0613/X-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 dbis-X-Restormer blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbis-X-Restormer/dbis-X-Restormer.safetensors # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbis-X-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 | +|---|---:|---:|---:| +| `dbis-X-Restormer.safetensors` | 104 MB | 33.3657 | – | +| the authors' code and checkpoint | – | 33.3657 | – | + +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)). + +The outputs equal those of the authors' code on the GoPro frames of the equality check of its port (DBIS.md). + +`dbis-X-Restormer.json` here has the file's sha256, the source checkpoint and its md5, and the network's arguments. `.safetensors`, float32. + +## Terms + +The file keeps the terms of the checkpoint it is made from: MIT. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbis-X-Restormer/dbis-X-Restormer.json b/dbis-X-Restormer/dbis-X-Restormer.json new file mode 100644 index 0000000000000000000000000000000000000000..222213e9fe4b056304e6a2f6f2e95f869f03e7d1 --- /dev/null +++ b/dbis-X-Restormer/dbis-X-Restormer.json @@ -0,0 +1,25 @@ +{ + "model": "dbis-X-Restormer", + "file": "dbis-X-Restormer.safetensors", + "path": "dbis-X-Restormer/dbis-X-Restormer.safetensors", + "bytes": 104233984, + "sha256": "6d8370db20b3a4df5c1dec6bc383fa02af48a63f201fd5350378daf4da24b481", + "store": "float32", + "class": "dbis.xrestormer.XRestormer", + "args": {}, + "source": { + "method": "X-Restormer", + "paper": "A Comparative Study of Image Restoration Networks for General Backbone Network Design", + "venue": "ECCV 2024", + "code": "https://github.com/Andrew0613/X-Restormer", + "commit": "e096da6bf5f640f8a0d1fde3eec893ded1feac6f", + "license": "MIT, Copyright (c) 2021 Xintao Wang and BasicSR-examples contributors", + "url": "https://drive.google.com/drive/folders/16WxegSAN_sescgrfW4ZMO4b6TcR_7T24 (Deblurring/net_g_latest.pth)", + "file": "net_g_latest.pth", + "md5": "f879245133f82026a5d4a4b8f58fbf96", + "group": "params", + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbis-X-Restormer\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbis-X-Restormer/dbis-X-Restormer.safetensors b/dbis-X-Restormer/dbis-X-Restormer.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..7eda97aa9ff0bbbf568309c90f29b6f71622bf3b --- /dev/null +++ b/dbis-X-Restormer/dbis-X-Restormer.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6d8370db20b3a4df5c1dec6bc383fa02af48a63f201fd5350378daf4da24b481 +size 104233984 diff --git a/dbis-X-Restormer/licenses/X-Restormer-LICENSE.txt b/dbis-X-Restormer/licenses/X-Restormer-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..0942e6c66252a326500ddc448a005c22f5d02fdc --- /dev/null +++ b/dbis-X-Restormer/licenses/X-Restormer-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e3ca06e3d03ace0acd8d0e3c579902bf4087fdac5bd7207f7a6b476a3316d694 +size 1102 diff --git a/dbis-XYScanNet-RealBlurJ/LICENSE.md b/dbis-XYScanNet-RealBlurJ/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..131e11240f35f6b7b85e2f406678723ab77135a0 --- /dev/null +++ b/dbis-XYScanNet-RealBlurJ/LICENSE.md @@ -0,0 +1,9 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbis-XYScanNet-RealBlurJ.safetensors` | `final_XYScanNet_stage2.pth` of [HanzhouLiu/XYScanNet](https://github.com/HanzhouLiu/XYScanNet) (commit 787f853) | **Non-commercial use only.** MIT-style text restricted to non-commercial use, Copyright (c) 2025 Hanzhou Liu (`licenses/XYScanNet-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/dbis-XYScanNet-RealBlurJ/README.md b/dbis-XYScanNet-RealBlurJ/README.md new file mode 100644 index 0000000000000000000000000000000000000000..e9b06654f0b2941574e5b351c521d2076f365a2d --- /dev/null +++ b/dbis-XYScanNet-RealBlurJ/README.md @@ -0,0 +1,51 @@ +--- +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 +--- + +# dbis-XYScanNet-RealBlurJ + +> **Non-commercial use only**: this file keeps the terms of its source checkpoint, MIT-style, non-commercial (see `LICENSE.md`). + +XYScanNet (XYScanNet: A State Space Model for Single Image Deblurring, CVPR 2025 Workshops (NTIRE)) in plain PyTorch, our code and weight file, the same outputs as the authors' code. Made from the authors' checkpoint (trained on RealBlur-J) 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/HanzhouLiu/XYScanNet. + +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 dbis-XYScanNet-RealBlurJ blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbis-XYScanNet-RealBlurJ/dbis-XYScanNet-RealBlurJ.safetensors # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbis-XYScanNet-RealBlurJ") # 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 | +|---|---:|---:|---:| +| `dbis-XYScanNet-RealBlurJ.safetensors` | 254 MB | 24.5207 | – | +| the authors' code and checkpoint | – | 24.5207 | 424.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)). + +The outputs equal those of the authors' code on the GoPro frames of the equality check of its port (DBIS.md). + +`dbis-XYScanNet-RealBlurJ.json` here has the file's sha256, the source checkpoint and its md5, and the network's arguments. `.safetensors`, float32. + +## Terms + +The file keeps the terms of the checkpoint it is made from: MIT-style, non-commercial. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbis-XYScanNet-RealBlurJ/dbis-XYScanNet-RealBlurJ.json b/dbis-XYScanNet-RealBlurJ/dbis-XYScanNet-RealBlurJ.json new file mode 100644 index 0000000000000000000000000000000000000000..3a2ec9e67176105ce7d976b15e86d44901c44cd6 --- /dev/null +++ b/dbis-XYScanNet-RealBlurJ/dbis-XYScanNet-RealBlurJ.json @@ -0,0 +1,25 @@ +{ + "model": "dbis-XYScanNet-RealBlurJ", + "file": "dbis-XYScanNet-RealBlurJ.safetensors", + "path": "dbis-XYScanNet-RealBlurJ/dbis-XYScanNet-RealBlurJ.safetensors", + "bytes": 254128552, + "sha256": "3bf4eddddd214c2c2cca743cbe13e745af7d7883a0fab8f67d26a01a18b2bcc4", + "store": "float32", + "class": "dbis.xyscannet.XYScanNet", + "args": {}, + "source": { + "method": "XYScanNet", + "paper": "XYScanNet: A State Space Model for Single Image Deblurring", + "venue": "CVPR 2025 Workshops (NTIRE)", + "code": "https://github.com/HanzhouLiu/XYScanNet", + "commit": "787f853bc4f7cbe3363336d7aeec4aaae9df1cb3", + "license": "MIT-style text restricted to non-commercial use, Copyright (c) 2025 Hanzhou Liu", + "url": "https://drive.google.com/file/d/17vw-VMOHzyGvHqlcZzDF8vwx0-OWb2M-", + "file": "realblur_j/final_XYScanNet_stage2.pth", + "md5": "5a3935ae7fcae47727c5ca31b09c1a38", + "group": null, + "trained_on": "RealBlur-J" + }, + "load": "import dbis; net = dbis.load(\"dbis-XYScanNet-RealBlurJ\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbis-XYScanNet-RealBlurJ/dbis-XYScanNet-RealBlurJ.safetensors b/dbis-XYScanNet-RealBlurJ/dbis-XYScanNet-RealBlurJ.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..01467620dc4e85ac3e52fe0fe974e71441c2dea5 --- /dev/null +++ b/dbis-XYScanNet-RealBlurJ/dbis-XYScanNet-RealBlurJ.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3bf4eddddd214c2c2cca743cbe13e745af7d7883a0fab8f67d26a01a18b2bcc4 +size 254128552 diff --git a/dbis-XYScanNet-RealBlurJ/licenses/XYScanNet-LICENSE.txt b/dbis-XYScanNet-RealBlurJ/licenses/XYScanNet-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..81b476db05c449e5573471c2bb703ab103c7a7f4 --- /dev/null +++ b/dbis-XYScanNet-RealBlurJ/licenses/XYScanNet-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a5baffd3566ed53e06ef1a44dbdf6c76b8172a924ad3b5a395f51c6b2ab81185 +size 1762 diff --git a/dbis-XYScanNet-RealBlurR/LICENSE.md b/dbis-XYScanNet-RealBlurR/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..5349311aaf28ed674f7782167d9af149a1e69ec4 --- /dev/null +++ b/dbis-XYScanNet-RealBlurR/LICENSE.md @@ -0,0 +1,9 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbis-XYScanNet-RealBlurR.safetensors` | `final_XYScanNet_stage2.pth` of [HanzhouLiu/XYScanNet](https://github.com/HanzhouLiu/XYScanNet) (commit 787f853) | **Non-commercial use only.** MIT-style text restricted to non-commercial use, Copyright (c) 2025 Hanzhou Liu (`licenses/XYScanNet-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/dbis-XYScanNet-RealBlurR/README.md b/dbis-XYScanNet-RealBlurR/README.md new file mode 100644 index 0000000000000000000000000000000000000000..fc793a3d2e35f4b2f0072dd62659cb3b2af8d2d8 --- /dev/null +++ b/dbis-XYScanNet-RealBlurR/README.md @@ -0,0 +1,51 @@ +--- +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 +--- + +# dbis-XYScanNet-RealBlurR + +> **Non-commercial use only**: this file keeps the terms of its source checkpoint, MIT-style, non-commercial (see `LICENSE.md`). + +XYScanNet (XYScanNet: A State Space Model for Single Image Deblurring, CVPR 2025 Workshops (NTIRE)) in plain PyTorch, our code and weight file, the same outputs as the authors' code. Made from the authors' checkpoint (trained on RealBlur-R) 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/HanzhouLiu/XYScanNet. + +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 dbis-XYScanNet-RealBlurR blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbis-XYScanNet-RealBlurR/dbis-XYScanNet-RealBlurR.safetensors # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbis-XYScanNet-RealBlurR") # 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 | +|---|---:|---:|---:| +| `dbis-XYScanNet-RealBlurR.safetensors` | 254 MB | 24.1620 | – | +| the authors' code and checkpoint | – | 24.1620 | 424.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)). + +The outputs equal those of the authors' code on the GoPro frames of the equality check of its port (DBIS.md). + +`dbis-XYScanNet-RealBlurR.json` here has the file's sha256, the source checkpoint and its md5, and the network's arguments. `.safetensors`, float32. + +## Terms + +The file keeps the terms of the checkpoint it is made from: MIT-style, non-commercial. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbis-XYScanNet-RealBlurR/dbis-XYScanNet-RealBlurR.json b/dbis-XYScanNet-RealBlurR/dbis-XYScanNet-RealBlurR.json new file mode 100644 index 0000000000000000000000000000000000000000..2d17339935011ee1ff3681f1723e74aa19513895 --- /dev/null +++ b/dbis-XYScanNet-RealBlurR/dbis-XYScanNet-RealBlurR.json @@ -0,0 +1,25 @@ +{ + "model": "dbis-XYScanNet-RealBlurR", + "file": "dbis-XYScanNet-RealBlurR.safetensors", + "path": "dbis-XYScanNet-RealBlurR/dbis-XYScanNet-RealBlurR.safetensors", + "bytes": 254128552, + "sha256": "6eba1818b0e4484a9f7e3b15787e15b6fffe99961bb1c2755879fa356e6db27a", + "store": "float32", + "class": "dbis.xyscannet.XYScanNet", + "args": {}, + "source": { + "method": "XYScanNet", + "paper": "XYScanNet: A State Space Model for Single Image Deblurring", + "venue": "CVPR 2025 Workshops (NTIRE)", + "code": "https://github.com/HanzhouLiu/XYScanNet", + "commit": "787f853bc4f7cbe3363336d7aeec4aaae9df1cb3", + "license": "MIT-style text restricted to non-commercial use, Copyright (c) 2025 Hanzhou Liu", + "url": "https://drive.google.com/file/d/1XU4VizouaiLm3YpsMd8hNMrALY1Zbm9H", + "file": "realblur_r/final_XYScanNet_stage2.pth", + "md5": "e5d03bb0c21da22342233f82acdafea2", + "group": null, + "trained_on": "RealBlur-R" + }, + "load": "import dbis; net = dbis.load(\"dbis-XYScanNet-RealBlurR\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbis-XYScanNet-RealBlurR/dbis-XYScanNet-RealBlurR.safetensors b/dbis-XYScanNet-RealBlurR/dbis-XYScanNet-RealBlurR.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..670d78f0370bdb18196faf3b03b3ea7e6f50bfb5 --- /dev/null +++ b/dbis-XYScanNet-RealBlurR/dbis-XYScanNet-RealBlurR.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6eba1818b0e4484a9f7e3b15787e15b6fffe99961bb1c2755879fa356e6db27a +size 254128552 diff --git a/dbis-XYScanNet-RealBlurR/licenses/XYScanNet-LICENSE.txt b/dbis-XYScanNet-RealBlurR/licenses/XYScanNet-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..81b476db05c449e5573471c2bb703ab103c7a7f4 --- /dev/null +++ b/dbis-XYScanNet-RealBlurR/licenses/XYScanNet-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a5baffd3566ed53e06ef1a44dbdf6c76b8172a924ad3b5a395f51c6b2ab81185 +size 1762 diff --git a/dbis-XYScanNet/LICENSE.md b/dbis-XYScanNet/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..8ed7b8c9f8af40814bd45133de16550606c3035e --- /dev/null +++ b/dbis-XYScanNet/LICENSE.md @@ -0,0 +1,9 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbis-XYScanNet.safetensors` | `best_XYScanNet_stage2.pth` of [HanzhouLiu/XYScanNet](https://github.com/HanzhouLiu/XYScanNet) (commit 787f853) | **Non-commercial use only.** MIT-style text restricted to non-commercial use, Copyright (c) 2025 Hanzhou Liu (`licenses/XYScanNet-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/dbis-XYScanNet/README.md b/dbis-XYScanNet/README.md new file mode 100644 index 0000000000000000000000000000000000000000..c223ee864726f434f3ecae991735bf2b15bcfb9d --- /dev/null +++ b/dbis-XYScanNet/README.md @@ -0,0 +1,52 @@ +--- +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 +--- + +# dbis-XYScanNet + +> **Non-commercial use only**: this file keeps the terms of its source checkpoint, MIT-style, non-commercial (see `LICENSE.md`). + +XYScanNet (XYScanNet: A State Space Model for Single Image Deblurring, CVPR 2025 Workshops (NTIRE)) in plain PyTorch, our code and weight file, the same outputs as the authors' code. 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/HanzhouLiu/XYScanNet. + +The same checkpoint in other versions: [dbisf-XYScanNet](https://huggingface.co/Illaitar/dbis/tree/main/dbisf-XYScanNet). +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 dbis-XYScanNet blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbis-XYScanNet/dbis-XYScanNet.safetensors # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbis-XYScanNet") # 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 | +|---|---:|---:|---:| +| `dbis-XYScanNet.safetensors` | 254 MB | 33.9071 | – | +| the authors' code and checkpoint | 254 MB | 33.9071 | 424.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)). + +The outputs equal those of the authors' code on the GoPro frames of the equality check of its port (DBIS.md). + +`dbis-XYScanNet.json` here has the file's sha256, the source checkpoint and its md5, and the network's arguments. `.safetensors`, float32. + +## Terms + +The file keeps the terms of the checkpoint it is made from: MIT-style, non-commercial. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbis-XYScanNet/dbis-XYScanNet.json b/dbis-XYScanNet/dbis-XYScanNet.json new file mode 100644 index 0000000000000000000000000000000000000000..6c14f153ec391021c71c62fecfd5b0774ab3a0f9 --- /dev/null +++ b/dbis-XYScanNet/dbis-XYScanNet.json @@ -0,0 +1,25 @@ +{ + "model": "dbis-XYScanNet", + "file": "dbis-XYScanNet.safetensors", + "path": "dbis-XYScanNet/dbis-XYScanNet.safetensors", + "bytes": 254128528, + "sha256": "ecacd2b85b1c24a0e000b4aa2205150be1c7cbf19945c75ad041c63bc6e61f84", + "store": "float32", + "class": "dbis.xyscannet.XYScanNet", + "args": {}, + "source": { + "method": "XYScanNet", + "paper": "XYScanNet: A State Space Model for Single Image Deblurring", + "venue": "CVPR 2025 Workshops (NTIRE)", + "code": "https://github.com/HanzhouLiu/XYScanNet", + "commit": "787f853bc4f7cbe3363336d7aeec4aaae9df1cb3", + "license": "MIT-style text restricted to non-commercial use, Copyright (c) 2025 Hanzhou Liu", + "url": "https://drive.google.com/drive/folders/10nu5WiA05Dv4q12A0XiISGMmXd6gyiYE", + "file": "best_XYScanNet_stage2.pth", + "md5": "25b1853756f26332b94e3fdb9c605114", + "group": null, + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbis-XYScanNet\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbis-XYScanNet/dbis-XYScanNet.safetensors b/dbis-XYScanNet/dbis-XYScanNet.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..785f89bf44136ee82d113bf944f388c5e8df1b06 --- /dev/null +++ b/dbis-XYScanNet/dbis-XYScanNet.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ecacd2b85b1c24a0e000b4aa2205150be1c7cbf19945c75ad041c63bc6e61f84 +size 254128528 diff --git a/dbis-XYScanNet/licenses/XYScanNet-LICENSE.txt b/dbis-XYScanNet/licenses/XYScanNet-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..81b476db05c449e5573471c2bb703ab103c7a7f4 --- /dev/null +++ b/dbis-XYScanNet/licenses/XYScanNet-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a5baffd3566ed53e06ef1a44dbdf6c76b8172a924ad3b5a395f51c6b2ab81185 +size 1762 diff --git a/dbis-rvrt-DVD/LICENSE.md b/dbis-rvrt-DVD/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..e1d3f5463159cd4a89c21ce31dccb0e139685668 --- /dev/null +++ b/dbis-rvrt-DVD/LICENSE.md @@ -0,0 +1,9 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbis-rvrt-DVD.safetensors` | `004_RVRT_videodeblurring_DVD_16frames.pth` of [JingyunLiang/RVRT](https://github.com/JingyunLiang/RVRT) (commit a5d406c) | **Non-commercial use only.** CC BY-NC 4.0 (Attribution-NonCommercial 4.0 International), non-commercial use only; source headers say Copyright (c) Facebook, Inc. and its affiliates, BSD (`licenses/RVRT-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/dbis-rvrt-DVD/README.md b/dbis-rvrt-DVD/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b45722e223a17be5f85a1a3c9c8d450a20e631a6 --- /dev/null +++ b/dbis-rvrt-DVD/README.md @@ -0,0 +1,50 @@ +--- +license: cc-by-nc-4.0 +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- video-deblurring +- image-restoration +- dbis +--- + +# dbis-rvrt-DVD + +> **Non-commercial use only**: this file keeps the terms of its source checkpoint, CC BY-NC 4.0, non-commercial (see `LICENSE.md`). + +RVRT (Recurrent Video Restoration Transformer with Guided Deformable Attention, NeurIPS 2022) in plain PyTorch, our code and weight file, the same outputs as the authors' code. Made from the authors' checkpoint (trained on DVD) 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/JingyunLiang/RVRT. + +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 dbis-rvrt-DVD blurry_frames/ sharp_frames/ # a folder of frames (one clip) or a video file +hf download Illaitar/dbis dbis-rvrt-DVD/dbis-rvrt-DVD.safetensors # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbis-rvrt-DVD") # 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 | +|---|---:|---:|---:| +| `dbis-rvrt-DVD.safetensors` | 57 MB | 31.9407 | 3.87 s | +| the authors' code and checkpoint | – | 31.9407 | 6.94 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)). + +The outputs equal those of the authors' code on the GoPro frames of the equality check of its port (DBIS.md). + +`dbis-rvrt-DVD.json` here has the file's sha256, the source checkpoint and its md5, and the network's arguments. `.safetensors`, float32. + +## Terms + +The file keeps the terms of the checkpoint it is made from: CC BY-NC 4.0, non-commercial. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbis-rvrt-DVD/dbis-rvrt-DVD.json b/dbis-rvrt-DVD/dbis-rvrt-DVD.json new file mode 100644 index 0000000000000000000000000000000000000000..887d2f8d36b16dea66ddba1cb7e562b32bcf41bf --- /dev/null +++ b/dbis-rvrt-DVD/dbis-rvrt-DVD.json @@ -0,0 +1,25 @@ +{ + "model": "dbis-rvrt-DVD", + "file": "dbis-rvrt-DVD.safetensors", + "path": "dbis-rvrt-DVD/dbis-rvrt-DVD.safetensors", + "bytes": 56584132, + "sha256": "b4326d99b89b8f92c3d8901aaae813e17fd459764333f642514023e3b5d47d78", + "store": "float32", + "class": "dbis.rvrt.RVRT", + "args": {}, + "source": { + "method": "RVRT", + "paper": "Recurrent Video Restoration Transformer with Guided Deformable Attention", + "venue": "NeurIPS 2022", + "code": "https://github.com/JingyunLiang/RVRT", + "commit": "a5d406cd77c687774c5553bc57048e92b161829b", + "license": "CC BY-NC 4.0 (Attribution-NonCommercial 4.0 International), non-commercial use only; source headers say Copyright (c) Facebook, Inc. and its affiliates, BSD", + "url": "https://github.com/JingyunLiang/RVRT/releases/download/v0.0/004_RVRT_videodeblurring_DVD_16frames.pth", + "file": "004_RVRT_videodeblurring_DVD_16frames.pth", + "md5": "9c3078010326042b4a59c0baa5a567bf", + "group": "params", + "trained_on": "DVD" + }, + "load": "import dbis; net = dbis.load(\"dbis-rvrt-DVD\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbis-rvrt-DVD/dbis-rvrt-DVD.safetensors b/dbis-rvrt-DVD/dbis-rvrt-DVD.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..aa364ce813108365dc0629980804c803b2cca93f --- /dev/null +++ b/dbis-rvrt-DVD/dbis-rvrt-DVD.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b4326d99b89b8f92c3d8901aaae813e17fd459764333f642514023e3b5d47d78 +size 56584132 diff --git a/dbis-rvrt-DVD/licenses/RVRT-LICENSE.txt b/dbis-rvrt-DVD/licenses/RVRT-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..2550c1f1349c62014dd191d697bd41fecb7b7243 --- /dev/null +++ b/dbis-rvrt-DVD/licenses/RVRT-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:002f0a68d433bdd2d5c348f6cb47e8dba35fe8b898c52de59129322fcae34154 +size 19332 diff --git a/dbis-rvrt/LICENSE.md b/dbis-rvrt/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..6063e0cfc1634586659cd0f9b4a198bb88c4eb2b --- /dev/null +++ b/dbis-rvrt/LICENSE.md @@ -0,0 +1,9 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbis-rvrt.safetensors` | `005_RVRT_videodeblurring_GoPro_16frames.pth` of [JingyunLiang/RVRT](https://github.com/JingyunLiang/RVRT) (commit a5d406c) | **Non-commercial use only.** CC BY-NC 4.0 (Attribution-NonCommercial 4.0 International), non-commercial use only; source headers say Copyright (c) Facebook, Inc. and its affiliates, BSD (`licenses/RVRT-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/dbis-rvrt/README.md b/dbis-rvrt/README.md new file mode 100644 index 0000000000000000000000000000000000000000..9abc7ed5a1629599ec717cf2037972127e8b14b3 --- /dev/null +++ b/dbis-rvrt/README.md @@ -0,0 +1,51 @@ +--- +license: cc-by-nc-4.0 +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- video-deblurring +- image-restoration +- dbis +--- + +# dbis-rvrt + +> **Non-commercial use only**: this file keeps the terms of its source checkpoint, CC BY-NC 4.0, non-commercial (see `LICENSE.md`). + +RVRT (Recurrent Video Restoration Transformer with Guided Deformable Attention, NeurIPS 2022) in plain PyTorch, our code and weight file, the same outputs as the authors' code. 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/JingyunLiang/RVRT. + +The same checkpoint in other versions: [dbisf-rvrt](https://huggingface.co/Illaitar/dbis/tree/main/dbisf-rvrt). +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 dbis-rvrt blurry_frames/ sharp_frames/ # a folder of frames (one clip) or a video file +hf download Illaitar/dbis dbis-rvrt/dbis-rvrt.safetensors # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbis-rvrt") # 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 | +|---|---:|---:|---:| +| `dbis-rvrt.safetensors` | 57 MB | 34.9174 | 3.87 s | +| the authors' code and checkpoint | 57 MB | 34.9174 | 6.94 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)). + +The outputs equal those of the authors' code on the GoPro frames of the equality check of its port (DBIS.md). + +`dbis-rvrt.json` here has the file's sha256, the source checkpoint and its md5, and the network's arguments. `.safetensors`, float32. + +## Terms + +The file keeps the terms of the checkpoint it is made from: CC BY-NC 4.0, non-commercial. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbis-rvrt/dbis-rvrt.json b/dbis-rvrt/dbis-rvrt.json new file mode 100644 index 0000000000000000000000000000000000000000..29d4706fdf079b3721c3904773e1c5cffbcbc186 --- /dev/null +++ b/dbis-rvrt/dbis-rvrt.json @@ -0,0 +1,25 @@ +{ + "model": "dbis-rvrt", + "file": "dbis-rvrt.safetensors", + "path": "dbis-rvrt/dbis-rvrt.safetensors", + "bytes": 56584132, + "sha256": "b94af8e446b10dfb54c98ccd4f2f12321de722bb9d42b75feefd712984d9afe2", + "store": "float32", + "class": "dbis.rvrt.RVRT", + "args": {}, + "source": { + "method": "RVRT", + "paper": "Recurrent Video Restoration Transformer with Guided Deformable Attention", + "venue": "NeurIPS 2022", + "code": "https://github.com/JingyunLiang/RVRT", + "commit": "a5d406cd77c687774c5553bc57048e92b161829b", + "license": "CC BY-NC 4.0 (Attribution-NonCommercial 4.0 International), non-commercial use only; source headers say Copyright (c) Facebook, Inc. and its affiliates, BSD", + "url": "https://github.com/JingyunLiang/RVRT/releases/download/v0.0/005_RVRT_videodeblurring_GoPro_16frames.pth", + "file": "005_RVRT_videodeblurring_GoPro_16frames.pth", + "md5": "90ce7255e94d39db911869880bfa486c", + "group": "params", + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbis-rvrt\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbis-rvrt/dbis-rvrt.safetensors b/dbis-rvrt/dbis-rvrt.safetensors new file mode 100644 index 0000000000000000000000000000000000000000..b19ac1ed221c7d328eff9a6102c4853e0f0b064d --- /dev/null +++ b/dbis-rvrt/dbis-rvrt.safetensors @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b94af8e446b10dfb54c98ccd4f2f12321de722bb9d42b75feefd712984d9afe2 +size 56584132 diff --git a/dbis-rvrt/licenses/RVRT-LICENSE.txt b/dbis-rvrt/licenses/RVRT-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..2550c1f1349c62014dd191d697bd41fecb7b7243 --- /dev/null +++ b/dbis-rvrt/licenses/RVRT-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:002f0a68d433bdd2d5c348f6cb47e8dba35fe8b898c52de59129322fcae34154 +size 19332 diff --git a/dbisf-ALGNet/LICENSE.md b/dbisf-ALGNet/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..030b19831e0fd4909de963519efb4d77d8359ec6 --- /dev/null +++ b/dbisf-ALGNet/LICENSE.md @@ -0,0 +1,7 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-ALGNet.wpk` | `deblur_model_best.pth` of [Tombs98/ALGNet](https://github.com/Tombs98/ALGNet) (commit 81c4328) | Apache-2.0 (LICENSE file of the repository, no copyright line); Mamba part after mamba_ssm, Apache-2.0, Copyright (c) 2023 Tri Dao, Albert Gu (`licenses/ALGNet-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-ALGNet/README.md b/dbisf-ALGNet/README.md new file mode 100644 index 0000000000000000000000000000000000000000..ea324a8658fb72f7f6d25c92550086d60cbcbc40 --- /dev/null +++ b/dbisf-ALGNet/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-ALGNet + +ALGNet (Learning Enriched Features via Selective State Spaces Model for Efficient 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 (authors' GoPro file; the benchmark notes say its training data are not GoPro-only, see fix2311/default_rows.md)) 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/ALGNet. + +The same checkpoint in other versions: [dbis-ALGNet](https://huggingface.co/Illaitar/dbis/tree/main/dbis-ALGNet), [dbis-ALGNetTLC](https://huggingface.co/Illaitar/dbis/tree/main/dbis-ALGNetTLC), [dbisf-ALGNetTLC](https://huggingface.co/Illaitar/dbis/tree/main/dbisf-ALGNetTLC). +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-ALGNet blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-ALGNet/dbisf-ALGNet.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-ALGNet") # 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-ALGNet.wpk` | 35 MB | 32.8874 | 86.0 ms | +| the authors' code and checkpoint | 151 MB | 32.8873 | 152.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-ALGNet.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-ALGNet/dbisf-ALGNet.json b/dbisf-ALGNet/dbisf-ALGNet.json new file mode 100644 index 0000000000000000000000000000000000000000..4ad2a8808c7bb8c210e66d33cc892beb75c22a1e --- /dev/null +++ b/dbisf-ALGNet/dbisf-ALGNet.json @@ -0,0 +1,28 @@ +{ + "model": "dbisf-ALGNet", + "file": "dbisf-ALGNet.wpk", + "path": "dbisf-ALGNet/dbisf-ALGNet.wpk", + "bytes": 35100369, + "sha256": "2a8c9a5650f70f7610404584b76b518591793bd22de7acdc0bc2353c40756b2f", + "store": "qc64", + "class": "dbis.algnet.ALGNet", + "args": { + "tlc": false, + "fast": true + }, + "source": { + "method": "ALGNet", + "paper": "Learning Enriched Features via Selective State Spaces Model for Efficient Image Deblurring", + "venue": "ACM MM 2024", + "code": "https://github.com/Tombs98/ALGNet", + "commit": "81c4328764b9a0b731ee769e26ba73e2ec620b5f", + "license": "Apache-2.0 (LICENSE file of the repository, no copyright line); Mamba part after mamba_ssm, Apache-2.0, Copyright (c) 2023 Tri Dao, Albert Gu", + "url": "https://drive.google.com/drive/folders/1WOYuuvGCDOJWo0U6PizE4780EmkxbDya", + "group": "state_dict", + "file": "deblur_model_best.pth", + "md5": "1d3dcccafeb536e7b05efb7c37b7a74f", + "trained_on": "GoPro (authors' GoPro file; the benchmark notes say its training data are not GoPro-only, see fix2311/default_rows.md)" + }, + "load": "import dbis; net = dbis.load(\"dbisf-ALGNet\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-ALGNet/dbisf-ALGNet.wpk b/dbisf-ALGNet/dbisf-ALGNet.wpk new file mode 100644 index 0000000000000000000000000000000000000000..7a8d20a24bfeca7db13a7c16c17263d9c4739352 --- /dev/null +++ b/dbisf-ALGNet/dbisf-ALGNet.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2a8c9a5650f70f7610404584b76b518591793bd22de7acdc0bc2353c40756b2f +size 35100369 diff --git a/dbisf-ALGNet/licenses/ALGNet-LICENSE.txt b/dbisf-ALGNet/licenses/ALGNet-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..06974d20a76bf416d33438e200c8e11958d4002e --- /dev/null +++ b/dbisf-ALGNet/licenses/ALGNet-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 +size 11357 diff --git a/dbisf-ALGNetTLC/LICENSE.md b/dbisf-ALGNetTLC/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..030b19831e0fd4909de963519efb4d77d8359ec6 --- /dev/null +++ b/dbisf-ALGNetTLC/LICENSE.md @@ -0,0 +1,7 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-ALGNet.wpk` | `deblur_model_best.pth` of [Tombs98/ALGNet](https://github.com/Tombs98/ALGNet) (commit 81c4328) | Apache-2.0 (LICENSE file of the repository, no copyright line); Mamba part after mamba_ssm, Apache-2.0, Copyright (c) 2023 Tri Dao, Albert Gu (`licenses/ALGNet-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-ALGNetTLC/README.md b/dbisf-ALGNetTLC/README.md new file mode 100644 index 0000000000000000000000000000000000000000..3cc6b493f360785eacfefee5a8ff8ed7481f45ea --- /dev/null +++ b/dbisf-ALGNetTLC/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-ALGNetTLC + +ALGNet (Learning Enriched Features via Selective State Spaces Model for Efficient 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 (authors' GoPro file; the benchmark notes say its training data are not GoPro-only, see fix2311/default_rows.md)) 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/ALGNet. + +The same checkpoint in other versions: [dbis-ALGNet](https://huggingface.co/Illaitar/dbis/tree/main/dbis-ALGNet), [dbis-ALGNetTLC](https://huggingface.co/Illaitar/dbis/tree/main/dbis-ALGNetTLC), [dbisf-ALGNet](https://huggingface.co/Illaitar/dbis/tree/main/dbisf-ALGNet). +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-ALGNetTLC blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-ALGNetTLC/dbisf-ALGNet.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-ALGNetTLC") # 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-ALGNet.wpk` | 35 MB | 33.4933 | 90.1 ms | +| the authors' code and checkpoint | 151 MB | 33.4942 | 156.5 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-ALGNet.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-ALGNetTLC/dbisf-ALGNet.json b/dbisf-ALGNetTLC/dbisf-ALGNet.json new file mode 100644 index 0000000000000000000000000000000000000000..0344616d062dc39a6ee6181189a55fe7af6bf36d --- /dev/null +++ b/dbisf-ALGNetTLC/dbisf-ALGNet.json @@ -0,0 +1,28 @@ +{ + "model": "dbisf-ALGNetTLC", + "file": "dbisf-ALGNet.wpk", + "path": "dbisf-ALGNetTLC/dbisf-ALGNet.wpk", + "bytes": 35100369, + "sha256": "2a8c9a5650f70f7610404584b76b518591793bd22de7acdc0bc2353c40756b2f", + "store": "qc64", + "class": "dbis.algnet.ALGNet", + "args": { + "tlc": true, + "fast": true + }, + "source": { + "method": "ALGNet", + "paper": "Learning Enriched Features via Selective State Spaces Model for Efficient Image Deblurring", + "venue": "ACM MM 2024", + "code": "https://github.com/Tombs98/ALGNet", + "commit": "81c4328764b9a0b731ee769e26ba73e2ec620b5f", + "license": "Apache-2.0 (LICENSE file of the repository, no copyright line); Mamba part after mamba_ssm, Apache-2.0, Copyright (c) 2023 Tri Dao, Albert Gu", + "url": "https://drive.google.com/drive/folders/1WOYuuvGCDOJWo0U6PizE4780EmkxbDya", + "group": "state_dict", + "file": "deblur_model_best.pth", + "md5": "1d3dcccafeb536e7b05efb7c37b7a74f", + "trained_on": "GoPro (authors' GoPro file; the benchmark notes say its training data are not GoPro-only, see fix2311/default_rows.md)" + }, + "load": "import dbis; net = dbis.load(\"dbisf-ALGNetTLC\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-ALGNetTLC/dbisf-ALGNet.wpk b/dbisf-ALGNetTLC/dbisf-ALGNet.wpk new file mode 100644 index 0000000000000000000000000000000000000000..7a8d20a24bfeca7db13a7c16c17263d9c4739352 --- /dev/null +++ b/dbisf-ALGNetTLC/dbisf-ALGNet.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2a8c9a5650f70f7610404584b76b518591793bd22de7acdc0bc2353c40756b2f +size 35100369 diff --git a/dbisf-ALGNetTLC/licenses/ALGNet-LICENSE.txt b/dbisf-ALGNetTLC/licenses/ALGNet-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..06974d20a76bf416d33438e200c8e11958d4002e --- /dev/null +++ b/dbisf-ALGNetTLC/licenses/ALGNet-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 +size 11357 diff --git a/dbisf-AdaRevD-B/LICENSE.md b/dbisf-AdaRevD-B/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..03c5484d0b37526c64f4442195994c626a9e5dac --- /dev/null +++ b/dbisf-AdaRevD-B/LICENSE.md @@ -0,0 +1,10 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-AdaRevD-B.wpk` | `RevD-B_GoPro.pth` of [INVOKERer/AdaRevD](https://github.com/INVOKERer/AdaRevD) (commit 33fb62d) | **Non-commercial use only.** Academic Public License (non-commercial only), Copyright the AdaRevD authors (`licenses/AdaRevD-LICENSE.txt`) | +| the same file | `GoPro.pth` of [INVOKERer/AdaRevD](https://github.com/INVOKERer/AdaRevD) (commit 33fb62d) | **Non-commercial use only.** Academic Public License (non-commercial only), Copyright the AdaRevD authors (`licenses/AdaRevD-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-AdaRevD-B/README.md b/dbisf-AdaRevD-B/README.md new file mode 100644 index 0000000000000000000000000000000000000000..f46af9b0e382e6be91499de8c14a27ce053e5931 --- /dev/null +++ b/dbisf-AdaRevD-B/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-AdaRevD-B + +> **Non-commercial use only**: this file keeps the terms of its source checkpoint, Academic Public License, non-commercial (see `LICENSE.md`). + +AdaRevD (AdaRevD: Adaptive Patch Exiting Reversible Decoder Pushes the Limit of Image 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/INVOKERer/AdaRevD. + +The same checkpoint in other versions: [dbis-AdaRevD-B](https://huggingface.co/Illaitar/dbis/tree/main/dbis-AdaRevD-B), [dbis-AdaRevD-Btiled](https://huggingface.co/Illaitar/dbis/tree/main/dbis-AdaRevD-Btiled), [dbisf-AdaRevD-Btiled](https://huggingface.co/Illaitar/dbis/tree/main/dbisf-AdaRevD-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-AdaRevD-B blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-AdaRevD-B/dbisf-AdaRevD-B.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-AdaRevD-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-AdaRevD-B.wpk` | 148 MB | 33.4369 | 167.4 ms | +| the authors' code and checkpoint | 1181 MB | 33.4447 | 492.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-AdaRevD-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: Academic Public License, non-commercial. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbisf-AdaRevD-B/dbisf-AdaRevD-B.json b/dbisf-AdaRevD-B/dbisf-AdaRevD-B.json new file mode 100644 index 0000000000000000000000000000000000000000..59277f78f8b12cb2405a605d3fce7a76ceda59ed --- /dev/null +++ b/dbisf-AdaRevD-B/dbisf-AdaRevD-B.json @@ -0,0 +1,36 @@ +{ + "model": "dbisf-AdaRevD-B", + "file": "dbisf-AdaRevD-B.wpk", + "path": "dbisf-AdaRevD-B/dbisf-AdaRevD-B.wpk", + "bytes": 147814420, + "sha256": "cc3d5e219add2bf5a374b5a79095e9621959111d18953c599a71a13f025421db", + "store": "qc48", + "class": "dbis.adarevd.AdaRevD", + "args": { + "n_decoders": 4, + "adaptive": true, + "tlc": false, + "patch": null, + "fast": true + }, + "source": { + "method": "AdaRevD", + "paper": "AdaRevD: Adaptive Patch Exiting Reversible Decoder Pushes the Limit of Image Deblurring", + "venue": "CVPR 2024", + "code": "https://github.com/INVOKERer/AdaRevD", + "commit": "33fb62d20d52b994aa2efacfe8f9c65250a38995", + "license": "Academic Public License (non-commercial only), Copyright the AdaRevD authors", + "url": "https://drive.google.com/file/d/19mTXSE_qiSq-x0MYpZhBmuvB1FhYVy3U (RevD-B_GoPro.pth) + https://drive.google.com/file/d/1FrQeg-p_XjgAZt0W6Aw5QcAnReCAvFuA (classifier.zip -> GoPro.pth, the 'ape' classifier)", + "file": "RevD-B_GoPro.pth", + "md5": "9474bb2fd344b7f4beb72a38cadeb0d0", + "group": "params", + "trained_on": "GoPro", + "extra": { + "file": "classifier.zip/GoPro.pth", + "md5_zip": "7871fcf8ea98d6e01d54465b520b0ad3", + "fold_arg": "classifier" + } + }, + "load": "import dbis; net = dbis.load(\"dbisf-AdaRevD-B\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-AdaRevD-B/dbisf-AdaRevD-B.wpk b/dbisf-AdaRevD-B/dbisf-AdaRevD-B.wpk new file mode 100644 index 0000000000000000000000000000000000000000..f0299bf48864c838daa99584fb3a27fdee9b52ba --- /dev/null +++ b/dbisf-AdaRevD-B/dbisf-AdaRevD-B.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cc3d5e219add2bf5a374b5a79095e9621959111d18953c599a71a13f025421db +size 147814420 diff --git a/dbisf-AdaRevD-B/licenses/AdaRevD-LICENSE.txt b/dbisf-AdaRevD-B/licenses/AdaRevD-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..76a803f16914ded40495b77abe1d910509d68e0a --- /dev/null +++ b/dbisf-AdaRevD-B/licenses/AdaRevD-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:233e60359b7d3a9a5b91ae6f7b8145566d3736e19cc3a04b232025adc8bb2464 +size 1337 diff --git a/dbisf-AdaRevD-Btiled/LICENSE.md b/dbisf-AdaRevD-Btiled/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..03c5484d0b37526c64f4442195994c626a9e5dac --- /dev/null +++ b/dbisf-AdaRevD-Btiled/LICENSE.md @@ -0,0 +1,10 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-AdaRevD-B.wpk` | `RevD-B_GoPro.pth` of [INVOKERer/AdaRevD](https://github.com/INVOKERer/AdaRevD) (commit 33fb62d) | **Non-commercial use only.** Academic Public License (non-commercial only), Copyright the AdaRevD authors (`licenses/AdaRevD-LICENSE.txt`) | +| the same file | `GoPro.pth` of [INVOKERer/AdaRevD](https://github.com/INVOKERer/AdaRevD) (commit 33fb62d) | **Non-commercial use only.** Academic Public License (non-commercial only), Copyright the AdaRevD authors (`licenses/AdaRevD-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-AdaRevD-Btiled/README.md b/dbisf-AdaRevD-Btiled/README.md new file mode 100644 index 0000000000000000000000000000000000000000..e9289e3a75a5c057833d63abd718c347e3af1a9a --- /dev/null +++ b/dbisf-AdaRevD-Btiled/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-AdaRevD-Btiled + +> **Non-commercial use only**: this file keeps the terms of its source checkpoint, Academic Public License, non-commercial (see `LICENSE.md`). + +AdaRevD (AdaRevD: Adaptive Patch Exiting Reversible Decoder Pushes the Limit of Image 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/INVOKERer/AdaRevD. + +The same checkpoint in other versions: [dbis-AdaRevD-B](https://huggingface.co/Illaitar/dbis/tree/main/dbis-AdaRevD-B), [dbis-AdaRevD-Btiled](https://huggingface.co/Illaitar/dbis/tree/main/dbis-AdaRevD-Btiled), [dbisf-AdaRevD-B](https://huggingface.co/Illaitar/dbis/tree/main/dbisf-AdaRevD-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-AdaRevD-Btiled blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-AdaRevD-Btiled/dbisf-AdaRevD-B.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-AdaRevD-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-AdaRevD-B.wpk` | 148 MB | 34.4935 | 414.0 ms | +| the authors' code and checkpoint | 1181 MB | 34.5014 | 932.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-AdaRevD-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: Academic Public License, non-commercial. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbisf-AdaRevD-Btiled/dbisf-AdaRevD-B.json b/dbisf-AdaRevD-Btiled/dbisf-AdaRevD-B.json new file mode 100644 index 0000000000000000000000000000000000000000..3dfe9b7be20e90cc30d90b2ca84fb71e18cd1ed8 --- /dev/null +++ b/dbisf-AdaRevD-Btiled/dbisf-AdaRevD-B.json @@ -0,0 +1,39 @@ +{ + "model": "dbisf-AdaRevD-Btiled", + "file": "dbisf-AdaRevD-B.wpk", + "path": "dbisf-AdaRevD-Btiled/dbisf-AdaRevD-B.wpk", + "bytes": 147814420, + "sha256": "cc3d5e219add2bf5a374b5a79095e9621959111d18953c599a71a13f025421db", + "store": "qc48", + "class": "dbis.adarevd.AdaRevD", + "args": { + "n_decoders": 4, + "adaptive": true, + "tlc": true, + "patch": [ + 384, + 32 + ], + "fast": true + }, + "source": { + "method": "AdaRevD", + "paper": "AdaRevD: Adaptive Patch Exiting Reversible Decoder Pushes the Limit of Image Deblurring", + "venue": "CVPR 2024", + "code": "https://github.com/INVOKERer/AdaRevD", + "commit": "33fb62d20d52b994aa2efacfe8f9c65250a38995", + "license": "Academic Public License (non-commercial only), Copyright the AdaRevD authors", + "url": "https://drive.google.com/file/d/19mTXSE_qiSq-x0MYpZhBmuvB1FhYVy3U (RevD-B_GoPro.pth) + https://drive.google.com/file/d/1FrQeg-p_XjgAZt0W6Aw5QcAnReCAvFuA (classifier.zip -> GoPro.pth, the 'ape' classifier)", + "file": "RevD-B_GoPro.pth", + "md5": "9474bb2fd344b7f4beb72a38cadeb0d0", + "group": "params", + "trained_on": "GoPro", + "extra": { + "file": "classifier.zip/GoPro.pth", + "md5_zip": "7871fcf8ea98d6e01d54465b520b0ad3", + "fold_arg": "classifier" + } + }, + "load": "import dbis; net = dbis.load(\"dbisf-AdaRevD-Btiled\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-AdaRevD-Btiled/dbisf-AdaRevD-B.wpk b/dbisf-AdaRevD-Btiled/dbisf-AdaRevD-B.wpk new file mode 100644 index 0000000000000000000000000000000000000000..f0299bf48864c838daa99584fb3a27fdee9b52ba --- /dev/null +++ b/dbisf-AdaRevD-Btiled/dbisf-AdaRevD-B.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cc3d5e219add2bf5a374b5a79095e9621959111d18953c599a71a13f025421db +size 147814420 diff --git a/dbisf-AdaRevD-Btiled/licenses/AdaRevD-LICENSE.txt b/dbisf-AdaRevD-Btiled/licenses/AdaRevD-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..76a803f16914ded40495b77abe1d910509d68e0a --- /dev/null +++ b/dbisf-AdaRevD-Btiled/licenses/AdaRevD-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:233e60359b7d3a9a5b91ae6f7b8145566d3736e19cc3a04b232025adc8bb2464 +size 1337 diff --git a/dbisf-BSSTNet/LICENSE.md b/dbisf-BSSTNet/LICENSE.md index 51875982bc765d284a32f640b4cd6d1a8ccc1ecd..a29bfb4ed175c70ede04c2fa1d37f627e2ff53bf 100644 --- a/dbisf-BSSTNet/LICENSE.md +++ b/dbisf-BSSTNet/LICENSE.md @@ -2,7 +2,7 @@ | File | Source checkpoint | Terms | |---|---|---| -| `dbisf-BSSTNet.wpk` | `BSST_gopro.pth` of [huicongzhang/BSSTNet](https://github.com/huicongzhang/BSSTNet) (commit c35a43c) | MIT, as its README states ("This project is open sourced under MIT license"); the repository has no LICENSE file | -| the same file | `raft-things.pth` of [princeton-vl/RAFT](https://github.com/princeton-vl/RAFT) | BSD 3-Clause, Copyright (c) 2020, princeton-vl (`licenses/RAFT-LICENSE.txt`) | +| `dbisf-BSSTNet.wpk` | `BSST_gopro.pth` of [huicongzhang/BSSTNet](https://github.com/huicongzhang/BSSTNet) (commit c35a43c) | MIT (stated in the README of the repository) (no license file in the repository) | +| the same file | `raft-things.pth` of [princeton-vl/RAFT](https://github.com/princeton-vl/RAFT) | BSD-3-Clause, Copyright (c) 2020, princeton-vl (no license file in the repository) | 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-BSSTNet/README.md b/dbisf-BSSTNet/README.md index 3eb143d5b61d2436bf266da805ca205787571c7b..62522892b1315be00d93dc82ae8961538c1839c4 100644 --- a/dbisf-BSSTNet/README.md +++ b/dbisf-BSSTNet/README.md @@ -1,6 +1,6 @@ --- license: other -license_name: mit-and-bsd-3-clause +license_name: terms-of-the-authors license_link: LICENSE.md library_name: pytorch pipeline_tag: image-to-image @@ -14,9 +14,9 @@ tags: # dbisf-BSSTNet -BSSTNet (Blur-aware Spatio-temporal Sparse Transformer for Video 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' GoPro checkpoint by `python -m dbis.convert` of [deblurring is solved?](https://github.com/illaitar/deblurring-is-solved) ([benchmark site](https://illaitar.github.io/deblurring-is-solved/)); the authors' code: https://github.com/huicongzhang/BSSTNet. +BSSTNet (Blur-aware Spatio-temporal Sparse Transformer for Video 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/huicongzhang/BSSTNet. -The same method with the authors' outputs: [dbis-BSSTNet](https://huggingface.co/Illaitar/dbis/tree/main/dbis-BSSTNet). +The same checkpoint in other versions: [dbis-BSSTNet](https://huggingface.co/Illaitar/dbis/tree/main/dbis-BSSTNet). Every model: [the index of Illaitar/dbis](https://huggingface.co/Illaitar/dbis). ## Use @@ -40,10 +40,10 @@ out = net.restore(frames) # frames [T, 3, H, W], [B, T, 3, H, W] or [3, H, W] | `dbisf-BSSTNet.wpk` | 42 MB | 35.9425 | 4.58 s | | the authors' code and checkpoint | 209 MB | 35.9662 | 25.56 s | -PSNR: the 1,111 GoPro test frames, 8-bit outputs. Time: the benchmark's latency harness, one A100, batch 1 ([DBIS.md](https://github.com/illaitar/deblurring-is-solved/blob/main/DBIS.md) has every number and option). +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-BSSTNet.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: see `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. +The file keeps the terms of the checkpoint it is made from: MIT; BSD-3-Clause, Copyright. See `LICENSE.md`. Cite the method's paper when you use its weights. diff --git a/dbisf-BasicVSRPlusPlus/LICENSE.md b/dbisf-BasicVSRPlusPlus/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..546998dcc0ea39c116f2416cd002f86c4eba78e7 --- /dev/null +++ b/dbisf-BasicVSRPlusPlus/LICENSE.md @@ -0,0 +1,7 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-BasicVSRPlusPlus.wpk` | `basicvsr_plusplus_deblur_gopro-3c5bb9b5.pth` of [ckkelvinchan/BasicVSR_PlusPlus](https://github.com/ckkelvinchan/BasicVSR_PlusPlus) (commit bbd417c) | Apache-2.0, Copyright (c) MMEditing Authors (`licenses/BasicVSR_PlusPlus-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-BasicVSRPlusPlus/README.md b/dbisf-BasicVSRPlusPlus/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b78e5f12171349c7ed502bab84a154835af0beae --- /dev/null +++ b/dbisf-BasicVSRPlusPlus/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-BasicVSRPlusPlus + +BasicVSR++ (On the Generalization of BasicVSR++ to Video Deblurring and Denoising (arXiv 2204.05308); BasicVSR++ (CVPR 2022), 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/ckkelvinchan/BasicVSR_PlusPlus. + +The same checkpoint in other versions: [dbis-BasicVSRPlusPlus](https://huggingface.co/Illaitar/dbis/tree/main/dbis-BasicVSRPlusPlus). +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-BasicVSRPlusPlus blurry_frames/ sharp_frames/ # a folder of frames (one clip) or a video file +hf download Illaitar/dbis dbisf-BasicVSRPlusPlus/dbisf-BasicVSRPlusPlus.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-BasicVSRPlusPlus") # 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-BasicVSRPlusPlus.wpk` | 9 MB | 34.0288 | 247.5 ms | +| the authors' code and checkpoint | 39 MB | 34.0376 | 989.5 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-BasicVSRPlusPlus.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-BasicVSRPlusPlus/dbisf-BasicVSRPlusPlus.json b/dbisf-BasicVSRPlusPlus/dbisf-BasicVSRPlusPlus.json new file mode 100644 index 0000000000000000000000000000000000000000..639316ede7aede55a460864d8f25a8477608825c --- /dev/null +++ b/dbisf-BasicVSRPlusPlus/dbisf-BasicVSRPlusPlus.json @@ -0,0 +1,29 @@ +{ + "model": "dbisf-BasicVSRPlusPlus", + "file": "dbisf-BasicVSRPlusPlus.wpk", + "path": "dbisf-BasicVSRPlusPlus/dbisf-BasicVSRPlusPlus.wpk", + "bytes": 8754167, + "sha256": "006a6f3fafb7499526778e6b38fa5342d687f54f94ec3aff3a08eb43753a65e7", + "store": "qc32", + "class": "dbis.basicvsrpp.BasicVSRPlusPlus", + "args": { + "mid_channels": 64, + "num_blocks": 15, + "fast": true + }, + "source": { + "method": "BasicVSR++", + "paper": "On the Generalization of BasicVSR++ to Video Deblurring and Denoising (arXiv 2204.05308); BasicVSR++ (CVPR 2022)", + "venue": "CVPR 2022", + "code": "https://github.com/ckkelvinchan/BasicVSR_PlusPlus", + "commit": "bbd417c6ac3b995148e98960f4b7458900774889", + "license": "Apache-2.0, Copyright (c) MMEditing Authors", + "url": "BasicVSR++_chkpt.zip from the repository README (member basicvsr_plusplus_deblur_gopro-3c5bb9b5.pth)", + "file": "basicvsr_plusplus_deblur_gopro-3c5bb9b5.pth", + "md5": "7275d8ba761317581ef3808e00f4c1b7", + "group": "state_dict", + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-BasicVSRPlusPlus\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-BasicVSRPlusPlus/dbisf-BasicVSRPlusPlus.wpk b/dbisf-BasicVSRPlusPlus/dbisf-BasicVSRPlusPlus.wpk new file mode 100644 index 0000000000000000000000000000000000000000..840a217fcc7a7b650f4de5e02061457dfe42c3e1 --- /dev/null +++ b/dbisf-BasicVSRPlusPlus/dbisf-BasicVSRPlusPlus.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:006a6f3fafb7499526778e6b38fa5342d687f54f94ec3aff3a08eb43753a65e7 +size 8754167 diff --git a/dbisf-BasicVSRPlusPlus/licenses/BasicVSR_PlusPlus-LICENSE.txt b/dbisf-BasicVSRPlusPlus/licenses/BasicVSR_PlusPlus-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..f98fed1a17b511c1aa6d9c090b66d3245ded6a3f --- /dev/null +++ b/dbisf-BasicVSRPlusPlus/licenses/BasicVSR_PlusPlus-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2421dad0343e349994a824a26474ed9b616556d353248fa5cf1b371760742cbd +size 11424 diff --git a/dbisf-CDVD-TSP/LICENSE.md b/dbisf-CDVD-TSP/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..b3dc80b8385e8e9e822aa62026aed7522ed633bb --- /dev/null +++ b/dbisf-CDVD-TSP/LICENSE.md @@ -0,0 +1,7 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-CDVD-TSP.wpk` | `CDVD_TSP_GOPRO.pt` of [csbhr/CDVD-TSP](https://github.com/csbhr/CDVD-TSP) (commit b80f609) | MIT, Copyright (c) 2020 Haoran Bai (PWC-Net part from sniklaus/pytorch-pwc) (`licenses/CDVD-TSP-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-CDVD-TSP/README.md b/dbisf-CDVD-TSP/README.md new file mode 100644 index 0000000000000000000000000000000000000000..a9e32e9285477af0caa8ecb33f7d3f993ce5b8b5 --- /dev/null +++ b/dbisf-CDVD-TSP/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-CDVD-TSP + +CDVD-TSP (Cascaded Deep Video Deblurring Using Temporal Sharpness Prior, CVPR 2020) 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/csbhr/CDVD-TSP. + +The same checkpoint in other versions: [dbis-CDVD-TSP](https://huggingface.co/Illaitar/dbis/tree/main/dbis-CDVD-TSP). +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-CDVD-TSP blurry_frames/ sharp_frames/ # a folder of frames (one clip) or a video file +hf download Illaitar/dbis dbisf-CDVD-TSP/dbisf-CDVD-TSP.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-CDVD-TSP") # 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-CDVD-TSP.wpk` | 18 MB | 31.5990 | 47.4 ms | +| the authors' code and checkpoint | 65 MB | 31.6083 | 127.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-CDVD-TSP.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-CDVD-TSP/dbisf-CDVD-TSP.json b/dbisf-CDVD-TSP/dbisf-CDVD-TSP.json new file mode 100644 index 0000000000000000000000000000000000000000..0f53c7c7e5643e9ad79e9fa5a5f2eb7aaf50b90a --- /dev/null +++ b/dbisf-CDVD-TSP/dbisf-CDVD-TSP.json @@ -0,0 +1,27 @@ +{ + "model": "dbisf-CDVD-TSP", + "file": "dbisf-CDVD-TSP.wpk", + "path": "dbisf-CDVD-TSP/dbisf-CDVD-TSP.wpk", + "bytes": 17830809, + "sha256": "69c84e5bb90ccfd724ce2ddf6f14a19210263819f2a77504ad0e07d036a8d42f", + "store": "qc128", + "class": "dbis.cdvdtsp.CDVDTSP", + "args": { + "fast": true + }, + "source": { + "method": "CDVD-TSP", + "paper": "Cascaded Deep Video Deblurring Using Temporal Sharpness Prior", + "venue": "CVPR 2020", + "code": "https://github.com/csbhr/CDVD-TSP", + "commit": "b80f6098de687e6f36c78422d5ec4a9a61e42f48", + "license": "MIT, Copyright (c) 2020 Haoran Bai (PWC-Net part from sniklaus/pytorch-pwc)", + "url": "https://github.com/csbhr/CDVD-TSP (README: pretrained models, CDVD_TSP_GOPRO.pt)", + "file": "CDVD_TSP_GOPRO.pt", + "md5": "638d9ed44edc9bf11494dd902e1c84db", + "group": null, + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-CDVD-TSP\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-CDVD-TSP/dbisf-CDVD-TSP.wpk b/dbisf-CDVD-TSP/dbisf-CDVD-TSP.wpk new file mode 100644 index 0000000000000000000000000000000000000000..5dfb0259ee30d9bcc9000e08d1caea040b1b72e4 --- /dev/null +++ b/dbisf-CDVD-TSP/dbisf-CDVD-TSP.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:69c84e5bb90ccfd724ce2ddf6f14a19210263819f2a77504ad0e07d036a8d42f +size 17830809 diff --git a/dbisf-CDVD-TSP/licenses/CDVD-TSP-LICENSE.txt b/dbisf-CDVD-TSP/licenses/CDVD-TSP-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..2cbee56b94261c1b918b203326e0208a0c18cac8 --- /dev/null +++ b/dbisf-CDVD-TSP/licenses/CDVD-TSP-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:928e63af3e8f541c183e8dbb76f29ce28e1b15691d251b5edca73ca622478faf +size 1067 diff --git a/dbisf-CDVD-TSPNL/LICENSE.md b/dbisf-CDVD-TSPNL/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..91bc30037a8273c9863fca04d25177fe405df133 --- /dev/null +++ b/dbisf-CDVD-TSPNL/LICENSE.md @@ -0,0 +1,7 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-CDVD-TSPNL.wpk` | `GOPRO.pth` of [xuboming8/CDVD-TSPNL](https://github.com/xuboming8/CDVD-TSPNL) (commit f975d45) | MIT, Copyright (c) 2022 hippopmonkey (`licenses/CDVD-TSPNL-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-CDVD-TSPNL/README.md b/dbisf-CDVD-TSPNL/README.md new file mode 100644 index 0000000000000000000000000000000000000000..424b59df740ff0fe1341efb545b3b52a620aaa6b --- /dev/null +++ b/dbisf-CDVD-TSPNL/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-CDVD-TSPNL + +CDVD-TSPNL (Cascaded Deep Video Deblurring Using Temporal Sharpness Prior and Non-local Spatial-Temporal Similarity, TPAMI 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/xuboming8/CDVD-TSPNL. + +The same checkpoint in other versions: [dbis-CDVD-TSPNL](https://huggingface.co/Illaitar/dbis/tree/main/dbis-CDVD-TSPNL). +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-CDVD-TSPNL blurry_frames/ sharp_frames/ # a folder of frames (one clip) or a video file +hf download Illaitar/dbis dbisf-CDVD-TSPNL/dbisf-CDVD-TSPNL.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-CDVD-TSPNL") # 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-CDVD-TSPNL.wpk` | 6 MB | 32.9310 | 620.7 ms | +| the authors' code and checkpoint | 22 MB | 32.9332 | 1.22 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-CDVD-TSPNL.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-CDVD-TSPNL/dbisf-CDVD-TSPNL.json b/dbisf-CDVD-TSPNL/dbisf-CDVD-TSPNL.json new file mode 100644 index 0000000000000000000000000000000000000000..23cb580599e5f955ecf2908728c945ada9f62911 --- /dev/null +++ b/dbisf-CDVD-TSPNL/dbisf-CDVD-TSPNL.json @@ -0,0 +1,27 @@ +{ + "model": "dbisf-CDVD-TSPNL", + "file": "dbisf-CDVD-TSPNL.wpk", + "path": "dbisf-CDVD-TSPNL/dbisf-CDVD-TSPNL.wpk", + "bytes": 5573842, + "sha256": "c31364a914711766c104b9a376df7cd699d87191f1e977107815d38d7aaed8e8", + "store": "qc64", + "class": "dbis.cdvdtsp.CDVDTSPNL", + "args": { + "fast": true + }, + "source": { + "method": "CDVD-TSPNL", + "paper": "Cascaded Deep Video Deblurring Using Temporal Sharpness Prior and Non-local Spatial-Temporal Similarity", + "venue": "TPAMI 2023", + "code": "https://github.com/xuboming8/CDVD-TSPNL", + "commit": "f975d45a13f9e24727f0a39b1ce78cff8bf3fa6b", + "license": "MIT, Copyright (c) 2022 hippopmonkey", + "url": "https://github.com/xuboming8/CDVD-TSPNL/tree/f975d45a13f9e24727f0a39b1ce78cff8bf3fa6b/experiments/pretrained_models (in the repository)", + "file": "GOPRO.pth", + "md5": "5ba00719dd9a959d566280199f71cb61", + "group": "params", + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-CDVD-TSPNL\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-CDVD-TSPNL/dbisf-CDVD-TSPNL.wpk b/dbisf-CDVD-TSPNL/dbisf-CDVD-TSPNL.wpk new file mode 100644 index 0000000000000000000000000000000000000000..f42dce2425d7d3b59f487ee3894e64af6bec4737 --- /dev/null +++ b/dbisf-CDVD-TSPNL/dbisf-CDVD-TSPNL.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c31364a914711766c104b9a376df7cd699d87191f1e977107815d38d7aaed8e8 +size 5573842 diff --git a/dbisf-CDVD-TSPNL/licenses/CDVD-TSPNL-LICENSE.txt b/dbisf-CDVD-TSPNL/licenses/CDVD-TSPNL-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..12fbfd735ce9232dc0e4e161dad3af30e7bdc3bb --- /dev/null +++ b/dbisf-CDVD-TSPNL/licenses/CDVD-TSPNL-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:79028abccf5dac084f25f537ac31a7af991c53210e1a723f91d1ec958fca2770 +size 1069 diff --git a/dbisf-ChaIR/LICENSE.md b/dbisf-ChaIR/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..8cec57a248d98a6623b7c4fcaac91f8dcc25ab4a --- /dev/null +++ b/dbisf-ChaIR/LICENSE.md @@ -0,0 +1,7 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-ChaIR.wpk` | `gopro.pkl` of [c-yn/ChaIR](https://github.com/c-yn/ChaIR) (commit 313d3ce) | MIT, Copyright (c) 2023 Yuning Cui (`licenses/ChaIR-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-ChaIR/README.md b/dbisf-ChaIR/README.md new file mode 100644 index 0000000000000000000000000000000000000000..4b3f0563fc4f224128ecb7fff6d0bff8e68c25e1 --- /dev/null +++ b/dbisf-ChaIR/README.md @@ -0,0 +1,46 @@ +--- +license: mit +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-ChaIR + +ChaIR (Exploring the potential of channel interactions for image restoration, Knowledge-Based Systems 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/c-yn/ChaIR. + +The same checkpoint in other versions: [dbis-ChaIR](https://huggingface.co/Illaitar/dbis/tree/main/dbis-ChaIR). +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-ChaIR blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-ChaIR/dbisf-ChaIR.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-ChaIR") # 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-ChaIR.wpk` | 16 MB | 33.2475 | 47.4 ms | +| the authors' code and checkpoint | 60 MB | 33.2527 | 55.5 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-ChaIR.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-ChaIR/dbisf-ChaIR.json b/dbisf-ChaIR/dbisf-ChaIR.json new file mode 100644 index 0000000000000000000000000000000000000000..df35f946ff191dab505e2214ba0d1c621852196f --- /dev/null +++ b/dbisf-ChaIR/dbisf-ChaIR.json @@ -0,0 +1,28 @@ +{ + "model": "dbisf-ChaIR", + "file": "dbisf-ChaIR.wpk", + "path": "dbisf-ChaIR/dbisf-ChaIR.wpk", + "bytes": 15582662, + "sha256": "ff05f4cd5cb7a854b7ff24b63b42cfbcd553ca32b88a274f25eda4c697431d0f", + "store": "qc64", + "class": "dbis.chair.ChaIR", + "args": { + "num_res": 16, + "fast": true + }, + "source": { + "method": "ChaIR", + "paper": "Exploring the potential of channel interactions for image restoration", + "venue": "Knowledge-Based Systems 2023", + "code": "https://github.com/c-yn/ChaIR", + "commit": "313d3ce78a43a8c2a0ada9079559250f53fef62c", + "license": "MIT, Copyright (c) 2023 Yuning Cui", + "url": "https://drive.google.com/drive/folders/1PEyjMOJ8-MAZOkS1manAF-0cyWABiMJW (gopro.pkl, Motion_Deblurring/README model folder)", + "file": "gopro.pkl", + "md5": "98423af722d7b6de82e05ec3447c47ef", + "group": "model", + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-ChaIR\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-ChaIR/dbisf-ChaIR.wpk b/dbisf-ChaIR/dbisf-ChaIR.wpk new file mode 100644 index 0000000000000000000000000000000000000000..e41a124d7fd63a81a26a4b9a74d97e7f22f7f3c8 --- /dev/null +++ b/dbisf-ChaIR/dbisf-ChaIR.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff05f4cd5cb7a854b7ff24b63b42cfbcd553ca32b88a274f25eda4c697431d0f +size 15582662 diff --git a/dbisf-ChaIR/licenses/ChaIR-LICENSE.txt b/dbisf-ChaIR/licenses/ChaIR-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..66d076dde040c77af5aefea748f2fd1d911c40ae --- /dev/null +++ b/dbisf-ChaIR/licenses/ChaIR-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b6d29809c5d14f43718610db1614a7f728138e656010fa9013be958c66cee353 +size 1067 diff --git a/dbisf-Concertormer-TLC/LICENSE.md b/dbisf-Concertormer-TLC/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..3bb9eb63e1450b24c830d8496c83a88612128d2e --- /dev/null +++ b/dbisf-Concertormer-TLC/LICENSE.md @@ -0,0 +1,7 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-Concertormer.wpk` | `Concertormer.pth` of [setsunil/Concertormer](https://github.com/setsunil/Concertormer) (commit 94269c5) | MIT (the repository's LICENSE, Copyright (c) 2022 megvii-model) (`licenses/Concertormer-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-Concertormer-TLC/README.md b/dbisf-Concertormer-TLC/README.md new file mode 100644 index 0000000000000000000000000000000000000000..4e8d00721ff470157a59aa0f803e2ed99f5e73ce --- /dev/null +++ b/dbisf-Concertormer-TLC/README.md @@ -0,0 +1,46 @@ +--- +license: mit +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-Concertormer-TLC + +Concertormer (Efficient Concertormer for Image Deblurring and Beyond, ICCV 2025) 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/setsunil/Concertormer. + +The same checkpoint in other versions: [dbis-Concertormer](https://huggingface.co/Illaitar/dbis/tree/main/dbis-Concertormer), [dbisf-Concertormer](https://huggingface.co/Illaitar/dbis/tree/main/dbisf-Concertormer). +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-Concertormer-TLC blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-Concertormer-TLC/dbisf-Concertormer.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-Concertormer-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-Concertormer.wpk` | 59 MB | 34.4150 | 363.9 ms | +| the authors' code and checkpoint | 203 MB | 34.4145 | 449.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-Concertormer.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-Concertormer-TLC/dbisf-Concertormer.json b/dbisf-Concertormer-TLC/dbisf-Concertormer.json new file mode 100644 index 0000000000000000000000000000000000000000..a7ad23bdf6ad79d162555621e27c2013fb2b25ad --- /dev/null +++ b/dbisf-Concertormer-TLC/dbisf-Concertormer.json @@ -0,0 +1,28 @@ +{ + "model": "dbisf-Concertormer-TLC", + "file": "dbisf-Concertormer.wpk", + "path": "dbisf-Concertormer-TLC/dbisf-Concertormer.wpk", + "bytes": 58694461, + "sha256": "24418b53eeb07fa076510b49f824b03cddcfd121ea2f324608d2e1a5be447679", + "store": "qc128", + "class": "dbis.concertormer.Concertormer", + "args": { + "tlc": "exact", + "fast": true + }, + "source": { + "method": "Concertormer", + "paper": "Efficient Concertormer for Image Deblurring and Beyond", + "venue": "ICCV 2025", + "code": "https://github.com/setsunil/Concertormer", + "commit": "94269c556277805051644343e3a2cc76c4cd7aaf", + "license": "MIT (the repository's LICENSE, Copyright (c) 2022 megvii-model)", + "url": "https://drive.google.com/file/d/1NvbGroZm4vVgvWJtmgW-6Fwd97PiukiL/view (CSA_models.zip, models/GoPro/)", + "file": "Concertormer.pth", + "md5": "2a999099018acdee9b2add1e3c22eb61", + "group": "params", + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-Concertormer-TLC\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-Concertormer-TLC/dbisf-Concertormer.wpk b/dbisf-Concertormer-TLC/dbisf-Concertormer.wpk new file mode 100644 index 0000000000000000000000000000000000000000..5b0b9111bc742bfe360970916429734f377a93fd --- /dev/null +++ b/dbisf-Concertormer-TLC/dbisf-Concertormer.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:24418b53eeb07fa076510b49f824b03cddcfd121ea2f324608d2e1a5be447679 +size 58694461 diff --git a/dbisf-Concertormer-TLC/licenses/Concertormer-LICENSE.txt b/dbisf-Concertormer-TLC/licenses/Concertormer-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..e4c4823fe40509b3a6ca1f79c91e5d3ec7f9a9df --- /dev/null +++ b/dbisf-Concertormer-TLC/licenses/Concertormer-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a29ecef3456149898f08e4c71b11b33e7d333664e087bc212e84e18ddd6599ad +size 12466 diff --git a/dbisf-Concertormer-lite-TLC/LICENSE.md b/dbisf-Concertormer-lite-TLC/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..b86a0085d6266a7717cfc1c78a975500bbb6d528 --- /dev/null +++ b/dbisf-Concertormer-lite-TLC/LICENSE.md @@ -0,0 +1,7 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-Concertormer-lite.wpk` | `Concertormer_lite.pth` of [setsunil/Concertormer](https://github.com/setsunil/Concertormer) (commit 94269c5) | MIT (the repository's LICENSE, Copyright (c) 2022 megvii-model) (`licenses/Concertormer-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-Concertormer-lite-TLC/README.md b/dbisf-Concertormer-lite-TLC/README.md new file mode 100644 index 0000000000000000000000000000000000000000..1cb39ff502357674b0974d39788a8be47d022560 --- /dev/null +++ b/dbisf-Concertormer-lite-TLC/README.md @@ -0,0 +1,46 @@ +--- +license: mit +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-Concertormer-lite-TLC + +Concertormer-lite (Efficient Concertormer for Image Deblurring and Beyond, ICCV 2025) 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/setsunil/Concertormer. + +The same checkpoint in other versions: [dbis-Concertormer-lite](https://huggingface.co/Illaitar/dbis/tree/main/dbis-Concertormer-lite), [dbisf-Concertormer-lite](https://huggingface.co/Illaitar/dbis/tree/main/dbisf-Concertormer-lite). +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-Concertormer-lite-TLC blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-Concertormer-lite-TLC/dbisf-Concertormer-lite.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-Concertormer-lite-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-Concertormer-lite.wpk` | 34 MB | 34.1788 | 195.2 ms | +| the authors' code and checkpoint | 116 MB | 34.1791 | 244.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-Concertormer-lite.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-Concertormer-lite-TLC/dbisf-Concertormer-lite.json b/dbisf-Concertormer-lite-TLC/dbisf-Concertormer-lite.json new file mode 100644 index 0000000000000000000000000000000000000000..1b06f1a2d70ee45f76af2a2a8896486415e30be6 --- /dev/null +++ b/dbisf-Concertormer-lite-TLC/dbisf-Concertormer-lite.json @@ -0,0 +1,38 @@ +{ + "model": "dbisf-Concertormer-lite-TLC", + "file": "dbisf-Concertormer-lite.wpk", + "path": "dbisf-Concertormer-lite-TLC/dbisf-Concertormer-lite.wpk", + "bytes": 33554195, + "sha256": "65be10600b6309609f5365454b70f799546505e4d3fac21d186372629954fb50", + "store": "qc128", + "class": "dbis.concertormer.Concertormer", + "args": { + "tlc": "exact", + "fast": true, + "enc_blk_nums": [ + 4, + 4, + 12 + ], + "dec_blk_nums": [ + 12, + 4, + 4 + ] + }, + "source": { + "method": "Concertormer-lite", + "paper": "Efficient Concertormer for Image Deblurring and Beyond", + "venue": "ICCV 2025", + "code": "https://github.com/setsunil/Concertormer", + "commit": "94269c556277805051644343e3a2cc76c4cd7aaf", + "license": "MIT (the repository's LICENSE, Copyright (c) 2022 megvii-model)", + "url": "https://drive.google.com/file/d/1NvbGroZm4vVgvWJtmgW-6Fwd97PiukiL/view (CSA_models.zip, models/GoPro/)", + "file": "Concertormer_lite.pth", + "md5": "02863c886a8f8d98233d8bd0d8db00e2", + "group": "params", + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-Concertormer-lite-TLC\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-Concertormer-lite-TLC/dbisf-Concertormer-lite.wpk b/dbisf-Concertormer-lite-TLC/dbisf-Concertormer-lite.wpk new file mode 100644 index 0000000000000000000000000000000000000000..b1f70729a57e63b1834f7fd8e003756c70a941e0 --- /dev/null +++ b/dbisf-Concertormer-lite-TLC/dbisf-Concertormer-lite.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:65be10600b6309609f5365454b70f799546505e4d3fac21d186372629954fb50 +size 33554195 diff --git a/dbisf-Concertormer-lite-TLC/licenses/Concertormer-LICENSE.txt b/dbisf-Concertormer-lite-TLC/licenses/Concertormer-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..e4c4823fe40509b3a6ca1f79c91e5d3ec7f9a9df --- /dev/null +++ b/dbisf-Concertormer-lite-TLC/licenses/Concertormer-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a29ecef3456149898f08e4c71b11b33e7d333664e087bc212e84e18ddd6599ad +size 12466 diff --git a/dbisf-Concertormer-lite/LICENSE.md b/dbisf-Concertormer-lite/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..b86a0085d6266a7717cfc1c78a975500bbb6d528 --- /dev/null +++ b/dbisf-Concertormer-lite/LICENSE.md @@ -0,0 +1,7 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-Concertormer-lite.wpk` | `Concertormer_lite.pth` of [setsunil/Concertormer](https://github.com/setsunil/Concertormer) (commit 94269c5) | MIT (the repository's LICENSE, Copyright (c) 2022 megvii-model) (`licenses/Concertormer-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-Concertormer-lite/README.md b/dbisf-Concertormer-lite/README.md new file mode 100644 index 0000000000000000000000000000000000000000..c518407794fc2d39690018c55e6461a1a66f367c --- /dev/null +++ b/dbisf-Concertormer-lite/README.md @@ -0,0 +1,46 @@ +--- +license: mit +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-Concertormer-lite + +Concertormer-lite (Efficient Concertormer for Image Deblurring and Beyond, ICCV 2025) 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/setsunil/Concertormer. + +The same checkpoint in other versions: [dbis-Concertormer-lite](https://huggingface.co/Illaitar/dbis/tree/main/dbis-Concertormer-lite), [dbisf-Concertormer-lite-TLC](https://huggingface.co/Illaitar/dbis/tree/main/dbisf-Concertormer-lite-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-Concertormer-lite blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-Concertormer-lite/dbisf-Concertormer-lite.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-Concertormer-lite") # 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-Concertormer-lite.wpk` | 34 MB | 33.8562 | 180.1 ms | +| the authors' code and checkpoint | 116 MB | 33.8562 | 495.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-Concertormer-lite.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-Concertormer-lite/dbisf-Concertormer-lite.json b/dbisf-Concertormer-lite/dbisf-Concertormer-lite.json new file mode 100644 index 0000000000000000000000000000000000000000..8d74aa7383fb5025607dd14a6a6de89691476fce --- /dev/null +++ b/dbisf-Concertormer-lite/dbisf-Concertormer-lite.json @@ -0,0 +1,38 @@ +{ + "model": "dbisf-Concertormer-lite", + "file": "dbisf-Concertormer-lite.wpk", + "path": "dbisf-Concertormer-lite/dbisf-Concertormer-lite.wpk", + "bytes": 33554195, + "sha256": "65be10600b6309609f5365454b70f799546505e4d3fac21d186372629954fb50", + "store": "qc128", + "class": "dbis.concertormer.Concertormer", + "args": { + "tlc": null, + "fast": true, + "enc_blk_nums": [ + 4, + 4, + 12 + ], + "dec_blk_nums": [ + 12, + 4, + 4 + ] + }, + "source": { + "method": "Concertormer-lite", + "paper": "Efficient Concertormer for Image Deblurring and Beyond", + "venue": "ICCV 2025", + "code": "https://github.com/setsunil/Concertormer", + "commit": "94269c556277805051644343e3a2cc76c4cd7aaf", + "license": "MIT (the repository's LICENSE, Copyright (c) 2022 megvii-model)", + "url": "https://drive.google.com/file/d/1NvbGroZm4vVgvWJtmgW-6Fwd97PiukiL/view (CSA_models.zip, models/GoPro/)", + "file": "Concertormer_lite.pth", + "md5": "02863c886a8f8d98233d8bd0d8db00e2", + "group": "params", + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-Concertormer-lite\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-Concertormer-lite/dbisf-Concertormer-lite.wpk b/dbisf-Concertormer-lite/dbisf-Concertormer-lite.wpk new file mode 100644 index 0000000000000000000000000000000000000000..b1f70729a57e63b1834f7fd8e003756c70a941e0 --- /dev/null +++ b/dbisf-Concertormer-lite/dbisf-Concertormer-lite.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:65be10600b6309609f5365454b70f799546505e4d3fac21d186372629954fb50 +size 33554195 diff --git a/dbisf-Concertormer-lite/licenses/Concertormer-LICENSE.txt b/dbisf-Concertormer-lite/licenses/Concertormer-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..e4c4823fe40509b3a6ca1f79c91e5d3ec7f9a9df --- /dev/null +++ b/dbisf-Concertormer-lite/licenses/Concertormer-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a29ecef3456149898f08e4c71b11b33e7d333664e087bc212e84e18ddd6599ad +size 12466 diff --git a/dbisf-Concertormer/LICENSE.md b/dbisf-Concertormer/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..3bb9eb63e1450b24c830d8496c83a88612128d2e --- /dev/null +++ b/dbisf-Concertormer/LICENSE.md @@ -0,0 +1,7 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-Concertormer.wpk` | `Concertormer.pth` of [setsunil/Concertormer](https://github.com/setsunil/Concertormer) (commit 94269c5) | MIT (the repository's LICENSE, Copyright (c) 2022 megvii-model) (`licenses/Concertormer-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-Concertormer/README.md b/dbisf-Concertormer/README.md new file mode 100644 index 0000000000000000000000000000000000000000..02b8fc34893e19a1c3abbfe6a1f7a05fdfe3c70a --- /dev/null +++ b/dbisf-Concertormer/README.md @@ -0,0 +1,46 @@ +--- +license: mit +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-Concertormer + +Concertormer (Efficient Concertormer for Image Deblurring and Beyond, ICCV 2025) 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/setsunil/Concertormer. + +The same checkpoint in other versions: [dbis-Concertormer](https://huggingface.co/Illaitar/dbis/tree/main/dbis-Concertormer), [dbisf-Concertormer-TLC](https://huggingface.co/Illaitar/dbis/tree/main/dbisf-Concertormer-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-Concertormer blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-Concertormer/dbisf-Concertormer.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-Concertormer") # 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-Concertormer.wpk` | 59 MB | 34.0725 | 334.8 ms | +| the authors' code and checkpoint | 203 MB | 34.0702 | 919.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-Concertormer.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-Concertormer/dbisf-Concertormer.json b/dbisf-Concertormer/dbisf-Concertormer.json new file mode 100644 index 0000000000000000000000000000000000000000..82738843479c2cf0f444f2bf11b055baca623612 --- /dev/null +++ b/dbisf-Concertormer/dbisf-Concertormer.json @@ -0,0 +1,28 @@ +{ + "model": "dbisf-Concertormer", + "file": "dbisf-Concertormer.wpk", + "path": "dbisf-Concertormer/dbisf-Concertormer.wpk", + "bytes": 58694461, + "sha256": "24418b53eeb07fa076510b49f824b03cddcfd121ea2f324608d2e1a5be447679", + "store": "qc128", + "class": "dbis.concertormer.Concertormer", + "args": { + "tlc": null, + "fast": true + }, + "source": { + "method": "Concertormer", + "paper": "Efficient Concertormer for Image Deblurring and Beyond", + "venue": "ICCV 2025", + "code": "https://github.com/setsunil/Concertormer", + "commit": "94269c556277805051644343e3a2cc76c4cd7aaf", + "license": "MIT (the repository's LICENSE, Copyright (c) 2022 megvii-model)", + "url": "https://drive.google.com/file/d/1NvbGroZm4vVgvWJtmgW-6Fwd97PiukiL/view (CSA_models.zip, models/GoPro/)", + "file": "Concertormer.pth", + "md5": "2a999099018acdee9b2add1e3c22eb61", + "group": "params", + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-Concertormer\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-Concertormer/dbisf-Concertormer.wpk b/dbisf-Concertormer/dbisf-Concertormer.wpk new file mode 100644 index 0000000000000000000000000000000000000000..5b0b9111bc742bfe360970916429734f377a93fd --- /dev/null +++ b/dbisf-Concertormer/dbisf-Concertormer.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:24418b53eeb07fa076510b49f824b03cddcfd121ea2f324608d2e1a5be447679 +size 58694461 diff --git a/dbisf-Concertormer/licenses/Concertormer-LICENSE.txt b/dbisf-Concertormer/licenses/Concertormer-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..e4c4823fe40509b3a6ca1f79c91e5d3ec7f9a9df --- /dev/null +++ b/dbisf-Concertormer/licenses/Concertormer-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a29ecef3456149898f08e4c71b11b33e7d333664e087bc212e84e18ddd6599ad +size 12466 diff --git a/dbisf-ConvIR-L/LICENSE.md b/dbisf-ConvIR-L/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..70c82ed113bd3d3543967b273f285d017db8015f --- /dev/null +++ b/dbisf-ConvIR-L/LICENSE.md @@ -0,0 +1,7 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-ConvIR-L.wpk` | `convir_gopro.pkl` of [c-yn/ConvIR](https://github.com/c-yn/ConvIR) (commit 05dcbff) | MIT, Copyright (c) 2024 Yuning Cui (`licenses/ConvIR-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-ConvIR-L/README.md b/dbisf-ConvIR-L/README.md new file mode 100644 index 0000000000000000000000000000000000000000..0ee081b1110a9b9472b862c6dd63619791339163 --- /dev/null +++ b/dbisf-ConvIR-L/README.md @@ -0,0 +1,46 @@ +--- +license: mit +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- image-restoration +- dbis +--- + +# dbisf-ConvIR-L + +ConvIR-L (Revitalizing Convolutional Network for Image Restoration, IEEE TPAMI 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/c-yn/ConvIR. + +The same checkpoint in other versions: [dbis-ConvIR-L](https://huggingface.co/Illaitar/dbis/tree/main/dbis-ConvIR-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-ConvIR-L blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-ConvIR-L/dbisf-ConvIR-L.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-ConvIR-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-ConvIR-L.wpk` | 17 MB | 33.2164 | 39.1 ms | +| the authors' code and checkpoint | 60 MB | 33.2165 | 45.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-ConvIR-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: MIT. See `LICENSE.md` and `licenses/`. Cite the method's paper when you use its weights. diff --git a/dbisf-ConvIR-L/dbisf-ConvIR-L.json b/dbisf-ConvIR-L/dbisf-ConvIR-L.json new file mode 100644 index 0000000000000000000000000000000000000000..ab9e8ece107973a6039dbfc5ac8eccc2195816aa --- /dev/null +++ b/dbisf-ConvIR-L/dbisf-ConvIR-L.json @@ -0,0 +1,28 @@ +{ + "model": "dbisf-ConvIR-L", + "file": "dbisf-ConvIR-L.wpk", + "path": "dbisf-ConvIR-L/dbisf-ConvIR-L.wpk", + "bytes": 17234817, + "sha256": "ba7b0f90bb1a80370c6fb4661324003ba8991569e017bf6360a13ff0d6ed785c", + "store": "qc128", + "class": "dbis.convir.ConvIR", + "args": { + "num_res": 16, + "fast": true + }, + "source": { + "method": "ConvIR-L", + "paper": "Revitalizing Convolutional Network for Image Restoration", + "venue": "IEEE TPAMI 2024", + "code": "https://github.com/c-yn/ConvIR", + "commit": "05dcbffa2047fab79a7fe238fd52615ca31a33d5", + "license": "MIT, Copyright (c) 2024 Yuning Cui", + "group": "model", + "url": "https://github.com/c-yn/ConvIR (Motion_Deblurring README, Google Drive links of the authors' release)", + "file": "convir_gopro.pkl", + "md5": "fe9067a1130eb661f3e12c871131784a", + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-ConvIR-L\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-ConvIR-L/dbisf-ConvIR-L.wpk b/dbisf-ConvIR-L/dbisf-ConvIR-L.wpk new file mode 100644 index 0000000000000000000000000000000000000000..e0cda5d1e36fe1619b111b18894493be72ce59be --- /dev/null +++ b/dbisf-ConvIR-L/dbisf-ConvIR-L.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ba7b0f90bb1a80370c6fb4661324003ba8991569e017bf6360a13ff0d6ed785c +size 17234817 diff --git a/dbisf-ConvIR-L/licenses/ConvIR-LICENSE.txt b/dbisf-ConvIR-L/licenses/ConvIR-LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..1205897798f89c03beb314340babe04aa9b3b7d4 --- /dev/null +++ b/dbisf-ConvIR-L/licenses/ConvIR-LICENSE.txt @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:08cbcad1380e931658b8c79d8388c3dab4faeff2fa8d4d58d15b7dde30b64dd0 +size 1067 diff --git a/dbisf-DGUNet-plus/LICENSE.md b/dbisf-DGUNet-plus/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..43fc97650f89321b5d90868fa68cccfe70637fe5 --- /dev/null +++ b/dbisf-DGUNet-plus/LICENSE.md @@ -0,0 +1,9 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-DGUNet-plus.wpk` | `DGUNet_plus.pth` of [MC-E/Deep-Generalized-Unfolding-Networks-for-Image-Restoration](https://github.com/MC-E/Deep-Generalized-Unfolding-Networks-for-Image-Restoration) (commit bae845c) | **No license stated.** none stated by the repository (no LICENSE file); 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-DGUNet-plus/README.md b/dbisf-DGUNet-plus/README.md new file mode 100644 index 0000000000000000000000000000000000000000..bb5ee1aab881cc64a22bfa1afddc559ea491b759 --- /dev/null +++ b/dbisf-DGUNet-plus/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-DGUNet-plus + +> **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. + +DGUNet+ (Deep Generalized Unfolding Networks for Image Restoration, 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/MC-E/Deep-Generalized-Unfolding-Networks-for-Image-Restoration. + +The same checkpoint in other versions: [dbis-DGUNet-plus](https://huggingface.co/Illaitar/dbis/tree/main/dbis-DGUNet-plus). +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-DGUNet-plus blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-DGUNet-plus/dbisf-DGUNet-plus.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-DGUNet-plus") # 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-DGUNet-plus.wpk` | 71 MB | 33.1711 | 242.4 ms | +| the authors' code and checkpoint | 279 MB | 33.1731 | 574.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-DGUNet-plus.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-DGUNet-plus/dbisf-DGUNet-plus.json b/dbisf-DGUNet-plus/dbisf-DGUNet-plus.json new file mode 100644 index 0000000000000000000000000000000000000000..869ed43102406497120c6aee60d1afde93238860 --- /dev/null +++ b/dbisf-DGUNet-plus/dbisf-DGUNet-plus.json @@ -0,0 +1,27 @@ +{ + "model": "dbisf-DGUNet-plus", + "file": "dbisf-DGUNet-plus.wpk", + "path": "dbisf-DGUNet-plus/dbisf-DGUNet-plus.wpk", + "bytes": 70852985, + "sha256": "a7cbacbd53ffc87ce160453745ab6346c2481fbc7c98fabe07eeef2e7d7c9701", + "store": "qc64", + "class": "dbis.dgunet.DGUNetPlus", + "args": { + "fast": true + }, + "source": { + "method": "DGUNet+", + "paper": "Deep Generalized Unfolding Networks for Image Restoration", + "venue": "CVPR 2022", + "code": "https://github.com/MC-E/Deep-Generalized-Unfolding-Networks-for-Image-Restoration", + "commit": "bae845c2612d0df56a479020d59896441168d07a", + "license": "none stated by the repository (no LICENSE file); all rights reserved by the authors", + "url": "https://drive.google.com/file/d/1bitvtmJAE1iKpFmdGx3OrN6Xti0JRPLc (checkpoints_DGUNet.zip, md5 1a99a15e61245fd8837faa15946da455, member Deblurring/DGUNet_plus.pth)", + "file": "DGUNet_plus.pth", + "md5": "69a95b5cde16cb2c3ff75c5a69a2ccf3", + "group": "state_dict", + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-DGUNet-plus\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-DGUNet-plus/dbisf-DGUNet-plus.wpk b/dbisf-DGUNet-plus/dbisf-DGUNet-plus.wpk new file mode 100644 index 0000000000000000000000000000000000000000..e98e571a40259547cf2b0ceb40706dca3ba7c903 --- /dev/null +++ b/dbisf-DGUNet-plus/dbisf-DGUNet-plus.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a7cbacbd53ffc87ce160453745ab6346c2481fbc7c98fabe07eeef2e7d7c9701 +size 70852985 diff --git a/dbisf-DGUNet/LICENSE.md b/dbisf-DGUNet/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..3332ba5071e2410259db19565c7c1980edadc53e --- /dev/null +++ b/dbisf-DGUNet/LICENSE.md @@ -0,0 +1,9 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-DGUNet.wpk` | `DGUNet.pth` of [MC-E/Deep-Generalized-Unfolding-Networks-for-Image-Restoration](https://github.com/MC-E/Deep-Generalized-Unfolding-Networks-for-Image-Restoration) (commit bae845c) | **No license stated.** none stated by the repository (no LICENSE file); 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-DGUNet/README.md b/dbisf-DGUNet/README.md new file mode 100644 index 0000000000000000000000000000000000000000..56081484e7509bc40d58020ea59fd3982679f051 --- /dev/null +++ b/dbisf-DGUNet/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-DGUNet + +> **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. + +DGUNet (Deep Generalized Unfolding Networks for Image Restoration, 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/MC-E/Deep-Generalized-Unfolding-Networks-for-Image-Restoration. + +The same checkpoint in other versions: [dbis-DGUNet](https://huggingface.co/Illaitar/dbis/tree/main/dbis-DGUNet). +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-DGUNet blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-DGUNet/dbisf-DGUNet.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-DGUNet") # 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-DGUNet.wpk` | 17 MB | 32.7051 | 187.1 ms | +| the authors' code and checkpoint | 69 MB | 32.7076 | 424.5 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-DGUNet.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-DGUNet/dbisf-DGUNet.json b/dbisf-DGUNet/dbisf-DGUNet.json new file mode 100644 index 0000000000000000000000000000000000000000..7788220e77f3acd9dafc7c9f9ed7c2f3a97042d8 --- /dev/null +++ b/dbisf-DGUNet/dbisf-DGUNet.json @@ -0,0 +1,27 @@ +{ + "model": "dbisf-DGUNet", + "file": "dbisf-DGUNet.wpk", + "path": "dbisf-DGUNet/dbisf-DGUNet.wpk", + "bytes": 16624144, + "sha256": "f3ea90a68e55da9abb0534a49d18861791f7d95a5cc2f0e6472c8f62a456eb4b", + "store": "qc48", + "class": "dbis.dgunet.DGUNet", + "args": { + "fast": true + }, + "source": { + "method": "DGUNet", + "paper": "Deep Generalized Unfolding Networks for Image Restoration", + "venue": "CVPR 2022", + "code": "https://github.com/MC-E/Deep-Generalized-Unfolding-Networks-for-Image-Restoration", + "commit": "bae845c2612d0df56a479020d59896441168d07a", + "license": "none stated by the repository (no LICENSE file); all rights reserved by the authors", + "url": "https://drive.google.com/file/d/1bitvtmJAE1iKpFmdGx3OrN6Xti0JRPLc (checkpoints_DGUNet.zip, md5 1a99a15e61245fd8837faa15946da455, member Deblurring/DGUNet.pth)", + "file": "DGUNet.pth", + "md5": "baac5ca17ac9d4ecf32571d77a070e52", + "group": "state_dict", + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-DGUNet\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-DGUNet/dbisf-DGUNet.wpk b/dbisf-DGUNet/dbisf-DGUNet.wpk new file mode 100644 index 0000000000000000000000000000000000000000..c8ab76cee30a6cfc07a920b9b79f80aa98c9cd9c --- /dev/null +++ b/dbisf-DGUNet/dbisf-DGUNet.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f3ea90a68e55da9abb0534a49d18861791f7d95a5cc2f0e6472c8f62a456eb4b +size 16624144 diff --git a/dbisf-DMPHN-1-2-4/LICENSE.md b/dbisf-DMPHN-1-2-4/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..f25405e8f0965ab9d095e9d0d5e70cde088959e5 --- /dev/null +++ b/dbisf-DMPHN-1-2-4/LICENSE.md @@ -0,0 +1,14 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-DMPHN-1-2-4.wpk` | `encoder_lv1.pkl` of [HongguangZhang/DMPHN-cvpr19-master](https://github.com/HongguangZhang/DMPHN-cvpr19-master) (commit 9fff261) | **No license stated.** none stated (no LICENSE file in the repository; all rights reserved by the authors) (no license file in the repository) | +| the same file | `encoder_lv2.pkl` of [HongguangZhang/DMPHN-cvpr19-master](https://github.com/HongguangZhang/DMPHN-cvpr19-master) | **No license stated.** none stated (no LICENSE file in the repository; all rights reserved by the authors) (no license file in the repository) | +| the same file | `encoder_lv3.pkl` of [HongguangZhang/DMPHN-cvpr19-master](https://github.com/HongguangZhang/DMPHN-cvpr19-master) | **No license stated.** none stated (no LICENSE file in the repository; all rights reserved by the authors) (no license file in the repository) | +| the same file | `decoder_lv1.pkl` of [HongguangZhang/DMPHN-cvpr19-master](https://github.com/HongguangZhang/DMPHN-cvpr19-master) | **No license stated.** none stated (no LICENSE file in the repository; all rights reserved by the authors) (no license file in the repository) | +| the same file | `decoder_lv2.pkl` of [HongguangZhang/DMPHN-cvpr19-master](https://github.com/HongguangZhang/DMPHN-cvpr19-master) | **No license stated.** none stated (no LICENSE file in the repository; all rights reserved by the authors) (no license file in the repository) | +| the same file | `decoder_lv3.pkl` of [HongguangZhang/DMPHN-cvpr19-master](https://github.com/HongguangZhang/DMPHN-cvpr19-master) | **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-DMPHN-1-2-4/README.md b/dbisf-DMPHN-1-2-4/README.md new file mode 100644 index 0000000000000000000000000000000000000000..554180f7bf9a6b577b7e0d7bb2cd77447b657918 --- /dev/null +++ b/dbisf-DMPHN-1-2-4/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-DMPHN-1-2-4 + +> **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. + +DMPHN (Deep Stacked Hierarchical Multi-Patch Network for Image Deblurring, CVPR 2019) 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/HongguangZhang/DMPHN-cvpr19-master. + +The same checkpoint in other versions: [dbis-DMPHN-1-2-4](https://huggingface.co/Illaitar/dbis/tree/main/dbis-DMPHN-1-2-4). +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-DMPHN-1-2-4 blurry.png sharp.png # an image, a folder of frames or a video +hf download Illaitar/dbis dbisf-DMPHN-1-2-4/dbisf-DMPHN-1-2-4.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-DMPHN-1-2-4") # 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-DMPHN-1-2-4.wpk` | 6 MB | 30.2030 | 13.4 ms | +| the authors' code and checkpoint | 22 MB | 30.2058 | 16.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-DMPHN-1-2-4.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-DMPHN-1-2-4/dbisf-DMPHN-1-2-4.json b/dbisf-DMPHN-1-2-4/dbisf-DMPHN-1-2-4.json new file mode 100644 index 0000000000000000000000000000000000000000..0f5d4ef2cb67136e438ecb4ae7295136329e69a7 --- /dev/null +++ b/dbisf-DMPHN-1-2-4/dbisf-DMPHN-1-2-4.json @@ -0,0 +1,54 @@ +{ + "model": "dbisf-DMPHN-1-2-4", + "file": "dbisf-DMPHN-1-2-4.wpk", + "path": "dbisf-DMPHN-1-2-4/dbisf-DMPHN-1-2-4.wpk", + "bytes": 6262547, + "sha256": "0e687bdef9af1b951f42fc2c6ccb35f3f7f901ba60beb36f9880fe219ff6fd13", + "store": "qc128", + "class": "dbis.dmphn.DMPHN", + "args": { + "fast": true + }, + "source": { + "method": "DMPHN", + "paper": "Deep Stacked Hierarchical Multi-Patch Network for Image Deblurring", + "venue": "CVPR 2019", + "code": "https://github.com/HongguangZhang/DMPHN-cvpr19-master", + "commit": "9fff261daca8beb0cbaaa0b64df4239b5a05dd17", + "license": "none stated (no LICENSE file in the repository; all rights reserved by the authors)", + "url": "https://github.com/HongguangZhang/DMPHN-cvpr19-master/tree/master/checkpoints/DMPHN_1_2_4", + "file": "encoder_lv1.pkl", + "md5": "52d6c2ff24bb0a4697eeace927688ed4", + "group": null, + "extra": [ + { + "file": "encoder_lv2.pkl", + "md5": "64a2d9803bff4018af8bd4ca4f6828d0", + "group": null + }, + { + "file": "encoder_lv3.pkl", + "md5": "cbe9dc0c5723a74a0e417e41d245bb2b", + "group": null + }, + { + "file": "decoder_lv1.pkl", + "md5": "ad14269f80e6e372263b3114af7cb56e", + "group": null + }, + { + "file": "decoder_lv2.pkl", + "md5": "2c2e4b170853e9572c2e2b7008fb6743", + "group": null + }, + { + "file": "decoder_lv3.pkl", + "md5": "74cba17f55e6c19bfb8d68a867993ae9", + "group": null + } + ], + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-DMPHN-1-2-4\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-DMPHN-1-2-4/dbisf-DMPHN-1-2-4.wpk b/dbisf-DMPHN-1-2-4/dbisf-DMPHN-1-2-4.wpk new file mode 100644 index 0000000000000000000000000000000000000000..a8722bece8dc429ece38bcd89ce550fe10e48f0d --- /dev/null +++ b/dbisf-DMPHN-1-2-4/dbisf-DMPHN-1-2-4.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0e687bdef9af1b951f42fc2c6ccb35f3f7f901ba60beb36f9880fe219ff6fd13 +size 6262547 diff --git a/dbisf-DSTNet/LICENSE.md b/dbisf-DSTNet/LICENSE.md new file mode 100644 index 0000000000000000000000000000000000000000..0d05ffa0d8fb5a3017c469744018ce8d62b088cb --- /dev/null +++ b/dbisf-DSTNet/LICENSE.md @@ -0,0 +1,7 @@ +# Terms of the weight file + +| File | Source checkpoint | Terms | +|---|---|---| +| `dbisf-DSTNet.wpk` | `GOPRO.pth` of [xuboming8/DSTNet](https://github.com/xuboming8/DSTNet) (commit d42c1e3) | MIT, Copyright (c) 2023 hippopmonkey (`licenses/DSTNet-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-DSTNet/README.md b/dbisf-DSTNet/README.md new file mode 100644 index 0000000000000000000000000000000000000000..50797a130aefd520eeaa2c8a1420df61f94c9c4d --- /dev/null +++ b/dbisf-DSTNet/README.md @@ -0,0 +1,44 @@ +--- +license: mit +library_name: pytorch +pipeline_tag: image-to-image +tags: +- deblurring +- motion-deblurring +- video-deblurring +- image-restoration +- dbis +--- + +# dbisf-DSTNet + +DSTNet (Deep Discriminative Spatial and Temporal Network for Efficient Video 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/xuboming8/DSTNet. + +The same checkpoint in other versions: [dbis-DSTNet](https://huggingface.co/Illaitar/dbis/tree/main/dbis-DSTNet). +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-DSTNet blurry_frames/ sharp_frames/ # a folder of frames (one clip) or a video file +hf download Illaitar/dbis dbisf-DSTNet/dbisf-DSTNet.wpk # this file alone, without the package +``` + +```python +import dbis +net = dbis.load("dbisf-DSTNet") # 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 | +|---|---:| +| `dbisf-DSTNet.wpk` | 7 MB | + +`dbisf-DSTNet.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-DSTNet/dbisf-DSTNet.json b/dbisf-DSTNet/dbisf-DSTNet.json new file mode 100644 index 0000000000000000000000000000000000000000..cc23e0347dbefed3a272c997b596fa346d6f1018 --- /dev/null +++ b/dbisf-DSTNet/dbisf-DSTNet.json @@ -0,0 +1,35 @@ +{ + "model": "dbisf-DSTNet", + "file": "dbisf-DSTNet.wpk", + "path": "dbisf-DSTNet/dbisf-DSTNet.wpk", + "bytes": 6811578, + "sha256": "48a3688c917c19597df14c10b113db4c6accb40737f339529ecda183de4f5d1e", + "store": "qc32", + "class": "dbis.dstnet.DSTNet", + "args": { + "precision": "fp16", + "exact_dynconv": false, + "fold_encoder": true, + "fold_decoder": true, + "fast_norm": true, + "prop_channels_last": true, + "frame_chunk": 10, + "fast_dynconv": true, + "half_weights": true + }, + "source": { + "method": "DSTNet", + "paper": "Deep Discriminative Spatial and Temporal Network for Efficient Video Deblurring", + "venue": "CVPR 2023", + "code": "https://github.com/xuboming8/DSTNet", + "commit": "d42c1e377619750d228e769e987479562f7000a9", + "license": "MIT, Copyright (c) 2023 hippopmonkey", + "group": "params", + "url": "https://github.com/xuboming8/DSTNet (experiments/ folder of the repository, README 'Pretrained models') GOPRO.pth", + "file": "GOPRO.pth", + "md5": "585fabf2896bbf9c0554abcf539b84e3", + "trained_on": "GoPro" + }, + "load": "import dbis; net = dbis.load(\"dbisf-DSTNet\")", + "code": "https://github.com/illaitar/deblurring-is-solved" +} \ No newline at end of file diff --git a/dbisf-DSTNet/dbisf-DSTNet.wpk b/dbisf-DSTNet/dbisf-DSTNet.wpk new file mode 100644 index 0000000000000000000000000000000000000000..d1ebe819abc20131d3adcfb03ddee9d58a3272ff --- /dev/null +++ b/dbisf-DSTNet/dbisf-DSTNet.wpk @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:48a3688c917c19597df14c10b113db4c6accb40737f339529ecda183de4f5d1e +size 6811578