Iopaint

Latest version: v1.3.3

Safety actively analyzes 638773 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 9

0.32.1

- fix image EXIF rotation bug: https://github.com/Sanster/lama-cleaner/issues/185

0.32.0

Lama Cleaner Docs

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

<img width="1447" alt="image" src="https://user-images.githubusercontent.com/3998421/212474996-6c6a7d5c-33a9-4d56-a207-d5f951a80591.png">

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

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

File Manager

https://user-images.githubusercontent.com/3998421/211202244-57093aef-7d76-4ce6-91e0-c63cb0211755.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`.

<img width="180" alt="image" src="https://user-images.githubusercontent.com/3998421/211227320-29073a0b-98a2-42c0-879f-c2b36a82e223.png">


SD/PaintByExample Image Resize

https://user-images.githubusercontent.com/3998421/211202340-4ac928ff-23fe-49a2-9b4b-dea31c16bd99.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](https://huggingface.co/docs/diffusers/optimization/fp16#offloading-to-cpu-with-accelerate-for-memory-savings), vRAM can be reduced to 2GB, but that doesn't seem to be the case [in my tests](https://github.com/huggingface/diffusers/issues/1934), you can try it yourself.

0.30.2

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

On some GPU(https://github.com/Sanster/lama-cleaner/issues/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

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 |
|----|------|-------|
|<img src="https://user-images.githubusercontent.com/3998421/206908542-c6465ca3-6414-4593-8318-0c8b569e7682.jpg">|[<img src="https://user-images.githubusercontent.com/3998421/206908517-bd7f62d2-464a-43bc-892e-dbea45f7b104.jpeg">](https://youtu.be/NSAN3TzfhaI)|[<img src="https://user-images.githubusercontent.com/3998421/206903752-0463a0cf-146d-4125-a969-8fe20127a09b.jpeg">](https://youtu.be/NSAN3TzfhaI)|

|cat|bird|
|--|--|
|![jack_sparrow_cleanup_cat](https://user-images.githubusercontent.com/3998421/206903745-0fca4067-817f-4389-b774-b6527a3ee7a2.jpeg)|![jack_sparrow_cleanup_bird](https://user-images.githubusercontent.com/3998421/206903756-0e7c4537-2645-4916-96aa-3fb75352260d.jpeg)|

|bear|panda|
|--|--|
|![jack_sparrow_cleanup_bear](https://user-images.githubusercontent.com/3998421/206903763-2190cc52-692f-46ed-a454-bc8204b37b6f.jpeg)|![jack_sparrow_cleanup_panda](https://user-images.githubusercontent.com/3998421/206903872-42e6ff08-2cf9-44ac-9948-e01a7e848f23.jpeg)|

Page 3 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.