---
language: en
license: cc-by-nc-4.0
library_name: pytorch
pipeline_tag: image-to-image
tags:
- image-inpainting
- coherent-semantic-attention
- iccv-2019
- pytorch
- research
---
ICCV 2019 · Modern PyTorch implementation
Coherent Semantic Attention for Image Inpainting
Recover missing image regions with a rough prediction and context-aware refinement.
Hongyu Liu · Bin Jiang · Yi Xiao · Chao Yang
Paper ·
Code ·
Quickstart ·
Training ·
Datasets
Stage 2 · step 97,397. Columns: masked input · restored · original.
Selected examples.
The author's **CSA** checkpoint combines a separately trained rough U-Net with CSA refinement. This modern release uses random masks, **L1 + LPIPS**, and the original image and feature **PatchGANs**. It updates the original paper's training recipe; see [implementation notes](https://github.com/KumapowerLIU/CSA-inpainting/blob/master/docs/MIGRATION.md).
The released refinement checkpoint is **step 97,397**, with a frozen rough parent at **step 156,181**. It was selected by visual review, rather than automatic best-metric selection.
## How it works