You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue exists on a clean installation of Fooocus
The issue exists in the current version of Fooocus
The issue has not been reported before recently
The issue has been reported before but has not been fixed yet
What happened?
When I launch Fooocus, the following error appears, the Gradio web interface displays 'Error' and becomes unresponsive, yet image generation still continues and works well. The image can be found on the filesystem, but Gradio no longer displays anything:
Using karras scheduler.
[Fooocus] Preparing task 1/2 ...
[Sampler] refiner_swap_method = joint
[Sampler] sigma_min = 0.0291671771556139, sigma_max = 14.614643096923828
Requested to load SDXL
Loading 1 new model
[Fooocus Model Management] Moving model(s) has taken 2.66 seconds
0%| | 0/30 [00:00<?, ?it/s]Traceback (most recent call last):
File "/opt/homebrew/Caskroom/miniconda/base/envs/fooocus/lib/python3.10/site-packages/gradio/routes.py", line 488, in run_predict
output = await app.get_blocks().process_api(
File "/opt/homebrew/Caskroom/miniconda/base/envs/fooocus/lib/python3.10/site-packages/gradio/blocks.py", line 1434, in process_api
data = self.postprocess_data(fn_index, result["prediction"], state)
File "/opt/homebrew/Caskroom/miniconda/base/envs/fooocus/lib/python3.10/site-packages/gradio/blocks.py", line 1326, in postprocess_data
prediction_value = postprocess_update_dict(
File "/opt/homebrew/Caskroom/miniconda/base/envs/fooocus/lib/python3.10/site-packages/gradio/blocks.py", line 460, in postprocess_update_dict
prediction_value["value"] = block.postprocess(prediction_value["value"])
File "/Users/jeanjerome/PROJETS/Fooocus/modules/gradio_hijack.py", line 326, in postprocess
return processing_utils.encode_array_to_base64(y)
File "/opt/homebrew/Caskroom/miniconda/base/envs/fooocus/lib/python3.10/site-packages/gradio/processing_utils.py", line 104, in encode_array_to_base64
pil_image = Image.fromarray(_convert(image_array, np.uint8, force_copy=False))
File "/opt/homebrew/Caskroom/miniconda/base/envs/fooocus/lib/python3.10/site-packages/gradio/processing_utils.py", line 260, in _convert
np.bool8: (False, True), # type: ignore
File "/opt/homebrew/Caskroom/miniconda/base/envs/fooocus/lib/python3.10/site-packages/numpy/__init__.py", line 410, in __getattr__
raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'bool8'. Did you mean: 'bool'?
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 30/30 [01:07<00:00, 2.26s/it]
Requested to load AutoencoderKL
Loading 1 new model
[Fooocus Model Management] Moving model(s) has taken 0.65 seconds
[Fooocus] Saving image 1/2 to system ...
Image generated with private log at:...
Steps to reproduce the problem
Install with conda (installation process on logs bellow)
Checklist
What happened?
When I launch Fooocus, the following error appears, the Gradio web interface displays 'Error' and becomes unresponsive, yet image generation still continues and works well. The image can be found on the filesystem, but Gradio no longer displays anything:
Steps to reproduce the problem
What should have happened?
numpy
gradio
should display resulting imagesWhat browsers do you use to access Fooocus?
Google Chrome
Where are you running Fooocus?
Locally
What operating system are you using?
MacOS Sequoia 15.0.1 (24A348)
Console logs
## Installation process and execution https://pastebin.com/W5cpR4Gw
Additional information
A workaround?
I updated
gradio
from version3.41.2
to version3.42.0
in requirementsAnd everything worked (simple tests) ✅
The text was updated successfully, but these errors were encountered: