Skip to content

Loader Factory

app.infrastructure.detection.model.mtcnn_torch.loader_factory

View source code

Factory for loading TorchVision detection model with pretrained weights.

See Also

Layer: Infrastructure. Context: Implements concrete processing and I/O behind application-facing contracts.

MTCNNTorchModelLoaderFactory

Factory for loading MTCNN detection model.

Layer: Infrastructure. Context: Implements concrete processing or I/O behind application-facing contracts.

create() -> MTCNN staticmethod

Load MTCNN model.

RETURNS DESCRIPTION
MTCNN

MTCNN Model instance

RAISES DESCRIPTION
DetectionModelError

If model loading fails.