The cvias module is a computer vision inference and server package for Coargus CV project.
- Development
pip install -e .["dev","test"]
- Production
pip install -e .
- FasterRCNN Available model list in the class script
from cvias.common.utils_mmdet import install_dependencies
install_dependencies()
from cvias.image.detection.object.open_vocabulary.faster_rcnn import FasterRCNN
model_list = FasterRCNN.available_models()
model = FasterRCNN(
model_name="<select model from the list>",
explicit_checkpoint_path=None,
gpu_number=0,
)
model.detect(image)
from cvias.image.detection.object.yolo import Yolo
model_list = Yolo.available_models()
model = Yolo(
model_name="<select model from the list>",
explicit_checkpoint_path=None,
gpu_number=0
)
model.detect(image, ["person"])
from cvias.image.detection.object.open_vocabulary.yolo_world import YoloWorld
model_list = YoloWorld.available_models()
model = YoloWorld(
model_name="<select model from the list>",
explicit_checkpoint_path=None,
gpu_number=0,
)
model.detect(image)