Skip to content

[Bug]: Failed building wheel for pycocotools #77

Closed
@qiaohahah

Description

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits of both this extension and the webui

Have you updated WebUI and this extension to the newest version?

  • I have updated WebUI and this extension to the most up-to-date version

Do you understand that you should go to https://github.com/IDEA-Research/Grounded-Segment-Anything/issues if you cannot install GroundingDINO?

  • My problem is not about installing GroundingDINO

Do you know that you should use the newest ControlNet extension and enable external control if you want SAM extension to control ControlNet?

  • I have updated ControlNet extension and enabled "Allow other script to control this extension"

What happened?

图片序列无法批量处理

Steps to reproduce the problem

image

What should have happened?

应该人物扣除出来,导出在指定文件夹

Commit where the problem happens

webui: python: 3.10.8  •  torch: 1.13.1+cu117  •  xformers: 0.0.16rc425  •  gradio: 3.28.1  •  commit: 5ab7f213  •  checkpoint: 30953ab0de
extension:

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

Console logs

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\Administrator\AppData\Local\Temp\pip-req-build-syzjyocd'

  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

      copying pycocotools\mask.py -> build\lib.win-amd64-cpython-310\pycocotools

      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
None

GroundingDINO install failed. Please submit an issue to https://github.com/IDEA-Research/Grounded-Segment-Anything/issues.
      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

      "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD "-ID:\stable diffusion\novelai-webui\novelai-webui-aki-v3\py310\lib\site-packages\numpy\core\include" -I./common "-ID:\stable diffusion\novelai-webui\novelai-webui-aki-v3\py310\include" "-ID:\stable diffusion\novelai-webui\novelai-webui-aki-v3\py310\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\ATLMFC\include" "-IC:\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

      "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD "-ID:\stable diffusion\novelai-webui\novelai-webui-aki-v3\py310\lib\site-packages\numpy\core\include" -I./common "-ID:\stable diffusion\novelai-webui\novelai-webui-aki-v3\py310\include" "-ID:\stable diffusion\novelai-webui\novelai-webui-aki-v3\py310\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.35.32215\ATLMFC\include" "-IC:\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 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.35.32215\\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

Additional information

No response

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions