autodistill / autodistill-codet Goto Github PK
View Code? Open in Web Editor NEWCoDet base model for use with Autodistill.
Home Page: https://docs.autodistill.com
License: Apache License 2.0
CoDet base model for use with Autodistill.
Home Page: https://docs.autodistill.com
License: Apache License 2.0
Hello,
I am trying to install the CO-Det implementation with Autodistill. I had installed autodistill with the given command-line in the the documentation:
pip install autodistill autodistill-grounded-sam autodistill-yolov8
I am running the following demo script:
from autodistill_codet import CoDet
from autodistill.detection import CaptionOntology
from autodistill.utils import plot
import cv2
base_model = CoDet(ontology=CaptionOntology({"person": "person"}))
image_path = "../my-img.jpg"
predictions = base_model.predict(image_path)
image = cv2.imread(image_path)
plot(image=image, detections=predictions, classes=base_model.class_names)
I am getting the following error:
Traceback (most recent call last):
File "/home/xx/Desktop/auto-labeling-models-evaluation/codet/preview.py", line 1, in <module>
from autodistill_codet import CoDet
File "/home/xx/miniconda3/envs/autodistill/lib/python3.11/site-packages/autodistill_codet/__init__.py", line 1, in <module>
from autodistill_codet.codet_model import CoDet
File "/home/xx/miniconda3/envs/autodistill/lib/python3.11/site-packages/autodistill_codet/codet_model.py", line 86, in <module>
import detectron2.utils.comm as comm
ModuleNotFoundError: No module named 'detectron2'
I already tried to install detectron2
separately but the CO-Det install overwrite it anyaway.
Thank you for your help,
Rivoks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.