
partialconv_unet_places
Diffusion and generative46 ops234.7K params
A U-Net-like inpainting network that fills holes in images using partial convolutions.
Diffusion and generative · 46 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
menagerie.classics.partialconv_unet:build_partialconv_unet_places: build({}) This model does image inpainting, the task of filling in holes in an image. The paper observes that deep learning methods of its time ran a standard convolutional network over the corrupted image, so filter responses depended on the substitute values in the holes as well as on valid pixels. It reports that this often leads to artifacts such as color discrepancy and blurriness.
The paper proposes partial convolutions instead, where the convolution is masked and renormalized so that it is conditioned only on valid pixels. After each partial convolution the mask is updated as well: a location is marked valid if the convolution could condition its output on at least one valid input value. With enough layers of these updates, even the largest masked holes eventually shrink away. The network is a UNet-like architecture in which all convolutional layers are replaced with partial convolutional layers, with nearest neighbor up-sampling in the decoding stage. Its skip links concatenate the masks as well as the feature maps.
The authors generated their own irregular masks, 55,116 for training and 24,866 for testing. The comparison reports L1 error, PSNR and SSIM on Places2 and the Inception score on ImageNet. On those measurements the paper reports that its method outperforms all the other compared methods on irregular masks. The authors note that it fails for some sparsely structured images, such as the bars on a door, and struggles on the largest holes.
Key idea. The paper proposes partial convolutions, masked and renormalized to depend only on valid pixels, with an automatic mask update for the next layer.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{liu2018imageinpaintingirregularholes,
title={Image Inpainting for Irregular Holes Using Partial Convolutions},
author={Guilin Liu and Fitsum A. Reda and Kevin J. Shih and Ting-Chun Wang and Andrew Tao and Bryan Catanzaro},
year={2018},
eprint={1804.07723},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1804.07723},
}