Closed artyaltanzaya closed 1 year ago
removed installation commands!
UPDATE: now install works but using the package returns further errors! Will take a look at it and fix it!
`---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Cell In[4], line 1
----> 1 base_model = DETIC(ontology=CaptionOntology({"airplane": "airplane"}))
20 def setup_cfg(args):
---> 21 from centernet.config import add_centernet_config
22 from detic.config import add_detic_config
23 cfg = get_cfg()
ModuleNotFoundError: No module named 'centernet'`
@artyaltanzaya Can you share the code you are running?
To reproduce the bug try running
base_model = DETIC( ontology=CaptionOntology( { "person": "person", } ) )
after installation
FYI, I fixed it on the new commit and now able to run the model!
Changes made
In
setup.py
added CustomInstall classAutodistillDetic
for installing dependencies when building. Some minor typo error. Install_detic() function is not removed or modified in thedetic_model.py
Tests
Ran in google colab with
pip install .
and in conda environment in Mac withpip install .
and compared the result withpip3 install autodistill-detic
in different conda environment.pip3 install autodistill-detic
returns error such as "no module named supervision, autodistill, or detectron2"With new modified setup.py using
pip install .
, the errors are fixed.Please test for further potential errors.