Trouble on Windows

#4
by orwelian84 - opened

I've been able to get the FB Segment anything model working - but any time i try to use the Grounded DINO elements the bugger simply wont install. I've tried in windows with a Conda ENV - fresh installs of torch and all that leads to it not being able to see segments.utils or torch or both - spent the morning installing and reinstalling.

No idea why the Grounded DINO keeps failing on install

image.png
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:\Users\orwel\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\Users\orwel\AppData\Local\Programs\Python\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:\Users\orwel\AppData\Local\Programs\Python\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\orwel\AppData\Local\Temp\pip-build-env-iubyfh23\overlay\Lib\site-packages\setuptools\build_meta.py", line 468, in get_requires_for_build_editable
return self.get_requires_for_build_wheel(config_settings)
File "C:\Users\orwel\AppData\Local\Temp\pip-build-env-iubyfh23\overlay\Lib\site-packages\setuptools\build_meta.py", line 355, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "C:\Users\orwel\AppData\Local\Temp\pip-build-env-iubyfh23\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in _get_build_requires
self.run_setup()
File "C:\Users\orwel\AppData\Local\Temp\pip-build-env-iubyfh23\overlay\Lib\site-packages\setuptools\build_meta.py", line 507, in run_setup
super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
File "C:\Users\orwel\AppData\Local\Temp\pip-build-env-iubyfh23\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, 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.
Traceback (most recent call last):
File "C:\Dev_genius\More_testing\Grounded-Segment-Anything\app.py", line 14, in
result = subprocess.run(['pip', 'install', '-e', 'GroundingDINO'], check=True)
File "C:\Users\orwel\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['pip', 'install', '-e', 'GroundingDINO']' returned non-zero exit status 1.

image.png

got it sorted - ended up rebuilding everything from source CUDA and Torch - that seemed to sort it.

orwelian84 changed discussion status to closed

Sign up or log in to comment