Fooocus icon indicating copy to clipboard operation
Fooocus copied to clipboard

A Bug of input_image['mask']

Open diaolulu1 opened this issue 1 year ago • 4 comments

Describe the problem When I select an image and draw a mask in Inpaint or Outpaint, check Mixing Image Prompt and Inpaint in the developer options, and select an image from Image Prompt, I return to the Inpaint or Outpaint interface, and clicking the Generate button will cause an error. I must click on the mask to restore it to work. Every time I switch to Image Prompt and switch back, I need to click on the mask to get it back to work.

Full Console Log File "I:\Fooocus\Fooocus\modules\async_worker.py", line 649, in worker handler(task) File "I:\Fooocus\python_embeded\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context return func(*args, **kwargs) File "I:\Fooocus\python_embeded\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context return func(*args, **kwargs) File "I:\Fooocus\Fooocus\modules\async_worker.py", line 222, in handler inpaint_mask = inpaint_input_image['mask'][:, :, 0] TypeError: 'NoneType' object is not subscriptable

diaolulu1 avatar Nov 05 '23 17:11 diaolulu1

I have noticed that even if I do not select the option "Mixing Image Prompt and Inpaint", the mask still cannot be stored as soon as I switch tabs. Please fix this.

diaolulu1 avatar Nov 05 '23 18:11 diaolulu1

try 2.1.778

lllyasviel avatar Nov 06 '23 02:11 lllyasviel

Describe the problem When I select an image and draw a mask in Inpaint or Outpaint, check Mixing Image Prompt and Inpaint in the developer options, and select an image from Image Prompt, I return to the Inpaint or Outpaint interface, and clicking the Generate button will cause an error. I must click on the mask to restore it to work. Every time I switch to Image Prompt and switch back, I need to click on the mask to get it back to work.

Full Console Log File "I:\Fooocus\Fooocus\modules\async_worker.py", line 649, in worker handler(task) File "I:\Fooocus\python_embeded\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context return func(*args, **kwargs) File "I:\Fooocus\python_embeded\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context return func(*args, **kwargs) File "I:\Fooocus\Fooocus\modules\async_worker.py", line 222, in handler inpaint_mask = inpaint_input_image['mask'][:, :, 0] TypeError: 'NoneType' object is not subscriptable

Hello Friend. I have the same problem. Perhaps you found a solution?

Ramsello avatar Dec 19 '23 09:12 Ramsello

@diaolulu1 @Ramsello are you using the latest version of Fooocus? Please test again and let us know the result.

mashb1t avatar Dec 31 '23 01:12 mashb1t

Closing as stale, feel free to reopen when providing new information. Thanks!

mashb1t avatar Jan 05 '24 14:01 mashb1t