Skip to content

Framework to support stitching together multiple models to create effective Computer Vision systems, as accurate or fast as you need them to be.

License

Notifications You must be signed in to change notification settings

GeorgePearse/VisionChain

Repository files navigation

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',
)

About

Framework to support stitching together multiple models to create effective Computer Vision systems, as accurate or fast as you need them to be.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published