syntax-video-infer / engine /__init__.py
MesserMMP's picture
Rebuild CardioSyntax with custom bilingual UI and verified inference
1024e04 verified
Raw History Blame Contribute Delete
731 Bytes
"""Pinned, lazy inference API. Importing this module never loads a model."""
from .dicom import InferenceError, inspect, read_video
from .weights import status
def classify(paths, progress=None):
from .runtime import classify as run
return run(paths, progress=progress)
def infer(left_paths, right_paths, progress=None):
from .runtime import infer as run
return run(left_paths, right_paths, progress=progress)
def preprocess(video, *, classifier=False):
from .preprocessing import preprocess_classifier, preprocess_score
return preprocess_classifier(video) if classifier else preprocess_score(video)
__all__ = ["InferenceError", "inspect", "read_video", "preprocess", "classify", "infer", "status"]