Source code for perceptionmetrics.models.onnx
from perceptionmetrics.models.segmentation import ImageSegmentationModel
[docs]
class OnnxImageSegmentationModel(ImageSegmentationModel):
def __init__(self, model, model_type, model_cfg, ontology_fname, model_fname):
super().__init__(
model=model,
model_type=model_type,
model_cfg=model_cfg,
ontology_fname=ontology_fname,
model_fname=model_fname,
)