Spaces:
Running
Running
File size: 1,165 Bytes
b5d3a91 | 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 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | # pylint: disable=unnecessary-pass
class ImgNotFound(ValueError):
"""Raised when the input image is not found or cannot be loaded."""
pass
class PathNotFound(ValueError):
"""Raised when the input path is not found."""
pass
class FaceNotDetected(ValueError):
"""Raised when no face is detected in the input image."""
pass
class SpoofDetected(ValueError):
"""Raised when a spoofed face is detected in the input image."""
pass
class EmptyDatasource(ValueError):
"""Raised when the provided data source is empty."""
pass
class DimensionMismatchError(ValueError):
"""Raised when the dimensions of the input do not match the expected dimensions."""
pass
class InvalidEmbeddingsShapeError(ValueError):
"""Raised when the shape of the embeddings is invalid."""
pass
class DataTypeError(ValueError):
"""Raised when the input data type is incorrect."""
pass
class UnimplementedError(ValueError):
"""Raised when a requested feature is not implemented."""
pass
class DuplicateEntryError(ValueError):
"""Raised when a duplicate entry is found in the database."""
pass
|