lllyasviel / Fooocus

Focus on prompting and generating
GNU General Public License v3.0
41.5k stars 5.9k forks source link

[Bug]: Foocus not starting "ModuleNotFoundError: No module named 'supervision'" #3418

Closed Sierbahnn closed 3 months ago

Sierbahnn commented 3 months ago

Checklist

What happened?

I can no longer start up Fooocus. It ends with "ModuleNotFoundError: No module named 'supervision'" and then goes into Pause, and if I press the key to continue Fooocus ends out.

Steps to reproduce the problem

Run run.bat

What should have happened?

Fooocus should have started as it has previously. This is a new issue.

What browsers do you use to access Fooocus?

Mozilla Firefox

Where are you running Fooocus?

Locally

What operating system are you using?

Windows 10

Console logs

D:\Program Files (x86)\Foocus>.\python_embeded\python.exe -s Fooocus\entry_with_update.py
Already up-to-date
Update succeeded.
[System ARGV] ['Fooocus\\entry_with_update.py']
Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec  6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)]
Fooocus version: 2.5.2
Version mismatch for torchsde: Installed version 0.2.5 does not meet requirement torchsde==0.2.6
Installing requirements
Couldn't install requirements.
Command: "D:\Program Files (x86)\Foocus\python_embeded\python.exe" -m pip install -r "requirements_versions.txt" --prefer-binary
Error code: 1
stdout: Collecting torchsde==0.2.6 (from -r requirements_versions.txt (line 1))
  Obtaining dependency information for torchsde==0.2.6 from https://files.pythonhosted.org/packages/dd/1f/b67ebd7e19ffe259f05d3cf4547326725c3113d640c277030be3e9998d6f/torchsde-0.2.6-py3-none-any.whl.metadata
  Using cached torchsde-0.2.6-py3-none-any.whl.metadata (5.3 kB)
Requirement already satisfied: einops==0.8.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from -r requirements_versions.txt (line 2)) (0.8.0)
Collecting transformers==4.42.4 (from -r requirements_versions.txt (line 3))
  Obtaining dependency information for transformers==4.42.4 from https://files.pythonhosted.org/packages/6a/dc/23c26b7b0bce5aaccf2b767db3e9c4f5ae4331bd47688c1f2ef091b23696/transformers-4.42.4-py3-none-any.whl.metadata
  Using cached transformers-4.42.4-py3-none-any.whl.metadata (43 kB)
Requirement already satisfied: safetensors==0.4.3 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from -r requirements_versions.txt (line 4)) (0.4.3)
Collecting accelerate==0.32.1 (from -r requirements_versions.txt (line 5))
  Obtaining dependency information for accelerate==0.32.1 from https://files.pythonhosted.org/packages/e4/74/564f621699b049b0358f7ad83d7437f8219a5d6efb69bbfcca328b60152f/accelerate-0.32.1-py3-none-any.whl.metadata
  Using cached accelerate-0.32.1-py3-none-any.whl.metadata (18 kB)
Requirement already satisfied: pyyaml==6.0.1 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from -r requirements_versions.txt (line 6)) (6.0.1)
Requirement already satisfied: pillow==10.4.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from -r requirements_versions.txt (line 7)) (10.4.0)
Requirement already satisfied: scipy==1.14.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from -r requirements_versions.txt (line 8)) (1.14.0)
Requirement already satisfied: tqdm==4.66.4 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from -r requirements_versions.txt (line 9)) (4.66.4)
Requirement already satisfied: psutil==6.0.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from -r requirements_versions.txt (line 10)) (6.0.0)
Collecting pytorch_lightning==2.3.3 (from -r requirements_versions.txt (line 11))
  Obtaining dependency information for pytorch_lightning==2.3.3 from https://files.pythonhosted.org/packages/cf/1c/6122684e93864c09cf8010e27ad82b3b2f4864bd6864a40cb9e040752277/pytorch_lightning-2.3.3-py3-none-any.whl.metadata
  Using cached pytorch_lightning-2.3.3-py3-none-any.whl.metadata (21 kB)
Requirement already satisfied: omegaconf==2.3.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from -r requirements_versions.txt (line 12)) (2.3.0)
Requirement already satisfied: gradio==3.41.2 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from -r requirements_versions.txt (line 13)) (3.41.2)
Collecting pygit2==1.15.1 (from -r requirements_versions.txt (line 14))
  Obtaining dependency information for pygit2==1.15.1 from https://files.pythonhosted.org/packages/16/27/0310ab41371bb64e149e50d954aa089b140f269159d4d6ed34c83e4be7f2/pygit2-1.15.1-cp310-cp310-win_amd64.whl.metadata
  Using cached pygit2-1.15.1-cp310-cp310-win_amd64.whl.metadata (3.4 kB)
Requirement already satisfied: opencv-contrib-python-headless==4.10.0.84 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from -r requirements_versions.txt (line 15)) (4.10.0.84)
Collecting httpx==0.27.0 (from -r requirements_versions.txt (line 16))
  Obtaining dependency information for httpx==0.27.0 from https://files.pythonhosted.org/packages/41/7b/ddacf6dcebb42466abd03f368782142baa82e08fc0c1f8eaa05b4bae87d5/httpx-0.27.0-py3-none-any.whl.metadata
  Using cached httpx-0.27.0-py3-none-any.whl.metadata (7.2 kB)
Collecting onnxruntime==1.18.1 (from -r requirements_versions.txt (line 17))
  Obtaining dependency information for onnxruntime==1.18.1 from https://files.pythonhosted.org/packages/74/8e/0db236760a60ba59fac48e253c2c645bfd7d6ade58d4ce796b645d73e2de/onnxruntime-1.18.1-cp310-cp310-win_amd64.whl.metadata
  Using cached onnxruntime-1.18.1-cp310-cp310-win_amd64.whl.metadata (4.5 kB)
Collecting timm==1.0.7 (from -r requirements_versions.txt (line 18))
  Obtaining dependency information for timm==1.0.7 from https://files.pythonhosted.org/packages/fe/85/834c70052b518bb8fca457d8ea4e60a65d9cc41f77fd409eeff3b3041638/timm-1.0.7-py3-none-any.whl.metadata
  Using cached timm-1.0.7-py3-none-any.whl.metadata (47 kB)
Requirement already satisfied: numpy==1.26.4 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from -r requirements_versions.txt (line 19)) (1.26.4)
Collecting tokenizers==0.19.1 (from -r requirements_versions.txt (line 20))
  Obtaining dependency information for tokenizers==0.19.1 from https://files.pythonhosted.org/packages/f4/85/d999b9a05fd101d48f1a365d68be0b109277bb25c89fb37a389d669f9185/tokenizers-0.19.1-cp310-none-win_amd64.whl.metadata
  Using cached tokenizers-0.19.1-cp310-none-win_amd64.whl.metadata (6.9 kB)
Requirement already satisfied: packaging==24.1 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from -r requirements_versions.txt (line 21)) (24.1)
Collecting rembg==2.0.57 (from -r requirements_versions.txt (line 22))
  Obtaining dependency information for rembg==2.0.57 from https://files.pythonhosted.org/packages/0c/29/74b542899b19d33761b5fbb6a625b3dcdfd946966f7615c8d80567d29d81/rembg-2.0.57-py3-none-any.whl.metadata
  Using cached rembg-2.0.57-py3-none-any.whl.metadata (16 kB)
Collecting groundingdino-py==0.4.0 (from -r requirements_versions.txt (line 23))
  Using cached groundingdino_py-0.4.0-py2.py3-none-any.whl
Requirement already satisfied: segment_anything==1.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from -r requirements_versions.txt (line 24)) (1.0)
Requirement already satisfied: torch>=1.6.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from torchsde==0.2.6->-r requirements_versions.txt (line 1)) (2.1.0+cu121)
Requirement already satisfied: trampoline>=0.1.2 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from torchsde==0.2.6->-r requirements_versions.txt (line 1)) (0.1.2)
Requirement already satisfied: filelock in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from transformers==4.42.4->-r requirements_versions.txt (line 3)) (3.12.2)
Collecting huggingface-hub<1.0,>=0.23.2 (from transformers==4.42.4->-r requirements_versions.txt (line 3))
  Obtaining dependency information for huggingface-hub<1.0,>=0.23.2 from https://files.pythonhosted.org/packages/0b/05/31b21998f68c31e7ffcc27ff08531fb9af5506d765ce8d661fb0036e6918/huggingface_hub-0.24.5-py3-none-any.whl.metadata
  Using cached huggingface_hub-0.24.5-py3-none-any.whl.metadata (13 kB)
Requirement already satisfied: regex!=2019.12.17 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from transformers==4.42.4->-r requirements_versions.txt (line 3)) (2023.6.3)
Requirement already satisfied: requests in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from transformers==4.42.4->-r requirements_versions.txt (line 3)) (2.31.0)
Requirement already satisfied: colorama in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from tqdm==4.66.4->-r requirements_versions.txt (line 9)) (0.4.6)
Requirement already satisfied: fsspec[http]>=2022.5.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from pytorch_lightning==2.3.3->-r requirements_versions.txt (line 11)) (2023.6.0)
Requirement already satisfied: torchmetrics>=0.7.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from pytorch_lightning==2.3.3->-r requirements_versions.txt (line 11)) (1.0.3)
Requirement already satisfied: typing-extensions>=4.4.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from pytorch_lightning==2.3.3->-r requirements_versions.txt (line 11)) (4.7.1)
Requirement already satisfied: lightning-utilities>=0.10.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from pytorch_lightning==2.3.3->-r requirements_versions.txt (line 11)) (0.11.6)
Requirement already satisfied: antlr4-python3-runtime==4.9.* in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from omegaconf==2.3.0->-r requirements_versions.txt (line 12)) (4.9.3)
Requirement already satisfied: aiofiles<24.0,>=22.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (23.2.1)
Requirement already satisfied: altair<6.0,>=4.2.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (5.0.1)
Requirement already satisfied: fastapi in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (0.101.0)
Requirement already satisfied: ffmpy in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (0.3.1)
Requirement already satisfied: gradio-client==0.5.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (0.5.0)
Requirement already satisfied: importlib-resources<7.0,>=1.3 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (6.4.0)
Requirement already satisfied: jinja2<4.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (3.1.2)
Requirement already satisfied: markupsafe~=2.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (2.1.3)
Requirement already satisfied: matplotlib~=3.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (3.7.2)
Requirement already satisfied: orjson~=3.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (3.9.4)
Requirement already satisfied: pandas<3.0,>=1.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (2.0.3)
Requirement already satisfied: pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,<3.0.0,>=1.7.4 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (2.1.1)
Requirement already satisfied: pydub in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (0.25.1)
Requirement already satisfied: python-multipart in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (0.0.6)
Requirement already satisfied: semantic-version~=2.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (2.10.0)
Requirement already satisfied: uvicorn>=0.14.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (0.23.2)
Requirement already satisfied: websockets<12.0,>=10.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (11.0.3)
Collecting cffi>=1.16.0 (from pygit2==1.15.1->-r requirements_versions.txt (line 14))
  Obtaining dependency information for cffi>=1.16.0 from https://files.pythonhosted.org/packages/be/3e/0b197d1bfbf386a90786b251dbf2634a15f2ea3d4e4070e99c7d1c7689cf/cffi-1.16.0-cp310-cp310-win_amd64.whl.metadata
  Using cached cffi-1.16.0-cp310-cp310-win_amd64.whl.metadata (1.5 kB)
Requirement already satisfied: anyio in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from httpx==0.27.0->-r requirements_versions.txt (line 16)) (3.7.1)
Requirement already satisfied: certifi in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from httpx==0.27.0->-r requirements_versions.txt (line 16)) (2023.5.7)
Requirement already satisfied: httpcore==1.* in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from httpx==0.27.0->-r requirements_versions.txt (line 16)) (1.0.5)
Requirement already satisfied: idna in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from httpx==0.27.0->-r requirements_versions.txt (line 16)) (3.4)
Requirement already satisfied: sniffio in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from httpx==0.27.0->-r requirements_versions.txt (line 16)) (1.3.0)
Requirement already satisfied: coloredlogs in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from onnxruntime==1.18.1->-r requirements_versions.txt (line 17)) (15.0.1)
Requirement already satisfied: flatbuffers in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from onnxruntime==1.18.1->-r requirements_versions.txt (line 17)) (23.5.26)
Requirement already satisfied: protobuf in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from onnxruntime==1.18.1->-r requirements_versions.txt (line 17)) (5.27.3)
Requirement already satisfied: sympy in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from onnxruntime==1.18.1->-r requirements_versions.txt (line 17)) (1.12)
Requirement already satisfied: torchvision in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from timm==1.0.7->-r requirements_versions.txt (line 18)) (0.16.0+cu121)
Requirement already satisfied: jsonschema in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from rembg==2.0.57->-r requirements_versions.txt (line 22)) (4.19.0)
Requirement already satisfied: opencv-python-headless in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from rembg==2.0.57->-r requirements_versions.txt (line 22)) (4.10.0.84)
Collecting pooch (from rembg==2.0.57->-r requirements_versions.txt (line 22))
  Obtaining dependency information for pooch from https://files.pythonhosted.org/packages/a8/87/77cc11c7a9ea9fd05503def69e3d18605852cd0d4b0d3b8f15bbeb3ef1d1/pooch-1.8.2-py3-none-any.whl.metadata
  Using cached pooch-1.8.2-py3-none-any.whl.metadata (10 kB)
Collecting pymatting (from rembg==2.0.57->-r requirements_versions.txt (line 22))
  Obtaining dependency information for pymatting from https://files.pythonhosted.org/packages/46/aa/d7ff530c33c654263d8775ceb50a73f636fc65edbdf09e102c47a3be391b/PyMatting-1.1.12-py3-none-any.whl.metadata
  Using cached PyMatting-1.1.12-py3-none-any.whl.metadata (7.4 kB)
Collecting scikit-image (from rembg==2.0.57->-r requirements_versions.txt (line 22))
  Obtaining dependency information for scikit-image from https://files.pythonhosted.org/packages/99/89/3fcd68d034db5d29c974e964d03deec9d0fbf9410ff0a0b95efff70947f6/scikit_image-0.24.0-cp310-cp310-win_amd64.whl.metadata
  Using cached scikit_image-0.24.0-cp310-cp310-win_amd64.whl.metadata (14 kB)
Requirement already satisfied: addict in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from groundingdino-py==0.4.0->-r requirements_versions.txt (line 23)) (2.4.0)
Collecting yapf (from groundingdino-py==0.4.0->-r requirements_versions.txt (line 23))
  Obtaining dependency information for yapf from https://files.pythonhosted.org/packages/66/c9/d4b03b2490107f13ebd68fe9496d41ae41a7de6275ead56d0d4621b11ffd/yapf-0.40.2-py3-none-any.whl.metadata
  Using cached yapf-0.40.2-py3-none-any.whl.metadata (45 kB)
Requirement already satisfied: opencv-python in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from groundingdino-py==0.4.0->-r requirements_versions.txt (line 23)) (4.8.1.78)
Collecting supervision==0.6.0 (from groundingdino-py==0.4.0->-r requirements_versions.txt (line 23))
  Obtaining dependency information for supervision==0.6.0 from https://files.pythonhosted.org/packages/42/7a/4fe657cae29eedeca34756a80a053ac3b1b3c80462cdb6768f428625f9ca/supervision-0.6.0-py3-none-any.whl.metadata
  Using cached supervision-0.6.0-py3-none-any.whl.metadata (6.2 kB)
Collecting pycocotools (from groundingdino-py==0.4.0->-r requirements_versions.txt (line 23))
  Obtaining dependency information for pycocotools from https://files.pythonhosted.org/packages/8d/06/b9bdedfdcbf2fb5ba55252f1a5ff5e8e02ae204fe392f7b4f5babbc14a2a/pycocotools-2.0.8-cp310-cp310-win_amd64.whl.metadata
  Using cached pycocotools-2.0.8-cp310-cp310-win_amd64.whl.metadata (1.1 kB)
