Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Failed building wheel for pycocotools #77

Closed
4 tasks done
qiaohahah opened this issue May 5, 2023 · 3 comments
Closed
4 tasks done

[Bug]: Failed building wheel for pycocotools #77

qiaohahah opened this issue May 5, 2023 · 3 comments

Comments

@qiaohahah
Copy link

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

@continue-revolution
Copy link
Owner

cocodataset/cocoapi#415 (comment)

BTW, the status clearly states that you should go to Grounded-SAM repo to post issues. I may consider not answering any such kind of issue related to GroundingDINO installment because such issues are overwhelming and common and you should really search from the existing issues inside this repo, Grounded-SAM repo and GroundingDINO repo.

@qiaohahah
Copy link
Author

所以是需要下载 GroundingDINO嘛,插件里不是包含了 Grounded-SAM吗,不懂代码求大佬指教

@continue-revolution
Copy link
Owner

插件里没有GroundingDINO。插件会自动帮你下载GroundingDINO并且编译,但是有的包在windows里支持得不是很好。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants