923 Commits
master ... main

Author SHA1 Message Date
let5sne
0363f84028 🐳 更新 Docker 配置到最新项目状态
- 更新 build_docker.sh 到新仓库地址
  - 仓库: Sanster/lama-cleaner → let5sne/IOPaint
  - 镜像标签: cwq1913/lama-cleaner → let5sne/iopaint
  - 项目名称: lama-cleaner → IOPaint

- 重构 Dockerfile (CPU & GPU)
  - 从源码构建替代 PyPI 安装
  - 更新基础镜像到最新版本
  - CPU: python:3.11-slim-bookworm
  - GPU: nvidia/cuda:12.1.0-runtime-ubuntu22.04
  - 使用最新的 PyTorch 和依赖版本
  - 添加自动启动命令

- 更新 scripts/pack.sh
  - 构建目录: lama-cleaner → iopaint
  - 修复拼写错误 (Ensuer → Ensure)

- 新增 docker/README.md
  - 完整的 Docker 部署指南
  - 包含 CPU 和 GPU 两种模式
  - Docker Compose 配置示例
  - 故障排查和安全建议

主要改进:
-  与当前项目完全同步
- 📦 支持从源码构建
- 🔧 更灵活的运行配置
- 📝 完整的使用文档
- 🚀 更新的依赖版本

🤖 Generated with Claude Code
2025-11-28 17:34:53 +00:00
let5sne
a26f04f7c2 Merge master into main - 完整项目更新
-  更新所有依赖到最新版本
- 📝 添加完整的项目文档(CLAUDE.md, UPGRADE_NOTES.md)
- 🔧 配置 VSCode 预览功能
- 🐛 修复 PyTorch API 兼容性问题
- 📦 更新 requirements.txt 依赖版本
- 📖 完善 README.md 模型推荐

主要依赖更新:
- diffusers: 0.27.2 → 0.35.2
- gradio: 4.21.0 → 5.46.0
- peft: 0.7.1 → 0.18.0
- Pillow: 9.5.0 → 11.3.0
- fastapi: 0.108.0 → 0.116.2
2025-11-28 17:26:25 +00:00
Qing
61a759fb3f Merge pull request #638 from emmanuel-ferdman/main
Display class name in model error message
2025-04-29 10:13:17 +08:00
Emmanuel Ferdman
0d34b3df6d Display class name in model error message
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
2025-04-25 09:52:25 -07:00
Qing
676af4c4f0 Disable GitHub workflows to reduce notifications. 2025-04-22 16:52:06 +08:00
Qing
7ca4552241 1.6.0 2025-03-18 09:53:10 +08:00
Qing
11f7d3cb79 fix onnxruntime version
fix onnxruntime bug on windows: DLL load failed while importing onnxruntime_pybind11_state
2025-03-18 09:49:45 +08:00
Qing
99c5d6a889 set default quality 100 2025-03-18 09:30:45 +08:00
Qing
c61b3b1149 fix https://github.com/Sanster/IOPaint/issues/617 2025-03-17 16:49:36 +08:00
Qing
96d944a40c update 2025-03-17 16:13:00 +08:00
Qing
fddae35479 print plugin check_dep error 2025-03-17 16:07:59 +08:00
Qing
1ca6bd8e81 add test 2025-03-17 15:59:54 +08:00
Qing
73a4bf4456 fix sdxl brushnet load sdxl single file 2025-03-17 15:57:05 +08:00
Qing
212dd3ed69 Merge pull request #622 from sun11/main
support brushnet sdxl model
2025-03-17 15:56:16 +08:00
Starsky Wong
4b5f8b8995 support brushnet sdxl model 2025-02-12 14:21:11 +08:00
Qing
65b37727b5 1.5.4 2024-11-23 22:49:42 +08:00
Qing
a89d6e04e5 copy briarmbg2 to iopaint, remove kornia dependency 2024-11-23 22:49:25 +08:00
Qing
098eda73e8 1.5.3 2024-11-23 20:14:36 +08:00
Qing
683298dd5f huggingface_hub deprecate resume_download 2024-11-23 20:14:31 +08:00
Qing
341f610159 make typescript happy 2024-11-23 20:13:34 +08:00
Qing
e9264fadb7 torch._C._jit_set_profiling_mode(False) 2024-11-23 19:17:48 +08:00
Qing
074fa5513a fix pydantic deprecate warning 2024-11-23 19:13:48 +08:00
Qing
b58c333a73 huggingface_hub deprecate resume_download 2024-11-23 19:01:48 +08:00
Qing
36e65f0097 fix deprecate warning 2024-11-23 18:58:34 +08:00
Qing
4cec8ded64 better error handle 2024-11-23 18:49:22 +08:00
Qing
b7699a0f26 add remove_bg_device 2024-11-23 16:12:49 +08:00
Qing
d29fe6ecb5 add github actions 2024-11-23 15:30:41 +08:00
Qing
aad5ee8114 fix https://github.com/Sanster/IOPaint/issues/597
bug is intruduced in https://github.com/Sanster/IOPaint/pull/586
2024-11-23 15:05:40 +08:00
Qing
175c597df8 add briaai/RMBG-2.0
https://github.com/Sanster/IOPaint/issues/598
2024-11-23 14:56:25 +08:00
Qing
ecbb73aaae add favicon.ico 2024-11-23 14:28:56 +08:00
Qing
cfad51634b if input image file is not configured, return code 200 2024-11-23 11:03:22 +08:00
Qing
24764bd8bb smaller brushsize 2024-11-23 10:53:27 +08:00
Qing
dcb77120fb rembg remove onnxruntime dep in: https://github.com/danielgatis/rembg/pull/691 2024-11-23 10:41:54 +08:00
Qing
31d1bd6e14 1.5.2 2024-11-14 17:56:54 +08:00
Qing
14b334ad76 fix: https://github.com/Sanster/iopaint-docs/issues/47 2024-11-14 17:56:28 +08:00
Qing
668733c178 1.5.1 2024-11-04 09:32:37 +08:00
Qing
91e6556610 remove iopath
fix: https://github.com/Sanster/IOPaint/issues/593
2024-11-04 09:31:13 +08:00
Qing
32e7dc2584 1.5.0 2024-11-02 15:57:27 +08:00
Qing
ec08ce3063 add sam2.1 2024-11-02 13:25:31 +08:00
Qing
2098d687d1 RemoveBg plugin add birefnet models, require rembg>=2.0.59 2024-11-02 13:25:31 +08:00
Qing
b4b49bb88e add anime-lama 2024-11-02 13:25:31 +08:00
Qing
d7089497cc Merge pull request #586 from caeroltheplasmoid/cve-fix
Critical: 585 fix file overwrite
2024-10-22 09:22:27 +08:00
Caerol
0e4067b3bc 585 fix file overwrite 2024-10-22 02:50:53 +03:00
Qing
32f29d6112 1.4.4 2024-10-19 11:27:17 +08:00
Qing
dab4caeeeb fix huggingface_hub version
- fix: https://github.com/Sanster/IOPaint/issues/581
- fix: https://github.com/Sanster/IOPaint/issues/582
2024-10-19 11:12:07 +08:00
Qing
3b5e1ce221 1.4.3: fix https://github.com/Sanster/IOPaint/issues/554\#issuecomment-2323211720 2024-09-05 22:41:23 +08:00
Qing
3ff0a90fa8 1.4.2 2024-08-21 23:15:27 +08:00
Qing
89f02679d3 fix mask_dir 2024-08-21 23:13:11 +08:00
Qing
63131713cf update scripts 2024-08-21 22:50:17 +08:00
Qing
43bfbe3647 1.4.1 2024-08-21 22:50:17 +08:00
Qing
14298d19a4 1.4.0 2024-08-21 22:50:17 +08:00
Qing
728f96c0e7 fix: https://github.com/Sanster/lama-cleaner-docs/issues/58 2024-08-21 22:50:17 +08:00
Qing
04c031e10a Update README.md 2024-08-16 16:05:37 +07:00
Qing
820ce5e4d0 add mask tab 2024-08-12 12:13:37 +08:00
Qing
60b1411d6b remove gfpgan dep 2024-08-12 11:22:13 +08:00
Qing
ffdf5e06e1 remove realesrgan dep 2024-08-12 10:34:54 +08:00
Qing
2f833029aa add sam2 2024-08-12 10:11:34 +08:00
Qing
9afdbd1c0a update 2024-07-04 08:58:15 +08:00
Qing
ef1f7a5324 Merge pull request #531 from factman/fix-mask-drawing-on-touch-devices
Fix mask drawing on touch devices
2024-06-13 09:02:53 +08:00
Qing
dc661866ed update readme
Thanks to https://github.com/Sanster/IOPaint/pull/528 for raising the issue in the README.
2024-05-31 09:15:31 +08:00
factman60@gmail.com
cca45c8bbe Add touch event handlers for canvas 2024-05-26 04:41:36 +01:00
factman60@gmail.com
e6aac849fd Enhance mouseXY function to support touch events 2024-05-26 04:38:40 +01:00
Qing
c738432de0 Merge pull request #524 from xillkey/main
the wrong param name of "upscale"
2024-05-19 15:04:26 +08:00
Qing
d444b39b0a Update README.md 2024-05-19 15:02:58 +08:00
Qing
728d658201 Create win_start_cn.bat 2024-05-18 15:52:24 +08:00
Qing
13f8e22999 Update win_config_cn.bat 2024-05-18 15:48:30 +08:00
Qing
dc4b9690c3 Update win_config_cn.bat 2024-05-14 11:04:56 +08:00
Qing
886902281d Update win_config_cn.bat 2024-05-14 09:55:12 +08:00
Qing
4a839e6f01 Update win_config_cn.bat 2024-05-14 09:34:13 +08:00
Qing
9f58a80f53 Update 🐛-bug-report.md 2024-05-14 09:18:11 +08:00
Qing
1a3251d6ec Create win_config_cn.bat 2024-05-14 09:09:48 +08:00
xillkey
50c8d003f3 the wrong param name of "upscale" 2024-05-14 01:39:59 +08:00
Qing
031846c8fd 1.3.3 fix single file scan 2024-05-06 23:12:02 +08:00
Qing
64110b069b 1.3.2 fix powernet v2 2024-05-06 22:51:55 +08:00
Qing
a176e50475 1.3.1 fix brushnet;requirements 2024-05-06 22:48:46 +08:00
Qing
c516a23fd8 Merge branch 'brushnet' 2024-05-06 22:32:48 +08:00
Qing
bfad842a0e fix https://github.com/Sanster/IOPaint/issues/508
diffusers removed config_files api: https://github.com/huggingface/diffusers/issues/6819#issuecomment-1928396112
2024-05-06 22:32:37 +08:00
Qing
b9eb6d07e9 1.3.0 2024-05-06 22:30:28 +08:00
Qing
0b9ce2cabe adjust style 2024-05-06 22:28:36 +08:00
Qing
e4e3871bf2 cli: fix run command read chinese path image 2024-05-06 22:08:58 +08:00
Qing
21f17c8e2a Merge pull request #519 from alexreyes/main
Update run server command in readme
2024-05-06 09:43:46 +08:00
Alex Reyes
612df55c06 Update run server command in readme 2024-05-03 15:32:35 -04:00
Qing
30b29db668 fix paint_by_example test 2024-04-30 13:13:13 +08:00
Qing
acd5726ecb not disable strength when brushNet is enabled 2024-04-30 09:07:59 +08:00
Qing
2ab0d089f0 disable powerpaint_v2 & brushnet when lcmlora enabled 2024-04-29 22:31:03 +08:00
Qing
80ee1b9941 update 2024-04-29 22:20:44 +08:00
Qing
017a3d68fd remove freeu support 2024-04-25 22:21:33 +08:00
Qing
911f7224b6 add powerpaint v2 2024-04-25 22:12:51 +08:00
Qing
ccea072dc5 adjust sidebar effect 2024-04-13 15:44:07 +08:00
Qing
76823355fe better handle scan single file diffusion 2024-04-12 22:10:02 +08:00
Qing
0a262fa811 make brushnet work 2024-04-12 18:50:25 +08:00
Qing
35f12d5b9b fix https://github.com/Sanster/IOPaint/issues/508
diffusers removed config_files api: https://github.com/huggingface/diffusers/issues/6819#issuecomment-1928396112
2024-04-12 13:09:47 +08:00
Qing
f71e9cfb26 Update README.md 2024-04-01 09:27:50 +08:00
Qing
d151968b67 fix gradio gbk issue 2024-03-26 09:45:03 +08:00
Qing
db949b5536 Merge pull request #492 from Randomblock1/patch-1
Fix #460
2024-03-21 18:31:50 +08:00
Benjamin G
3211b3e6af Update web_config.py 2024-03-21 01:08:50 -05:00
Qing
bf7eba1d85 Update README.md 2024-03-07 11:56:00 +08:00
Qing
08ab07120b 1.2.2 2024-03-05 22:44:28 +08:00
Qing
4561d5c31b update 2024-03-05 22:33:38 +08:00
Qing
468e698a5c outpainting expand_images2 2024-03-05 22:23:53 +08:00
Qing
ee2592502b frontend: change brushsize by mouse wheel 2024-03-04 22:07:20 +08:00
Qing
9803718b0e Update README.md 2024-03-04 09:29:47 +08:00
Qing
f1cf278d19 Update README.md 2024-03-04 09:28:23 +08:00
Qing
eb77e2b27c Merge pull request #467 from aminejava/patch-1
Update README.md
2024-02-29 09:46:47 +08:00
Amine Ait-Mansour
75378ffd7c Update README.md
the param is image instead of input.
2024-02-28 23:12:56 +00:00
Qing
d08c21d1c8 1.2.1 2024-02-27 22:43:00 +08:00
Qing
803b68d210 fix lcm enable/disable bug 2024-02-27 22:42:46 +08:00
Qing
47d2b1dcb7 fix textarea space not work 2024-02-27 22:42:46 +08:00
Qing
1b8c48af7b fix tooltip 2024-02-27 22:42:46 +08:00
Qing
0ecdb0af74 remove extra mask_blur 2024-02-27 22:42:46 +08:00
Qing
c7339bde1b update publish.sh 2024-02-27 22:42:46 +08:00
Qing
fb70be060d Update README.md 2024-02-21 13:30:16 +08:00
Qing
043aa5b54d 1.2.0 2024-02-20 20:14:16 +08:00
Qing
d37bf4fb4e change default sampler 2024-02-20 20:08:22 +08:00
Qing
b358e6cbce add sam_hq 2024-02-20 09:03:11 +08:00
Qing
6447e821cb frontend: tigger paint when ctrl is pressed 2024-02-16 10:28:15 +08:00
Qing
40d845cc3c backend: fix get X-Seed 2024-02-16 10:16:05 +08:00
Qing
ed1f7c9e28 frontend: add prompt auto expand 2024-02-16 10:06:35 +08:00
Qing
b3d334e26e frontend: decrease the brush size min size 2024-02-15 22:36:06 +08:00
Qing
67ec5b0670 frontend: show plugin running states 2024-02-15 22:30:06 +08:00
Qing
293b5ba3f3 frontend: fix repaint color 2024-02-15 21:52:52 +08:00
Qing
bd55feb3a5 diffusers 0.26.3 2024-02-15 21:39:18 +08:00
Qing
77e64e86f1 decrease the brush size limit 2024-02-15 14:33:16 +08:00
Qing
51907bd293 1.1.2 2024-02-10 16:42:02 +08:00
Qing
c03a1918e7 only auto switch to lcm schduler when using lcm lora 2024-02-10 16:41:54 +08:00
Qing
950fc4ce53 fix controlnet torch_dtype 2024-02-10 16:24:40 +08:00
Qing
170e7342f4 1.1.1 2024-02-10 13:19:59 +08:00
Qing
1cd36cbe60 briaai/RMBG-1.4 always run on cpu 2024-02-10 13:19:43 +08:00
Qing
893fd11b98 fix plugin model refetch 2024-02-10 13:17:24 +08:00
Qing
487232c19e align model switch text 2024-02-10 12:56:38 +08:00
Qing
306e5898f8 make typescript build happy 2024-02-10 12:50:00 +08:00
Qing
6138d54938 1.1.0 2024-02-10 12:46:57 +08:00
Qing
97f9e12f7e update test 2024-02-10 12:37:10 +08:00
Qing
ec2db92ad9 add switch interactiveSegModel 2024-02-10 12:35:12 +08:00
Qing
9aa5a7e0ba fix torch_dtype & cpu_text_encoder 2024-02-10 11:00:13 +08:00
Qing
180b7d6c70 Update README.md 2024-02-09 15:30:00 +08:00
Qing
131fa8300b fix auto save to output_dir 2024-02-09 15:17:49 +08:00
Qing
314b2ae8c0 Update README.md 2024-02-09 15:06:11 +08:00
Qing
0760e2a946 Update README.md 2024-02-09 15:03:50 +08:00
Qing
45d29a4249 add inbrowser 2024-02-08 22:13:37 +08:00
Qing
f52dbc1091 add realesrGAN selection 2024-02-08 22:13:37 +08:00
Qing
8060e16c70 add remove bg model selection 2024-02-08 22:13:37 +08:00
Qing
cf9ceea4e6 update 2024-02-08 22:13:37 +08:00
Qing
2043de7889 Update README.md 2024-02-08 17:51:05 +08:00
Qing
a26bf7a0c9 Update README.md 2024-02-06 23:17:19 +08:00
Qing
2af34161a9 1.0.4 2024-02-06 17:10:56 +08:00
Qing
68f54444e0 support scan converted diffusers 2024-02-06 17:04:56 +08:00
Qing
92bbd82a53 1.0.3 2024-02-06 09:53:05 +08:00
Qing
97d51d3da6 remove local_files_only from from_single_file 2024-02-06 09:52:20 +08:00
Qing
7f5333acf6 1.0.2 2024-02-05 21:45:39 +08:00
Qing
0eb4f5b86d fix revision==fp16 fallback to main 2024-02-05 21:45:11 +08:00
Qing
93f965da40 print model dir 2024-02-05 21:45:11 +08:00
Qing
75b233023c update bat 2024-02-05 21:45:11 +08:00
Qing
cd979da1b3 Merge pull request #444 from eltociear/patch-2
Update tool.py
2024-02-05 11:05:08 +08:00
Qing
4946cb67bd Update README.md 2024-02-05 11:04:48 +08:00
Qing
b85fb1c9e8 1.0.1 2024-02-04 21:54:54 +08:00
Qing
6ad4177a75 update diffusers==0.26.1, fix load single file sdxl inpainting model 2024-02-04 21:54:54 +08:00
Qing
f0b20f461b fix https://github.com/Sanster/IOPaint/issues/440 2024-02-04 21:54:54 +08:00
Qing
7321232b78 update web_config 2024-02-04 21:54:54 +08:00
Ikko Eltociear Ashimine
7c4bd07704 Update tool.py
minor fix
2024-02-04 18:48:37 +09:00
Qing
fcd8254205 Update README.md 2024-02-03 21:59:54 +08:00
Qing
159a385bf8 Update README.md 2024-02-03 21:54:20 +08:00
Qing
49e0a1806e Merge branch 'dev' 2024-02-03 21:31:08 +08:00
Qing
04241682a6 udpate readme 2024-02-03 21:29:09 +08:00
Qing
042e37b4d1 1.0.0 2024-02-03 21:26:32 +08:00
Qing
4da70857a2 Merge pull request #428 from targaryen/main
Fixes install error on Windows due to slash in path in setup.py
2024-02-01 10:29:28 +08:00
Qing
021937cb82 beta12 2024-02-01 09:02:05 +08:00
Qing
517fa7666d fix load invalid diffusers model_index.json 2024-02-01 09:01:43 +08:00
Qing
00c16f1875 beta11 2024-01-31 22:15:22 +08:00
Qing
5b93bd42dc fix ts 2024-01-31 22:14:47 +08:00
Qing
b4824c6944 remove mask operate icon 2024-01-31 22:12:35 +08:00
Qing
44ee0769dd fix --input file.jpg 2024-01-31 22:10:13 +08:00
Qing
1d2d39dfa0 update web_config 2024-01-31 21:53:14 +08:00
Qing
cdac68a9a9 add reverse mask 2024-01-30 13:30:43 +08:00
Qing
e5f71ae535 sd: load single file model using local config 2024-01-30 13:19:13 +08:00
Qing
934b0fc455 update readme 2024-01-24 22:21:47 +08:00
Qing
cf5e25d7a0 remove gui option 2024-01-24 22:00:36 +08:00
Qing
fd6e82f844 update readme 2024-01-24 22:00:01 +08:00
Qing
71351f68a7 fix setup.py on windows 2024-01-24 21:54:54 +08:00
targaryen
0e2033f3d3 Fixes install error on Windows due to slash in path in setup.py 2024-01-23 14:48:13 -07:00
Qing
20d042fe56 beta10 2024-01-21 23:43:25 +08:00
Qing
5f0db8862e beta9 2024-01-21 23:33:32 +08:00
Qing
1905743886 add AnyText 2024-01-21 23:25:50 +08:00
Qing
f5bd697687 anytext init 2024-01-21 12:30:49 +08:00
Qing
8beb02dfe2 diffusers==0.25.1 2024-01-21 09:49:27 +08:00
Qing
e811481e78 backend: Better distinguish between the normal and inpaint models of stable diffusion. 2024-01-19 09:41:48 +08:00
Qing
7c6e62e164 fontend: update text 2024-01-19 09:39:51 +08:00
Qing
bdae30785c beta8 2024-01-16 23:14:10 +08:00
Qing
1fe54cac51 fix progress disappear issue 2024-01-16 23:12:52 +08:00
Qing
84c2b515c8 add back local_files_only to from_pretrained 2024-01-16 22:25:25 +08:00
Qing
8dd3a06945 fix lcm_lora offline 2024-01-16 22:10:26 +08:00
Qing
340bca64b7 remove padding warning 2024-01-16 22:09:32 +08:00
Qing
316198a97a beta7 2024-01-10 22:09:03 +08:00
Qing
ac67ddd3d6 controlnet depth add pad 2024-01-10 22:04:46 +08:00
Qing
d420ecbecd powerpaint support_strength=True 2024-01-10 21:54:35 +08:00
Qing
ccfb077a2e change mps dtype to fp32 2024-01-10 21:48:14 +08:00
Qing
c3cc7a238e fix test 2024-01-10 21:47:03 +08:00
Qing
a869982d13 change controlnet depth preprocessor 2024-01-10 21:32:05 +08:00
Qing
dfcb9017f1 set controlnet_conditioning_scale=0 when use extender 2024-01-10 21:25:34 +08:00
Qing
7545d54870 fix test 2024-01-10 21:24:59 +08:00
Qing
cbcdf3b9a2 from_single_file load_safety_checker work 2024-01-10 21:22:59 +08:00
Qing
772ef65f7b always cpu_textencoder=False if device is not cuda 2024-01-10 13:34:51 +08:00
Qing
38b6edacf0 sdxl support cpu_text_encoder 2024-01-10 13:34:11 +08:00
Qing
05a15b2e1f pass pipe_components when turn control on/off 2024-01-10 13:02:13 +08:00
Qing
db4a6f4547 optimize mem 2024-01-10 10:21:58 +08:00
Qing
e94a94e3c2 beta6 2024-01-09 22:44:23 +08:00
Qing
fea3f2ed4e remove support_controlnet for PowerByExample 2024-01-09 22:44:01 +08:00
Qing
8ed969eec1 add enable_low_mem 2024-01-09 22:42:48 +08:00
Qing
a49c3f86d3 add enable_low_mem 2024-01-09 15:05:17 +08:00
Qing
a71c3fbe1b clean code: get_torch_dtype; mps use float16 by default 2024-01-09 13:26:20 +08:00
Qing
6f4ce66793 handle MaxRetryError 2024-01-09 11:32:54 +08:00
Qing
7c1f83e71d fix match_histograms 2024-01-09 10:31:16 +08:00
Qing
be2f721c9d beta5 2024-01-08 23:37:18 +08:00
Qing
df5fd5ccf0 add back torch._C._jit_set_nvfuser_enabled(False) 2024-01-08 23:12:32 +08:00
Qing
0e6babea67 add __main__.py
https://github.com/Sanster/lama-cleaner/pull/416
2024-01-08 22:45:01 +08:00
Qing
044d426616 Merge pull request #416 from jojje/feat/runnable_module
Make module runnable with python -m lama_cleaner
2024-01-08 22:39:30 +08:00
Qing
0661c6b790 beta4 2024-01-08 21:53:36 +08:00
Qing
0244234bb6 add missing dep 2024-01-08 21:49:33 +08:00
Qing
a1a06004d8 fix lcm_lora load 2024-01-08 21:49:27 +08:00
Qing
5da47ee035 add back enable_attention_slicing for mps device 2024-01-08 21:49:18 +08:00
Qing
3b40671e33 beta3 2024-01-05 22:08:13 +08:00
Qing
7d3235e280 update requirements 2024-01-05 22:07:37 +08:00
Qing
fd74b8556f beta2 2024-01-05 16:56:54 +08:00
Qing
f88f3cbbb3 fix import issue 2024-01-05 16:38:55 +08:00
Qing
87d9078fe3 update publish 2024-01-05 16:27:33 +08:00
Qing
cc06f30e9a beta1 2024-01-05 16:21:49 +08:00
Qing
a95dd10ceb fix 2024-01-05 15:31:36 +08:00
Qing
311ca6fbd3 update gitignore 2024-01-05 15:21:25 +08:00
Qing
a26e2c43ae fix build error 2024-01-05 15:21:20 +08:00
Qing
a73e2a531f rename to iopaint 2024-01-05 15:19:23 +08:00
Qing
f1f18aa6cd fix 2024-01-05 15:10:32 +08:00
Qing
3081da883b fix 2024-01-05 15:08:16 +08:00
Qing
e889e527ab add adjust mask feature 2024-01-05 14:58:05 +08:00
Qing
2996544e75 draw mask on seprate canvas 2024-01-04 22:20:33 +08:00
Qing
3b97d1dd9a update 2024-01-04 22:00:23 +08:00
Qing
773e105d20 add dot background 2024-01-04 21:56:30 +08:00
Qing
2fc1bf042a fix PIL exif rotate 2024-01-04 21:39:59 +08:00
Qing
4a9f2ab03c add batch_processing 2024-01-04 21:39:34 +08:00
Qing
cd82b21cd9 fcf/migan fix change original image 2024-01-04 21:39:09 +08:00
Qing
9df94489e1 update 2024-01-03 09:03:04 +08:00
Qing
aca85543ca make generate mask from RemoveBG && AnimeSeg work 2024-01-02 22:53:29 +08:00
Qing
6253016019 add diffusion progress 2024-01-02 17:13:11 +08:00
Qing
f38be37f8c get samplers from backend 2024-01-02 14:34:36 +08:00
Qing
a2fd5bb3ea update plugins 2024-01-02 11:07:35 +08:00
Qing
b0e009f879 add ctrl+s to download image 2024-01-01 16:37:29 +08:00
Qing
79a41454f6 switch to FastAPI 2024-01-01 16:06:21 +08:00
Qing
c4abda3942 wip 2023-12-30 23:36:44 +08:00
Qing
85c3397b97 FileManager use fuse 2023-12-29 10:59:09 +08:00
Qing
0c985a431b fix build error 2023-12-29 10:08:21 +08:00
Qing
1169e66ccb fix icc_profile 2023-12-29 09:55:47 +08:00
Qing
f4dcb2ca0d remove old app 2023-12-28 14:27:17 +08:00
Qing
92ecd53232 always save result as png 2023-12-28 11:14:42 +08:00
Qing
cfb43a4805 make disableModelSwitch work 2023-12-28 10:52:13 +08:00
Qing
9cc9bd7a88 update 2023-12-28 10:48:52 +08:00
Qing
f0b852725f lots update 2023-12-27 22:00:07 +08:00
Jonas Tingeborn
c39662900f Make module runnable with python -m lama_cleaner 2023-12-27 10:05:06 +01:00
Qing
0ba6c121e0 create cli.py 2023-12-25 11:31:49 +08:00
Qing
c55a7b566f update 2023-12-25 10:48:34 +08:00
Qing
371db2d771 update 2023-12-24 15:32:27 +08:00
Qing
0e5e16ba20 remove GIF 2023-12-22 14:29:56 +08:00
Qing
61d56288a5 update 2023-12-22 14:00:30 +08:00
Qing
eb9764176c update 2023-12-22 14:00:11 +08:00
Qing
141936a937 update 2023-12-19 13:16:30 +08:00
Qing
f27fc51e34 update 2023-12-17 22:15:48 +08:00
Qing
7bd29ab290 update 2023-12-16 14:04:47 +08:00
Qing
36b0782933 update 2023-12-16 13:59:18 +08:00
Qing
24e95daac1 update 2023-12-16 13:34:56 +08:00
Qing
cbe6577890 update 2023-12-15 12:40:29 +08:00
Qing
142aa64cc6 update 2023-12-13 22:56:09 +08:00
Qing
354a1280a4 wip 2023-12-11 22:28:07 +08:00
Qing
fecf4beef0 update 2023-12-05 12:40:04 +08:00
Qing
8be37c93dd wip 2023-12-03 16:00:31 +08:00
Qing
ef79177966 wip 2023-12-03 14:25:06 +08:00
Qing
9a9eb8abfd wip 2023-12-01 10:15:35 +08:00
Qing
973987dfbb wip 2023-11-23 22:01:06 +08:00
Qing
43433c50eb wip 2023-11-23 16:28:47 +08:00
Qing
7463a599a9 remove make GIF 2023-11-22 08:55:05 +08:00
Qing
04c5dfece8 new web init 2023-11-22 08:53:20 +08:00
Qing
a5c241ac02 add migan 2023-11-20 13:05:28 +08:00
Qing
53aea791c5 wip 2023-11-17 08:56:33 +08:00
Qing
ef1179a858 add get_diffusers_models 2023-11-16 21:45:55 +08:00
Qing
1d145d1cd6 add download command 2023-11-16 21:12:06 +08:00
Qing
20e660aa4a use from_single_file 2023-11-16 14:09:08 +08:00
Qing
af00512cf7 Update README.md 2023-11-16 13:14:53 +08:00
Qing
bfd33ef37f instruct_pix2pix support freeu 2023-11-16 12:45:50 +08:00
Qing
0cfec489b7 update 2023-11-16 11:26:13 +08:00
Qing
8f942e27c4 add test 2023-11-15 17:20:44 +08:00
Qing
b8a030f83a fix outpainting image padding 2023-11-15 17:18:32 +08:00
Qing
1571018cfd update 2023-11-15 16:52:44 +08:00
Qing
3e7a553273 add sd_prevent_unmasked_area 2023-11-15 09:10:13 +08:00
Qing
f13bfb9085 clean code 2023-11-15 08:58:52 +08:00
Qing
58b931fdb2 add lcm lora 2023-11-15 08:50:35 +08:00
Qing
bb98c91c8c backend add freeu 2023-11-14 22:10:32 +08:00
Qing
2c9a53da8e sdxl do not has nsfw 2023-11-14 15:24:30 +08:00
Qing
8fbc8059e1 add sdxl 2023-11-14 14:29:35 +08:00
Qing
78c8d8dbdb update 2023-11-14 14:04:06 +08:00
Qing
53b9f3e92f sd add strength 2023-11-14 14:02:15 +08:00
Qing
d061b07029 update 2023-11-14 14:02:10 +08:00
Qing
7a470e4e7d update 2023-11-01 21:14:52 +08:00
Qing
99a7dc4a9a update GPUDockerfile 2023-11-01 21:14:52 +08:00
Qing
3a90ab3da7 Update README.md 2023-11-01 09:20:35 +08:00
Qing
2091642642 1.2.5 2023-11-01 09:04:36 +08:00
Qing
ef70b8e8e5 fix typo in web_config
new gradio version requires no typo
2023-11-01 09:03:53 +08:00
Qing
557e28aff9 add MobileSAM vit_t 2023-10-07 12:48:29 +08:00
Qing
94211a4985 kandinsky 2023-10-07 08:53:43 +08:00
Qing
7ba8fdbe76 update diffusers to 0.20.1 2023-10-07 08:53:43 +08:00
Qing
c7c309cb89 backend add outpainting 2023-10-07 08:53:43 +08:00
Qing
0b3a9a68a2 1.2.4 2023-10-05 21:56:13 +08:00
Qing
b1e619f989 cherry-pick from https://github.com/Sanster/lama-cleaner/pull/390 2023-10-05 21:55:57 +08:00
Qing
aae67518b9 Update README.md 2023-09-01 10:16:56 +08:00
Qing
8e059ea679 Update README.md 2023-08-25 21:45:45 +08:00
Qing
4f591051c8 Update README.md 2023-08-22 15:52:59 +08:00
Qing
9145a32656 Update README.md 2023-08-11 13:40:32 +08:00
Qing
f40826a805 1.2.3 2023-07-18 21:44:38 +08:00
Qing
12384c84ea fix https://github.com/Sanster/lama-cleaner/issues/348 2023-07-18 21:44:07 +08:00
Qing
5d988dc5fd 1.2.2 2023-07-09 12:19:54 +08:00
Qing
147e89e35c fix https://github.com/Sanster/lama-cleaner/issues/340 2023-07-09 12:18:25 +08:00
Qing
08a962cdfb 1.2.1 2023-06-27 10:08:36 +08:00
Qing
9de04e42a7 Update README.md 2023-06-13 12:56:12 +08:00
Qing
abb9433c6f 1.2.0 2023-06-06 21:38:45 +08:00
Qing
592ec3485b use cpu when set --device=cuda on mac 2023-05-29 21:40:58 +08:00
Qing
6674104742 use torch_gc 2023-05-20 12:35:36 +08:00
Qing
870376e4bf pnpm build 2023-05-19 21:49:09 +08:00
Qing
32e23d2888 add favicon.ico 2023-05-19 21:47:09 +08:00
Qing
dcbba6d96d show prev mask when hover rerun button 2023-05-19 21:47:09 +08:00
Qing
a85d87a744 better error toast 2023-05-19 21:47:09 +08:00
Qing
24737ec3dd add depth controlnet 2023-05-19 21:47:09 +08:00
Qing
f1c09ca7d4 change font 2023-05-19 21:47:09 +08:00
Qing
0ff4681437 hide hover mask after inpainting finish 2023-05-19 21:47:09 +08:00
Qing
3eef8f4dae switch controlnet in webui 2023-05-19 21:47:09 +08:00
Qing
0363472adc fix 2023-05-19 21:47:09 +08:00
Qing
ca470db570 fix header icon style 2023-05-19 21:47:09 +08:00
Qing
87f54bb87e wip: controlnet 2023-05-19 21:47:09 +08:00
Qing
e5ac6a105a add anime segmentation 2023-05-19 21:47:09 +08:00
Qing
7fcce78e40 prevent exif/pnginfo when save to output dir 2023-05-19 21:47:09 +08:00
Qing
a899dd3c08 fix set --input 2023-05-19 21:47:09 +08:00
Qing
18a2498688 fix pnginfo data 2023-05-19 21:47:09 +08:00
Qing
7841d63c90 css 2023-05-19 21:47:09 +08:00
Qing
35608d209f add stable diffusion progress bar 2023-05-19 21:47:09 +08:00
Qing
711f212bf2 fix config btn bg-color 2023-05-19 21:47:09 +08:00
Qing
934289c476 fix interactiveSeg offset 2023-05-19 21:47:09 +08:00
Qing
f5247c89b2 show prev mask when dream again 2023-05-19 21:47:09 +08:00
Qing
f4eedbe3b1 add controlnet 1.1 2023-05-19 21:47:09 +08:00
Qing
05b3514f1c update dockerfile 2023-05-19 21:46:49 +08:00
Qing
c8f0359c8c Update README.md 2023-05-18 22:26:33 +08:00
Qing
89dc41280b Add files via upload 2023-05-18 22:25:41 +08:00
Qing
37e9137ac7 Merge pull request #295 from RomixERR/patch-1
Update environment.yaml
2023-04-25 08:38:23 +08:00
RomixERR
56ecb42e64 Update environment.yaml
To force installation of the correct version of python
2023-04-24 17:17:13 +03:00
Qing
f7ca3f266b update flask version 2023-04-16 13:59:42 +08:00
Qing
981ae3dc31 fix https://github.com/Sanster/lama-cleaner/issues/265 2023-04-16 11:00:04 +08:00
Qing
0baea45210 fix parse_args 2023-04-16 10:35:51 +08:00
Qing
0d89c37ef1 remove scikit-image 2023-04-16 10:27:39 +08:00
Qing
95245425eb add more package version check 2023-04-16 09:59:35 +08:00
Qing
d3f6f69af6 change default interactive_seg_device to cpu;add interactive seg model/device to web_config 2023-04-16 09:41:35 +08:00
Qing
6750df13e7 Update README.md 2023-04-13 21:29:48 +08:00
Qing
0e21b934ca 1.1.2 2023-04-10 09:32:40 +08:00
Qing
e096c68abc lazy import torchvision 2023-04-10 09:32:27 +08:00
Qing
d283595681 Update README.md 2023-04-10 09:16:35 +08:00
Qing
2c25cff9f7 1.1.1 2023-04-06 22:56:19 +08:00
Qing
d531d3efbb 1.1.0 2023-04-06 22:12:45 +08:00
Qing
a6aec566d9 add Segment Anything 2023-04-06 21:55:20 +08:00
Qing
ed36744339 1.0.4 2023-04-03 23:05:14 +08:00
Qing
261d2fce00 fix transformers version 2023-04-03 23:04:59 +08:00
Qing
bf19deec73 update 2023-04-03 21:51:29 +08:00
Qing
ce4e3843a6 1.0.3 2023-04-03 13:32:26 +08:00
Qing
03206fb8d6 add --realesrgan-no-half 2023-04-03 13:32:04 +08:00
Qing
dd1d45aa79 set face restore upscale to 1; realesrgan till to 512 2023-04-03 13:19:31 +08:00
Qing
ed798bb47c add omegaconf to requirments 2023-04-03 13:05:16 +08:00
Qing
bce8c6fccf Merge branch 'debug_main' 2023-04-02 16:11:55 +08:00
Qing
376ceb01d7 1.0.2 2023-04-02 16:11:48 +08:00
Qing
25bf0cbbc4 pnpm build 2023-04-02 16:11:44 +08:00
Qing
fa8925b424 fix zoom issue 2023-04-02 16:11:11 +08:00
Qing
e9c81ef756 WIP 2023-04-02 15:44:02 +08:00
Qing
76443bfa4e update 2023-04-02 15:02:27 +08:00
Qing
d9e2b14b6e 1.0.1 2023-04-01 21:27:40 +08:00
Qing
674c60f5a8 fix GFPGAN face detect 2023-04-01 21:27:40 +08:00
Qing
f9727e1af6 Update README.md 2023-04-01 21:05:16 +08:00
Qing
ac39e9d3d8 1.0.0 2023-04-01 20:43:50 +08:00
Qing
65f12b490a controlnet support load local ckpt 2023-04-01 09:23:37 +08:00
Qing
5fd253b07e update 2023-03-31 22:25:16 +08:00
Qing
c3cbf8d4a2 update 2023-03-31 22:17:38 +08:00
Qing
6579977439 update 2023-03-31 22:06:17 +08:00
Qing
a28cc4e34b update 2023-03-31 21:02:57 +08:00
Qing
d3aaed5af8 web_config add sd_local_model_path 2023-03-31 09:09:37 +08:00
Qing
b5dfa06dfa fix sd local model 2023-03-30 21:16:55 +08:00
Qing
3022797602 pnpm build 2023-03-30 21:07:34 +08:00
Qing
07ae89b7c0 update test 2023-03-30 21:06:07 +08:00
Qing
6911d3ce16 add try catch 2023-03-30 21:02:18 +08:00
Qing
c52f733214 add restoreformer 2023-03-30 16:07:38 +08:00
Qing
f2e90d3f84 add load local model 2023-03-29 22:05:34 +08:00
Qing
61df5f69b3 fix mat min_size 2023-03-28 22:12:24 +08:00
Qing
96840fec64 fix esc resetZoom 2023-03-28 22:12:20 +08:00
Qing
e734859128 update web_config 2023-03-28 21:55:25 +08:00
Qing
14596247c1 append empty lineGroup 2023-03-28 21:32:25 +08:00
Qing
af167a0daa add image size on left corner 2023-03-28 21:24:44 +08:00
Qing
aba98ca5fa fix interactiveseg 2023-03-28 21:12:09 +08:00
Qing
e444e55bcc fix undo redo draw 2023-03-28 21:01:14 +08:00
Qing
c4968dd0a9 fix gfpgan cpu/mps device 2023-03-28 16:36:41 +08:00
Qing
8af5df491e fix test 2023-03-27 21:05:44 +08:00
Qing
2e6e87275e add time toast 2023-03-27 20:49:06 +08:00
Qing
9e678e9a2a fix interactiveseg 2023-03-27 20:49:06 +08:00
Qing
4d1809e908 pass upscaler to GFPGAN 2023-03-27 20:49:06 +08:00
Qing
b200db920b add gfpgan 2023-03-27 20:49:06 +08:00
Qing
e7c7896bfa add GFPGAN model 2023-03-27 20:49:06 +08:00
Qing
d938f2da3c add plugin dep check 2023-03-27 20:49:06 +08:00
Qing
1433d21b9f mat support float16 2023-03-27 20:49:05 +08:00
Qing
eb304ba696 wip mat float16 2023-03-25 22:46:28 +08:00
Qing
7e028c3908 wip fp16 mat 2023-03-25 21:29:13 +08:00
Qing
094b3c4f69 update editor tool style 2023-03-25 20:42:13 +08:00
Qing
1e6016d0db update gif 2023-03-25 20:37:15 +08:00
Qing
b12c3708c2 remove size selector 2023-03-25 14:13:09 +08:00
Qing
1a8754e314 fix trigger Modal in DropdownMenu 2023-03-25 13:55:36 +08:00
Qing
a0ffc2238b prevent dropdown menu autoFocus 2023-03-25 13:49:02 +08:00
Qing
003a104406 plugins add dropdown menu; realesrgan support 2x 4x 2023-03-25 13:39:56 +08:00
Qing
a5997e9332 add more realesrgan models 2023-03-25 10:15:44 +08:00
Qing
6e54f77ed6 make plugin work 2023-03-25 09:54:39 +08:00
Qing
996a264797 fix manga model md5 2023-03-22 12:57:29 +08:00
Qing
5a38d28ad1 add plugins 2023-03-22 12:57:18 +08:00
Qing
b48d964c2c FileManager add layout switch button;store searchText 2023-03-21 21:12:27 +08:00
Qing
c33b7c201e store filemanager state in localstorage 2023-03-21 12:31:31 +08:00
Qing
1bb25bebe6 add image quality arg
https://github.com/Sanster/lama-cleaner/issues/229
2023-03-20 21:23:59 +08:00
Qing
5f4c62ac18 add controlnet inpainting 2023-03-19 22:41:25 +08:00
Qing
61928c9861 0.37.1 2023-03-02 09:03:37 +08:00
Qing
3f095b0769 0.37.0 2023-03-01 21:56:47 +08:00
Qing
5c3b643280 pnpm build 2023-03-01 21:56:30 +08:00
Qing
66d3c6e322 update 2023-03-01 21:56:06 +08:00
Qing
8e5e4892af fix seed generator 2023-03-01 20:36:23 +08:00
Qing
3f27712991 0.36.4 2023-03-01 09:18:48 +08:00
Qing
e4bcd6ac00 fix https://github.com/Sanster/lama-cleaner/issues/230 2023-03-01 09:17:39 +08:00
Qing
d1f36dde8e Update README.md 2023-02-28 21:43:11 +08:00
Qing
6cc1f87a65 0.36.3 2023-02-26 16:40:57 +08:00
Qing
d5c77fcede 0.36.2 2023-02-26 16:36:37 +08:00
Qing
79b20af3f2 auto delete wrong model 2023-02-26 16:36:19 +08:00
Qing
8e9909261e 0.36.1 2023-02-26 16:31:06 +08:00
Qing
ecfecac050 add model md5 check 2023-02-26 15:58:20 +08:00
Qing
64336498ba Update README.md 2023-02-22 07:56:23 +08:00
Qing
49fcb53833 update 2023-02-19 21:16:30 +08:00
Qing
d41cf9b09d 0.36.0 2023-02-19 21:09:36 +08:00
Qing
4f371d3547 pnpm build 2023-02-19 21:09:17 +08:00
Qing
b1ec157467 better error handle 2023-02-19 21:06:28 +08:00
Qing
8f8bcfe0f4 auto switch mps device to cpu device 2023-02-19 21:06:22 +08:00
Qing
f9b5dcbfd7 change default settings 2023-02-19 15:59:03 +08:00
Qing
183334f8f7 add rerun last mask button 2023-02-19 15:05:41 +08:00
Qing
1a865810f5 keep brush size when switch images 2023-02-19 14:40:38 +08:00
Qing
774f470e58 auto save result image when --output-dir exists 2023-02-19 14:31:00 +08:00
Qing
88a37ea904 Update issue templates 2023-02-17 10:01:20 +08:00
Qing
014af37b97 Rename config.yaml to config.yml 2023-02-17 09:49:05 +08:00
Qing
cbc21fb702 Create config.yaml 2023-02-17 09:47:56 +08:00
Qing
525b009a0d Update issue templates 2023-02-17 09:42:30 +08:00
Qing
4f0d1e1d9b update 2023-02-12 22:34:02 +08:00
Qing
4d67b14c48 add github coplito log as sponsor 2023-02-12 21:27:04 +08:00
Qing
f837e4be8a Merge branch 'make_gif_share' 2023-02-07 21:47:11 +08:00
Qing
ebaf886004 0.35.0 2023-02-07 21:43:52 +08:00
Qing
bb4c44b38d remove cuda-visible-device 2023-02-07 21:43:37 +08:00
Qing
14d9918ef1 pnpm build 2023-02-07 21:38:46 +08:00
Qing
276676625d fix pil_to_bytes quality 2023-02-07 21:06:31 +08:00
Qing
fbb278298b fix test 2023-02-07 21:00:19 +08:00
Qing
3f6bc8fada update 2023-02-07 09:26:43 +08:00
Qing
24bff09534 fix InstructPix2Pix 2023-02-01 22:17:03 +08:00
Qing
3cbce33956 fix Jinja2 version 2023-02-01 22:00:47 +08:00
Qing
cd58f2984f pnpm build 2023-02-01 21:51:11 +08:00
Qing
33a1bde647 fix test 2023-02-01 21:36:37 +08:00
Qing
5950cc9c38 remove sd_local_file from instruct_pix2pix 2023-01-28 21:50:55 +08:00
Qing
b7c51c0e72 add test 2023-01-28 21:45:21 +08:00
Qing
23552b7bd8 optimize shortcuts modal order 2023-01-28 21:44:18 +08:00
Qing
0ddc1f105c pix2pix to instruct_pix2pix 2023-01-28 21:24:51 +08:00
Qing
a947f864b6 pix2pix allow empty mask 2023-01-28 21:18:49 +08:00
Qing
05e82598de add pix2pix 2023-01-28 21:13:21 +08:00
Qing
e17e981ec7 Update README.md 2023-01-28 14:56:32 +08:00
Qing
205170e1e5 add DiffusionInpaintModel 2023-01-27 20:59:22 +08:00
Qing
96659f2aef optimize shortcuts view 2023-01-27 20:38:29 +08:00
Qing
780517b91a add generate gif button 2023-01-27 20:23:56 +08:00
Qing
d4ec1208ae add a coffee machine anime 2023-01-25 22:11:01 +08:00
Qing
59992c31a6 fix modal dialog min-height 2023-01-25 21:42:31 +08:00
Qing
03dae6a3f4 switch to pnpm 2023-01-25 21:39:44 +08:00
Qing
f6c70f1543 reduce editor panel left/right padding 2023-01-25 21:31:37 +08:00
Qing
0f687b38a7 add make_gif.py 2023-01-25 13:50:30 +08:00
Qing
f0508c0f6a 0.34.0 2023-01-23 21:44:03 +08:00
Qing
1239ab047d add installer web config 2023-01-23 21:43:57 +08:00
Qing
b35cffadbd update dockerfile 2023-01-20 09:50:14 +08:00
Qing
00def97e9f Update tasks.py 2023-01-19 14:49:56 +08:00
Qing
5114a46f5e 0.33.0 2023-01-18 18:34:50 +08:00
Qing
148e97e8da optimize sd/paint_by_example modle VRAM usage 2023-01-18 18:34:10 +08:00
Qing
384f16dcd0 update README 2023-01-17 21:21:54 +08:00
Qing
4a094c0744 0.32.1 2023-01-17 21:17:38 +08:00
Qing
76ac9546ce update README 2023-01-17 21:10:06 +08:00
Qing
ff50421003 fix image exif rotation 2023-01-17 21:05:17 +08:00
Qing
a3275fc0dc update user scripts 2023-01-17 20:48:38 +08:00
Qing
b951b8d3ec 0.32.0 2023-01-16 15:45:05 +08:00
Qing
630256d01b fix model download issue 2023-01-16 15:45:05 +08:00
Qing
7d00fc8ceb add cuda check 2023-01-16 15:45:05 +08:00
Qing
719c7278b4 add --model-dir 2023-01-16 15:45:05 +08:00
Qing
2d4ca6f3ee Merge pull request #181 from eltociear/patch-1
Update README.md
2023-01-12 20:18:21 +08:00
Ikko Eltociear Ashimine
1f830740e1 Update README.md
huggingface -> Hugging Face
2023-01-12 21:07:49 +09:00
Qing
b924bd9137 0.31.1 2023-01-11 21:17:40 +08:00
Qing
449e599df5 yarn build 2023-01-11 21:17:21 +08:00
Qing
c82e20cbe0 add back croper to paint_by_example model 2023-01-11 21:17:17 +08:00
Qing
cc67436cbf 0.31.0 2023-01-08 22:20:54 +08:00
Qing
70dfc3d2b4 yarn build 2023-01-08 22:20:49 +08:00
Qing
d4a500d21a fix prompt input space shortcuts 2023-01-08 22:20:40 +08:00
Qing
65d8af8fc9 not use watchdog. as wip 2023-01-08 21:59:26 +08:00
Qing
bfb69347c2 fix args.input isdir 2023-01-08 21:26:57 +08:00
Qing
aa5ace4099 yarn build 2023-01-08 21:14:26 +08:00
Qing
2d793c5fb4 sd model no more need hf_access_token 2023-01-08 21:13:36 +08:00
Qing
51e0be2c96 remove hf_access_token check 2023-01-08 20:59:55 +08:00
Qing
9de96a09c2 fix flask file manager cache 2023-01-08 20:53:55 +08:00
Qing
ec596ffd39 yarn build 2023-01-07 22:26:28 +08:00
Qing
e53e071e11 yarn eject !!
https://github.com/facebook/create-react-app/issues/11865
2023-01-07 22:19:31 +08:00
Qing
209a3361d5 disable filemanager when isInpainting 2023-01-07 22:01:53 +08:00
Qing
7374a5127f fix filename fetch 2023-01-07 21:56:41 +08:00
Qing
9d6fc3bc42 fix tooltip asChild 2023-01-07 21:08:02 +08:00
Qing
f1c7f6dc99 add image output tab in file manager 2023-01-07 20:51:05 +08:00
Qing
a7382807be css optimize 2023-01-07 09:52:11 +08:00
Qing
a97f48220d use radix-ui tooltip 2023-01-07 09:25:34 +08:00
Qing
a7240eedb5 lots of update 2 2023-01-07 08:52:11 +08:00
Qing
a22536becc lots of updates 2023-01-05 22:07:39 +08:00
Qing
2e8e52f7a5 update file manager 2023-01-05 09:22:38 +08:00
Qing
39397fc829 update file manager 2023-01-05 09:22:38 +08:00
Qing
2dd95be90d add file manager 2023-01-05 09:22:38 +08:00
Qing
b847ded828 0.30.2 2023-01-04 21:28:03 +08:00
Qing
d2cec0d415 fix sd --no-half 2023-01-04 21:27:37 +08:00
Qing
8099841dc8 update readme 2023-01-03 22:03:02 +08:00
Qing
2f8f5ea773 0.30.1 2023-01-03 21:31:52 +08:00
Qing
59ee89bd34 add --no-half arg 2023-01-03 21:30:33 +08:00
Qing
6cfc7c30f1 Merge pull request #165 from davidbejarcaceres/Switch-model-unload-before-load-new-model
Clear model from memory before switch, fixes out of memory
2022-12-17 08:41:49 +08:00
David Bejar Caceres
e5acbc6be9 Call garbage collector after unload model 2022-12-16 16:27:18 +01:00
David Bejar Caceres
0c4de4776e Clear model from memory before switch, fixes out of memory 2022-12-16 16:14:15 +01:00
Qing
ea422ca68a Update README.md 2022-12-15 21:30:20 +08:00
Qing
3a70c2e1b5 Update README.md 2022-12-15 21:24:13 +08:00
Qing
5bfee91db8 Update README.md 2022-12-15 21:22:21 +08:00
Qing
5a7a3443c1 Update README.md 2022-12-11 22:50:37 +08:00
Qing
b34cfb620b Update README.md 2022-12-11 22:15:34 +08:00
Qing
42706f61e4 0.30.0 2022-12-11 22:05:18 +08:00
Qing
c79778f492 Merge branch 'add_paint_by_example' 2022-12-11 22:04:59 +08:00
Qing
92f7cca08e yarn build 2022-12-11 22:04:42 +08:00
Qing
221d44c037 fix test 2022-12-11 22:03:36 +08:00
Qing
ad8437dc9c hide manual inpainting when isPaintByExample 2022-12-11 20:30:02 +08:00
Qing
41e2858a7c update test 2022-12-11 20:27:32 +08:00
Qing
03965c69e6 add maskPreview 2022-12-11 20:01:04 +08:00
Qing
e4664e2d58 prevent croper position between show/hidden 2022-12-11 19:38:20 +08:00
Qing
203f2bc9c7 add paint by example 2022-12-11 09:14:28 +08:00
Qing
6e9d3d8442 update setup.py 2022-12-10 21:31:51 +08:00
Qing
be93642674 Update README.md 2022-12-05 08:48:54 +08:00
Qing
fbfaac3945 0.29.1 2022-12-04 22:08:01 +08:00
Qing
4a739aaae7 fix CPUTextEncoder 2022-12-04 22:07:33 +08:00
Qing
1100e5badb Update README.md 2022-12-04 21:07:59 +08:00
Qing
f672c4a0e2 0.29.0 2022-12-04 20:50:48 +08:00
Qing
e15146dad4 Merge branch 'diffusers_0.9' 2022-12-04 20:50:19 +08:00
Qing
eadb79af83 yarn build 2022-12-04 20:50:04 +08:00
Qing
816f4989f5 add mps to device 2022-12-04 20:49:52 +08:00
Qing
6a0ffdc96e update diffusers to 0.9; add SD2 2022-12-04 20:44:59 +08:00
Qing
fe0e13b9f7 Update README.md 2022-12-04 11:23:54 +08:00
Qing
15fe87e42d 0.28.0 2022-12-02 20:45:56 +08:00
Qing
513f008a33 yarn build 2022-12-02 20:45:51 +08:00
Qing
e8bed4b8e5 fix ISMask in sd 2022-12-02 16:11:46 +08:00
Qing
db92e07b72 change default IS model size to 384 2022-12-02 13:40:35 +08:00
Qing
2611d2fb44 fix run inpainting disable logic 2022-11-30 21:57:28 +08:00
Qing
e71725bee0 add interactive seg remove/replace modal 2022-11-30 21:53:56 +08:00
Qing
023306ae40 wip: add interactive seg model 2022-11-30 21:53:56 +08:00
Qing
af87cca643 add forward_post_process function 2022-11-30 21:53:56 +08:00
Qing
f7d7e89197 fix is_disable_switch_model 2022-11-30 21:53:56 +08:00
Qing
d44dd8822c Merge pull request #146 from fiskbil/enable-xformers-option
Add argument for enabling xFormers optimizations
2022-11-29 21:09:05 +08:00
Anders Haglund
a0240721e3 Add argument for enabling xFormers optimizations 2022-11-28 17:54:16 -08:00
Qing
0d2d1ab4ec Merge pull request #145 from fiskbil/negate-prompt-shortcut
Add keyboard shortcut to trigger inpainting from negative prompt text box by pressing ctrl/meta+enter
2022-11-27 09:31:10 +08:00
Anders Haglund
3c42d0a9f6 Update SidePanel.tsx
Add shortcut to trigger inpainting from negative prompt text box by pressing ctrl/meta+enter
2022-11-24 19:00:24 -08:00
Qing
9fbab233fc Merge pull request #143 from fiskbil/match-histograms
Match stable diffusion result histogram to image
2022-11-25 08:53:24 +08:00
Qing
58f2ee5370 add comments for configs 2022-11-24 09:29:13 +08:00
Anders Haglund
8e408640a4 Match stable diffusion result's histogram to image's 2022-11-23 14:50:58 -08:00
Qing
0b00fffe13 0.27.2 2022-11-22 22:13:32 +08:00
Qing
ad9ff13d61 yarn build 2022-11-22 22:13:00 +08:00
Qing
0673fce4ec fix setInterval in inactive tab
https://stackoverflow.com/questions/5927284/how-can-i-make-setinterval-also-work-when-a-tab-is-inactive-in-chrome
2022-11-22 22:12:34 +08:00
Qing
009da431ca update README 2022-11-21 14:02:44 +08:00
Qing
9955c9b9f6 update tasks.py 2022-11-21 11:56:34 +08:00
Qing
c02d918368 0.27.1 2022-11-21 11:49:35 +08:00
Qing
4686c7cb78 fix manga mask 2022-11-18 23:06:41 +08:00
Qing
99af1dfe1c add manga test 2022-11-18 22:39:21 +08:00
Qing
ffa6b7c343 0.27.0 2022-11-18 22:26:23 +08:00
Qing
139afabfab yarn build 2022-11-18 22:26:01 +08:00
Qing
08c295a70d add Manga Model 2022-11-18 22:21:52 +08:00
Qing
d7e2148ce1 Update README.md 2022-11-17 22:20:42 +08:00
Qing
31294a5f80 0.26.2 2022-11-17 22:12:55 +08:00
Qing
495ef941ea yarn build 2022-11-17 22:12:22 +08:00
Qing
57fb3d0d1c disable cache 2022-11-17 22:11:54 +08:00
Qing
cce15c9506 fix gui keepGUIAlive 2022-11-17 21:50:39 +08:00
Qing
627ddef06a Add huggingface space 2022-11-16 21:18:51 +08:00
Qing
0911d298ef 0.26.1 2022-11-16 18:01:37 +08:00
Qing
f774bad17f yarn build 2022-11-16 18:01:18 +08:00
Qing
30e205a5f8 only call keepGUIAlive when run as gui 2022-11-16 17:59:39 +08:00
Qing
51daa8d02e Merge pull request #127 from LinuxSuRen/patch-1
Typo fix from Github to GitHub
2022-11-16 12:03:13 +08:00
Rick
81a9e8634b Typo fix from Github to GitHub 2022-11-16 10:07:20 +08:00
Qing
7bef2ff226 0.26.0 2022-11-15 21:54:38 +08:00
Qing
8351fd3b0d yarn build 2022-11-15 21:54:32 +08:00
Qing
c54950c05c add mask rerun button 2022-11-15 21:53:16 +08:00
Qing
d7c3149f67 add euler sampler 2022-11-15 21:11:45 +08:00
Qing
6503d7ec32 update diffusers to 0.7.2 2022-11-14 21:16:38 +08:00
Qing
c2005786d7 fix slow sd test 2022-11-14 18:19:50 +08:00
Qing
eec41734c3 add custom mask upload, WIP, need more test
better handle server error
2022-11-13 23:31:15 +08:00
Qing
0666a32947 add --disable-model-switch 2022-11-13 13:15:51 +08:00
Qing
8cdac238b4 only show croper when isSD===True 2022-11-13 12:50:22 +08:00
Qing
4f42dda2cf fix skimage import color
https://github.com/Sanster/lama-cleaner/issues/121
2022-11-13 12:45:29 +08:00
Qing
8c2904c9c8 add negative prompt 2022-11-13 12:45:29 +08:00
Qing
b7d504cba6 ignore prompt enter when isInpainting 2022-11-13 12:45:29 +08:00
Qing
964795ceb5 Merge pull request #111 from fiskbil/main
Change cropper movement from accept/reject to clamping.
2022-11-12 22:30:16 +08:00
Qing
a4d62f8186 Merge pull request #119 from fiskbil/blur-result-mask
Add gaussian blur to mask before blending original image with result
2022-11-12 22:18:55 +08:00
Anders Haglund
543473bac5 Add gaussian blur to mask before blending original image with result 2022-11-10 13:02:51 -08:00
Anders Haglund
86797ca419 Change cropper movement from accept/reject to clamping. 2022-11-08 14:44:30 -08:00
Qing
c7d7ea7b32 Update README.md 2022-11-08 09:19:26 +08:00
Qing
9144e101a1 Update README.md 2022-11-08 09:16:21 +08:00
Qing
18de65693b 0.25.0 2022-11-08 08:37:12 +08:00
Qing
084f70c712 yarn build 2022-11-08 08:36:33 +08:00
Qing
0cfb06ba1a Merge branch '1108' 2022-11-08 08:35:18 +08:00
Qing
e14785b45a fix flaskwebgui version 2022-11-08 08:35:13 +08:00
Qing
082e9aa2fd remove macos one-click installer
MacOS permissions issues cannot be bypassed, other distribution methods need to be found
2022-11-07 13:06:42 +08:00
Qing
1769916589 remove Strength from SidePanel
strength arg is for img2img pipeline
2022-11-06 09:09:46 +08:00
Qing
b11780f494 fix win_config.bat 2022-11-06 08:56:39 +08:00
Qing
eaef8d143c update test 2022-11-04 15:52:22 +08:00
Qing
b3cb11f804 remvoe sd amp.autocast 2022-11-04 15:33:59 +08:00
Qing
dc69276a7d update test 2022-11-04 15:33:44 +08:00
Qing
ced53d9555 0.24.5 2022-11-04 14:02:17 +08:00
Qing
34d0327ff0 sd1.5: fix a bug when run --device=cpu on a host has gpu 2022-11-04 14:02:17 +08:00
Qing
fc465b39b7 Merge pull request #107 from Niek/readme-fix
fix: README typo/errors
2022-11-02 18:42:53 +08:00
Niek van der Maas
8b9d1033d3 fix: README typo/errors 2022-11-02 11:24:04 +01:00
Qing
db75357659 update Dockerfile 2022-11-01 09:25:42 +08:00
Qing
7147ffac7f Update README.md 2022-10-31 21:11:25 +08:00
Qing
abc55db068 Update README.md 2022-10-27 23:22:00 +08:00
Qing
49e26a5e6c update README.md 2022-10-27 23:02:31 +08:00
Qing
75ecb16953 0.24.4 2022-10-27 22:52:04 +08:00
Qing
265f4c90dc yarn build 2022-10-27 22:51:43 +08:00
Qing
f92bc5847b fix coffee btn 2022-10-27 22:47:17 +08:00
Sanster
af914e2086 update user_scripts 2022-10-27 22:39:23 +08:00
Qing
6921a13a83 add by me coffee 2022-10-26 22:07:06 +08:00
Qing
e971f6090b change lama default strategy to CROP
it's more user friendly for first time user, especially for users who use cpu
2022-10-26 21:10:12 +08:00
Sanster
8edc439952 add win installer 2022-10-25 14:41:01 +08:00
Qing
9ce3500558 0.24.3
remove annoying log
2022-10-25 09:20:55 +08:00
Qing
d611c635b7 update README.md 2022-10-24 22:55:22 +08:00
Qing
1883d9ec4a update one click installer 2022-10-24 22:39:09 +08:00
Qing
476159bbe5 ignore UserWarning; ignore flaskwebgui log 2022-10-24 18:29:33 +08:00
Qing
b00af182de add conda pack 2022-10-23 09:04:52 +08:00
Qing
d4bd37682a update test 2022-10-21 10:36:55 +08:00
Qing
13b6371a53 0.24.2 2022-10-21 10:28:17 +08:00
Qing
e2e2f5f853 fix sd1.5: pass height/width to pipeline 2022-10-21 10:28:17 +08:00
Qing
adddb80bbc Update README.md
update readme
2022-10-21 09:05:58 +08:00
Qing
562c055755 0.24.1 2022-10-20 22:43:15 +08:00
Qing
53b5d29db3 yarn build 2022-10-20 22:42:58 +08:00
Qing
126cc25dd8 change default sampler to pndm, klms seems can't get good result 2022-10-20 22:42:28 +08:00
Qing
6908c33657 update readme 2022-10-20 22:36:32 +08:00
Qing
a8643d198e 0.24.0 2022-10-20 22:26:20 +08:00
Qing
67076c3636 yarn build 2022-10-20 22:25:56 +08:00
Qing
b63429483d frontend: clear localstorage 2022-10-20 22:23:03 +08:00
Qing
9acc0f8079 remove sd1.4 2022-10-20 22:22:35 +08:00
Qing
88a3e16ca5 frontend: sd1.4->sd1.5 2022-10-20 21:31:56 +08:00
Qing
9daeca7693 fix redo button on safari 2022-10-20 21:27:58 +08:00
Qing
7e39169654 change mouse resize 2022-10-20 21:13:13 +08:00
Qing
c6268d52b2 use dark theme by default 2022-10-20 21:06:53 +08:00
Qing
2ecccb6290 update readme 2022-10-20 21:03:43 +08:00
Qing
6ccb6cd291 add sd1.5 2022-10-20 21:01:14 +08:00
Qing
d892d9166f frontend: add k_lms sampler 2022-10-15 23:11:17 +08:00
Qing
8939e086ef frontend: fix alt+tab 2022-10-15 23:03:01 +08:00
Qing
3c87b050d9 update sd inpainting pipeline 2022-10-15 22:34:53 +08:00
Qing
b92e9d8da6 update diffusers version 2022-10-15 21:43:58 +08:00
Qing
029c36115e 0.23.0 2022-10-09 21:38:46 +08:00
Qing
84208c00a5 yarn build 2022-10-09 21:38:17 +08:00
Qing
f4fcece180 fix cv2 params 2022-10-09 21:32:13 +08:00
Qing
521a1e2858 press Alt + mouse move, change brush size 2022-10-09 13:01:41 +08:00
Qing
75162712c3 0.22.0 2022-10-08 22:27:09 +08:00
Qing
da40221ed0 change editor minScale 2022-10-08 22:26:31 +08:00
Qing
f5985df903 update readme 2022-10-08 22:15:21 +08:00
Qing
33d2fd887f optimize show original transition 2022-10-08 22:03:46 +08:00
Qing
3c5781c947 allow ctrl+v to paste image to editor 2022-10-08 21:41:54 +08:00
Qing
4980675730 remove lading page 2022-10-08 13:30:35 +08:00
Qing
724b8c232d update readme 2022-10-08 12:55:51 +08:00
Qing
fd7c47bb95 remove docker image workflow
Image is too big, both data transfer out and storage exceed the github packages free plan(https://github.com/features/packages#pricing)
2022-10-07 08:47:49 +08:00
Qing
7a234793e4 fix workflow workflow_dispatch 2022-10-05 23:30:00 +08:00
Qing
c5692613a7 fix workflow workflow_dispatch 2022-10-05 23:27:28 +08:00
Qing
303efe1221 workflow add workflow_dispatch 2022-10-05 23:25:55 +08:00
Qing
1fd74a7cc6 update docker 2022-10-05 23:15:09 +08:00
Qing
8a565e97b3 Update FUNDING.yml 2022-10-01 21:51:21 +08:00
Qing
08036e427c Update FUNDING.yml 2022-10-01 21:32:57 +08:00
Qing
67be5316af Update README.md 2022-10-01 21:31:40 +08:00
Qing
7cb6c7c827 Merge branch 'update_sd' 2022-09-30 22:45:11 +08:00
Qing
1e398de639 0.21.0 2022-09-30 22:44:32 +08:00
Qing
dba7b01da7 enable text_encoder cpu 2022-09-30 22:44:03 +08:00
Qing
db1d7d5c48 add sd run local test 2022-09-29 21:56:33 +08:00
Qing
4d6cec0ca2 add run-sd-local arg 2022-09-29 13:13:09 +08:00
Qing
ec7b2d8e2d add sd-cpu-textencoder args 2022-09-29 12:20:55 +08:00
Qing
0d57e552cf add sd-disable-nsfw arg 2022-09-29 09:42:19 +08:00
Qing
4d607b9582 Update README.md 2022-09-29 09:15:56 +08:00
Qing
1a92569f00 0.20.1 2022-09-27 22:38:28 +08:00
Qing
36b078123c fix sd pad_mod to 64
diffusers bug: https://github.com/huggingface/diffusers/pull/505
2022-09-27 22:37:42 +08:00
Qing
03315261e2 update README 2022-09-26 09:16:11 +08:00
Qing
093401818b 0.20.0 2022-09-25 22:33:09 +08:00
Qing
0ed0d820f6 add ctrl+c to copy render result
&& fix shift+r tigger manual inpainting
2022-09-25 22:30:54 +08:00
Qing
c97f32bd13 0.19.0 2022-09-25 21:58:00 +08:00
Qing
2300d59a49 add full page drag and drop 2022-09-25 21:56:35 +08:00
Qing
35cbbd653c Add OpenCV2 model 2022-09-25 21:27:12 +08:00
Qing
bc98ea256a fix input ctrl+z 2022-09-25 21:08:46 +08:00
Qing
2a94150f59 0.18.0 2022-09-22 22:59:30 +08:00
Qing
279f6d2138 Merge pull request #71 from Sanster/add_sd
Stable Diffusion
2022-09-22 22:54:15 +08:00
Qing
a0aa501d5d update README 2022-09-22 22:53:20 +08:00
Qing
f947e2aa94 TODO: fix prompt input undo redo 2022-09-22 22:47:13 +08:00
Qing
5bdc5c1526 fix model init 2022-09-22 22:45:24 +08:00
Qing
8d65195e8a only show sidepanel when useing sd 2022-09-22 22:39:29 +08:00
Qing
5429bf2e87 fix prompt input ctrl + z 2022-09-22 22:38:11 +08:00
Qing
5be91edf9d fix random seed 2022-09-22 21:55:12 +08:00
Qing
26d938839c make mask blur work 2022-09-22 21:50:41 +08:00
Qing
19f1f07c95 SD: remove dice button 2022-09-22 21:40:36 +08:00
Qing
491e62fdf1 sd add blur mask test 2022-09-22 13:29:06 +08:00
Qing
e1fb0030d1 sd make change sampler work 2022-09-22 12:38:32 +08:00
Qing
5c2548eb3d Merge pull request #69 from bingliang-zh/main
Fix typo
2022-09-22 09:56:31 +08:00
Qing
047474ab84 make random dice work 2022-09-21 23:00:44 +08:00
Qing
d39bf73fac always use graduallyInpainting 2022-09-21 21:58:29 +08:00
Qing
d8ed4d2a58 add input click away blur 2022-09-21 21:56:51 +08:00
Qing
b1cebb614a make croper work 2022-09-21 21:20:55 +08:00
Qing
3e4021ec0d return seed 2022-09-20 22:43:20 +08:00
Qing
32854d40da wip 2022-09-19 22:37:42 +08:00
Bingliang
ee6feba9af Fix typo 2022-09-19 16:06:37 +08:00
Qing
3ac6ee7f44 0.17.0 2022-09-05 20:48:05 +08:00
Qing
23943b0ebd update test 2022-09-05 13:08:50 +08:00
Qing
3cc9521221 update README 2022-09-04 21:23:58 +08:00
Qing
2119a5f905 FcF use unique resize strategy 2022-09-04 16:00:42 +08:00
Qing
c5d7baec79 add fcf to args 2022-09-04 15:20:07 +08:00
Qing
9ccc577be2 fix resize mask bug 2022-09-02 11:13:15 +08:00
Qing
38c8837af7 Add FcF 2022-09-02 10:37:30 +08:00
Qing
b6d71c4733 Merge pull request #62 from Sanster/add_MAT
Add mat
2022-08-24 21:44:57 +08:00
Qing
80366ebb55 0.16.0 2022-08-24 21:43:16 +08:00
Qing
6d2b24ed6b add MAT model 2022-08-24 21:30:20 +08:00
Qing
a5e840765e make crop mode use more context 2022-08-22 23:23:48 +08:00
Qing
9b95376a79 fix https://github.com/Sanster/lama-cleaner/issues/56 2022-07-26 09:22:40 +08:00
Qing
b6cae0ebf4 update README 2022-07-25 21:43:31 +08:00
Qing
ae343c0db3 update README 2022-07-25 12:41:25 +08:00
Qing
fe47b3f119 0.15.0 2022-07-24 10:31:19 +08:00
Qing
47596b0a60 yarn build 2022-07-24 10:30:52 +08:00
Qing
42a8e72a7b update requirements 2022-07-24 10:22:37 +08:00
Qing
933cc44b5c update README.md 2022-07-24 10:11:36 +08:00
Qing
4f6fbc57b7 frontend: change slider background color 2022-07-22 21:54:18 +08:00
Qing
f22d0ec9a4 frontend: use github icon 2022-07-22 21:54:03 +08:00
Qing
8c1162a9e3 test add non square test 2022-07-21 22:09:10 +08:00
Qing
6e164c4915 HDSetting less words 2022-07-19 22:35:26 +08:00
Qing
adf8d4c0ec optimize frontend style 2022-07-19 22:29:41 +08:00
Qing
dd288f33e4 fix ctrl+shift+z redo 2022-07-19 21:51:22 +08:00
Qing
cfcaf82a21 zits use structure_upsample_model 2022-07-19 21:47:21 +08:00
Qing
b0c5d22a5a each model has its own hdsettings 2022-07-18 22:43:55 +08:00
Qing
8b1f7a672e optimize settings 2022-07-18 21:32:36 +08:00
Qing
4534d9275e tool tip add shadow 2022-07-18 20:39:04 +08:00
Qing
e11aed0b1e add github model url; fix cpu tensor 2022-07-18 20:35:55 +08:00
Qing
01c7f3b77d fix zits 2022-07-15 17:51:27 +08:00
Qing
eee91e7b82 frontend: add ZITS config 2022-07-14 17:01:39 +08:00
Qing
1f8fb29594 add Download mask settings 2022-07-14 17:00:14 +08:00
Qing
a94f7e4ffe add ZITS 2022-07-14 16:49:03 +08:00
Qing
0f70ab58a7 Merge branch '0.14.0-forceUpdate' 2022-06-29 21:57:26 +08:00
Qing
3018121644 0.14.0 2022-06-29 21:57:00 +08:00
Qing
9acfbed0a0 yarn build 2022-06-29 21:56:39 +08:00
Qing
15dcb43f69 change workspace key generate method
if use useCallback, Workspace will reload when switch theme
2022-06-29 21:47:27 +08:00
Qing
54289ea66d fix graduallyInpainting: alway draw newest lines on mask
this can prevent previous result change
2022-06-29 21:33:37 +08:00
Qing
dc950ed3fe fix localStorage restore 2022-06-28 22:58:50 +08:00
Qing
0daa27e11a use key props to reload workspace when upload new file 2022-06-28 22:34:01 +08:00
Qing
689d61968c add redo 2022-06-25 22:01:42 +08:00
Qing
20acc58435 Update README.md 2022-06-24 11:52:53 +08:00
Qing
19e7e816af start new -> upload new 2022-06-14 21:39:55 +08:00
Qing
335685d581 add gradually inpainting mode 2022-06-14 15:03:03 +08:00
Qing
d43d0694c2 Merge pull request #51 from Sanster/plms
add plms sampler
2022-06-12 22:20:35 +08:00
Qing
e5d057ce70 0.13.0 2022-06-12 22:13:41 +08:00
Qing
9a9e1fe2b7 yarn build 2022-06-12 22:13:33 +08:00
Qing
a494e7a7fa update README 2022-06-12 22:07:58 +08:00
Qing
a35ed7f716 update README 2022-06-12 22:06:29 +08:00
Qing
35b92ba9de ldm add plms sampler 2022-06-12 21:21:04 +08:00
Qing
55197f2209 frontend: better error handling 2022-06-12 13:13:51 +08:00
Qing
ca5059b0d4 Create FUNDING.yml 2022-06-10 17:01:33 +08:00
Qing
fd1c1d29a7 0.12.0 2022-05-30 10:51:34 +08:00
Qing
7826bda89c yarn build 2022-05-30 10:51:34 +08:00
Qing
544da231f6 fix sizeLimit reset after inpainting 2022-05-30 10:51:34 +08:00
Qing
e4a6c91f4a enable fp16 for ldm by default 2022-05-30 10:51:34 +08:00
Qing
e369a2f079 add colab link 2022-05-26 21:30:01 +08:00
Qing
623c5bb485 Merge pull request #49 from Sanster/0427_optimize
optimize
2022-05-23 21:36:45 +08:00
Qing
6316c88833 0.11.0 2022-05-23 21:30:14 +08:00
Qing
9aca205b4f update README 2022-05-23 21:28:39 +08:00
Qing
1d9b9d05e1 yarn build 2022-05-23 21:16:59 +08:00
Qing
45d1cc3f35 optimize shortcuts style 2022-05-22 13:32:19 +08:00
Qing
b7c3f3e327 update radix-ui dialog select version 2022-05-21 15:13:09 +08:00
Qing
ad62ef492e tooltip add delay 2022-05-21 13:37:38 +08:00
Sanster
22834a8243 button tooltip from b90e32886a019e0e55af8d8d6f289312527d2fed 2022-05-21 13:04:35 +08:00
blessedcoolant
92900933e5 minor patch
- Added hotkey for manual inpaint: Shift +  R (Updated the hotkey list to display this)
- Moved Settings icon in the header to the end which is consistent with how most programs do it.
- Fixed some missing useEffect dependencies.
- Made the formatting of the Shorcut description text consistent.
- Removed the borders around the bottom toolkit buttons. The 1px border was choppy and the entire region was looking boxed and cluttered. Now I feel it looks cleaner and is consistent with the button in the header.
2022-05-21 12:59:33 +08:00
Sanster
a297a6d3d0 radix select 2022-05-02 13:58:40 +08:00
Sanster
bf1e990f00 support panning using wheel 2022-04-27 17:30:28 +08:00
Sanster
390933f0eb prevent right click on canvas work 2022-04-27 17:23:01 +08:00
Sanster
3580d4281f show brush while change slide 2022-04-27 17:19:44 +08:00
Qing
49c42741a5 Merge pull request #46 from BedirYilmaz/patch-1
Minor correction to README
2022-04-25 21:22:12 +08:00
Bedir Yılmaz
746b901da0 Minor correction to README 2022-04-25 15:08:19 +02:00
Sanster
00381ceaa2 yarn build 2022-04-24 22:40:34 +08:00
Sanster
923db643e1 setup.py 0.10.0 2022-04-24 21:53:51 +08:00
Sanster
bbacb99e9d fix resize drawRender issue 2022-04-24 21:52:41 +08:00
Sanster
bbeefba7c5 fix Escape clear drawing 2022-04-24 21:41:04 +08:00
Sanster
dad1276ea7 header add background-color 2022-04-24 21:22:42 +08:00
Sanster
1bc3f06190 enable resetZoom after panning 2022-04-23 20:26:45 +08:00
Sanster
2797d2aca7 tool bar add shadow 2022-04-23 20:23:57 +08:00
Sanster
ce0c7defe1 make undo stroke in manual mode 2022-04-23 20:22:05 +08:00
Sanster
f97e17a593 add manual run mode 2022-04-23 20:21:34 +08:00
Qing
d94cae491a Update README.md
Add badges
2022-04-20 21:13:35 +08:00
Sanster
169252ebc2 setup.py 0.9.3 2022-04-19 21:36:28 +08:00
Sanster
1bfdec4acf yarn build 2022-04-19 21:35:52 +08:00
Sanster
6fb3d91082 fix tool panel bg
https://github.com/Sanster/lama-cleaner/issues/39
2022-04-19 21:32:04 +08:00
Sanster
2db38a20b4 fix bug in: https://github.com/Sanster/lama-cleaner/issues/40\#issue-1207371759 2022-04-19 17:24:40 +08:00
Sanster
69df1da095 0.9.2 2022-04-18 22:54:58 +08:00
Sanster
0b5494d1f8 use flask1, flask2 require python3.7 2022-04-18 22:54:34 +08:00
Sanster
30fdeadc46 update README 2022-04-18 22:40:23 +08:00
Qing
b43883a567 Merge pull request #38 from Sanster/0409_optimize
0409 optimize
2022-04-18 22:32:18 +08:00
Sanster
c1257c4e20 0.9.1 2022-04-18 22:29:17 +08:00
Sanster
b6a5650a96 fix --gui 2022-04-18 22:28:47 +08:00
Sanster
c283b05b8e yarn build 2022-04-18 22:19:33 +08:00
Sanster
2c213158db update 2022-04-18 22:18:48 +08:00
Sanster
0b5130420b initial settings atom from localStorage 2022-04-18 22:05:05 +08:00
Sanster
67befef3c7 disable flask warning 2022-04-18 21:30:49 +08:00
Sanster
71599e9c6d filter flaskwebgui log 2022-04-18 15:29:29 +08:00
Sanster
a219da27f7 add setup.py 2022-04-18 15:15:51 +08:00
Sanster
f7e1e073dc make model switch work with toast 2022-04-18 08:46:19 +08:00
Sanster
205286a414 big update 2022-04-16 21:29:18 +08:00
Sanster
2b031603ed save useInputImage with correct filename 2022-04-14 22:22:18 +08:00
Sanster
78d6b1cc3e wip: add setting page 2022-04-14 20:43:07 +08:00
Sanster
aa411c7524 WIP 2022-04-12 20:58:57 +08:00
Sanster
e570e85e64 fix jumpy image load 2022-04-09 22:45:48 +08:00
Sanster
5183c21ad3 add host arg 2022-04-09 21:01:30 +08:00
Sanster
ca65c95d22 bug fix: resize alpha channel when using non original image size 2022-04-09 12:31:48 +08:00
Sanster
1b1aade067 fix png alpha channel lose 2022-04-09 08:12:41 +08:00
Sanster
caed45b520 return correct file ext/mimetype 2022-04-09 07:23:33 +08:00
Qing
98fa52ba08 Merge pull request #33 from blessedcoolant/main
Fix Shortcuts Modal popping up on every click
2022-04-08 21:01:13 +08:00
blessedcoolant
e3e151716c new build 2022-04-08 17:05:58 +12:00
blessedcoolant
4d118698b4 Fix bug with Shortcuts Modal & added missing useEffect dependencies 2022-04-08 17:04:55 +12:00
Sanster
c3315a2d2b prevent ShortcutsModal bouncing offset 2022-04-07 21:38:10 +08:00
Sanster
1812928887 make editor-toolkit-panel background color change between theme more smooth 2022-04-07 21:25:52 +08:00
Sanster
2d53f3cade fix .editor-toolkit-panel display issue in safari 2022-04-07 21:22:19 +08:00
Qing
3fc0008f0a Merge pull request #30 from Sanster/PR25
PR25 + style refine
2022-04-06 23:05:30 +08:00
Sanster
10b35a3f0a style refine 2022-04-06 23:01:18 +08:00
blessedcoolant
855fd1f006 Merge branch 'Sanster:main' into recoil-refactor 2022-03-31 06:09:49 +13:00
blessedcoolant
ca9e393989 Inpainted State Fix 2022-03-30 19:14:32 +13:00
Sanster
251df40fc8 Revert "add imghdr to requirements.txt"
This reverts commit 81efda9df1.

fix https://github.com/Sanster/lama-cleaner/issues/27
2022-03-30 10:21:35 +08:00
blessedcoolant
b282421c98 Complete GUI Refactor # Patch 1 2022-03-30 12:45:34 +13:00
blessedcoolant
eea85b834e Complete GUI Refactor
This patch brings in a massive number of changes to the frontend of the application. Please feel free to discuss the proposed changes with me at any time.

Implemented Recoil as a state management system.
Why Recoil? It is a robust library built by developers at Facebook for state management. It has an  extremely simple API for implementation that is in sync with React syntax compared to any other state management system out there and works amazingly well. While the official release status is beta as it becomes fully featured, the library is already used in various systems at Facebook and is very stable for the use cases of this application.

Why global state management? One of the major issues I saw with the current file structure is that there is minimal code splitting and it makes further development of the frontend a cumbersome task. I have broken down the frontend into various easy to access components isolating the GUI from the logic. To avoid prop drilling, we need global state management to handle the necessary tasks. This will also facilitate the addition of any new features greatly.

Code Splitting. Majority of the components that can be isolated in the application have now been done so.
All New Custom CSS & Removal of Tailwind
While Tailwind is a great way to deploy beautiful interfaces quickly, anyone trying to stylize the application further needs to be familiar with Tailwind which makes it harder for more people to work on it. Not to mention, I am not a particular fan of flooding JSX elements with inline CSS classes. That makes reading the code extremely hard and bloats up component code drastically.

As a replacement to Tailwind, I implemented a custom styling system using SCSS as a developer dependency.

In the new system, all the general and shared styles are in the styles folder and all the component styles are in the same folder as the component for easy access.The _index.scss file now acts as a central import for every other stylesheet that needs to be loaded.

What Changed?
The entire application looks and feels like the current implementation with minimal changes.
The green (#bdff01) highlight used in the application has now been changed to a bright yellow (rgb(255, 190, 0)) because I felt it better suited the new Dark Mode (see below).
The swipe bar for comparing before and after images has now been removed and instead the comparison is a smooth fade effect. I felt this was better to analyze image changes rather than a swiper. // Can add the swipe back if needed.

Dark Mode
A brand new Dark Mode has been added for the application. Users can enable and disable by tapping the button in the header or by using the Shift + D hotkey.

Other Misc New Features
When the editor image is now zoomed out to its default size, the image now also gets centered back.

TODO
The currently used react-zoom-pinch-pan module is not mobile friendly. It does not allow brush strokes. Need to figure out a way to fix this.
Further optimization of the frontend code with better code splitting and performance.
When using the LaMa model, the first stroke has a delayed response from the backend but the ones that follow are almost immediate. I believe this is happening because of the initialization of the model on the first stroke. I wonder if either of us can look at it and see if this can somehow be preloaded so the user experience is smooth from the first stroke.
Enable threading for the desktop application mode so flaskwebgui does not block the main applications Python console.
2022-03-28 17:52:05 +13:00
blessedcoolant
a40d92f23f Merge branch 'Sanster:main' into recoil-refactor 2022-03-28 04:41:24 +13:00
Qing
1a8d407782 Merge pull request #24 from Sanster/PR22
PR22
2022-03-27 13:58:35 +08:00
Sanster
6913ad169b yarn build 2022-03-27 13:56:23 +08:00
Sanster
d945a156ca update README 2022-03-27 13:55:27 +08:00
Sanster
a6f29be662 disable cache for fetch inputimage 2022-03-27 13:50:41 +08:00
Sanster
705e12d02d check --input before start server 2022-03-27 13:37:26 +08:00
Sanster
0cc17ea322 remove redundant parentheses 2022-03-27 13:21:04 +08:00
Sanster
ad0c68164d Revert "Launch and monitor both Python and JS during development"
This reverts commit 481e956c3a.

We can start python server with --debug
2022-03-27 13:17:13 +08:00
Sanster
81efda9df1 add imghdr to requirements.txt 2022-03-27 13:14:27 +08:00
blessedcoolant
b5c07b0dad Merge pull request #3 from blessedcoolant/main
Merge with main
2022-03-26 04:10:35 +13:00
blessedcoolant
1ca0359eab Fixed wrong push 2022-03-25 14:06:03 +13:00
blessedcoolant
2e5590f74c Fixed missing dependency for useInputImage 2022-03-25 14:05:13 +13:00
blessedcoolant
7c7daf8ade Bug fixes
Fixed a few bugs from previous patch.

- Removed default value for --input tag. It was causing the front end to trigger a request and throw an error when there was no input given.
- Added a check to see if input is provided or not
- Converted the new hook to Typescript and added necessary types.
- Rebuilt to update to current changes.
2022-03-25 13:49:56 +13:00
blessedcoolant
a2d7851a40 Merge pull request #2 from blessedcoolant/user_input_image
User Input Image / Dev QoL Update
2022-03-25 07:47:55 +13:00
blessedcoolant
d0f025f2d4 Add User Input Image Support
Users can now supply the --input argument to load their image by default to the application.
2022-03-25 07:33:13 +13:00
blessedcoolant
481e956c3a Launch and monitor both Python and JS during development
No longer need to restart python each time any change is made. nodemon will handle that now. Using concurrently because I found it to be better performant than run-p.
2022-03-25 07:31:59 +13:00
blessedcoolant
085b517606 Cleanup
Removed some unused imports
2022-03-25 06:06:07 +13:00
blessedcoolant
785848b5ec Fix crop trigger size not having a default value 2022-03-25 05:56:00 +13:00
Sanster
c3157b4e15 use cross-env for windows build 2022-03-24 21:48:45 +08:00
Sanster
1c997991e4 change --gui_size to --gui-size; use nargs for crop-trigger-size 2022-03-24 21:45:09 +08:00
Sanster
c5223008d5 update README 2022-03-24 21:36:47 +08:00
Sanster
cdfc0c0aba update .gitignore 2022-03-24 21:10:45 +08:00
Qing
8195646f52 Merge pull request #20 from blessedcoolant/main
Added desktop application mode
2022-03-24 21:10:00 +08:00
blessedcoolant
68616d0ebe Merge branch 'main' into main 2022-03-24 16:31:29 +13:00
Sanster
d3f1ea2474 change crop-size to crop-margin, to add more context for crop infer 2022-03-24 09:08:49 +08:00
blessedcoolant
57bf1533ab Update README.md 2022-03-24 05:12:16 +13:00
blessedcoolant
44e131f9ac Added desktop application mode
Run lama-cleaner as a desktop application.
2022-03-24 05:07:33 +13:00
Qing
1207b6e291 Merge pull request #19 from Sanster/add_crop_infer
add crop infor for lama
2022-03-23 10:15:57 +08:00
Sanster
43c9c22c73 add crop infor for lama 2022-03-23 10:15:23 +08:00
Sanster
a46424478a move time to main 2022-03-20 22:42:59 +08:00
Sanster
bb6580cc0c add benchmark.py 2022-03-20 22:40:36 +08:00
Qing
f813c59b66 Merge pull request #17 from Sanster/mr16
#16
2022-03-17 13:03:59 +08:00
blessedcoolant
3fac27712a New build with brush size hotkeys 2022-03-17 13:00:36 +08:00
blessedcoolant
ffd39a7300 Deleting the old build folder 2022-03-17 05:58:28 +13:00
blessedcoolant
3d90a934a0 Add Brush Change Hotkeys to Shortcuts Modal 2022-03-17 05:56:15 +13:00
blessedcoolant
a87dd87b8d Add Standard Brush Size Hotkey Functionality
You can now use the bracket keys "[" and "]" to Increase and Decrease Brush Size similar to many other photo editing programs.
2022-03-17 05:54:58 +13:00
Sanster
61fcffda94 add torch.cuda.empty_cache() after model forward 2022-03-12 20:43:47 +08:00
Sanster
4e5903129c update README 2022-03-06 20:43:12 +08:00
Sanster
f9b96cf218 add ldm model 2022-03-06 20:29:45 +08:00
Sanster
f09d40cbef turnoff torchscript fuser feature
https://github.com/Sanster/lama-cleaner/issues/1
2022-02-18 13:30:20 +08:00
Qing
799ab7607b Update README.md 2022-02-17 09:29:04 +08:00
Sanster
49bd142b54 update readme 2022-02-10 10:08:45 +08:00
Sanster
5f8b23cd4f 0.4.0 build 2022-02-09 18:12:22 +08:00
Sanster
63feac4754 update readme 2022-02-09 18:09:25 +08:00
Sanster
5450fd2234 download small size image 2022-02-09 18:01:19 +08:00
Sanster
c5f4accbff fix brush size after zoom 2022-02-08 22:36:32 +08:00
Sanster
4e213e64e1 add undo shortcuts 2022-02-08 21:57:11 +08:00
Sanster
568a83b732 only show valid size in SizeSelector 2022-02-08 21:55:09 +08:00
Sanster
38010a9556 Modal add Esc shortcut 2022-02-08 21:41:47 +08:00
Sanster
3db21e7e95 add keyboard shortcuts 2022-02-07 22:25:24 +08:00
Sanster
56238c5068 SizeSelector only show smaller size 2022-02-07 21:08:38 +08:00
Sanster
8ae3d8a42c change SizeSelector size 2022-02-06 22:06:07 +08:00
Sanster
c81fc0ecfc hold space to pan 2022-02-06 22:02:44 +08:00
Sanster
e26fddd936 wip add help button 2022-02-06 21:53:30 +08:00
Sanster
0814b07ef9 add reset button 2022-02-06 21:40:49 +08:00
Sanster
b4dc7a0253 disable ListBox space shotcut 2022-02-06 21:32:54 +08:00
Sanster
df53f81032 change style 2022-02-06 20:56:40 +08:00
Sanster
028a63ea34 use space to toggle pan mode 2022-02-06 19:52:45 +08:00
Sanster
e68f409003 add Tab hotKey for view origin image 2022-02-06 19:27:49 +08:00
Sanster
33c893746e Make Esc work for stop drawing 2022-02-06 13:50:26 +08:00
Sanster
31a00813e0 make Esc reset zoom work 2022-02-06 11:00:53 +08:00
Sanster
79ccd94ced make zoom work 2022-02-06 10:37:22 +08:00
Sanster
8013fc554f by default show undo and check original button 2022-02-05 21:50:01 +08:00
Sanster
8eeb350f49 use ListBox for size select 2022-02-05 21:41:32 +08:00
Sanster
920bf27ccb fix bottom area select problem 2022-02-05 20:14:18 +08:00
Sanster
da0387b3b2 update readme 2022-02-05 19:58:25 +08:00
Qing
a24df020d3 Merge pull request #7 from callmepantoine/main
bug fix : set eval mode during inference + don't store gradients
2021-12-16 22:02:08 +08:00
callmepantoine
ffd527c2fd bug: set eval mode during inference 2021-12-16 14:29:32 +01:00
Qing
d0351a8603 Merge pull request #6 from Sanster/multi_stroke
Multi stroke support
2021-12-12 15:10:43 +08:00
Sanster
c09ac0c17a build app 2021-12-12 14:57:10 +08:00
Sanster
e8f64014a5 update readme 2021-12-12 14:54:37 +08:00
Sanster
06522a5f91 add multi stroke 2021-12-12 14:42:43 +08:00
Sanster
05e4c0993d add LAMA_MODEL env for loading other lama model 2021-12-05 21:32:18 +08:00
Sanster
a2036c71a2 add example gif 2021-12-03 22:35:47 +08:00
Qing
1b2f2e2d65 remove map;build app 2021-11-30 13:24:53 +08:00
Qing
1e2c8fd348 resize image using backend;add resize radio button
frontend resize image will reduce image quality
2021-11-30 13:24:52 +08:00
Qing
1c2e7fa559 remove resize on frontend 2021-11-30 13:24:50 +08:00
Qing
10fb00311f fix cache_dir in main.py 2021-11-30 13:24:45 +08:00
Qing
112a339baf Merge pull request #2 from loretoparisi/main
Added Dockerfile
2021-11-16 09:54:01 +08:00
loretoparisi
796eff96c8 Docker commands 2021-11-15 23:54:55 +01:00
loretoparisi
9c9f67882c Docker commands 2021-11-15 23:51:27 +01:00
loretoparisi
7c877af846 Docker run options 2021-11-15 23:41:59 +01:00
loretoparisi
7114f988b4 Set TORCH_HOME 2021-11-15 23:37:26 +01:00
loretoparisi
c8e3604f71 Updated docker run gpu 2021-11-15 23:24:07 +01:00
Loreto Parisi
e839a36503 Added Dockerfile 2021-11-15 20:11:46 +01:00
wq.chu
4e027f81e6 init 2021-11-15 22:21:01 +08:00
9 changed files with 331 additions and 26 deletions

3
.github/FUNDING.yml vendored Normal file
View File

@@ -0,0 +1,3 @@
# These are supported funding model platforms
ko_fi: Z8Z1CZJGY

4
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View File

@@ -0,0 +1,4 @@
contact_links:
- name: Blank issue
url: https://github.com/Sanster/lama-cleaner/issues/new
about: Other

View File

@@ -0,0 +1,23 @@
---
name: "\U0001F41B Bug Report"
about: Create a report to help us improve
title: "[BUG]"
labels: bug
assignees: ''
---
**Model**
Which model are you using?
**Describe the bug**
A clear and concise description of what the bug is.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**System Info**
Software version used
- iopaint:
- pytorch:
- CUDA:

View File

@@ -0,0 +1,17 @@
---
name: "\U0001F680 Feature request"
about: Suggest an idea for this project
title: "[Feature Request]"
labels: ''
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Additional context**
Add any other context or screenshots about the feature request here.

View File

@@ -2,32 +2,32 @@
set -e
GIT_TAG=$1
IMAGE_DESC="Image inpainting tool powered by SOTA AI Model"
GIT_REPO="https://github.com/Sanster/lama-cleaner"
IMAGE_DESC="IOPaint - Free and open-source inpainting & outpainting tool powered by SOTA AI models"
GIT_REPO="https://github.com/let5sne/IOPaint"
echo "Building cpu docker image..."
echo "Building CPU docker image..."
docker buildx build \
--platform linux/amd64 \
--file ./docker/CPUDockerfile \
--label org.opencontainers.image.title=lama-cleaner \
--label org.opencontainers.image.title=IOPaint \
--label org.opencontainers.image.description="$IMAGE_DESC" \
--label org.opencontainers.image.url=$GIT_REPO \
--label org.opencontainers.image.source=$GIT_REPO \
--label org.opencontainers.image.version=$GIT_TAG \
--build-arg version=$GIT_TAG \
--tag cwq1913/lama-cleaner:cpu-$GIT_TAG .
--tag let5sne/iopaint:cpu-$GIT_TAG .
# echo "Building NVIDIA GPU docker image..."
echo "Building NVIDIA GPU docker image..."
docker buildx build \
--platform linux/amd64 \
--file ./docker/GPUDockerfile \
--label org.opencontainers.image.title=lama-cleaner \
--label org.opencontainers.image.title=IOPaint \
--label org.opencontainers.image.description="$IMAGE_DESC" \
--label org.opencontainers.image.url=$GIT_REPO \
--label org.opencontainers.image.source=$GIT_REPO \
--label org.opencontainers.image.version=$GIT_TAG \
--build-arg version=$GIT_TAG \
--tag cwq1913/lama-cleaner:gpu-$GIT_TAG .
--tag let5sne/iopaint:gpu-$GIT_TAG .

View File

@@ -1,19 +1,29 @@
FROM python:3.10.11-slim-buster
FROM python:3.11-slim-bookworm
RUN apt-get update && apt-get install -y --no-install-recommends \
software-properties-common \
libsm6 libxext6 ffmpeg libfontconfig1 libxrender1 libgl1-mesa-glx \
curl gcc build-essential
curl gcc build-essential git \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --upgrade pip && \
pip install torch==1.13.1 torchvision==0.14.1 --extra-index-url https://download.pytorch.org/whl/cpu
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
ARG version
WORKDIR /app
RUN pip install lama-cleaner==$version
RUN lama-cleaner --install-plugins-package
ENV LD_PRELOAD=/usr/local/lib/python3.10/site-packages/skimage/_shared/../../scikit_image.libs/libgomp-d22c30c5.so.1.0.0
# 复制项目文件
COPY requirements.txt requirements-dev.txt setup.py main.py ./
COPY iopaint ./iopaint
COPY web_app ./web_app
# 安装依赖
RUN pip install -r requirements.txt && \
pip install -e .
# 安装插件依赖
RUN iopaint install-plugins-packages || true
EXPOSE 8080
CMD ["bash"]
# 默认启动命令
CMD ["python3", "main.py", "start", "--model", "lama", "--device", "cpu", "--port", "8080", "--host", "0.0.0.0"]

View File

@@ -1,19 +1,33 @@
FROM nvidia/cuda:11.7.1-runtime-ubuntu20.04
FROM nvidia/cuda:12.1.0-runtime-ubuntu22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
software-properties-common \
libsm6 libxext6 ffmpeg libfontconfig1 libxrender1 libgl1-mesa-glx \
curl python3-pip
curl python3-pip python3-dev git gcc build-essential \
&& rm -rf /var/lib/apt/lists/*
RUN pip3 install --upgrade pip
RUN pip3 install torch==2.1.0 torchvision==0.16.0 --index-url https://download.pytorch.org/whl/cu118
RUN pip3 install xformers==0.0.22.post4 --index-url https://download.pytorch.org/whl/cu118
ARG version
# 安装最新的 PyTorchCUDA 12.1
RUN pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu121
RUN pip3 install lama-cleaner==$version
RUN lama-cleaner --install-plugins-package
WORKDIR /app
# 复制项目文件
COPY requirements.txt requirements-dev.txt setup.py main.py ./
COPY iopaint ./iopaint
COPY web_app ./web_app
# 安装依赖
RUN pip3 install -r requirements.txt && \
pip3 install -e .
# 安装插件依赖
RUN iopaint install-plugins-packages || true
EXPOSE 8080
CMD ["bash"]
# 默认启动命令GPU 模式)
CMD ["python3", "main.py", "start", "--model", "lama", "--device", "cuda", "--port", "8080", "--host", "0.0.0.0"]

234
docker/README.md Normal file
View File

@@ -0,0 +1,234 @@
# IOPaint Docker 部署指南
本目录包含 IOPaint 的 Docker 配置文件,支持 CPU 和 GPU 两种模式。
## 📦 可用镜像
### CPU 版本
适用于没有 NVIDIA GPU 的环境。
### GPU 版本
适用于有 NVIDIA GPU 的环境,性能更好。
## 🚀 快速开始
### 使用预构建的镜像(推荐)
**CPU 模式:**
```bash
docker pull let5sne/iopaint:cpu-latest
docker run -d -p 8080:8080 let5sne/iopaint:cpu-latest
```
**GPU 模式:**
```bash
docker pull let5sne/iopaint:gpu-latest
docker run --gpus all -d -p 8080:8080 let5sne/iopaint:gpu-latest
```
访问 `http://localhost:8080` 使用 IOPaint。
### 从源码构建
**构建所有镜像:**
```bash
# 在项目根目录执行
bash build_docker.sh 1.0.0 # 替换为版本号
```
**构建单个镜像:**
CPU 版本:
```bash
docker build -f docker/CPUDockerfile -t let5sne/iopaint:cpu-latest .
```
GPU 版本:
```bash
docker build -f docker/GPUDockerfile -t let5sne/iopaint:gpu-latest .
```
## 🔧 运行配置
### 基础运行
```bash
# CPU 模式
docker run -d -p 8080:8080 let5sne/iopaint:cpu-latest
# GPU 模式(需要 nvidia-docker
docker run --gpus all -d -p 8080:8080 let5sne/iopaint:gpu-latest
```
### 挂载数据目录
```bash
docker run -d \
-p 8080:8080 \
-v /path/to/input:/app/input \
-v /path/to/output:/app/output \
-v /path/to/models:/root/.cache \
let5sne/iopaint:gpu-latest
```
### 自定义启动参数
```bash
docker run -d -p 8080:8080 let5sne/iopaint:gpu-latest \
python3 main.py start \
--model runwayml/stable-diffusion-inpainting \
--device cuda \
--port 8080 \
--host 0.0.0.0
```
### 使用不同模型
```bash
# 使用 SD Inpainting 模型
docker run -d -p 8080:8080 let5sne/iopaint:gpu-latest \
python3 main.py start --model runwayml/stable-diffusion-inpainting --device cuda --port 8080 --host 0.0.0.0
# 使用 SDXL 模型(低内存模式)
docker run -d -p 8080:8080 let5sne/iopaint:gpu-latest \
python3 main.py start --model diffusers/stable-diffusion-xl-1.0-inpainting-0.1 --device cuda --low-mem --port 8080 --host 0.0.0.0
```
## 📊 Docker Compose
创建 `docker-compose.yml`
```yaml
version: '3.8'
services:
iopaint-gpu:
image: let5sne/iopaint:gpu-latest
ports:
- "8080:8080"
volumes:
- ./input:/app/input
- ./output:/app/output
- ./models:/root/.cache
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
restart: unless-stopped
iopaint-cpu:
image: let5sne/iopaint:cpu-latest
ports:
- "8081:8080"
volumes:
- ./input:/app/input
- ./output:/app/output
- ./models:/root/.cache
restart: unless-stopped
```
启动:
```bash
# 启动 GPU 服务
docker-compose up -d iopaint-gpu
# 启动 CPU 服务
docker-compose up -d iopaint-cpu
```
## 🛠️ 环境变量
| 变量名 | 说明 | 默认值 |
|--------|------|--------|
| `HF_HOME` | HuggingFace 模型缓存目录 | `/root/.cache` |
| `PYTORCH_CUDA_ALLOC_CONF` | CUDA 内存分配配置 | - |
设置环境变量:
```bash
docker run -d \
-p 8080:8080 \
-e HF_HOME=/models \
-v /path/to/models:/models \
let5sne/iopaint:gpu-latest
```
## 📋 系统要求
### CPU 版本
- RAM: 至少 4GB
- 磁盘: 至少 10GB 可用空间
### GPU 版本
- NVIDIA GPU支持 CUDA
- VRAM:
- LaMa 模型: 至少 2GB
- SD Inpainting: 至少 8GB
- SDXL: 至少 12GB
- 磁盘: 至少 20GB 可用空间
- nvidia-docker 或 Docker 19.03+(支持 --gpus
## 🔍 故障排查
### GPU 无法使用
检查 nvidia-docker 是否正确安装:
```bash
docker run --rm --gpus all nvidia/cuda:12.1.0-base-ubuntu22.04 nvidia-smi
```
### 端口冲突
修改端口映射:
```bash
docker run -d -p 8888:8080 let5sne/iopaint:gpu-latest
```
### 模型下载慢
使用 HuggingFace 镜像:
```bash
docker run -d \
-p 8080:8080 \
-e HF_ENDPOINT=https://hf-mirror.com \
let5sne/iopaint:gpu-latest
```
### 内存不足
对于 SDXL 等大模型,使用低内存模式:
```bash
docker run -d -p 8080:8080 let5sne/iopaint:gpu-latest \
python3 main.py start --model diffusers/stable-diffusion-xl-1.0-inpainting-0.1 --device cuda --low-mem --cpu-offload --port 8080 --host 0.0.0.0
```
## 📖 更多信息
- 项目主页https://github.com/let5sne/IOPaint
- 文档:查看项目根目录的 README.md
- 问题反馈https://github.com/let5sne/IOPaint/issues
## 🔐 安全建议
1. **不要暴露到公网**:默认配置仅用于本地使用
2. **使用代理**:如需公网访问,建议使用 Nginx 反向代理并配置 HTTPS
3. **限制资源**:使用 Docker 资源限制避免过度占用系统资源
```bash
docker run -d \
-p 8080:8080 \
--memory="4g" \
--cpus="2.0" \
let5sne/iopaint:cpu-latest
```
## 📝 更新日志
### Version 1.0.0 (2025-11-28)
- 更新为 IOPaint 项目
- 使用最新依赖版本
- 支持 CUDA 12.1
- 从源码构建而非 PyPI 安装
- 添加详细的使用文档

View File

@@ -3,10 +3,10 @@
set -e
# Ensuer not use user's python package
# Ensure not use user's python package
export PYTHONNOUSERSITE=1
BUILD_DIST=lama-cleaner
BUILD_DIST=iopaint
BUILD_ENV=installer
USER_SCRIPTS=user_scripts