pip install git+https://github.com/facebookresearch/sam2.git
pip install git+https://github.com/not-lain/selective-editor.git
from selective_editor import get_app
app = get_app()
app.launch()
graph TD
A[Launch app] --> B[upload image];
C -->|reset mask| F[in case you want to reslect your mask from scratch];
F --> |initial state| C;
B -->|click to select image mask| C[you can select included points and for complex objects you can exclude certain areas];
C -->|inpaint image| D[describe what you want to create and press inpaint];
D --> E[download final image];
Description | Link |
---|---|
Notebook with pip integration | |
Manually laid out script |