Skip to content

Latest commit

 

History

History
35 lines (30 loc) · 1.27 KB

README.md

File metadata and controls

35 lines (30 loc) · 1.27 KB

VisionChain

Framework to support common preprocessing and postprocessing steps, along with computer vision heuristics built with opencv, and voting systems ontop of those heuristic-model combos.

Could add a hyperparameter optimizer for things like setting the confidence at which to intervene.

Constraining artificial stupidity and giving AI some hand rails.

To Do:

model = vc.ModelChain(
    [
        vc.ConditionalDetector(
            model=yolov8,
        ),
        vc.ConditionalDetector(
            model=grounded_sam, 
            frame_level_condition = lambda predictions: any([score < 0.5 for score in predictions.scores]),
            prediction_level_condition = lambda pred: 'cat' in pred.label,
        ),
        vc.ConditionalClassifier(
            model=nn_classifier,
            prediction_level_condition = lambda pred: 'dog' in pred.label,
        ),
    ],
    log_level = 'verbose',
)