Requirement already satisfied: h11<0.15,>=0.13 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from httpcore==1.*->httpx==0.27.0->-r requirements_versions.txt (line 16)) (0.14.0)
Requirement already satisfied: toolz in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from altair<6.0,>=4.2.0->gradio==3.41.2->-r requirements_versions.txt (line 13)) (0.12.0)
Requirement already satisfied: pycparser in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from cffi>=1.16.0->pygit2==1.15.1->-r requirements_versions.txt (line 14)) (2.21)
Requirement already satisfied: aiohttp!=4.0.0a0,!=4.0.0a1 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from fsspec[http]>=2022.5.0->pytorch_lightning==2.3.3->-r requirements_versions.txt (line 11)) (3.8.4)
Requirement already satisfied: attrs>=22.2.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from jsonschema->rembg==2.0.57->-r requirements_versions.txt (line 22)) (23.1.0)
Requirement already satisfied: jsonschema-specifications>=2023.03.6 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from jsonschema->rembg==2.0.57->-r requirements_versions.txt (line 22)) (2023.7.1)
Requirement already satisfied: referencing>=0.28.4 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from jsonschema->rembg==2.0.57->-r requirements_versions.txt (line 22)) (0.30.2)
Requirement already satisfied: rpds-py>=0.7.1 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from jsonschema->rembg==2.0.57->-r requirements_versions.txt (line 22)) (0.9.2)
Requirement already satisfied: setuptools in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from lightning-utilities>=0.10.0->pytorch_lightning==2.3.3->-r requirements_versions.txt (line 11)) (68.0.0)
Requirement already satisfied: contourpy>=1.0.1 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from matplotlib~=3.0->gradio==3.41.2->-r requirements_versions.txt (line 13)) (1.1.0)
Requirement already satisfied: cycler>=0.10 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from matplotlib~=3.0->gradio==3.41.2->-r requirements_versions.txt (line 13)) (0.11.0)
Requirement already satisfied: fonttools>=4.22.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from matplotlib~=3.0->gradio==3.41.2->-r requirements_versions.txt (line 13)) (4.42.0)
Requirement already satisfied: kiwisolver>=1.0.1 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from matplotlib~=3.0->gradio==3.41.2->-r requirements_versions.txt (line 13)) (1.4.4)
Requirement already satisfied: pyparsing<3.1,>=2.3.1 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from matplotlib~=3.0->gradio==3.41.2->-r requirements_versions.txt (line 13)) (3.0.9)
Requirement already satisfied: python-dateutil>=2.7 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from matplotlib~=3.0->gradio==3.41.2->-r requirements_versions.txt (line 13)) (2.8.2)
Requirement already satisfied: pytz>=2020.1 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from pandas<3.0,>=1.0->gradio==3.41.2->-r requirements_versions.txt (line 13)) (2023.3)
Requirement already satisfied: tzdata>=2022.1 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from pandas<3.0,>=1.0->gradio==3.41.2->-r requirements_versions.txt (line 13)) (2023.3)
Requirement already satisfied: annotated-types>=0.4.0 in d:\program files (x86)\foocus\python_embeded\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_versions.txt (line 13)) (0.5.0)
Requirement already satisfied: pydantic-core==2.4.0 in d:\program files (x86)\foocus\python_embeded\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_versions.txt (line 13)) (2.4.0)
Requirement already satisfied: charset-normalizer<4,>=2 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from requests->transformers==4.42.4->-r requirements_versions.txt (line 3)) (3.1.0)
Requirement already satisfied: urllib3<3,>=1.21.1 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from requests->transformers==4.42.4->-r requirements_versions.txt (line 3)) (2.0.3)
Requirement already satisfied: networkx in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from torch>=1.6.0->torchsde==0.2.6->-r requirements_versions.txt (line 1)) (3.1)
Requirement already satisfied: click>=7.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from uvicorn>=0.14.0->gradio==3.41.2->-r requirements_versions.txt (line 13)) (8.1.6)
Requirement already satisfied: exceptiongroup in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from anyio->httpx==0.27.0->-r requirements_versions.txt (line 16)) (1.1.2)
Requirement already satisfied: humanfriendly>=9.1 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from coloredlogs->onnxruntime==1.18.1->-r requirements_versions.txt (line 17)) (10.0)
Requirement already satisfied: starlette<0.28.0,>=0.27.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from fastapi->gradio==3.41.2->-r requirements_versions.txt (line 13)) (0.27.0)
Requirement already satisfied: platformdirs>=2.5.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from pooch->rembg==2.0.57->-r requirements_versions.txt (line 22)) (4.2.2)
Requirement already satisfied: numba!=0.49.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from pymatting->rembg==2.0.57->-r requirements_versions.txt (line 22)) (0.58.1)
Requirement already satisfied: imageio>=2.33 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from scikit-image->rembg==2.0.57->-r requirements_versions.txt (line 22)) (2.34.2)
Requirement already satisfied: tifffile>=2022.8.12 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from scikit-image->rembg==2.0.57->-r requirements_versions.txt (line 22)) (2024.7.24)
Requirement already satisfied: lazy-loader>=0.4 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from scikit-image->rembg==2.0.57->-r requirements_versions.txt (line 22)) (0.4)
Requirement already satisfied: mpmath>=0.19 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from sympy->onnxruntime==1.18.1->-r requirements_versions.txt (line 17)) (1.3.0)
Requirement already satisfied: importlib-metadata>=6.6.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from yapf->groundingdino-py==0.4.0->-r requirements_versions.txt (line 23)) (8.2.0)
Requirement already satisfied: tomli>=2.0.1 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from yapf->groundingdino-py==0.4.0->-r requirements_versions.txt (line 23)) (2.0.1)
Requirement already satisfied: multidict<7.0,>=4.5 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2022.5.0->pytorch_lightning==2.3.3->-r requirements_versions.txt (line 11)) (6.0.4)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2022.5.0->pytorch_lightning==2.3.3->-r requirements_versions.txt (line 11)) (4.0.2)
Requirement already satisfied: yarl<2.0,>=1.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2022.5.0->pytorch_lightning==2.3.3->-r requirements_versions.txt (line 11)) (1.9.2)
Requirement already satisfied: frozenlist>=1.1.1 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2022.5.0->pytorch_lightning==2.3.3->-r requirements_versions.txt (line 11)) (1.3.3)
Requirement already satisfied: aiosignal>=1.1.2 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2022.5.0->pytorch_lightning==2.3.3->-r requirements_versions.txt (line 11)) (1.3.1)
Requirement already satisfied: pyreadline3 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from humanfriendly>=9.1->coloredlogs->onnxruntime==1.18.1->-r requirements_versions.txt (line 17)) (3.4.1)
Requirement already satisfied: zipp>=0.5 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from importlib-metadata>=6.6.0->yapf->groundingdino-py==0.4.0->-r requirements_versions.txt (line 23)) (3.19.2)
Requirement already satisfied: llvmlite<0.42,>=0.41.0dev0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from numba!=0.49.0->pymatting->rembg==2.0.57->-r requirements_versions.txt (line 22)) (0.41.1)
Requirement already satisfied: six>=1.5 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from python-dateutil>=2.7->matplotlib~=3.0->gradio==3.41.2->-r requirements_versions.txt (line 13)) (1.16.0)
Using cached torchsde-0.2.6-py3-none-any.whl (61 kB)
Using cached transformers-4.42.4-py3-none-any.whl (9.3 MB)
Using cached accelerate-0.32.1-py3-none-any.whl (314 kB)
Using cached pytorch_lightning-2.3.3-py3-none-any.whl (812 kB)
Using cached pygit2-1.15.1-cp310-cp310-win_amd64.whl (1.3 MB)
Using cached httpx-0.27.0-py3-none-any.whl (75 kB)
Using cached onnxruntime-1.18.1-cp310-cp310-win_amd64.whl (5.6 MB)
Using cached timm-1.0.7-py3-none-any.whl (2.3 MB)
Using cached tokenizers-0.19.1-cp310-none-win_amd64.whl (2.2 MB)
Using cached rembg-2.0.57-py3-none-any.whl (33 kB)
Using cached supervision-0.6.0-py3-none-any.whl (31 kB)
Using cached cffi-1.16.0-cp310-cp310-win_amd64.whl (181 kB)
Using cached huggingface_hub-0.24.5-py3-none-any.whl (417 kB)
Using cached pooch-1.8.2-py3-none-any.whl (64 kB)
Using cached pycocotools-2.0.8-cp310-cp310-win_amd64.whl (84 kB)
Using cached PyMatting-1.1.12-py3-none-any.whl (52 kB)
Using cached scikit_image-0.24.0-cp310-cp310-win_amd64.whl (12.9 MB)
Using cached yapf-0.40.2-py3-none-any.whl (254 kB)
Installing collected packages: cffi, yapf, scikit-image, pymatting, pygit2, pooch, huggingface-hub, httpx, torchsde, tokenizers, supervision, pycocotools, onnxruntime, accelerate, transformers, timm, rembg, pytorch_lightning, groundingdino-py
  Attempting uninstall: cffi
    Found existing installation: cffi 1.15.1
    Uninstalling cffi-1.15.1:

stderr: ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'd:\\program files (x86)\\foocus\\python_embeded\\lib\\site-packages\\_cffi_backend.cp310-win_amd64.pyd'
Consider using the `--user` option or check the permissions.

