Commit Graph

916 Commits

Author SHA1 Message Date
Manuel Schmid dd2fd04fd7
feat: set U2NET_HOME env var to path_inpaint
previously was using the user dir, see 49d1686f65/rembg/sessions/base.py (L78)
2024-01-26 11:17:58 +01:00
Manuel Schmid 62fe86f1e8
chore: always use cpu as default device
this is overridden anyways
2024-01-26 02:34:25 +01:00
Manuel Schmid 486c5b4fa5
Merge branch 'feature/add-inpaint-mask-generation-2' into feature/add-inpaint-mask-generation 2024-01-26 02:10:34 +01:00
Manuel Schmid 338004c2e5
feat: optimize gradio element visibility changes and data provisioning 2024-01-26 02:08:27 +01:00
Manuel Schmid d515d0f074
fix: remove unnecessary fp32 / fp16 handling 2024-01-26 02:06:17 +01:00
Manuel Schmid 90be73a6df
feat: add model patching
automatically unload model when not needed anymore
2024-01-26 02:05:38 +01:00
rayronvictor 860ac91b16 Merge remote-tracking branch 'upstream/feature/add-inpaint-mask-generation' into feature/add-inpaint-mask-generation
# Conflicts:
#	webui.py
2024-01-25 16:49:19 -03:00
rayronvictor 228a0aaeea Add SAM support 2024-01-25 16:45:02 -03:00
Manuel Schmid d2b697f33b
refactor: rename cloth_category to inpaint_mask_cloth_category 2024-01-25 10:47:34 +01:00
Manuel Schmid d1c55db2bc
Merge pull request #5 from rayronvictor/feature/add-inpaint-mask-generation
Add options to u2net_cloth_seg, add u2net_human_seg again
2024-01-25 10:34:42 +01:00
rayronvictor f0fb9783e1 Add options to u2net_cloth_seg 2024-01-24 21:26:23 -03:00
Manuel Schmid dea4b6c15c
fix: add correct flag validation for default_inpaint_mask_model config 2024-01-24 19:41:25 +01:00
Manuel Schmid d7d34647d0
fix: remove segmentation models from rembg model selection 2024-01-24 19:38:12 +01:00
Manuel Schmid db5512fb93
feat: add inpaint mask generation functionality
uses rembg, see https://github.com/danielgatis/rembg
2024-01-24 02:22:50 +01:00
rsl8 f6d67d7655
Make the private log url path relative (#1948) 2024-01-20 22:04:44 -08:00
Chris Rohrer dc5b5238c8
fix: prevent cutting off overlay (#1829)
Co-authored-by: Christoph Rohrer <christoph.rohrer@odt.net>
2024-01-09 17:50:47 -08:00
lllyasviel 6261f17561
Update Version (#1821) 2024-01-08 17:01:52 -08:00
lllyasviel fee997d929
git is now case sensitive (#1820) 2024-01-08 16:55:36 -08:00
cocktailpeanut c48d6e7404
fix --disable-in-browser (#1718) 2024-01-08 10:46:12 -08:00
lllyasviel 888cc08405
fix #1807 (#1814) 2024-01-08 10:41:02 -08:00
Chris Rohrer f298ebca76
feat: adds preview overlay for styles (#1762)
* feat: adds preview overlay for styles

* fix: implement correct path resolution for all OS

solves issues for Windows

* fix: makes preview overlay also work with other languages

* feat: scale down images to 258x200, fix aspect ratio in css

reduces file size from 19,6MB to 3,4MB

* fix: adjust z-index to correctly overlay gradio border pulse when generating images

* update files

* version

---------

Co-authored-by: Manuel Schmid <9307310+mashb1t@users.noreply.github.com>
Co-authored-by: Manuel Schmid <manuel.schmid@odt.net>
Co-authored-by: lllyasviel <lyuminzhang@outlook.com>
2024-01-07 15:10:42 -08:00
Manuel Schmid 176faf6f34
fixes https://github.com/lllyasviel/Fooocus/issues/1747 (#1750) 2024-01-04 05:46:17 -08:00
lllyasviel 624f74a1ed
(requested) Allow upload inpaint mask in developer mode. 2024-01-02 08:22:54 -08:00
lllyasviel e5af760db8 mask upload 2024-01-02 08:21:50 -08:00
xhoxye b5163e057f
Fooocus mask enhance, mask upload and invert.蒙版增强功能,上传蒙版、反转手涂蒙版 (#1645)
* Update webui.py

Added a mask upload interface.添加蒙版上传界面。

* Add mask upload feature

Add mask upload feature.添加蒙版上传功能。

* Add mask upload feature

Add mask upload feature.添加蒙版上传功能。

* Try to fix the problem when drawing mates with external enrichment.

Swap the judgment criteria and try to fix the problem when drawing mates with external enrichment.
调换判断条件,尝试修复和外部扩充绘制配合时出现的问题

* 修改注释

* 修改注释

* Update readme.md

更新日志

* Add mask upload check box,

Add check box, default does not show mask upload box, check it and then show it.
添加复选框,默认不显示蒙版上传框,勾选后再显示。

* back to normal

还原

* Try adding a mask inversion feature

Try adding a mask inversion feature.
尝试添加蒙版反转功能。
增加一个复选框来决定是否将蒙版反转。

* Try adding a mask inversion feature

Try adding a mask inversion feature.
尝试添加蒙版反转功能。
增加一个复选框来决定是否将蒙版反转。

* Fixed word errors

* Fix the words of the description
2024-01-02 07:17:02 -08:00
lllyasviel 0c4f20a0d2
try fix #1761 again (#1680) 2023-12-31 04:38:31 -08:00
lllyasviel 2521af308b
try fix #1671 (#1678) 2023-12-31 03:38:16 -08:00
lllyasviel 8e62a72a63
(requested) support AMD 8GB GPUs via Windows DirectML
this update is requested by users
2023-12-30 06:30:59 -08:00
Alistair Keiller c0e11c3451
Update readme.md (#1655) 2023-12-30 05:12:32 -08:00
lllyasviel eb0b4d51ef
fix #1608 (#1635) 2023-12-28 08:22:50 -08:00
lllyasviel cce73d28b4
Merge pull request #1634 from lllyasviel/dev
Merge community maintains
2023-12-28 08:11:55 -08:00
lllyasviel 2f6ebbf876 some fix for previous PRs 2023-12-28 08:07:43 -08:00
御坂IO ad158450e3
fix to_clipboard from non-localhost access (#1576)
tested on edge(windows&android)
2023-12-28 07:54:59 -08:00
Manuel Schmid 48b1324a26
add default_max_image_number to config, use as maximum in default_image_number (#1616) 2023-12-28 07:48:30 -08:00
Manuel Schmid 986ab451cf
add workaround for changing prompt while generating (#1578) 2023-12-28 07:46:19 -08:00
lllyasviel 7b5bced6c2
small url fix (#1551) 2023-12-22 00:20:09 -08:00
lllyasviel 1f9a072d66
Announcement 2023-12-21 17:42:45 -08:00
lllyasviel b0df0d57f6
Update readme.md (#1533) 2023-12-20 22:32:44 -08:00
lllyasviel 81107298a8
minor fix (#1532) 2023-12-20 19:58:53 -08:00
lllyasviel f7bb578a14
2.1.854
* Add a button to copy parameters to clipboard in log.
* Allow users to load parameters directly by pasting parameters to prompt.
2023-12-20 19:52:38 -08:00
lllyasviel f308489440
Add Marc K3nt3L's styles
Thanks Marc K3nt3L !
2023-12-18 19:01:52 -08:00
Huy Nguyen 7a6b46f363
New Log System 2023-12-17 20:20:02 -08:00
lllyasviel 0e1aa8d084
better caster (#1480)
related to mps/rocm/cpu casting for fp16 and etc on clip
2023-12-17 17:09:15 -08:00
lllyasviel 69a23c4d60
python 3.11 need this (#1465) 2023-12-17 00:43:00 -08:00
lllyasviel 1669370d2e
Refactor CLIP Vision 2023-12-17 00:13:51 -08:00
lllyasviel 67808d5ee5
fix all precision issues
We fixed number precision issues again. Now 2.1.849 will give 100% exactly same results as 2.1.824.
2023-12-16 19:54:05 -08:00
lllyasviel efb312d495
fix autocast (#1459) 2023-12-16 17:16:24 -08:00
lllyasviel 085bc3aeaa
revise caster 2023-12-16 16:58:46 -08:00
lllyasviel ec5dd950a2
Fix many precision problems
Many users reported that image quality is different from 2.1.824. We reviewed all codes and fixed several precision problems in 2.1.846.
2023-12-16 15:55:53 -08:00
lllyasviel 3a727fd240
2.1.844
* maintain clip vision device
* update links in troubleshoot
2023-12-16 10:34:47 -08:00