This repositiory containes the PyTroch implementations of Methods proposed for Image Inpaiting and Image Denoising in the paper Deep Image Prior by Dmitry et al. .
Network used : Custom U-Net(Encoder-Decoder type)
Input for the model : Latent matrix z. (np.mggrid is used as per the guidelines in supplementary material)
Output of the model is image(recovered) of the same size of the corrupted image
Loss is calculated w.r.t. the corrupted image.
Note : While calculating the loss the mask is added to the output image too. so that effective loss is calculated over the Uncorrupted region and model learns the prior for the corrupted region.
| Corrupted Images | Recovered Images |
|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Note: The random(gaussian) noise is added in the same image ranging from 10% to 80%. In other words percentage number of pixels were removed from ground truth image in order to make the image noisy.
| Noisy Images | Denoised Images |
|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
The code is inspired from the Official implementation of dmitry et al.























