Sanster / IOPaint

Image inpainting tool powered by SOTA AI Model. Remove any unwanted object, defect, people from your pictures or erase and replace(powered by stable diffusion) any thing on your pictures.
https://www.iopaint.com/
Apache License 2.0
17.35k stars 1.75k forks source link

inpainting workflow and how to update the program via cli #463

Closed wr4thful closed 2 months ago

wr4thful commented 2 months ago

hi, ive used the program couple times in the past and i installed it via the command pip3 install iopaint however i dont understand how to update it to the most recent version.

regarding inpainting workflow, i am trying to remove some object from this image 15-1

however any attempt results unusable output, regardless of steps that i use. they seem to produce unwanted results. i am not sure if i need to fill the prompt bar or leave it blank. i just wanted to inpaint the masked area to remove the mother and son. i tried both and the results were the same. i am also not sure if i need to leave the default negative prompt or clear them blank because both also did not give different results. am i doing something wrong? what would be the best approach for my current situation

brave_2024-02-25_08 50 56

looking forward and will appreciate for any responses and help, thanks :)

Sanster commented 2 months ago

You can use pip install -U iopaint to update

I tried your image for a few minutes and this is the result I obtained (the edges of the inpainting region and man's hand are not good enough yet).

307561745-ab1f0e0d-23eb-4200-82ca-40e5bcc4bb5a_cleanup

The configuration used is as follows:

step1-remove woman

remove_woman

step2-remove child

remove_child
wr4thful commented 2 months ago

thanks for the reply. thats a really good decent result, also helps me understand the approach better. im gonna try the same config myself. i think for now i can use some image editing to dissolve the edge artifacts but thats a really decent results to work with. again thanks :)

Sanster commented 2 months ago

I discovered a way to achieve better results. The model and configuration used can be seen from the video.

https://github.com/Sanster/IOPaint/assets/3998421/f13d27ef-fe2a-4dad-823b-e4de801b0a16

Result image

307561745-ab1f0e0d-23eb-4200-82ca-40e5bcc4bb5a_cleanup (1)

wr4thful commented 2 months ago

I discovered a way to achieve better results. The model and configuration used can be seen from the video.

lcm_remove.mp4 Result image

307561745-ab1f0e0d-23eb-4200-82ca-40e5bcc4bb5a_cleanup (1)

that result is actually insane. i had to mess for some minutes in photoshop to smooth and refine things out before but i guess that is not necessary anymore knowing this. truly appreciate the help, havent checked github for a while so sorry for the late responses. but anyways thanks 👍