Stable Diffusion WebUI script for depth-based masking
Top 79.2% on sourcepulse
This extension for AUTOMATIC1111's Stable Diffusion WebUI creates masks for img2img operations using depth estimation from the MiDaS model. It targets Stable Diffusion users seeking to generate masks based on image depth, offering a streamlined workflow for background removal and subject isolation.
How It Works
The extension leverages the MiDaS model to generate a depth map from an input image. Users can then adjust a "contrast cut level" to threshold the depth map, effectively creating a binary mask. Options to override inpainting settings and control mask blur are provided for convenience. The extension also supports alpha channel cropping for direct background removal.
Quick Start & Requirements
Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The README suggests avoiding the Euler a sampler due to potentially poor results. Compatibility with specific MiDaS model versions or performance on diverse hardware is not detailed.
2 years ago
1 day