INNER CODE UNIT · Python
load_model
BrokenSource/DepthFlow · depthflow/estimators/__init__.py:51
def load_model(self) -> None:
...
@abstractmethod
def _estimate(self, image: np.ndarray) -> np.ndarray:
"""Proper estimation logic"""
...
def _post(self, depth: np.ndarray) -> np.ndarray:
"""Post-processing to mitigate artifacts"""
return depth
@staticmethod
def normalize(
array: np.ndarray,
dtype: DTypeLike = np.float32,
lerp: DTypeLike = np.float64,
min: float | None = None,