IDEA-Research / GroundingDINO

[ECCV 2024] Official implementation of the paper "Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detection"
https://arxiv.org/abs/2303.05499
Apache License 2.0
6.9k stars 698 forks source link

why。。。。 #171

Open tangbob opened 1 year ago

tangbob commented 1 year ago

PS G:\BaiduSyncdisk\AIproject\GroundingDINO> pip install -e . Looking in indexes: https://pypi.org/simplehttps://pypi.doubanio.com/simple, https://pypi.tuna.tsinghua.edu.cn/simple Obtaining file:///G:/BaiduSyncdisk/AIproject/GroundingDINO Installing build dependencies ... done Checking if build backend supports build_editable ... done Getting requirements to build editable ... error error: subprocess-exited-with-error

× Getting requirements to build editable did not run successfully. │ exit code: 1 ╰─> [19 lines of output] Traceback (most recent call last): File "C:\Program Files\Python310\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in main() File "C:\Program Files\Python310\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) File "C:\Program Files\Python310\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 132, in get_requires_for_build_editable return hook(config_settings) File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-ftmx40ze\overlay\Lib\site-packages\setuptools\build_meta.py", line 450, in get_requires_for_build_editable return self.get_requires_for_build_wheel(config_settings) File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-ftmx40ze\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=['wheel']) File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-ftmx40ze\overlay\Lib\site-packages\setuptools\build_meta.py", line 323, in _get_build_requires self.run_setup() File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-ftmx40ze\overlay\Lib\site-packages\setuptools\build_meta.py", line 487, in run_setup super(_BuildMetaLegacyBackend, File "C:\Users\Administrator\AppData\Local\Temp\pip-build-env-ftmx40ze\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in run_setup exec(code, locals()) File "", line 27, in ModuleNotFoundError: No module named 'torch' [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

× Getting requirements to build editable did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

xiaodangao137 commented 1 year ago

same error!! Cannot solve it until now

zhangjingxian1998 commented 1 year ago

run pip install -r requirement.txt before pip install -e .

SimJav commented 7 months ago

Still the same error after pip install -r requirement.txt

1benwu1 commented 1 week ago

Still the same error after pip install -r requirement.txt

how did you solve this problem in the end.... I'm facing the exact same problem as you. pretty annoying

zhangjingxian1998 commented 1 week ago

Still the same error after pip install -r requirement.txt

how did you solve this problem in the end.... I'm facing the exact same problem as you. pretty annoying

are you sure the same error? this should be solved after install torch

1benwu1 commented 1 week ago

Still the same error after pip install -r requirement.txt

how did you solve this problem in the end.... I'm facing the exact same problem as you. pretty annoying

are you sure the same error? this should be solved after install torch

pretty god damn sure... i had to switch to another device . 换了台设备跑了

zhangjingxian1998 commented 1 week ago

Still the same error after pip install -r requirement.txt

how did you solve this problem in the end.... I'm facing the exact same problem as you. pretty annoying

are you sure the same error? this should be solved after install torch

pretty god damn sure... i had to switch to another device . 换了台设备跑了

真邪门儿