Views
No views yet
| File | Description |
|---|---|
weights/omnipaint_remove.safetensors | LoRA weights for object removal |
weights/omnipaint_insert.safetensors | LoRA weights for object insertion |
embeddings/remove.npz | Pre-computed text embeddings for removal |
embeddings/insert.npz | Pre-computed text embeddings for insertion |
1git clone https://github.com/yeates/OmniPaint.git
2cd OmniPaint
3bash scripts/setup.sh1python scripts/omnipaint_remove.py \
2 --input ./demo_assets/removal_samples/images/5.jpg \
3 --mask ./demo_assets/removal_samples/masks/5.png \
4 --output_dir ./outputs \
5 --seed 42 --steps 28 --device cuda:01python scripts/omnipaint_insert.py \
2 --background ./demo_assets/insertion_samples/backgrounds/background-2.png \
3 --mask ./demo_assets/insertion_samples/masks/mask-2.png \
4 --subject ./demo_assets/insertion_samples/subjects/subject-2.png \
5 --output_dir ./outputs \
6 --seed 42 --steps 28 --device cuda:01bash scripts/app_setup.sh # one-time setup (~15 min)
2python app.py1@inproceedings{yu2025omnipaint,
2 title={Omnipaint: Mastering object-oriented editing via disentangled insertion-removal inpainting},
3 author={Yu, Yongsheng and Zeng, Ziyun and Zheng, Haitian and Luo, Jiebo},
4 booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision},
5 pages={17324--17334},
6 year={2025}
7}