RepoNovita AINovita AIpublished Sep 27, 2023seen 5d

novitalabs/sd-webui-cleaner

JavaScript

Open original ↗

Captured source

source ↗
published Sep 27, 2023seen 5dcaptured 8hhttp 200method plain

novitalabs/sd-webui-cleaner

Description: An extension for stable-diffusion-webui to remove any object.

Language: JavaScript

License: MIT

Stars: 344

Forks: 26

Open issues: 5

Created: 2023-09-27T03:24:18Z

Pushed: 2023-10-24T08:06:37Z

Default branch: main

Fork: no

Archived: no

README:

Cleaner for Stable Diffusion WebUI

AI image generation API

Now we have provided the API for remove object. Cleanup API

This is a WEBUI extension that provides image erasure functionality. It supports both UI and API simultaneously. Powered by lama

!example1

Installation

Clone this project in the WEBUI extensions folder

git clone https://github.com/novitalabs/sd-webui-cleaner.git

Get Started

https://github.com/novitalabs/sd-webui-cleaner/assets/55743667/3f9f652b-d3b7-4c08-a4c6-0e9fe731c77c

API

//request-----------------------------------
POST http://127.0.0.1:7860/cleanup

body:
{
"input_image": "",
"mask": ""
}

//response-----------------------------------
{
"code": 0, // 0:success
"message": "ok",
"image": ""
}

Used without GPU

If you don't have a GPU, please set the cleaner_use_cpu parameter to true through the setting page or api.

Thanks

  • https://github.com/advimman/lama
  • https://github.com/Sanster/lama-cleaner