autodistill / autodistill-clip

CLIP module for use with Autodistill.
https://docs.autodistill.com
MIT License
8 stars 1 forks source link

When importing CLIP getting module 'supervision' has no attribute 'Classifications' error #2

Closed AhmadPhazeRo closed 10 months ago

AhmadPhazeRo commented 10 months ago

after installation via Colab and after importing:

from autodistill_clip import CLIP

getting this error:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
[<ipython-input-16-f20169b87f16>](https://localhost:8080/#) in <cell line: 3>()
      1 from autodistill_grounded_sam import GroundedSAM
      2 from autodistill_grounding_dino import GroundingDINO
----> 3 from autodistill_clip import CLIP
      4 

4 frames
[/usr/local/lib/python3.10/dist-packages/autodistill/classification/classification_base_model.py](https://localhost:8080/#) in ClassificationBaseModel()
     22 
     23     @abstractmethod
---> 24     def predict(self, input: str) -> sv.Classifications:
     25         """
     26         Run inference on the model.

AttributeError: module 'supervision' has no attribute 'Classifications'
capjamesg commented 10 months ago

What version of supervision are you running? Can you run pip install --upgrade supervision and try again?

AhmadPhazeRo commented 10 months ago

What version of supervision are you running? Can you run pip install --upgrade supervision and try again?

it was 0.9.0 upgrading resolved the issue, thank you