[notice] A new release of pip is available: 23.2.1 -> 24.2
[notice] To update, run: D:\Program Files (x86)\Foocus\python_embeded\python.exe -m pip install --upgrade pip

CMD Failed requirements: install -r "requirements_versions.txt"
[Cleanup] Attempting to delete content of temp dir C:\Users\sierb\AppData\Local\Temp\fooocus
[Cleanup] Cleanup successful
Total VRAM 12288 MB, total RAM 32680 MB
Set vram state to: NORMAL_VRAM
Always offload VRAM
Device: cuda:0 NVIDIA GeForce RTX 3060 : native
VAE dtype: torch.bfloat16
Traceback (most recent call last):
  File "D:\Program Files (x86)\Foocus\Fooocus\entry_with_update.py", line 46, in <module>
    from launch import *
  File "D:\Program Files (x86)\Foocus\Fooocus\launch.py", line 147, in <module>
    from webui import *
  File "D:\Program Files (x86)\Foocus\Fooocus\webui.py", line 10, in <module>
    import modules.async_worker as worker
  File "D:\Program Files (x86)\Foocus\Fooocus\modules\async_worker.py", line 3, in <module>
    from extras.inpaint_mask import generate_mask_from_image, SAMOptions
  File "D:\Program Files (x86)\Foocus\Fooocus\extras\inpaint_mask.py", line 6, in <module>
    from extras.GroundingDINO.util.inference import default_groundingdino
  File "D:\Program Files (x86)\Foocus\Fooocus\extras\GroundingDINO\util\inference.py", line 9, in <module>
    import supervision as sv
ModuleNotFoundError: No module named 'supervision'

D:\Program Files (x86)\Foocus>pause
Press any key to continue . . .

Additional information

No response

Sierbahnn commented 3 months ago

Upon trying the latest version the log now looks like this

