OLRD is based on Place2 and we show some object removal examples in folder imgs
and provides scripts to construct OLRD
- Generate object level masks. For example, the Mask2Former is applied to generate masks and use tag to pick out the object-level mask
pip install git+https://github.com/facebookresearch/Mask2Former.git
python gen_object_level_masks.py
- Build object-removal pairs
python scripts/gen_object_removal_pairs.py
3 Generate captions
For example, the Llava is applied to generate captions. The pipeline code is based on transformer
pip install transformer
python scripts/gen_captions.py