mrhan1993 / Fooocus-API

FastAPI powered API for Fooocus
GNU General Public License v3.0
502 stars 131 forks source link

Error sometimes when stopping a job - Worker error: 'numpy.ndarray' object has no attribute 'im' #363

Closed lux4rd0 closed 3 days ago

lux4rd0 commented 1 week ago

When stopping a job that tends to have a lot of iterations, a stop job will come back with an error:

NFO:     10.10.5.1:50112 - "OPTIONS /v1/generation/stop HTTP/1.1" 200 OK
INFO:     10.10.5.1:50117 - "POST /v1/generation/stop HTTP/1.1" 200 OK
 93%|████████████████████████████████████████████████████████████████████████████▌     | 56/60 [03:15<00:13,  3.49s/it]
[2024-06-23 08:54:44] WARNING  [Fooocus] User stopped
[2024-06-23 08:54:44] ERROR    [Fooocus] Worker error: 'numpy.ndarray' object has no attribute 'im'

This means no other jobs will be run—even if there is a queue to be worked on. Restarting the application resolves the issue, resulting in a lost work queue.

mrhan1993 commented 5 days ago

it might be a bug, i will be check it later