Skip to content

lifan724/magic_eraser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MagicEraser: Erasing Any Objects via Semantics-Aware Control

How to build the Object-Level-Remove-Dataset (OLRD)?

OLRD is based on Place2 and we show some object removal examples in folder imgs and provides scripts to construct OLRD

  1. 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
  1. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages