CLIP-RL: Closed-Loop Video Inpainting with Detection-Guided Reinforcement Learning
Existing video inpainting methods typically combine optical flow propagation with Transformer architectures, achieving promising inpainting results. However, they lack adaptive inpainting strategy optimization in diverse scenarios, and struggle to capture high-level temporal semantics, causing temporal inconsistencies and quality degradation. To address these challenges, we make one of the first attempts to introduce reinforcement learning into the video inpainting domain, establishing a closed-loop framework named CLIP-RL that enables adaptive strategy optimization. Specifically, video inpainting is reformulated as an agent-environment interaction, where the inpainting module functions as the agent's execution component, and a pre-trained inpainting detection module provides real-time quality feedback. Guided by a policy network and a composite reward function that incorporates a weighted temporal alignment loss, the agent dynamically selects actions to adjust the inpainting strategy and iteratively refines the inpainting results. Compared to ProPainter, CLIP-RL improves PSNR from 34.43 to 34.67 and SSIM from 0.974 to 0.986 on the YouTube-VOS dataset. Qualitative analysis demonstrates that CLIP-RL excels in detail preservation and artifact suppression, validating its superiority in video inpainting tasks.
Authors
- Xueping Tang
- Bin Wang (ORCID: https://orcid.org/0009-0001-7917-9327)
- Jing Ren (ORCID: https://orcid.org/0000-0001-7984-8271)
- M. Wang (ORCID: https://orcid.org/0000-0002-4713-9646)
Institutions
- Kunming University of Science and Technology (CN)
- Kunming University (CN)
Publication Details
- Journal
- Sensors
- Published
- 2026-01-09
- DOI
- https://doi.org/10.3390/s26020447
- Primary Topic
- Generative Adversarial Networks and Image Synthesis
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Natural Science Foundation of China
- Kunming University of Science and Technology