update README
This commit is contained in:
34
README.md
34
README.md
@@ -38,6 +38,7 @@ https://user-images.githubusercontent.com/3998421/196976498-ba1ad3ab-fa18-4c55-9
|
||||
1. [MAT](https://github.com/fenglinglwb/MAT)
|
||||
1. [FcF](https://github.com/SHI-Labs/FcF-Inpainting)
|
||||
1. [SD1.5](https://github.com/runwayml/stable-diffusion)
|
||||
1. [Manga](https://github.com/msxie92/MangaInpainting)
|
||||
- Support CPU & GPU
|
||||
- Various inpainting [strategy](#inpainting-strategy)
|
||||
- Run as a desktop APP
|
||||
@@ -48,11 +49,12 @@ https://user-images.githubusercontent.com/3998421/196976498-ba1ad3ab-fa18-4c55-9
|
||||
<summary>1. Remove any unwanted things on the image</summary>
|
||||
|
||||
| Usage | Before | After |
|
||||
| ---------------------- | --------------------------------------------- | --------------------------------------------------- |
|
||||
|-------------------------------|-----------------------------------------------|-----------------------------------------------------|
|
||||
| Remove unwanted things |  |  |
|
||||
| Remove unwanted person |  |  |
|
||||
| Remove Text |  |  |
|
||||
| Remove text |  |  |
|
||||
| Remove watermark |  |  |
|
||||
| Remove text balloons on manga |  |  |
|
||||
|
||||
</details>
|
||||
|
||||
@@ -86,7 +88,8 @@ lama-cleaner --model=lama --device=cpu --port=8080
|
||||
# Lama Cleaner is now running at http://localhost:8080
|
||||
```
|
||||
|
||||
For stable-diffusion model, you need to [accepting the terms to access](https://huggingface.co/runwayml/stable-diffusion-inpainting), and
|
||||
For stable-diffusion model, you need
|
||||
to [accepting the terms to access](https://huggingface.co/runwayml/stable-diffusion-inpainting), and
|
||||
get an access token from here [huggingface access token](https://huggingface.co/docs/hub/security-tokens)
|
||||
|
||||
If you prefer to use docker, you can check out [docker](#docker)
|
||||
@@ -96,8 +99,8 @@ If you hava no idea what is docker or pip, please check [One Click Installer](./
|
||||
Available command line arguments:
|
||||
|
||||
| Name | Description | Default |
|
||||
| -------------------- | ------------------------------------------------------------------------------------------------------------------- | -------- |
|
||||
| --model | lama/ldm/zits/mat/fcf/sd1.5 See details in [Inpaint Model](#inpainting-model) | lama |
|
||||
| -------------------- |---------------------------------------------------------------------------------------------------------------------| -------- |
|
||||
| --model | lama/ldm/zits/mat/fcf/sd1.5/manga See details in [Inpaint Model](#inpainting-model) | lama |
|
||||
| --hf_access_token | stable-diffusion need [huggingface access token](https://huggingface.co/docs/hub/security-tokens) to download model | |
|
||||
| --sd-run-local | Once the model as downloaded, you can pass this arg and remove `--hf_access_token` | |
|
||||
| --sd-disable-nsfw | Disable stable-diffusion NSFW checker. | |
|
||||
@@ -136,14 +139,28 @@ Available command line arguments:
|
||||
| ---------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
|
||||
|  |  |  |
|
||||
|
||||
Image is from [ZITS](https://github.com/DQiaole/ZITS_inpainting) paper. I didn't find a good example to show the advantages of ZITS and let me know if you have a good example. There can also be possible problems with my code, if you find them, please let me know too!
|
||||
Image is from [ZITS](https://github.com/DQiaole/ZITS_inpainting) paper. I didn't find a good example to show the
|
||||
advantages of ZITS and let me know if you have a good example. There can also be possible problems with my code, if you
|
||||
find them, please let me know too!
|
||||
|
||||
**LaMa vs FcF**
|
||||
|
||||
| Original Image | Lama | FcF |
|
||||
| Original Image | LaMa | FcF |
|
||||
| ----------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
|
||||
|  |  |  |
|
||||
|
||||
**LaMa vs Manga**
|
||||
|
||||
Manga model works better on high-quality manga image then LaMa model.
|
||||
|
||||
Original Image
|
||||

|
||||
|
||||
| Model | 1080x740 | 1470x1010 |
|
||||
|--------|------------|------------|
|
||||
|Manga|||
|
||||
|[LaMa](https://github.com/saic-mdal/lama)|||
|
||||
|
||||
</details>
|
||||
|
||||
## Inpainting Strategy
|
||||
@@ -187,7 +204,8 @@ great online services [here](https://cleanup.pictures/).
|
||||
|
||||
## Docker
|
||||
|
||||
You can use [pre-build docker image](https://github.com/Sanster/lama-cleaner#run-docker-cpu) to run Lama Cleaner. The model will be downloaded to the cache directory when first time used.
|
||||
You can use [pre-build docker image](https://github.com/Sanster/lama-cleaner#run-docker-cpu) to run Lama Cleaner. The
|
||||
model will be downloaded to the cache directory when first time used.
|
||||
You can mount existing cache directory to start the container,
|
||||
so you don't have to download the model every time you start the container.
|
||||
|
||||
|
||||
BIN
assets/manga.png
Normal file
BIN
assets/manga.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 817 KiB |
BIN
assets/manga_clean.png
Normal file
BIN
assets/manga_clean.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 845 KiB |
0
scripts/pack.sh
Normal file → Executable file
0
scripts/pack.sh
Normal file → Executable file
Reference in New Issue
Block a user