Spaces:
No application file
No application file
File size: 1,033 Bytes
ba8d952 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
import cv2.typing
import typing
# Enumerations
TraitAs_TENSOR: int
TRAIT_AS_TENSOR: int
TraitAs_IMAGE: int
TRAIT_AS_IMAGE: int
TraitAs = int
"""One of [TraitAs_TENSOR, TRAIT_AS_TENSOR, TraitAs_IMAGE, TRAIT_AS_IMAGE]"""
Sync: int
SYNC: int
Async: int
ASYNC: int
InferMode = int
"""One of [Sync, SYNC, Async, ASYNC]"""
# Classes
class PyParams:
# Functions
@typing.overload
def __init__(self) -> None: ...
@typing.overload
def __init__(self, tag: str, model: str, weights: str, device: str) -> None: ...
@typing.overload
def __init__(self, tag: str, model: str, device: str) -> None: ...
def constInput(self, layer_name: str, data: cv2.typing.MatLike, hint: TraitAs = ...) -> PyParams: ...
def cfgNumRequests(self, nireq: int) -> PyParams: ...
def cfgBatchSize(self, size: int) -> PyParams: ...
# Functions
@typing.overload
def params(tag: str, model: str, weights: str, device: str) -> PyParams: ...
@typing.overload
def params(tag: str, model: str, device: str) -> PyParams: ...
|