ROCOCO: Robust Outline Completion of Occluded Curvilinear Objects
Organizations: Electrical Engineering & Computer Sciences (EECS), University of California, Berkeley
Abstract
We propose a learning-based generative model for completing curvilinear features under occlusion by environmental obstacles. To this end, we adopt a flow matching-based approach that supports the inpainting of occluded regions with the appropriate curvilinear features. To eliminate the reliance on privileged information about the occlusion a priori, we also train a UNet-based mask prediction model, which can identify regions for inpainting given only the occluded observation. The components of our approach are validated via experiments using procedurally-generated test cases, and the complete pipeline is validated using large public datasets for curvilinear objects. Against off-the-shelf inpainting baselines, ROCOCO is the strongest method by a wide margin when no occlusion mask is given, and is competitive with mask-supervised inpainting when one is, achieving best on full-image error and second only to LaMa on the occluded region, while using a completer of M parameters against LaMa's M and Stable Diffusion's M.
Figures & tables
| Model | MSE | ML1L | MSE | ML1L | SSIM |
|---|---|---|---|---|---|
| Naive UNet | 0.0026 | 0.0170 | 0.0548 | 0.1354 | 0.764 |
| Pure Flow | 0.0028 | 0.0061 | 0.0731 | 0.1666 | 0.708 |
| Flow + GT mask | 0.0018 | 0.0036 | 0.0398 | 0.0892 | 0.851 |
| Flow Blind (full pipeline) | 0.0019 | 0.0038 | 0.0427 | 0.0922 | 0.844 |
| Dataset | MSE | ML1L | MSE | ML1L | SSIM |
|---|---|---|---|---|---|
| Wires ( Zanella et al., 2021 ) | 0.0024 | 0.0064 | 0.0576 | 0.1670 | 0.655 |
| Cracks | 0.0022 | 0.0060 | 0.0696 | 0.1931 | 0.547 |
| Method | Mask | Params | MSE | ML1L | MSE | ML1L | SSIM |
|---|---|---|---|---|---|---|---|
| SD-Blind | no | 860M | 0.0474 | 0.1407 | 0.4416 | 0.5411 | 0.258 |
| SD-Inpaint | GT | 860M | 0.0041 | 0.0199 | 0.0895 | 0.1923 | 0.634 |
| LaMa | GT | 51M | 0.0037 | 0.0297 | 0.0560 | 0.1468 | 0.695 |
| ROCOCO | GT | 7.7 M | 0.0032 | 0.0073 | 0.0782 | 0.1955 | 0.596 |
| ROCOCO ( ) | GT | 7.7 M | 0.0022 | 0.0060 | 0.0540 | 0.1615 | 0.664 |
| ROCOCO | no | 7.7 M | 0.0035 | 0.0078 | 0.0831 | 0.2012 | 0.586 |
Image Inpainting
Image inpainting reconstructs missing or corrupted image regions using surrounding context, learned visual priors, and optional structural or reference guidance.
See all 92 papers