D:\Program Files (x86)\Foocus>.\python_embeded\python.exe -s Fooocus\entry_with_update.py Fast-forward merge Update succeeded. [System ARGV] ['Fooocus\entry_with_update.py'] Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec 6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)] Fooocus version: 2.5.2 Version mismatch for torchsde: Installed version 0.2.5 does not meet requirement torchsde==0.2.6 Installing requirements Couldn't install requirements. Command: "D:\Program Files (x86)\Foocus\python_embeded\python.exe" -m pip install -r "requirements_versions.txt" --prefer-binary Error code: 1 stdout: Collecting torchsde==0.2.6 (from -r requirements_versions.txt (line 1)) Downloading torchsde-0.2.6-py3-none-any.whl.metadata (5.3 kB) Requirement already satisfied: einops==0.8.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from -r requirements_versions.txt (line 2)) (0.8.0) Collecting transformers==4.42.4 (from -r requirements_versions.txt (line 3)) Downloading transformers-4.42.4-py3-none-any.whl.metadata (43 kB) ---------------------------------------- 43.6/43.6 kB ? eta 0:00:00 Requirement already satisfied: safetensors==0.4.3 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from -r requirements_versions.txt (line 4)) (0.4.3) Collecting accelerate==0.32.1 (from -r requirements_versions.txt (line 5)) Downloading accelerate-0.32.1-py3-none-any.whl.metadata (18 kB) Requirement already satisfied: pyyaml==6.0.1 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from -r requirements_versions.txt (line 6)) (6.0.1) Requirement already satisfied: pillow==10.4.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from -r requirements_versions.txt (line 7)) (10.4.0) Requirement already satisfied: scipy==1.14.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from -r requirements_versions.txt (line 8)) (1.14.0) Requirement already satisfied: tqdm==4.66.4 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from -r requirements_versions.txt (line 9)) (4.66.4) Requirement already satisfied: psutil==6.0.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from -r requirements_versions.txt (line 10)) (6.0.0) Collecting pytorch_lightning==2.3.3 (from -r requirements_versions.txt (line 11)) Downloading pytorch_lightning-2.3.3-py3-none-any.whl.metadata (21 kB) Requirement already satisfied: omegaconf==2.3.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from -r requirements_versions.txt (line 12)) (2.3.0) Requirement already satisfied: gradio==3.41.2 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from -r requirements_versions.txt (line 13)) (3.41.2) Collecting pygit2==1.15.1 (from -r requirements_versions.txt (line 14)) Downloading pygit2-1.15.1-cp310-cp310-win_amd64.whl.metadata (3.4 kB) Requirement already satisfied: opencv-contrib-python-headless==4.10.0.84 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from -r requirements_versions.txt (line 15)) (4.10.0.84) Collecting httpx==0.27.0 (from -r requirements_versions.txt (line 16)) Downloading httpx-0.27.0-py3-none-any.whl.metadata (7.2 kB) Collecting onnxruntime==1.18.1 (from -r requirements_versions.txt (line 17)) Downloading onnxruntime-1.18.1-cp310-cp310-win_amd64.whl.metadata (4.5 kB) Collecting timm==1.0.7 (from -r requirements_versions.txt (line 18)) Downloading timm-1.0.7-py3-none-any.whl.metadata (47 kB) ---------------------------------------- 47.5/47.5 kB 2.3 MB/s eta 0:00:00 Requirement already satisfied: numpy==1.26.4 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from -r requirements_versions.txt (line 19)) (1.26.4) Collecting tokenizers==0.19.1 (from -r requirements_versions.txt (line 20)) Downloading tokenizers-0.19.1-cp310-none-win_amd64.whl.metadata (6.9 kB) Requirement already satisfied: packaging==24.1 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from -r requirements_versions.txt (line 21)) (24.1) Requirement already satisfied: rembg==2.0.57 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from -r requirements_versions.txt (line 22)) (2.0.57) Requirement already satisfied: groundingdino-py==0.4.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from -r requirements_versions.txt (line 23)) (0.4.0) Requirement already satisfied: segment_anything==1.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from -r requirements_versions.txt (line 24)) (1.0) Requirement already satisfied: torch>=1.6.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from torchsde==0.2.6->-r requirements_versions.txt (line 1)) (2.1.0+cu121) Requirement already satisfied: trampoline>=0.1.2 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from torchsde==0.2.6->-r requirements_versions.txt (line 1)) (0.1.2) Requirement already satisfied: filelock in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from transformers==4.42.4->-r requirements_versions.txt (line 3)) (3.12.2) Collecting huggingface-hub<1.0,>=0.23.2 (from transformers==4.42.4->-r requirements_versions.txt (line 3)) Downloading huggingface_hub-0.24.5-py3-none-any.whl.metadata (13 kB) Requirement already satisfied: regex!=2019.12.17 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from transformers==4.42.4->-r requirements_versions.txt (line 3)) (2023.6.3) Requirement already satisfied: requests in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from transformers==4.42.4->-r requirements_versions.txt (line 3)) (2.31.0) Requirement already satisfied: colorama in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from tqdm==4.66.4->-r requirements_versions.txt (line 9)) (0.4.6) Requirement already satisfied: fsspec>=2022.5.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from fsspec[http]>=2022.5.0->pytorch_lightning==2.3.3->-r requirements_versions.txt (line 11)) (2023.6.0) Requirement already satisfied: torchmetrics>=0.7.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from pytorch_lightning==2.3.3->-r requirements_versions.txt (line 11)) (1.0.3) Requirement already satisfied: typing-extensions>=4.4.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from pytorch_lightning==2.3.3->-r requirements_versions.txt (line 11)) (4.7.1) Requirement already satisfied: lightning-utilities>=0.10.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from pytorch_lightning==2.3.3->-r requirements_versions.txt (line 11)) (0.11.5) Requirement already satisfied: antlr4-python3-runtime==4.9. in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from omegaconf==2.3.0->-r requirements_versions.txt (line 12)) (4.9.3) Requirement already satisfied: aiofiles<24.0,>=22.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (23.2.1) Requirement already satisfied: altair<6.0,>=4.2.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (5.0.1) Requirement already satisfied: fastapi in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (0.101.0) Requirement already satisfied: ffmpy in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (0.3.1) Requirement already satisfied: gradio-client==0.5.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (0.5.0) Requirement already satisfied: importlib-resources<7.0,>=1.3 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (6.4.0) Requirement already satisfied: jinja2<4.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (3.1.2) Requirement already satisfied: markupsafe~=2.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (2.1.3) Requirement already satisfied: matplotlib~=3.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (3.7.2) Requirement already satisfied: orjson~=3.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (3.9.4) Requirement already satisfied: pandas<3.0,>=1.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (2.0.3) Requirement already satisfied: pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,<3.0.0,>=1.7.4 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (2.1.1) Requirement already satisfied: pydub in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (0.25.1) Requirement already satisfied: python-multipart in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (0.0.6) Requirement already satisfied: semantic-version~=2.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (2.10.0) Requirement already satisfied: uvicorn>=0.14.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (0.23.2) Requirement already satisfied: websockets<12.0,>=10.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from gradio==3.41.2->-r requirements_versions.txt (line 13)) (11.0.3) Collecting cffi>=1.16.0 (from pygit2==1.15.1->-r requirements_versions.txt (line 14)) Downloading cffi-1.16.0-cp310-cp310-win_amd64.whl.metadata (1.5 kB) Requirement already satisfied: anyio in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from httpx==0.27.0->-r requirements_versions.txt (line 16)) (3.7.1) Requirement already satisfied: certifi in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from httpx==0.27.0->-r requirements_versions.txt (line 16)) (2023.5.7) Requirement already satisfied: httpcore==1. in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from httpx==0.27.0->-r requirements_versions.txt (line 16)) (1.0.5) Requirement already satisfied: idna in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from httpx==0.27.0->-r requirements_versions.txt (line 16)) (3.4) Requirement already satisfied: sniffio in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from httpx==0.27.0->-r requirements_versions.txt (line 16)) (1.3.0) Requirement already satisfied: coloredlogs in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from onnxruntime==1.18.1->-r requirements_versions.txt (line 17)) (15.0.1) Requirement already satisfied: flatbuffers in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from onnxruntime==1.18.1->-r requirements_versions.txt (line 17)) (23.5.26) Requirement already satisfied: protobuf in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from onnxruntime==1.18.1->-r requirements_versions.txt (line 17)) (5.27.2) Requirement already satisfied: sympy in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from onnxruntime==1.18.1->-r requirements_versions.txt (line 17)) (1.12) Requirement already satisfied: torchvision in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from timm==1.0.7->-r requirements_versions.txt (line 18)) (0.16.0+cu121) Requirement already satisfied: jsonschema in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from rembg==2.0.57->-r requirements_versions.txt (line 22)) (4.19.0) Requirement already satisfied: opencv-python-headless in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from rembg==2.0.57->-r requirements_versions.txt (line 22)) (4.10.0.84) Requirement already satisfied: pooch in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from rembg==2.0.57->-r requirements_versions.txt (line 22)) (1.8.2) Requirement already satisfied: pymatting in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from rembg==2.0.57->-r requirements_versions.txt (line 22)) (1.1.12) Requirement already satisfied: scikit-image in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from rembg==2.0.57->-r requirements_versions.txt (line 22)) (0.24.0) Requirement already satisfied: addict in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from groundingdino-py==0.4.0->-r requirements_versions.txt (line 23)) (2.4.0) Requirement already satisfied: yapf in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from groundingdino-py==0.4.0->-r requirements_versions.txt (line 23)) (0.40.2) Requirement already satisfied: opencv-python in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from groundingdino-py==0.4.0->-r requirements_versions.txt (line 23)) (4.8.1.78) Requirement already satisfied: supervision==0.6.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from groundingdino-py==0.4.0->-r requirements_versions.txt (line 23)) (0.6.0) Requirement already satisfied: pycocotools in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from groundingdino-py==0.4.0->-r requirements_versions.txt (line 23)) (2.0.8) Requirement already satisfied: h11<0.15,>=0.13 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from httpcore==1.*->httpx==0.27.0->-r requirements_versions.txt (line 16)) (0.14.0) Requirement already satisfied: toolz in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from altair<6.0,>=4.2.0->gradio==3.41.2->-r requirements_versions.txt (line 13)) (0.12.0) Requirement already satisfied: pycparser in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from cffi>=1.16.0->pygit2==1.15.1->-r requirements_versions.txt (line 14)) (2.21) Requirement already satisfied: aiohttp!=4.0.0a0,!=4.0.0a1 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from fsspec[http]>=2022.5.0->pytorch_lightning==2.3.3->-r requirements_versions.txt (line 11)) (3.8.4) Requirement already satisfied: attrs>=22.2.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from jsonschema->rembg==2.0.57->-r requirements_versions.txt (line 22)) (23.1.0) Requirement already satisfied: jsonschema-specifications>=2023.03.6 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from jsonschema->rembg==2.0.57->-r requirements_versions.txt (line 22)) (2023.7.1) Requirement already satisfied: referencing>=0.28.4 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from jsonschema->rembg==2.0.57->-r requirements_versions.txt (line 22)) (0.30.2) Requirement already satisfied: rpds-py>=0.7.1 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from jsonschema->rembg==2.0.57->-r requirements_versions.txt (line 22)) (0.9.2) Requirement already satisfied: setuptools in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from lightning-utilities>=0.10.0->pytorch_lightning==2.3.3->-r requirements_versions.txt (line 11)) (68.0.0) Requirement already satisfied: contourpy>=1.0.1 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from matplotlib~=3.0->gradio==3.41.2->-r requirements_versions.txt (line 13)) (1.1.0) Requirement already satisfied: cycler>=0.10 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from matplotlib~=3.0->gradio==3.41.2->-r requirements_versions.txt (line 13)) (0.11.0) Requirement already satisfied: fonttools>=4.22.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from matplotlib~=3.0->gradio==3.41.2->-r requirements_versions.txt (line 13)) (4.42.0) Requirement already satisfied: kiwisolver>=1.0.1 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from matplotlib~=3.0->gradio==3.41.2->-r requirements_versions.txt (line 13)) (1.4.4) Requirement already satisfied: pyparsing<3.1,>=2.3.1 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from matplotlib~=3.0->gradio==3.41.2->-r requirements_versions.txt (line 13)) (3.0.9) Requirement already satisfied: python-dateutil>=2.7 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from matplotlib~=3.0->gradio==3.41.2->-r requirements_versions.txt (line 13)) (2.8.2) Requirement already satisfied: pytz>=2020.1 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from pandas<3.0,>=1.0->gradio==3.41.2->-r requirements_versions.txt (line 13)) (2023.3) Requirement already satisfied: tzdata>=2022.1 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from pandas<3.0,>=1.0->gradio==3.41.2->-r requirements_versions.txt (line 13)) (2023.3) Requirement already satisfied: annotated-types>=0.4.0 in d:\program files (x86)\foocus\python_embeded\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_versions.txt (line 13)) (0.5.0) Requirement already satisfied: pydantic-core==2.4.0 in d:\program files (x86)\foocus\python_embeded\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_versions.txt (line 13)) (2.4.0) Requirement already satisfied: charset-normalizer<4,>=2 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from requests->transformers==4.42.4->-r requirements_versions.txt (line 3)) (3.1.0) Requirement already satisfied: urllib3<3,>=1.21.1 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from requests->transformers==4.42.4->-r requirements_versions.txt (line 3)) (2.0.3) Requirement already satisfied: networkx in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from torch>=1.6.0->torchsde==0.2.6->-r requirements_versions.txt (line 1)) (3.1) Requirement already satisfied: click>=7.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from uvicorn>=0.14.0->gradio==3.41.2->-r requirements_versions.txt (line 13)) (8.1.6) Requirement already satisfied: exceptiongroup in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from anyio->httpx==0.27.0->-r requirements_versions.txt (line 16)) (1.1.2) Requirement already satisfied: humanfriendly>=9.1 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from coloredlogs->onnxruntime==1.18.1->-r requirements_versions.txt (line 17)) (10.0) Requirement already satisfied: starlette<0.28.0,>=0.27.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from fastapi->gradio==3.41.2->-r requirements_versions.txt (line 13)) (0.27.0) Requirement already satisfied: platformdirs>=2.5.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from pooch->rembg==2.0.57->-r requirements_versions.txt (line 22)) (4.2.2) Requirement already satisfied: numba!=0.49.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from pymatting->rembg==2.0.57->-r requirements_versions.txt (line 22)) (0.58.1) Requirement already satisfied: imageio>=2.33 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from scikit-image->rembg==2.0.57->-r requirements_versions.txt (line 22)) (2.34.2) Requirement already satisfied: tifffile>=2022.8.12 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from scikit-image->rembg==2.0.57->-r requirements_versions.txt (line 22)) (2024.7.2) Requirement already satisfied: lazy-loader>=0.4 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from scikit-image->rembg==2.0.57->-r requirements_versions.txt (line 22)) (0.4) Requirement already satisfied: mpmath>=0.19 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from sympy->onnxruntime==1.18.1->-r requirements_versions.txt (line 17)) (1.3.0) Requirement already satisfied: importlib-metadata>=6.6.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from yapf->groundingdino-py==0.4.0->-r requirements_versions.txt (line 23)) (8.0.0) Requirement already satisfied: tomli>=2.0.1 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from yapf->groundingdino-py==0.4.0->-r requirements_versions.txt (line 23)) (2.0.1) Requirement already satisfied: multidict<7.0,>=4.5 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2022.5.0->pytorch_lightning==2.3.3->-r requirements_versions.txt (line 11)) (6.0.4) Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2022.5.0->pytorch_lightning==2.3.3->-r requirements_versions.txt (line 11)) (4.0.2) Requirement already satisfied: yarl<2.0,>=1.0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2022.5.0->pytorch_lightning==2.3.3->-r requirements_versions.txt (line 11)) (1.9.2) Requirement already satisfied: frozenlist>=1.1.1 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2022.5.0->pytorch_lightning==2.3.3->-r requirements_versions.txt (line 11)) (1.3.3) Requirement already satisfied: aiosignal>=1.1.2 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2022.5.0->pytorch_lightning==2.3.3->-r requirements_versions.txt (line 11)) (1.3.1) Requirement already satisfied: pyreadline3 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from humanfriendly>=9.1->coloredlogs->onnxruntime==1.18.1->-r requirements_versions.txt (line 17)) (3.4.1) Requirement already satisfied: zipp>=0.5 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from importlib-metadata>=6.6.0->yapf->groundingdino-py==0.4.0->-r requirements_versions.txt (line 23)) (3.19.2) Requirement already satisfied: llvmlite<0.42,>=0.41.0dev0 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from numba!=0.49.0->pymatting->rembg==2.0.57->-r requirements_versions.txt (line 22)) (0.41.1) Requirement already satisfied: six>=1.5 in d:\program files (x86)\foocus\python_embeded\lib\site-packages (from python-dateutil>=2.7->matplotlib~=3.0->gradio==3.41.2->-r requirements_versions.txt (line 13)) (1.16.0) Downloading torchsde-0.2.6-py3-none-any.whl (61 kB) ---------------------------------------- 61.2/61.2 kB ? eta 0:00:00 Downloading transformers-4.42.4-py3-none-any.whl (9.3 MB) ---------------------------------------- 9.3/9.3 MB 11.5 MB/s eta 0:00:00 Downloading accelerate-0.32.1-py3-none-any.whl (314 kB) ---------------------------------------- 314.1/314.1 kB 9.5 MB/s eta 0:00:00 Downloading pytorch_lightning-2.3.3-py3-none-any.whl (812 kB) --------------------------------------- 812.3/812.3 kB 10.3 MB/s eta 0:00:00 Downloading pygit2-1.15.1-cp310-cp310-win_amd64.whl (1.3 MB) ---------------------------------------- 1.3/1.3 MB 5.4 MB/s eta 0:00:00 Downloading httpx-0.27.0-py3-none-any.whl (75 kB) ---------------------------------------- 75.6/75.6 kB 4.1 MB/s eta 0:00:00 Downloading onnxruntime-1.18.1-cp310-cp310-win_amd64.whl (5.6 MB) ---------------------------------------- 5.6/5.6 MB 11.5 MB/s eta 0:00:00 Downloading timm-1.0.7-py3-none-any.whl (2.3 MB) ---------------------------------------- 2.3/2.3 MB 11.3 MB/s eta 0:00:00 Downloading tokenizers-0.19.1-cp310-none-win_amd64.whl (2.2 MB) ---------------------------------------- 2.2/2.2 MB 4.7 MB/s eta 0:00:00 Downloading cffi-1.16.0-cp310-cp310-win_amd64.whl (181 kB) ---------------------------------------- 181.6/181.6 kB 5.4 MB/s eta 0:00:00 Downloading huggingface_hub-0.24.5-py3-none-any.whl (417 kB) ---------------------------------------- 417.5/417.5 kB 8.7 MB/s eta 0:00:00 Installing collected packages: cffi, pygit2, huggingface-hub, httpx, torchsde, tokenizers, onnxruntime, accelerate, transformers, timm, pytorch_lightning Attempting uninstall: cffi Found existing installation: cffi 1.15.1 Uninstalling cffi-1.15.1:

stderr: WARNING: Error parsing dependencies of torchsde: . suffix can only be used with == or != operators numpy (>=1.19.) ; python_version >= "3.7"


ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'd:\\program files (x86)\\foocus\\python_embeded\\lib\\site-packages\\_cffi_backend.cp310-win_amd64.pyd'
Consider using the `--user` option or check the permissions.

[notice] A new release of pip is available: 23.2.1 -> 24.2
[notice] To update, run: D:\Program Files (x86)\Foocus\python_embeded\python.exe -m pip install --upgrade pip

CMD Failed requirements: install -r "requirements_versions.txt"
[Cleanup] Attempting to delete content of temp dir C:\Users\sierb\AppData\Local\Temp\fooocus
[Cleanup] Cleanup successful
Total VRAM 12288 MB, total RAM 32680 MB
Set vram state to: NORMAL_VRAM
Always offload VRAM
Device: cuda:0 NVIDIA GeForce RTX 3060 : native
VAE dtype: torch.bfloat16
Traceback (most recent call last):
  File "D:\Program Files (x86)\Foocus\Fooocus\entry_with_update.py", line 46, in <module>
    from launch import *
  File "D:\Program Files (x86)\Foocus\Fooocus\launch.py", line 147, in <module>
    from webui import *
  File "D:\Program Files (x86)\Foocus\Fooocus\webui.py", line 10, in <module>
    import modules.async_worker as worker
  File "D:\Program Files (x86)\Foocus\Fooocus\modules\async_worker.py", line 3, in <module>
    from extras.inpaint_mask import generate_mask_from_image, SAMOptions
  File "D:\Program Files (x86)\Foocus\Fooocus\extras\inpaint_mask.py", line 6, in <module>
    from extras.GroundingDINO.util.inference import default_groundingdino
  File "D:\Program Files (x86)\Foocus\Fooocus\extras\GroundingDINO\util\inference.py", line 11, in <module>
    from groundingdino.util.inference import Model
  File "D:\Program Files (x86)\Foocus\python_embeded\lib\site-packages\groundingdino\util\inference.py", line 11, in <module>
    from groundingdino.models import build_model
  File "D:\Program Files (x86)\Foocus\python_embeded\lib\site-packages\groundingdino\models\__init__.py", line 8, in <module>
    from .GroundingDINO import build_groundingdino
  File "D:\Program Files (x86)\Foocus\python_embeded\lib\site-packages\groundingdino\models\GroundingDINO\__init__.py", line 15, in <module>
    from .groundingdino import build_groundingdino
  File "D:\Program Files (x86)\Foocus\python_embeded\lib\site-packages\groundingdino\models\GroundingDINO\groundingdino.py", line 24, in <module>
    from transformers import AutoTokenizer, BertModel, BertTokenizer, RobertaModel, RobertaTokenizerFast
  File "D:\Program Files (x86)\Foocus\python_embeded\lib\site-packages\transformers\__init__.py", line 26, in <module>
    from . import dependency_versions_check
  File "D:\Program Files (x86)\Foocus\python_embeded\lib\site-packages\transformers\dependency_versions_check.py", line 57, in <module>
    require_version_core(deps[pkg])
  File "D:\Program Files (x86)\Foocus\python_embeded\lib\site-packages\transformers\utils\versions.py", line 117, in require_version_core
    return require_version(requirement, hint)
  File "D:\Program Files (x86)\Foocus\python_embeded\lib\site-packages\transformers\utils\versions.py", line 111, in require_version
    _compare_versions(op, got_ver, want_ver, requirement, pkg, hint)
  File "D:\Program Files (x86)\Foocus\python_embeded\lib\site-packages\transformers\utils\versions.py", line 44, in _compare_versions
    raise ImportError(
ImportError: tokenizers>=0.19,<0.20 is required for a normal functioning of this module, but found tokenizers==0.13.3.
Try: `pip install transformers -U` or `pip install -e '.[dev]'` if you're working with git main

D:\Program Files (x86)\Foocus>pause
Press any key to continue . . .
bigfordy1983 commented 3 months ago

Also had this issue. Only resolution was a clean install

Sierbahnn commented 3 months ago

Also had this issue. Only resolution was a clean install

And to do that all I have to do is remove the folder and start over?

Sierbahnn commented 3 months ago

Clean install fixed it