Fooocus icon indicating copy to clipboard operation
Fooocus copied to clipboard

Fooocus mask enhance, mask upload and invert.蒙版增强功能,上传蒙版、反转手涂蒙版

Open xhoxye opened this issue 1 year ago • 9 comments

Functional descriptions, like this link https://github.com/lllyasviel/Fooocus/pull/1126 Fooocus mask enhance, mask upload and invert.蒙版增强功能,上传蒙版、反转手涂蒙版 I closed the original request and copied the code to a branch, and my main branch was used to incorporate various enhancements 我关闭了原先的请求,把代码复制一个分支,我的主分支用来合并各种功能增强。 现在请参考这个地址 https://github.com/xhoxye/Fooocus-up_mask/tree/Fooocus_mask_enhance

Closes https://github.com/lllyasviel/Fooocus/issues/1036

xhoxye avatar Dec 29 '23 04:12 xhoxye

@xhoxye, 非常好的增强,SimpleSDXL能合并这个增强分支吗?不太会整这种分支的事儿😭

metercai avatar Dec 29 '23 12:12 metercai

@xhoxye, 非常好的增强,SimpleSDXL能合并这个增强分支吗?不太会整这种分支的事儿😭

可以的,我把这个分支给你拉一个请求?我也不太懂操作?

xhoxye avatar Dec 29 '23 14:12 xhoxye

which files to replace to get this functionality ? I changed 2 files (webui.py and async_worker.py).. Fooocus doesnt seem to start.

image

simartem avatar Dec 30 '23 12:12 simartem

which files to replace to get this functionality ? I changed 2 files (webui.py and async_worker.py).. Fooocus doesnt seem to start.

image

You downloaded the wrong file. My request is without ui_wildcards_enhance.py. You have to make sure that the modified code is consistent with my file code. If you use the official version, you can download and replace it. If it is not the official version, you can modify it according to my code.

https://github.com/xhoxye/Fooocus-up_mask/tree/Fooocus_mask_enhance

xhoxye avatar Dec 30 '23 13:12 xhoxye

can you, please, write a code to modify official version

SerhiiSfr avatar Dec 30 '23 13:12 SerhiiSfr

can you, please, write a code to modify official version

What do you mean? I, um, modified it based on the official version.

xhoxye avatar Dec 30 '23 13:12 xhoxye

Replace only two files with the ones from the new repository !wget https://github.com/xhoxye/Fooocus-up_mask/blob/Fooocus_mask_enhance/webui.py -O {HOME_FOLDER}/Fooocus/webui.py !wget https://github.com/xhoxye/Fooocus-up_mask/blob/Fooocus_mask_enhance/modules/async_worker.py -O {HOME_FOLDER}/Fooocus/modules/async_worker.py I use kaggle and it not work((

SerhiiSfr avatar Dec 30 '23 14:12 SerhiiSfr

Replace only two files with the ones from the new repository仅将两个文件替换为新存储库中的文件 !wget https://github.com/xhoxye/Fooocus-up_mask/blob/Fooocus_mask_enhance/webui.py -O {HOME_FOLDER}/Fooocus/webui.py !wget https://github.com/xhoxye/Fooocus-up_mask/blob/Fooocus_mask_enhance/webui.py-O {HOME_FOLDER}/Foocus/webui.py !wget https://github.com/xhoxye/Fooocus-up_mask/blob/Fooocus_mask_enhance/modules/async_worker.py -O {HOME_FOLDER}/Fooocus/modules/async_worker.py !wget https://github.com/xhoxye/Fooocus-up_mask/blob/Fooocus_mask_enhance/modules/async_worker.py-O {HOME_FOLDER}/Foocus/modules/Fooc_worker.py I use kaggle and it not work(( 我用kaggle和它不工作((

I tested it just now. The merger works normally. There is no problem in using it. QQ截图20231230223949 QQ截图20231230223809 QQ截图20231230223817

xhoxye avatar Dec 30 '23 14:12 xhoxye

I did the same things before but it failed to run Fooocus, so i started the GUI without update. After replacing the 2 files stated here :

https://raw.githubusercontent.com/xhoxye/Fooocus-up_mask/Fooocus_mask_enhance/webui.py https://raw.githubusercontent.com/xhoxye/Fooocus-up_mask/Fooocus_mask_enhance/modules/async_worker.py

I started the GUI without update with following custom run2.bat edit :

image

And it worked.. Thank you very much for this ability in focus. I appreciate the effort of the developers.

simartem avatar Dec 30 '23 17:12 simartem

Mask feature is compleately broken. If I add a object and a mask and try to change the background by inverting the mask it gives me faulty results. The same principle and technique works like a charm in A1111. Any ideas?

sanebg avatar Jan 27 '24 11:01 sanebg

Mask feature is compleately broken. If I add a object and a mask and try to change the background by inverting the mask it gives me faulty results. The same principle and technique works like a charm in A1111. Any ideas?

QQ截图20240127190942 QQ截图20240127191152

xhoxye avatar Jan 27 '24 11:01 xhoxye