Open Yp-pro opened 9 months ago
Hi Could you check that Fooocus version is 2.1.865 ?
Sure:
Ok, I will try to understand It looks like version difference between gradio-client api install and requirements. I will add a version checker in the app.
Do you have installed requirements in a venv environment as mentionned in readme ?
Yes, I have
I am working on python 3.11.8 It is possible that the error come from that i will try to check on python 3.10 But i must go to work
I tested it on python 3.10 It works But, you must install FoooXus and Fooocus on the same computer
I reproduced "Error: argument of type 'NoneType' is not iterable" when Fooocus not installed on the computer.
@Yp-pro A new release is available with more informations on terminal to track issues
Can't get it to connect Fooocus version 2.1.865 Fooocus http://127.0.0.1:7865/ FoooXus http://127.0.0.1:7878/ Antivirus and firewall is OFF Fooocus is set to SHARE (set to on hoping this is the case, NOPE) Both installed on same drive
Hello
Can you copy paste the first part of terminal outputs, with all the versions displayed
@Yp-pro A new release is available with more informations on terminal to track issues
Sure. Here is the full terminal (Fooocus is running):
Installing dependencies... Requirement already satisfied: Flask==3.0.2 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from -r requirements.txt (line 1)) (3.0.2) Requirement already satisfied: GPUtil==1.4.0 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from -r requirements.txt (line 2)) (1.4.0) Requirement already satisfied: gradio==3.41.2 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from -r requirements.txt (line 3)) (3.41.2) Requirement already satisfied: gradio_client==0.5.0 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from -r requirements.txt (line 4)) (0.5.0) Requirement already satisfied: Pillow==10.2.0 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from -r requirements.txt (line 5)) (10.2.0) Requirement already satisfied: psutil==5.9.5 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from -r requirements.txt (line 6)) (5.9.5) Requirement already satisfied: py_cpuinfo==9.0.0 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from -r requirements.txt (line 7)) (9.0.0) Requirement already satisfied: Jinja2>=3.1.2 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from Flask==3.0.2->-r requirements.txt (line 1)) (3.1.3) Requirement already satisfied: blinker>=1.6.2 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from Flask==3.0.2->-r requirements.txt (line 1)) (1.7.0) Requirement already satisfied: click>=8.1.3 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from Flask==3.0.2->-r requirements.txt (line 1)) (8.1.7) Requirement already satisfied: itsdangerous>=2.1.2 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from Flask==3.0.2->-r requirements.txt (line 1)) (2.1.2) Requirement already satisfied: Werkzeug>=3.0.0 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from Flask==3.0.2->-r requirements.txt (line 1)) (3.0.1) Requirement already satisfied: matplotlib~=3.0 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from gradio==3.41.2->-r requirements.txt (line 3)) (3.8.3) Requirement already satisfied: ffmpy in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from gradio==3.41.2->-r requirements.txt (line 3)) (0.3.2) Requirement already satisfied: semantic-version~=2.0 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from gradio==3.41.2->-r requirements.txt (line 3)) (2.10.0) Requirement already satisfied: typing-extensions~=4.0 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from gradio==3.41.2->-r requirements.txt (line 3)) (4.9.0) Requirement already satisfied: huggingface-hub>=0.14.0 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from gradio==3.41.2->-r requirements.txt (line 3)) (0.20.3) Requirement already satisfied: pandas<3.0,>=1.0 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from gradio==3.41.2->-r requirements.txt (line 3)) (2.2.0) Requirement already satisfied: pydub in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from gradio==3.41.2->-r requirements.txt (line 3)) (0.25.1) Requirement already satisfied: markupsafe~=2.0 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from gradio==3.41.2->-r requirements.txt (line 3)) (2.1.5) Requirement already satisfied: websockets<12.0,>=10.0 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from gradio==3.41.2->-r requirements.txt (line 3)) (11.0.3) Requirement already satisfied: orjson~=3.0 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from gradio==3.41.2->-r requirements.txt (line 3)) (3.9.14) Requirement already satisfied: aiofiles<24.0,>=22.0 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from gradio==3.41.2->-r requirements.txt (line 3)) (23.2.1) Requirement already satisfied: pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,<3.0.0,>=1.7.4 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from gradio==3.41.2->-r requirements.txt (line 3)) (2.6.1) Requirement already satisfied: packaging in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from gradio==3.41.2->-r requirements.txt (line 3)) (23.2) Requirement already satisfied: fastapi in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from gradio==3.41.2->-r requirements.txt (line 3)) (0.109.2) Requirement already satisfied: httpx in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from gradio==3.41.2->-r requirements.txt (line 3)) (0.26.0) Requirement already satisfied: python-multipart in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from gradio==3.41.2->-r requirements.txt (line 3)) (0.0.9) Requirement already satisfied: requests~=2.0 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from gradio==3.41.2->-r requirements.txt (line 3)) (2.31.0) Requirement already satisfied: altair<6.0,>=4.2.0 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from gradio==3.41.2->-r requirements.txt (line 3)) (5.2.0) Requirement already satisfied: numpy~=1.0 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from gradio==3.41.2->-r requirements.txt (line 3)) (1.26.4) Requirement already satisfied: uvicorn>=0.14.0 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from gradio==3.41.2->-r requirements.txt (line 3)) (0.27.1) Requirement already satisfied: pyyaml<7.0,>=5.0 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from gradio==3.41.2->-r requirements.txt (line 3)) (6.0.1) Requirement already satisfied: importlib-resources<7.0,>=1.3 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from gradio==3.41.2->-r requirements.txt (line 3)) (6.1.1) Requirement already satisfied: fsspec in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from gradio_client==0.5.0->-r requirements.txt (line 4)) (2024.2.0) Requirement already satisfied: toolz in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from altair<6.0,>=4.2.0->gradio==3.41.2->-r requirements.txt (line 3)) (0.12.1) Requirement already satisfied: jsonschema>=3.0 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from altair<6.0,>=4.2.0->gradio==3.41.2->-r requirements.txt (line 3)) (4.21.1) Requirement already satisfied: colorama in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from click>=8.1.3->Flask==3.0.2->-r requirements.txt (line 1)) (0.4.6) Requirement already satisfied: tqdm>=4.42.1 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from huggingface-hub>=0.14.0->gradio==3.41.2->-r requirements.txt (line 3)) (4.66.2) Requirement already satisfied: filelock in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from huggingface-hub>=0.14.0->gradio==3.41.2->-r requirements.txt (line 3)) (3.13.1) Requirement already satisfied: pyparsing>=2.3.1 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from matplotlib~=3.0->gradio==3.41.2->-r requirements.txt (line 3)) (3.1.1) Requirement already satisfied: kiwisolver>=1.3.1 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from matplotlib~=3.0->gradio==3.41.2->-r requirements.txt (line 3)) (1.4.5) Requirement already satisfied: contourpy>=1.0.1 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from matplotlib~=3.0->gradio==3.41.2->-r requirements.txt (line 3)) (1.2.0) Requirement already satisfied: cycler>=0.10 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from matplotlib~=3.0->gradio==3.41.2->-r requirements.txt (line 3)) (0.12.1) Requirement already satisfied: fonttools>=4.22.0 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from matplotlib~=3.0->gradio==3.41.2->-r requirements.txt (line 3)) (4.49.0) Requirement already satisfied: python-dateutil>=2.7 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from matplotlib~=3.0->gradio==3.41.2->-r requirements.txt (line 3)) (2.8.2) Requirement already satisfied: tzdata>=2022.7 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from pandas<3.0,>=1.0->gradio==3.41.2->-r requirements.txt (line 3)) (2024.1) Requirement already satisfied: pytz>=2020.1 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from pandas<3.0,>=1.0->gradio==3.41.2->-r requirements.txt (line 3)) (2024.1) Requirement already satisfied: annotated-types>=0.4.0 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,<3.0.0,>=1.7.4->gradio==3.41.2->-r requirements.txt (line 3)) (0.6.0) Requirement already satisfied: pydantic-core==2.16.2 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,<3.0.0,>=1.7.4->gradio==3.41.2->-r requirements.txt (line 3)) (2.16.2) Requirement already satisfied: urllib3<3,>=1.21.1 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from requests~=2.0->gradio==3.41.2->-r requirements.txt (line 3)) (2.2.0) Requirement already satisfied: idna<4,>=2.5 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from requests~=2.0->gradio==3.41.2->-r requirements.txt (line 3)) (3.6) Requirement already satisfied: certifi>=2017.4.17 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from requests~=2.0->gradio==3.41.2->-r requirements.txt (line 3)) (2024.2.2) Requirement already satisfied: charset-normalizer<4,>=2 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from requests~=2.0->gradio==3.41.2->-r requirements.txt (line 3)) (3.3.2) Requirement already satisfied: h11>=0.8 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from uvicorn>=0.14.0->gradio==3.41.2->-r requirements.txt (line 3)) (0.14.0) Requirement already satisfied: starlette<0.37.0,>=0.36.3 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from fastapi->gradio==3.41.2->-r requirements.txt (line 3)) (0.36.3) Requirement already satisfied: httpcore==1.* in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from httpx->gradio==3.41.2->-r requirements.txt (line 3)) (1.0.3) Requirement already satisfied: sniffio in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from httpx->gradio==3.41.2->-r requirements.txt (line 3)) (1.3.0) Requirement already satisfied: anyio in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from httpx->gradio==3.41.2->-r requirements.txt (line 3)) (4.2.0) Requirement already satisfied: jsonschema-specifications>=2023.03.6 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio==3.41.2->-r requirements.txt (line 3)) (2023.12.1) Requirement already satisfied: referencing>=0.28.4 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio==3.41.2->-r requirements.txt (line 3)) (0.33.0) Requirement already satisfied: attrs>=22.2.0 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio==3.41.2->-r requirements.txt (line 3)) (23.2.0) Requirement already satisfied: rpds-py>=0.7.1 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio==3.41.2->-r requirements.txt (line 3)) (0.18.0) Requirement already satisfied: six>=1.5 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from python-dateutil>=2.7->matplotlib~=3.0->gradio==3.41.2->-r requirements.txt (line 3)) (1.16.0) Requirement already satisfied: exceptiongroup>=1.0.2 in d:\soft\design\ai\stablediffusion\fooocus\foooxus\foooxus-fooocus-extender\venv\lib\site-packages (from anyio->httpx->gradio==3.41.2->-r requirements.txt (line 3)) (1.2.0)
[notice] A new release of pip available: 22.2.1 -> 24.0 [notice] To update, run: python.exe -m pip install --upgrade pip Running FoooXus application... Opening browser... **** STARTING FoooXuS APP V0.6 **** Thanx for using. Please report issues and ideas on https://github.com/toutjavascript/FoooXus-Fooocus-Extender You are running Python V3.10.6 on Windows 10 Build 19045 FoooXus ckecks installed module versions and compares them to requirements.txt Modules Requirement Installed version Flask 3.0.2 ✔ 3.0.2 GPUtil 1.4.0 ✔ 1.4.0 gradio 3.41.2 ✔ 3.41.2 gradio_client 0.5.0 ✔ 0.5.0 Pillow 10.2.0 ✔ 10.2.0 psutil 5.9.5 ✔ 5.9.5 py_cpuinfo 9.0.0 ✔ 9.0.0 All requirements are met. FoooXus should start :)
Creating directory: outputs Creating directory: outputs/tmp Creating directory: outputs/illustrations/models Creating directory: outputs/illustrations/styles Creating directory: outputs/illustrations/loras Now, open FoooXus web UI on http://127.0.0.1:7878
And the same error:
Sorry, I don't understand... Do you have changed something on Fooocus (like generating .jpg, not .png)?
Sorry, I don't understand... Do you have changed something on Fooocus (like generating .jpg, not .png)?
No, nothing except the config and preset
I will add again more datas in terminal to debug
@barepixels Last release is V0.8 What is your Fooocus version ?
What does it mean? "Fooocus changes version..." I use the last version:
How do you run Fooocus ? What is Fooocus-vanilla is the path on screen shot ? I will test your exact configuration to understand what happens
Fooocus version: 2.1.865 FoooXuS version" 0.8
Here is something interesting !!! After reloading FoooXuS I notice errors in Fooocus CMD window at bottom
Traceback (most recent call last):
File "E:\Fooocus-lllyasviel\python_embeded\lib\site-packages\gradio\routes.py", line 488, in run_predict
output = await app.get_blocks().process_api(
File "E:\Fooocus-lllyasviel\python_embeded\lib\site-packages\gradio\blocks.py", line 1429, in process_api
inputs = self.preprocess_data(fn_index, inputs, state)
File "E:\Fooocus-lllyasviel\python_embeded\lib\site-packages\gradio\blocks.py", line 1222, in preprocess_data
self.validate_inputs(fn_index, inputs)
File "E:\Fooocus-lllyasviel\python_embeded\lib\site-packages\gradio\blocks.py", line 1209, in validate_inputs
raise ValueError(
ValueError: An event handler didn't receive enough input values (needed: 1, got: 0).
Check if the event handler calls a Javascript function, and make sure its return value is correct.
Wanted inputs:
[checkbox]
Received inputs:
[]
Thanks for this information Can you click on Fooocus app, on bottom "Use via API" :
And give me what you see on top of screen, and between function 8 to 10 FoooXus pings to function number 9, which has no parameter :
it will be very helpfull
@toutjavascript
That is weird ! On the same Fooocus version, the APIs are not equal. The 9th function is at level 10 on your config.
I will upgrade Foooxus. It will search for the good API numbers (by adding number till it works)
Thanks a lot for your help
PS: Your first capture is not complete. Do you have 41 endpoints ?
I have only 40. Let me try to do a fresh intall in another folder. I will download this from https://github.com/lllyasviel/Fooocus
Maybe you can do the same on your end. This way we are on common ground
On a fresh install, I have 40 endpoints AND AND AND
FoooXus connect YAY
It's working. Generating 276 styles that I have
This software is FUCKING FANTASTIC
thank you so much @toutjavascript
Is there a way to stop the queue gently? I closed CMD windows for FoooXus and Fooocus. Uplon relaunch I got errors. Wouldn't connect. Had to do a fresh install again
How do you run Fooocus ? What is Fooocus-vanilla is the path on screen shot ? I will test your exact configuration to understand what happens
1) I use native run.bat 2) It's just a my name for the folder, because I have another forks
Very strange situation ! When I want to stop, I just close CMD FoooXus window (or refresh FoooXus Web UI). And it doesn't break Fooocus install
Can you test with only close CMD FoooXus
I will add a stop queue button.
PS: it should be very fast with a RTX390 !
When queue is done, just now, close CMD FoooXus then relaunch is OK. Earlier I closed CMD while queue was in process and had error. Having stop queue button would be nice... esecially when you realize you have a chosen a wrong checkpoint or change your mind about the prompt.
With 3090am getting 3.46it/s roughly about 10 seconds between each generation
Hi guys I just push the V0.8.2 Version that adds a clear queue button I hope, this will do not break Fooocus install.
Just want to report that v0.83 also works with Fooocus-2.2.0-rc1.
and clear queue works too
Can't seem to find a working link to download FoooXus exe
@barepixels Thanx for information
FoooXus.exe is very heavy for my web connexion. I don't publish it every time.
Hello! it's not working, please help me. Fooocus ver. 2.3.1
had to do a fresh install (backup old one) to get it to work. Don't know why
The standalone .exe is very heavy I will try to upload the new release next week.
code is still working with 2.3.1 focus? beacuse i have the same error ..
Hello,
Thanks for FoooXus. Cool idea.
When I start, I see red alert: "Connection to Fooocus App not found. Launch Fooocus and refresh this page" Of course, Fooocus is running )))
Here's the terminal:
Running FoooXus application... Opening browser...