Skip to content

fixed version of novitalabs cleaner; for Forge2 using Gradio4

License

Notifications You must be signed in to change notification settings

DenOfEquity/forge2_cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

novitalabs/sd-webui-cleaner fixed for Forge2 (Gradio4)

Note

if installed: you can just manually overwrite scripts/clean_up_tab.py and scripts/lama.py

new install: via Extensions tab in Forge; Install from URL; use URL of this repo

Do not have this version and the original installed at the same time; replace files or new install only.

Important

not for webUIs built on Gradio3

  • updated to use ForgeCanvas, as gradio4 ImageEditor consumes CPU or GPU constantly, even when not visible

original README below (unedited)


Cleaner for Stable Diffusion WebUI

Unsplash 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

start.mp4

API

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

body:
{
    "input_image": "<image base64 string>",
    "mask": "<mask base64 string>"
}


//response-----------------------------------
{
  "code": 0,  // 0:success
  "message": "ok",
  "image": "<image base64 string>"
}

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

About

fixed version of novitalabs cleaner; for Forge2 using Gradio4

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published