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

How to use lama and powerpaint together? #535

Open
jryebread opened this issue Jun 3, 2024 · 2 comments
Open

How to use lama and powerpaint together? #535

jryebread opened this issue Jun 3, 2024 · 2 comments

Comments

@jryebread
Copy link

jryebread commented Jun 3, 2024

Model
lama and powerpaint-v1

Describe the bug
When I use both lama and powerpaint v1 inpainting, I don't see an option to use just lama in the UI, only powerpaint version of object removal, which is much slower and worse. How can I use lama when powerpaint is enabled? i think this is a bug.

System Info
Software version used

  • iopaint: latest
  • pytorch: 12.1
  • CUDA:12.1

command to run it:
iopaint start --model=lama --device=cuda --model=Sanster/PowerPaint-V1-stable-diffusion-inpainting --device=cuda --host=0.0.0.0 --enable-realesrgan --realesrgan-model="RealESRGAN_x4plus" --realesrgan-device=cuda --enable-remove-bg --enable-interactive-seg --interactive-seg-model=vit_l --interactive-seg-device=cuda --disable-nsfw-checker

@jryebread jryebread changed the title How to use How to use lama and powerpaint together? Jun 3, 2024
@Sanster
Copy link
Owner

Sanster commented Jun 3, 2024

Multiple models are not supported. --model=Sanster/PowerPaint-V1-stable-diffusion-inpainting is placed after --model=lama, so PowerPaint-V1-stable-diffusion-inpainting is used when the service starts. You can switch models in the settings on the web page.

@jryebread
Copy link
Author

@Sanster appreciate your response and creating this cool project!

May i ask which inpainting model you have tried is best for real images? ive been testing them all but found none have worked well for my real image use case (trying to insert new people into existing images)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants