Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Erickrus/stable-diffusion-webui-segment-anything

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An extension for stable-diffusion-webui that segment the image elements

中文版说明

Installation

Install dependencies

pip3 install opencv-python matplotlib onnx onnxruntime
pip3 install 'git+https://github.com/facebookresearch/segment-anything.git'

ensure pytorch>=2.0.0

Install extension from webui

Go to Extensions Tab, Click Install from URL, Input https://github.com/Erickrus/stable-diffusion-webui-segment-anything, Click Install

Please restart webui, after the script is installed

How to use

Upload the image to segment, draw/click tiny point(s) on the left side image and click segment button.

Please make sure the brush radius is around 5. Dont use large radius as they wont work.

Releases

No releases published

Packages

No packages published

Languages