Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update lama-cleaner/iopaint #129

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ exit()

* Choose the Cleaner Model ID.
* Click on the `Run Cleaner` button (**Please note that it may take some time to download the model for the first time**).
* Cleaner process is performed using [Lama Cleaner](https://github.com/Sanster/lama-cleaner).
* Cleaner process is performed using [Lama Cleaner/IOPaint](https://github.com/Sanster/lama-cleaner).

### Inpainting webui Tab

Expand Down
6 changes: 3 additions & 3 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@
except Exception:
print("Can't install transformers. Please follow the readme to install manually")

if not launch.is_installed("lama_cleaner"):
if not launch.is_installed("iopaint"):
try:
launch.run_pip("install lama-cleaner", "requirements for lama_cleaner")
launch.run_pip("install iopaint", "requirements for iopaint")
except Exception:
print("Can't install lama-cleaner. Please follow the readme to install manually")
print("Can't install iopaint. Please follow the readme to install manually")

if not launch.is_installed("ultralytics"):
try:
Expand Down
4 changes: 2 additions & 2 deletions scripts/inpaint_anything.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
from diffusers import (DDIMScheduler, EulerAncestralDiscreteScheduler, EulerDiscreteScheduler,
KDPM2AncestralDiscreteScheduler, KDPM2DiscreteScheduler,
StableDiffusionInpaintPipeline)
from lama_cleaner.model_manager import ModelManager
from lama_cleaner.schema import Config, HDStrategy, LDMSampler, SDSampler
from iopaint.model_manager import ModelManager
from iopaint.schema import Config, HDStrategy, LDMSampler, SDSampler
from modules import devices, script_callbacks, shared
from modules.processing import create_infotext, process_images
from modules.sd_models import get_closet_checkpoint_match
Expand Down