Hello,
Most likely, this package may need a more description about the installation steps. I installed Detic in the last and all the code
were installed and working.
However for the Detic. I got the following error on M1:
Collecting git+https://github.com/facebookresearch/detectron2.git
Cloning https://github.com/facebookresearch/detectron2.git to /private/var/folders/kb/dq9v0bpn67gb64fkjtrvs38c0000gn/T/pip-req-build-id_gecv7
Running command git clone --filter=blob:none --quiet https://github.com/facebookresearch/detectron2.git /private/var/folders/kb/dq9v0bpn67gb64fkjtrvs38c0000gn/T/pip-req-build-id_gecv7
Resolved https://github.com/facebookresearch/detectron2.git to commit 337ca3490fa7879ceeeadf6c2b73d67504ff4b4f
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
ร Getting requirements to build wheel did not run successfully.
โ exit code: 1
โฐโ> [20 lines of output]
Traceback (most recent call last):
File "/Users/csv610/Projects/CompVis/ObjectDetection/AutoDistill/autodistillenv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/Users/csv610/Projects/CompVis/ObjectDetection/AutoDistill/autodistillenv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/csv610/Projects/CompVis/ObjectDetection/AutoDistill/autodistillenv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/kb/dq9v0bpn67gb64fkjtrvs38c0000gn/T/pip-build-env-1v2q37ui/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 355, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/kb/dq9v0bpn67gb64fkjtrvs38c0000gn/T/pip-build-env-1v2q37ui/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 325, in _get_build_requires
self.run_setup()
File "/private/var/folders/kb/dq9v0bpn67gb64fkjtrvs38c0000gn/T/pip-build-env-1v2q37ui/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 507, in run_setup
super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
File "/private/var/folders/kb/dq9v0bpn67gb64fkjtrvs38c0000gn/T/pip-build-env-1v2q37ui/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 341, in run_setup
exec(code, locals())
File "", line 10, 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 wheel 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 "/Users/csv610/Projects/CompVis/ObjectDetection/AutoDistill/DETIC/autodistill-detic/genlabels.py", line 1, in
from autodistill_detic import DETIC
File "/Users/csv610/Projects/CompVis/ObjectDetection/AutoDistill/DETIC/autodistill-detic/autodistill_detic/init.py", line 1, in
from autodistill_detic.detic_model import DETIC
File "/Users/csv610/Projects/CompVis/ObjectDetection/AutoDistill/DETIC/autodistill-detic/autodistill_detic/detic_model.py", line 96, in
from detectron2.config import get_cfg
ModuleNotFoundError: No module named 'detectron2'
(autodistillenv) $