Open qizhudal opened 1 year ago
Successfully built groundingdino Failed to build pycocotools
You should build pycocotools on windows first and then install groundingdino
building 'pycocotools._mask' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
And you should install C++ 14.0 or new version for building pycocotools
GroundingDINO installment failed. Batch processing failed. See your terminal for more detail and submit an issue to https://github.com/IDEA-Research/Grounded-Segment-Anything/issues.
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] Commit hash: 5ab7f213bec2f816f9c5644becb32eb72c8ffb89 Installing requirements
Launching Web UI with arguments: --theme light --xformers --api --autolaunch AUTOMATIC1111/stable-diffusion-webui packed by bilibili@秋葉aaaki 本整合包完全免费,严禁倒卖。若您付费获得本软件请立刻举报商家。 ControlNet v1.1.173 ControlNet v1.1.173 sd-webui-prompt-all-in-one background API service started successfully. Image Browser: ImageReward is not installed, cannot be used. Loading weights [4078eb4174] from E:\sd-webui-aki-v4\models\Stable-diffusion\02-二次元\3Guofeng3_v33.safetensors Creating model from config: E:\sd-webui-aki-v4\configs\v1-inference.yaml LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. Loading VAE weights specified in settings: E:\sd-webui-aki-v4\models\VAE\vae-ft-ema-560000-ema-pruned.ckpt Applying xformers cross attention optimization. No Image data blocks found. No Image data blocks found. No Image data blocks found. No Image data blocks found. No Image data blocks found. Textual inversion embeddings loaded(5): charturnerv2, EasyNegative, electroboom, 手部强化badhandv4, 肢体BadNegAnatomyV1-neg Model loaded in 3.6s (load weights from disk: 0.1s, create model: 0.2s, apply weights to model: 0.8s, apply half(): 0.5s, load VAE: 0.3s, move model to device: 0.4s, load textual inversion embeddings: 1.3s). Running on local URL: http://127.0.0.1:7860
To create a public link, set share=True
in launch()
.
Startup time: 12.8s (import torch: 1.1s, import gradio: 0.7s, import ldm: 0.3s, other imports: 0.7s, load scripts: 1.0s, load SD checkpoint: 3.8s, create ui: 2.3s, gradio launch: 2.4s, scripts app_started_callback: 0.3s).
Start batch processing
Initializing SAM
Processing 0/72 E:\lora\lidixun\p1264779894.jpeg
Installing sd-webui-segment-anything requirement: groundingdino
提示:SD-WebUI 正在联网同步内部组件,这可能需要几秒到几十分钟不等,请耐心等待,切勿中途退出,以免文件损坏。切换版本后在此挂起一段时间是正常情况,如果您在使用中反复需要在此处等待 5 分钟以上,这可能是由于您安装的扩展与主环境产生版本冲突。请尝试通过扩展管理工具手动对齐扩展版本,或停用可疑扩展。
详见: https://support.qq.com/products/488228/faqs/135024
Traceback (most recent call last):
File "E:\sd-webui-aki-v4\extensions\sd-webui-segment-anything\scripts\dino.py", line 36, in install_goundingdino
launch.run_pip(
File "E:\sd-webui-aki-v4\launch.py", line 128, in run_pip
return run(f'"{python}" -m pip {command} --prefer-binary{index_url_line}', desc=f"Installing {desc}", errdesc=f"Couldn't install {desc}", live=live)
File "E:\sd-webui-aki-v4\launch.py", line 96, in run
raise RuntimeError(message)
RuntimeError: Couldn't install sd-webui-segment-anything requirement: groundingdino.
提示:Python 运行时抛出了一个异常。请检查疑难解答页面。
Command: "E:\sd-webui-aki-v4\py310\python.exe" -m pip install git+https://github.com/IDEA-Research/GroundingDINO --prefer-binary --index-url https://mirrors.bfsu.edu.cn/pypi/web/simple
Error code: 1
stdout: Looking in indexes: https://mirrors.bfsu.edu.cn/pypi/web/simple, https://pypi.tuna.tsinghua.edu.cn/simple, https://pypi.doubanio.com/simple
Looking in links: https://mirror.sjtu.edu.cn/pytorch-wheels/torch_stable.html
Collecting git+https://github.com/IDEA-Research/GroundingDINO
Cloning https://github.com/IDEA-Research/GroundingDINO to c:\users\adminis\appdata\local\temp\pip-req-build-doyrjrs1
Resolved https://github.com/IDEA-Research/GroundingDINO to commit 39b1472457b8264adc8581d354bb1d1956ec7ee7
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: torch in e:\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (2.0.0+cu118)
Requirement already satisfied: torchvision in e:\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (0.15.1+cu118)
Requirement already satisfied: transformers in e:\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (4.25.1)
Requirement already satisfied: addict in e:\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (2.4.0)
Requirement already satisfied: yapf in e:\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (0.32.0)
Requirement already satisfied: timm in e:\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (0.6.7)
Requirement already satisfied: numpy in e:\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (1.23.5)
Requirement already satisfied: opencv-python in e:\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (4.7.0.72)
Collecting supervision==0.6.0
Using cached https://pypi.doubanio.com/packages/42/7a/4fe657cae29eedeca34756a80a053ac3b1b3c80462cdb6768f428625f9ca/supervision-0.6.0-py3-none-any.whl (31 kB)
Collecting pycocotools
Using cached https://pypi.doubanio.com/packages/ef/c6/90220be3b39fbc4cbd203775ca47dd8dc97fae06fbd2b500637395621b7c/pycocotools-2.0.6.tar.gz (24 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Requirement already satisfied: matplotlib in e:\sd-webui-aki-v4\py310\lib\site-packages (from supervision==0.6.0->groundingdino==0.1.0) (3.7.1)
Requirement already satisfied: jinja2 in e:\sd-webui-aki-v4\py310\lib\site-packages (from torch->groundingdino==0.1.0) (3.1.2)
Requirement already satisfied: networkx in e:\sd-webui-aki-v4\py310\lib\site-packages (from torch->groundingdino==0.1.0) (3.0)
Requirement already satisfied: filelock in e:\sd-webui-aki-v4\py310\lib\site-packages (from torch->groundingdino==0.1.0) (3.9.0)
Requirement already satisfied: typing-extensions in e:\sd-webui-aki-v4\py310\lib\site-packages (from torch->groundingdino==0.1.0) (4.4.0)
Requirement already satisfied: sympy in e:\sd-webui-aki-v4\py310\lib\site-packages (from torch->groundingdino==0.1.0) (1.11.1)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in e:\sd-webui-aki-v4\py310\lib\site-packages (from torchvision->groundingdino==0.1.0) (9.4.0)
Requirement already satisfied: requests in e:\sd-webui-aki-v4\py310\lib\site-packages (from torchvision->groundingdino==0.1.0) (2.25.1)
Requirement already satisfied: tqdm>=4.27 in e:\sd-webui-aki-v4\py310\lib\site-packages (from transformers->groundingdino==0.1.0) (4.65.0)
Requirement already satisfied: tokenizers!=0.11.3,<0.14,>=0.11.1 in e:\sd-webui-aki-v4\py310\lib\site-packages (from transformers->groundingdino==0.1.0) (0.13.3)
Requirement already satisfied: regex!=2019.12.17 in e:\sd-webui-aki-v4\py310\lib\site-packages (from transformers->groundingdino==0.1.0) (2023.3.23)
Requirement already satisfied: pyyaml>=5.1 in e:\sd-webui-aki-v4\py310\lib\site-packages (from transformers->groundingdino==0.1.0) (6.0)
Requirement already satisfied: packaging>=20.0 in e:\sd-webui-aki-v4\py310\lib\site-packages (from transformers->groundingdino==0.1.0) (23.1)
Requirement already satisfied: huggingface-hub<1.0,>=0.10.0 in e:\sd-webui-aki-v4\py310\lib\site-packages (from transformers->groundingdino==0.1.0) (0.13.4)
Requirement already satisfied: contourpy>=1.0.1 in e:\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (1.0.7)
Requirement already satisfied: cycler>=0.10 in e:\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (0.11.0)
Requirement already satisfied: pyparsing>=2.3.1 in e:\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (3.0.9)
Requirement already satisfied: kiwisolver>=1.0.1 in e:\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (1.4.4)
Requirement already satisfied: fonttools>=4.22.0 in e:\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (4.39.3)
Requirement already satisfied: python-dateutil>=2.7 in e:\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (2.8.2)
Requirement already satisfied: colorama in e:\sd-webui-aki-v4\py310\lib\site-packages (from tqdm>=4.27->transformers->groundingdino==0.1.0) (0.4.6)
Requirement already satisfied: MarkupSafe>=2.0 in e:\sd-webui-aki-v4\py310\lib\site-packages (from jinja2->torch->groundingdino==0.1.0) (2.1.2)
Requirement already satisfied: certifi>=2017.4.17 in e:\sd-webui-aki-v4\py310\lib\site-packages (from requests->torchvision->groundingdino==0.1.0) (2022.12.7)
Requirement already satisfied: idna<3,>=2.5 in e:\sd-webui-aki-v4\py310\lib\site-packages (from requests->torchvision->groundingdino==0.1.0) (2.10)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in e:\sd-webui-aki-v4\py310\lib\site-packages (from requests->torchvision->groundingdino==0.1.0) (1.26.13)
Requirement already satisfied: chardet<5,>=3.0.2 in e:\sd-webui-aki-v4\py310\lib\site-packages (from requests->torchvision->groundingdino==0.1.0) (4.0.0)
Requirement already satisfied: mpmath>=0.19 in e:\sd-webui-aki-v4\py310\lib\site-packages (from sympy->torch->groundingdino==0.1.0) (1.2.1)
Requirement already satisfied: six>=1.5 in e:\sd-webui-aki-v4\py310\lib\site-packages (from python-dateutil>=2.7->matplotlib->supervision==0.6.0->groundingdino==0.1.0) (1.16.0)
Building wheels for collected packages: groundingdino, pycocotools
Building wheel for groundingdino (setup.py): started
Building wheel for groundingdino (setup.py): finished with status 'error'
Running setup.py clean for groundingdino
Building wheel for pycocotools (pyproject.toml): started
Building wheel for pycocotools (pyproject.toml): finished with status 'error'
Failed to build groundingdino pycocotools
stderr: Running command git clone --filter=blob:none --quiet https://github.com/IDEA-Research/GroundingDINO 'C:\Users\Adminis\AppData\Local\Temp\pip-req-build-doyrjrs1'
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [97 lines of output]
Building wheel groundingdino-0.1.0
Compiling with CUDA
running bdist_wheel
E:\sd-webui-aki-v4\py310\lib\site-packages\torch\utils\cpp_extension.py:476: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
warnings.warn(msg.format('we could not find ninja.'))
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\groundingdino
copying groundingdino\version.py -> build\lib.win-amd64-cpython-310\groundingdino
copying groundingdino\__init__.py -> build\lib.win-amd64-cpython-310\groundingdino
creating build\lib.win-amd64-cpython-310\groundingdino\config
copying groundingdino\config\GroundingDINO_SwinB_cfg.py -> build\lib.win-amd64-cpython-310\groundingdino\config
copying groundingdino\config\GroundingDINO_SwinT_OGC.py -> build\lib.win-amd64-cpython-310\groundingdino\config
copying groundingdino\config\__init__.py -> build\lib.win-amd64-cpython-310\groundingdino\config
creating build\lib.win-amd64-cpython-310\groundingdino\datasets
copying groundingdino\datasets\transforms.py -> build\lib.win-amd64-cpython-310\groundingdino\datasets
copying groundingdino\datasets\__init__.py -> build\lib.win-amd64-cpython-310\groundingdino\datasets
creating build\lib.win-amd64-cpython-310\groundingdino\models
copying groundingdino\models\registry.py -> build\lib.win-amd64-cpython-310\groundingdino\models
copying groundingdino\models\__init__.py -> build\lib.win-amd64-cpython-310\groundingdino\models
creating build\lib.win-amd64-cpython-310\groundingdino\util
copying groundingdino\util\box_ops.py -> build\lib.win-amd64-cpython-310\groundingdino\util
copying groundingdino\util\get_tokenlizer.py -> build\lib.win-amd64-cpython-310\groundingdino\util
copying groundingdino\util\inference.py -> build\lib.win-amd64-cpython-310\groundingdino\util
copying groundingdino\util\logger.py -> build\lib.win-amd64-cpython-310\groundingdino\util
copying groundingdino\util\misc.py -> build\lib.win-amd64-cpython-310\groundingdino\util
copying groundingdino\util\slconfig.py -> build\lib.win-amd64-cpython-310\groundingdino\util
copying groundingdino\util\slio.py -> build\lib.win-amd64-cpython-310\groundingdino\util
copying groundingdino\util\time_counter.py -> build\lib.win-amd64-cpython-310\groundingdino\util
copying groundingdino\util\utils.py -> build\lib.win-amd64-cpython-310\groundingdino\util
copying groundingdino\util\visualizer.py -> build\lib.win-amd64-cpython-310\groundingdino\util
copying groundingdino\util\vl_utils.py -> build\lib.win-amd64-cpython-310\groundingdino\util
copying groundingdino\util\__init__.py -> build\lib.win-amd64-cpython-310\groundingdino\util
creating build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO
copying groundingdino\models\GroundingDINO\bertwarper.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO
copying groundingdino\models\GroundingDINO\fuse_modules.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO
copying groundingdino\models\GroundingDINO\groundingdino.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO
copying groundingdino\models\GroundingDINO\ms_deform_attn.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO
copying groundingdino\models\GroundingDINO\transformer.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO
copying groundingdino\models\GroundingDINO\transformer_vanilla.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO
copying groundingdino\models\GroundingDINO\utils.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO
copying groundingdino\models\GroundingDINO\__init__.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO
creating build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO\backbone
copying groundingdino\models\GroundingDINO\backbone\backbone.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO\backbone
copying groundingdino\models\GroundingDINO\backbone\position_encoding.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO\backbone
copying groundingdino\models\GroundingDINO\backbone\swin_transformer.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO\backbone
copying groundingdino\models\GroundingDINO\backbone\__init__.py -> build\lib.win-amd64-cpython-310\groundingdino\models\GroundingDINO\backbone
running build_ext
E:\sd-webui-aki-v4\py310\lib\site-packages\torch\utils\cpp_extension.py:359: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。
warnings.warn(f'Error checking compiler version for {compiler}: {error}')
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\Adminis\AppData\Local\Temp\pip-req-build-doyrjrs1\setup.py", line 192, in <module>
setup(
File "E:\sd-webui-aki-v4\py310\lib\site-packages\setuptools\__init__.py", line 108, in setup
return distutils.core.setup(**attrs)
File "E:\sd-webui-aki-v4\py310\lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
return run_commands(dist)
File "E:\sd-webui-aki-v4\py310\lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
dist.run_commands()
File "E:\sd-webui-aki-v4\py310\lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
self.run_command(cmd)
File "E:\sd-webui-aki-v4\py310\lib\site-packages\setuptools\dist.py", line 1221, in run_command
super().run_command(command)
File "E:\sd-webui-aki-v4\py310\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "E:\sd-webui-aki-v4\py310\lib\site-packages\wheel\bdist_wheel.py", line 343, in run
self.run_command("build")
File "E:\sd-webui-aki-v4\py310\lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "E:\sd-webui-aki-v4\py310\lib\site-packages\setuptools\dist.py", line 1221, in run_command
super().run_command(command)
File "E:\sd-webui-aki-v4\py310\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "E:\sd-webui-aki-v4\py310\lib\site-packages\setuptools\_distutils\command\build.py", line 131, in run
self.run_command(cmd_name)
File "E:\sd-webui-aki-v4\py310\lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "E:\sd-webui-aki-v4\py310\lib\site-packages\setuptools\dist.py", line 1221, in run_command
super().run_command(command)
File "E:\sd-webui-aki-v4\py310\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "E:\sd-webui-aki-v4\py310\lib\site-packages\setuptools\command\build_ext.py", line 84, in run
_build_ext.run(self)
File "E:\sd-webui-aki-v4\py310\lib\site-packages\setuptools\_distutils\command\build_ext.py", line 345, in run
self.build_extensions()
File "E:\sd-webui-aki-v4\py310\lib\site-packages\torch\utils\cpp_extension.py", line 499, in build_extensions
_check_cuda_version(compiler_name, compiler_version)
File "E:\sd-webui-aki-v4\py310\lib\site-packages\torch\utils\cpp_extension.py", line 387, in _check_cuda_version
raise RuntimeError(CUDA_MISMATCH_MESSAGE.format(cuda_str_version, torch.version.cuda))
RuntimeError:
提示:Python 运行时抛出了一个异常。请检查疑难解答页面。
The detected CUDA version (12.1) mismatches the version that was used to compile
PyTorch (11.8). Please make sure to use the same CUDA versions.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for groundingdino
error: subprocess-exited-with-error
× Building wheel for pycocotools (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\pycocotools
copying pycocotools\coco.py -> build\lib.win-amd64-cpython-310\pycocotools
copying pycocotools\cocoeval.py -> build\lib.win-amd64-cpython-310\pycocotools
None copying pycocotools\mask.py -> build\lib.win-amd64-cpython-310\pycocotools GroundingDINO install failed. Please submit an issue to https://github.com/IDEA-Research/Grounded-Segment-Anything/issues.
copying pycocotools\__init__.py -> build\lib.win-amd64-cpython-310\pycocotools
running build_ext
building 'pycocotools._mask' extension
creating build\temp.win-amd64-cpython-310
creating build\temp.win-amd64-cpython-310\Release
creating build\temp.win-amd64-cpython-310\Release\common
creating build\temp.win-amd64-cpython-310\Release\pycocotools
"D:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IE:\sd-webui-aki-v4\py310\lib\site-packages\numpy\core\include -I./common -IE:\sd-webui-aki-v4\py310\include -IE:\sd-webui-aki-v4\py310\Include "-ID:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include" "-ID:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-ID:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\cppwinrt" /Tc./common/maskApi.c /Fobuild\temp.win-amd64-cpython-310\Release\./common/maskApi.obj
maskApi.c
./common/maskApi.c(151): warning C4101: \xa1\xb0xp\xa1\xb1: δ\xd2\xfd\xd3õľֲ\xbf\xb1\xe4\xc1\xbf
"D:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IE:\sd-webui-aki-v4\py310\lib\site-packages\numpy\core\include -I./common -IE:\sd-webui-aki-v4\py310\include -IE:\sd-webui-aki-v4\py310\Include "-ID:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\include" "-ID:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-ID:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\cppwinrt" /Tcpycocotools/_mask.c /Fobuild\temp.win-amd64-cpython-310\Release\pycocotools/_mask.obj
_mask.c
c1: fatal error C1083: \xce\xa8\xb4\xf2\xbf\xaaԴ\xceļ\xfe: \xa1\xb0pycocotools/_mask.c\xa1\xb1: No such file or directory
error: command 'D:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pycocotools
ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects
After I installed the software, another problem occurred.
After installing the software, another problem arose.
The detected CUDA version (12.1) mismatches the version that was used to compile PyTorch (11.8). Please make sure to use the same CUDA versions.
You can check the PyTorch version to use for CUDA12.1
change to install like this:
/usr/local/cuda-11.6
to find it ! )and export like this (or you can vim ~/.bashrc
, and source ~/.bashrc
):
CUDAVER=cuda-11.6
export PATH=/usr/local/$CUDAVER/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/$CUDAVER/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/local/$CUDAVER/lib64:$LD_LIBRARY_PATH
export CUDA_PATH=/usr/local/$CUDAVER
export CUDA_ROOT=/usr/local/$CUDAVER
export CUDA_HOME=/usr/local/$CUDAVER
export AM_I_DOCKER=False
export BUILD_WITH_CUDA=True
GroundingDINO installment failed. Batch processing failed. See your terminal for more detail and submit an issue to https://github.com/IDEA-Research/Grounded-Segment-Anything/issues. Command: "E:\sd-webui-aki-v4\py310\python.exe" -m pip install git+https://github.com/IDEA-Research/GroundingDINO --prefer-binary --index-url https://mirrors.bfsu.edu.cn/pypi/web/simple Error code: 1 stdout: Looking in indexes: https://mirrors.bfsu.edu.cn/pypi/web/simple, https://pypi.tuna.tsinghua.edu.cn/simple, https://pypi.doubanio.com/simple
Looking in links: https://mirror.sjtu.edu.cn/pytorch-wheels/torch_stable.html
Collecting git+https://github.com/IDEA-Research/GroundingDINO
Cloning https://github.com/IDEA-Research/GroundingDINO to c:\users\adminis\appdata\local\temp\pip-req-build-etnhua4w
Resolved https://github.com/IDEA-Research/GroundingDINO to commit 39b1472457b8264adc8581d354bb1d1956ec7ee7
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: torch in e:\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (2.0.0+cu118)
Requirement already satisfied: torchvision in e:\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (0.15.1+cu118)
Requirement already satisfied: transformers in e:\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (4.25.1)
Requirement already satisfied: addict in e:\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (2.4.0)
Requirement already satisfied: yapf in e:\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (0.32.0)
Requirement already satisfied: timm in e:\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (0.6.7)
Requirement already satisfied: numpy in e:\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (1.23.5)
Requirement already satisfied: opencv-python in e:\sd-webui-aki-v4\py310\lib\site-packages (from groundingdino==0.1.0) (4.7.0.72)
Collecting supervision==0.6.0
Using cached https://pypi.doubanio.com/packages/42/7a/4fe657cae29eedeca34756a80a053ac3b1b3c80462cdb6768f428625f9ca/supervision-0.6.0-py3-none-any.whl (31 kB)
Collecting pycocotools
Using cached https://pypi.doubanio.com/packages/ef/c6/90220be3b39fbc4cbd203775ca47dd8dc97fae06fbd2b500637395621b7c/pycocotools-2.0.6.tar.gz (24 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Requirement already satisfied: matplotlib in e:\sd-webui-aki-v4\py310\lib\site-packages (from supervision==0.6.0->groundingdino==0.1.0) (3.7.1)
Requirement already satisfied: networkx in e:\sd-webui-aki-v4\py310\lib\site-packages (from torch->groundingdino==0.1.0) (3.0)
Requirement already satisfied: typing-extensions in e:\sd-webui-aki-v4\py310\lib\site-packages (from torch->groundingdino==0.1.0) (4.4.0)
Requirement already satisfied: jinja2 in e:\sd-webui-aki-v4\py310\lib\site-packages (from torch->groundingdino==0.1.0) (3.1.2)
Requirement already satisfied: filelock in e:\sd-webui-aki-v4\py310\lib\site-packages (from torch->groundingdino==0.1.0) (3.9.0)
Requirement already satisfied: sympy in e:\sd-webui-aki-v4\py310\lib\site-packages (from torch->groundingdino==0.1.0) (1.11.1)
Requirement already satisfied: requests in e:\sd-webui-aki-v4\py310\lib\site-packages (from torchvision->groundingdino==0.1.0) (2.25.1)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in e:\sd-webui-aki-v4\py310\lib\site-packages (from torchvision->groundingdino==0.1.0) (9.4.0)
Requirement already satisfied: huggingface-hub<1.0,>=0.10.0 in e:\sd-webui-aki-v4\py310\lib\site-packages (from transformers->groundingdino==0.1.0) (0.13.4)
Requirement already satisfied: packaging>=20.0 in e:\sd-webui-aki-v4\py310\lib\site-packages (from transformers->groundingdino==0.1.0) (23.1)
Requirement already satisfied: regex!=2019.12.17 in e:\sd-webui-aki-v4\py310\lib\site-packages (from transformers->groundingdino==0.1.0) (2023.3.23)
Requirement already satisfied: tokenizers!=0.11.3,<0.14,>=0.11.1 in e:\sd-webui-aki-v4\py310\lib\site-packages (from transformers->groundingdino==0.1.0) (0.13.3)
Requirement already satisfied: pyyaml>=5.1 in e:\sd-webui-aki-v4\py310\lib\site-packages (from transformers->groundingdino==0.1.0) (6.0)
Requirement already satisfied: tqdm>=4.27 in e:\sd-webui-aki-v4\py310\lib\site-packages (from transformers->groundingdino==0.1.0) (4.65.0)
Requirement already satisfied: kiwisolver>=1.0.1 in e:\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (1.4.4)
Requirement already satisfied: pyparsing>=2.3.1 in e:\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (3.0.9)
Requirement already satisfied: python-dateutil>=2.7 in e:\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (2.8.2)
Requirement already satisfied: cycler>=0.10 in e:\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (0.11.0)
Requirement already satisfied: contourpy>=1.0.1 in e:\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (1.0.7)
Requirement already satisfied: fonttools>=4.22.0 in e:\sd-webui-aki-v4\py310\lib\site-packages (from matplotlib->supervision==0.6.0->groundingdino==0.1.0) (4.39.3)
Requirement already satisfied: colorama in e:\sd-webui-aki-v4\py310\lib\site-packages (from tqdm>=4.27->transformers->groundingdino==0.1.0) (0.4.6)
Requirement already satisfied: MarkupSafe>=2.0 in e:\sd-webui-aki-v4\py310\lib\site-packages (from jinja2->torch->groundingdino==0.1.0) (2.1.2)
Requirement already satisfied: idna<3,>=2.5 in e:\sd-webui-aki-v4\py310\lib\site-packages (from requests->torchvision->groundingdino==0.1.0) (2.10)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in e:\sd-webui-aki-v4\py310\lib\site-packages (from requests->torchvision->groundingdino==0.1.0) (1.26.13)
Requirement already satisfied: chardet<5,>=3.0.2 in e:\sd-webui-aki-v4\py310\lib\site-packages (from requests->torchvision->groundingdino==0.1.0) (4.0.0)
Requirement already satisfied: certifi>=2017.4.17 in e:\sd-webui-aki-v4\py310\lib\site-packages (from requests->torchvision->groundingdino==0.1.0) (2022.12.7)
Requirement already satisfied: mpmath>=0.19 in e:\sd-webui-aki-v4\py310\lib\site-packages (from sympy->torch->groundingdino==0.1.0) (1.2.1)
None Requirement already satisfied: six>=1.5 in e:\sd-webui-aki-v4\py310\lib\site-packages (from python-dateutil>=2.7->matplotlib->supervision==0.6.0->groundingdino==0.1.0) (1.16.0) GroundingDINO install failed. Please submit an issue to https://github.com/IDEA-Research/Grounded-Segment-Anything/issues.
Building wheels for collected packages: groundingdino, pycocotools
Building wheel for groundingdino (setup.py): started
Building wheel for groundingdino (setup.py): finished with status 'done'
Created wheel for groundingdino: filename=groundingdino-0.1.0-py3-none-any.whl size=85137 sha256=505a75891284f9475a83e156cc1e86d727f0ae197497e2cde1bf436ff9219f69
Stored in directory: C:\Users\Adminis\AppData\Local\Temp\pip-ephem-wheel-cache-one64hvv\wheels\85\2b\15\c5a09de5cf3f52e0609c97c8335f8f40f01d4855e46dfd0e26
Building wheel for pycocotools (pyproject.toml): started
Building wheel for pycocotools (pyproject.toml): finished with status 'error'
Successfully built groundingdino
Failed to build pycocotools
stderr: Running command git clone --filter=blob:none --quiet https://github.com/IDEA-Research/GroundingDINO 'C:\Users\Adminis\AppData\Local\Temp\pip-req-build-etnhua4w'
error: subprocess-exited-with-error
× Building wheel for pycocotools (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [13 lines of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pycocotools
ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects