File size: 731 Bytes
1024e04
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""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"]