Illaitar's picture
Name without the question mark: deblurring is solved
5916661 verified
|
Raw History Blame Contribute Delete
2.33 kB
metadata
license: bsd-3-clause
library_name: pytorch
pipeline_tag: image-to-image
tags:
  - deblurring
  - motion-deblurring
  - image-restoration
  - dbis

dbis-DeblurGANv2-Inception

DeblurGAN-v2 (DeblurGAN-v2: Deblurring (Orders-of-Magnitude) Faster and Better, ICCV 2019) in plain PyTorch, our code and weight file, the same outputs as the authors' code. Made from the authors' checkpoint (trained on GoPro+DVD+NFS (mix)) by the conversion of deblurring is solved (benchmark site); the authors' code: https://github.com/VITA-Group/DeblurGANv2.

The same checkpoint in other versions: dbisf-DeblurGANv2-Inception. Every model: the index of Illaitar/dbis.

Use

pip install "deblurring-is-solved @ git+https://github.com/illaitar/deblurring-is-solved"
python -m dbis.run dbis-DeblurGANv2-Inception blurry.png sharp.png   # an image, a folder of frames or a video
hf download Illaitar/dbis dbis-DeblurGANv2-Inception/dbis-DeblurGANv2-Inception.safetensors   # this file alone, without the package
import dbis
net = dbis.load("dbis-DeblurGANv2-Inception")   # 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-DeblurGANv2-Inception.safetensors 144 MB 29.2134 7.9 ms
the authors' code and checkpoint 244 MB 29.2134 7.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).

The outputs equal those of the authors' code on the GoPro frames of the equality check of its port (DBIS.md).

dbis-DeblurGANv2-Inception.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: BSD-3-Clause. See LICENSE.md and licenses/. Cite the method's paper when you use its weights.