There are many situations where you want to erase part of a photo, such as an unwanted subject in a photo or annoying text present in the photo. free tool”Llama CleanserI found”, so I tried to summarize how to introduce it to the PC and how to use it.
GitHub – Sanster / lama-cleaner: image inpainting tool powered by SOTA AI Model
Lama Cleaner can also be installed using ‘pip’ package management system for Python, but this time ‘Lama Cleaner One Click’ can install ‘Lama Cleaner’ in one shot even on a PC that is not ready for Python etc. Install it on your computer. “Lama Cleaner One Click Installer” can be downloaded from the following link.
lama-cleaner / README.md in main Sanster / lama-cleaner GitHub
The page above contains an installer for Windows and an installer for macOS. Since I want to install it on Windows this time, click “lama-cleaner-win.zip” to download it.
When the download of “lama-cleaner-win.zip” is completed, the standard Windows functions and “xplugor other decompression software.
After decompressing, open the “lama-cleaner-win” folder and open the “lama-cleaner” folder inside.
After that, double click on “win_config.bat”.
After that, the Command Prompt will open and the characters will flow in, so wait for a while.
After waiting for a while, you will be asked to select either “sd1.5” or “lama” as the sample data to use for deleting unnecessary objects in the image. This time, I want to use “lama” which doesn’t require any special settings, so I typed “lama” and hit Enter.
After that, a screen is displayed to select whether you want to use “cuda” or “CPU” to process the images. If you have a computer with an NVIDIA GPU, select “cuda” OK. Since I’m using a computer that doesn’t have an NVIDIA GPU this time, I entered “CPU” and hit the Enter key.
Finally, I was asked if I would use “Lama Cleaner” as a desktop app, so I entered “y” for “yes” and hit the Enter key. The installation and initial settings are now complete. Command Prompt will close automatically.
After completing the settings, double-click on “win_start.bat”.
After that, the Command Prompt opens and the process begins, so wait for a while.
After waiting for a while, “Lama Cleaner” will start. First, to select the image you want to process, click “Click here or drag an image file” in the middle, or drag and drop the image onto the screen.
This time, I’m going to process the McShake container image below.
Image processing is easy. Just trace the part you want to erase with the mouse and fill it in. This time, I tried filling in the part marked “Macshake”.
The result of the processing looks like this. The part marked “Mack Shake” has been replaced with a moon in the background without any disturbance.
Moreover, if you fill in the slogan phrase written on the right side of “Tsukimi” … …
The picture was completed without any inconvenience, as if only “Tsukimi” was written from the beginning. To save the completed image, tap the red frame button at the bottom of the screen.
By moving the slider in the image below left and right, you can compare the image before processing (on the left) and the image after processing (on the right). It performs astonishingly without any disturbance.
Copy the title and URL of this article
“Travel maven. Beer expert. Subtly charming alcohol fan. Internet junkie. Avid bacon scholar.”