Skip to content

Releases: Sanster/IOPaint

0.31.0

08 Jan 14:45
Compare
Choose a tag to compare

Happy new year 🎆 ! I just recovered from COVID and it's been really hard to be sick, hope everyone is doing well.

File Manager

2023-01-08.22.36.50.mov

I realize that some users will use this tool to process lots of photos and I thought a FileManager would be helpful. Users can search images by name, and browser images in both the image directory and the output directory. To enable the FileManager, set two command line args when starting Lama Cleaner.

  • --input: a directory contains images you want to clean up
  • --output-dir: The directory where you want to save the resulting image when clicking the download button on the web page, the resulting image will download to the output directory. A folder will be created in this directory to store the thumbnails

A folder icon will appear on the left-top corner, click this icon to open FileManager, or use shortcut f.

image

SD/PaintByExample Image Resize

2023-01-08.22.39.05.mov

Resize the image before inpainting, then scale up the inpainting area to fill the origin area, the area outside the mask will not lose quality. This option can be used to save vRAM.

cpu_offload

new command line arg: --cpu-offload for sd/paint_by_example model, offloads all models to CPU, reducing vRAM usage.

According to diffusers's document, vRAM can be reduced to 2GB, but that doesn't seem to be the case in my tests, you can try it yourself.

Stable Diffusion 1.5

No more huggingface access token is needed at the first download time

0.30.2

04 Jan 13:37
Compare
Choose a tag to compare

fix sd model --no-half. On 3080, need 6.8G(4.1G without --no-half) for 512x512 image with --sd-disable-nsfw --sd-cpu-textencoder.

0.30.1

03 Jan 14:08
Compare
Choose a tag to compare

On some GPU(#167) sd model might get a black image, it's probably because of fp16 precision, add a new --no-half option to the startup command, please upgrade to 0.30.1 to use this arg(for one-click installer, rerun win_config.bat will install the newest version of lama-cleaner)

0.30.0

11 Dec 14:13
Compare
Choose a tag to compare

Paint by Example

New model --model paint_by_example from https://github.com/Fantasy-Studio/Paint-by-Example.

This model is really interesting, you can use an example image to guide the model to generate similar content and no prompt is needed. I like the bunny one most, which one do you like? Click the bunny image to see how to use this model, have fun!

Original Image Example Image Result Image
cat bird
jack_sparrow_cleanup_cat jack_sparrow_cleanup_bird
bear panda
jack_sparrow_cleanup_bear jack_sparrow_cleanup_panda

0.29.0

04 Dec 13:06
Compare
Choose a tag to compare

img

  • New model --model sd2 : Stable Diffusion 2
  • New sampler dpm++: DPMSolverMultistepScheduler Empirically, sampling by DPM-Solver with only 20 steps can generate high-quality samples, and it can generate quite good samples even in only 10 steps.
  • New device --device mps: M1/M2 Apple Silicon support, make sure your torch version is 1.13.0. In theory, Lama Cleaner's code is device agnostic, but I don't have an M1 device to test it on, so if you encounter any problems, please try to provide a full screenshot of the error when opening an issue. Or just submit a PR to fix the problem, I'd appreciate it! ☮️ ✌️

0.28.0

02 Dec 13:20
d44dd88
Compare
Choose a tag to compare

Stable Diffusion

  • Add match histogram option #143, Match the inpainting result histogram to the source image histogram, which will improve the inpainting quality for some images.
  • Add --sd-enable-xformers command line arg #146, which gives a big boost in speed while also reducing GPU memory usage significantly. To use this option you need to Install https://github.com/facebookresearch/xformers first

Interactive Segmentation

In this release, Lama Cleaner integrates with a small model(so it can run on CPU) from ClickSEG. I have wanted to add this feature for a long time, it's fun and useful in many scenarios.

The basic operation process is as follows:

  • Enable Interactive Segmentation by clicking the button on the bottom toolbar, or by shortcut i
  • Left click meaning position click (include things you want to mask)
  • Right click meaning negative click(exclude things you want to mask)
  • Complete the mask with the brush (If the result of interactive segmentation is not so good)
  • Inpainting!
is_demo3.mp4

0.27.1

21 Nov 13:11
Compare
Choose a tag to compare

Manga inpainting model from: https://github.com/msxie92/MangaInpainting

Manga model works better on high-quality manga image then LaMa model.

Original Image

manga

Model 1080x740 1470x1010
Manga manga_1080x740 manga_1470x1010
LaMa lama_1080x740 lama_1470x1010

🤗 Huggingface Spaces

16 Nov 13:27
627ddef
Compare
Choose a tag to compare

Lama Cleaner is no living on 🤗 Huggingface Spaces! https://huggingface.co/spaces/Sanster/Lama-Cleaner-lama

image

0.26.0

16 Nov 04:10
51daa8d
Compare
Choose a tag to compare
  • Add upload mask button. Once uploaded, you can rerun inpainting with the current mask by clicking the play button. The mask must have the same shape as the image.
    image
    mask example(white area is mask area):
    overture-creations-5sI6fQgYIuo_mask

  • Better error message when CUDA OOM

  • Add --disable-model-switch when start server. Disable model switch from frontend

  • sd1.5

    • Faster model loading thanks to diffusers 0.7.0 update:
    • Negative Prompt
    • Add k_euler and k_euler_a sampler
    • Make the cropper easier to drag and resize: #111

0.25.0

08 Nov 00:49
Compare
Choose a tag to compare
  • remove torch.amp.autocast in sd1.5, run 25% faster(tested on 3080)
  • remove Strength from the sd side panel, it has nothing to do with inpainting
  • fix the flaskwebgui version