Switch to full style
Open source and other free graphics applications
Post a reply

Lama Cleaner: a free, open-source inpainting tool

Wed Feb 01, 2023 7:21 am

Lama Cleaner is a free, open-source and fully self-hostable inpainting tool powered by state-of-the-art AI models. You can use it to remove any unwanted object, defect, people from your pictures or erase and replace anything on your pictures.

some test
remove watermark
Image

remove unwanted object
Image

Image
found at BigFoto

remove scratches
Image

Re: Lama Cleaner: a free, open-source inpainting tool

Wed Feb 01, 2023 1:18 pm

Awesome! I love this!

Re: Lama Cleaner: a free, open-source inpainting tool

Wed Feb 01, 2023 2:02 pm

I tweeted about this.

https://twitter.com/LinuxBeaver/status/ ... 1911284736

Re: Lama Cleaner: a free, open-source inpainting tool

Mon Feb 20, 2023 2:12 am

Hi, I installed Lama Cleaner using these commands in Ubuntu 22.04

pip install lama-cleaner
lama-cleaner --model=lama --device=cpu --port=8080

It took a lot of space than I imagined ( around 4GB, I guess ) and it is not waiting till I draw the mask completely. The result was not very satisfactory for me either. So I tried to save some space by removing it using

pip uninstall lama-cleaner

The command was executed immediately, but I see that the space is still gone. I tried to remove the cache using Bleachbit as root, but only 320 MB was removed.

Any chance I can completely remove Lama Cleaner and win back the space?

Thanks.

Re: Lama Cleaner: a free, open-source inpainting tool

Mon Feb 20, 2023 4:27 am

There seems to exist pip-autoremove https://pypi.org/project/pip-autoremove/
Sounds as if it would do what you need.
(No guarantee - didn't try myself)

Re: Lama Cleaner: a free, open-source inpainting tool

Mon Feb 20, 2023 5:01 am

Thanks @nelo

I already removed Lama Cleaner, but the space is still occupied.

Re: Lama Cleaner: a free, open-source inpainting tool

Mon Feb 20, 2023 5:23 am

Does a list of dependencies help?
https://github.com/Sanster/lama-cleaner ... ements.txt

Re: Lama Cleaner: a free, open-source inpainting tool

Mon Feb 20, 2023 5:24 am

Thanks. I do not know how to handle this.

https://github.com/Sanster/lama-cleaner/issues/223

Started a bug report on GitHub. Hopefully, there will be an official answer.

Re: Lama Cleaner: a free, open-source inpainting tool

Mon Feb 20, 2023 9:53 am

Manually uninstalled everything one by one except

Code:
pip uninstall markupsafe
Found existing installation: MarkupSafe 2.0.1
Not uninstalling markupsafe at /usr/lib/python3/dist-packages, outside environment /usr
Can't uninstall 'MarkupSafe'. No files were found to uninstall.


Thanks for all the help. :)

Re: Lama Cleaner: a free, open-source inpainting tool

Mon Mar 06, 2023 1:18 pm

Lama Cleaner was the final tool that completed the ENTIRETY of my open source image editing mission. There isn't a single professional task I can't do with all the tools I have. Open source software in the 2020s is without a doubt better then commercial software of the early 2000s. The main reason why are AIs that had no counter part back then.
Post a reply