Skip to content

Releases: Sanster/IOPaint

0.36.0

19 Feb 13:22
Compare
Choose a tag to compare
  • Rerun last mask: #209
    image
  • Save result image without confirm when --output-dir is used: #220
  • Keep brush size when switch image: #214
  • new side-project tldream: Turn your sketch into a refined image using Stable Diffusion and ControlNet https://github.com/Sanster/tldream

020DFACD-4FEB-4648-8771-ACE6AE1033C7

0.35.0

07 Feb 13:55
e17e981
Compare
Choose a tag to compare

0.35.0

New Model: InstructPix2Pix

InstructPix2Pix model can work without mask.

original result Prompt Guidance Scale Image Guidance Scale Seed
ipix2pix_duck ipix2pix_duck_result turn the duck blue, in the style of van gogh 9 1.6 108227038
ipix2pix_girl ipix2pix_girl_result make her hair black 7 1.5 749559112
house house_result make it summer 7 1.5 195504576

Share result by GIF

Click the GIF button in the toolbar, you can download a result GIF, it's fun!

image

duck

0.34.0: Windows Installer v2

23 Jan 14:16
Compare
Choose a tag to compare

Windows Installer v2

https://lama-cleaner-docs.vercel.app/install/windows_1click_installer

Remove the tasks.py file, and add a gradio based web config page to help the user set command line args. Click the Save configurations button will save an installer_config.json file in the same directory and the win_start.bat script will load this JSON file when starting the server.

web_config_page

New command line args

--no-gui-auto-close: when starting as a desktop app, the backend server will auto close, if the app is closed, but some users may have bug like #188 . If it happens to you, this arg can prevent the backend auto close after the GUI window is closed.

docker image 0.33.0

20 Jan 04:26
00def97
Compare
Choose a tag to compare

New GPU docker image, update Cuda and pytorch version, add xformers. With --enable-xformers, SD model get 30%~40% performance improvement

  • cuda: 11.7
  • pytorch: 1.13.1
  • minimum nvidia driver: 515.43.04+
  • xformers: 0.0.16rc425
docker run --gpus all -p 8080:8080 \
-v /path/to/cache_dir:/root/.cache/ \
--rm cwq1913/lama-cleaner:gpu-0.33.0 \
lama-cleaner --device=cuda --port=8080 --host=0.0.0.0 --enable-xformers

0.33.0

18 Jan 13:19
Compare
Choose a tag to compare

Optimize GPU Memory

Correctly implement --cpu-offload, test result for 512x512 image:

Stable Diffusion Model

  • fp16: 2GB
  • --no-half: 3GB

Paint by Example Model

  • fp16: 2.6GB
  • --no-half: 4.5GB

Document: https://lama-cleaner-docs.vercel.app/memory

0.32.1

17 Jan 13:38
Compare
Choose a tag to compare
  • fix image EXIF rotation bug: #185

0.32.0

14 Jan 14:15
2d4ca6f
Compare
Choose a tag to compare

Lama Cleaner Docs

Docs website: https://lama-cleaner-docs.vercel.app/

image

New command line arg

To solve the most frequently asked question: how to change the model directory

--model-dir: set model download directory

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)