Gradio demo to obtain masks First, install gradio==3.50.2: pip install gradio==3.50.2 Second, run: cd gradio python demo_mask.py Finally, open your browser and visit localhost:10087, where you can freely generate masks.