generated from dopt-python/py311
change type signature
This commit is contained in:
parent
554b14050c
commit
09818f79e6
@ -2,10 +2,19 @@ import dataclasses as dc
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import TypeAlias, TypedDict
|
from typing import TypeAlias, TypedDict
|
||||||
|
|
||||||
|
import numpy as np
|
||||||
import numpy.typing as npt
|
import numpy.typing as npt
|
||||||
|
|
||||||
Box: TypeAlias = tuple[tuple[float, float], tuple[float, float], float]
|
Box: TypeAlias = tuple[tuple[float, float], tuple[float, float], float]
|
||||||
InferenceResult: TypeAlias = tuple[npt.NDArray, npt.NDArray, float, bool]
|
CsvData: TypeAlias = list[str | int]
|
||||||
|
|
||||||
|
|
||||||
|
@dc.dataclass(kw_only=True, slots=True)
|
||||||
|
class InferenceResult:
|
||||||
|
img: npt.NDArray[np.uint8]
|
||||||
|
anomaly_map_resized: npt.NDArray
|
||||||
|
anomaly_score: float
|
||||||
|
anomaly_label: bool
|
||||||
|
|
||||||
|
|
||||||
class SensorImages(TypedDict):
|
class SensorImages(TypedDict):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user