GitHub Actions
Deploy to Hugging Face Space: product-image-update-port-10
18faf97
# ----------------------------------------------------------------------
# Import Utilities
# ----------------------------------------------------------------------
from .logging_utils import (
setup_logging, get_system_info, cleanup_memory,
measure_performance, LOG_LEVEL_MAP, EMOJI_MAP,
force_gpu_memory_update
)
from .context_utils import (
ProcessingContext, ProcessingError, ProcessingWarning,
ProcessedImage, ProcessingResponse, BoundingBox, Detection,
create_pipeline_step, validate_image, resize_image_aspect_ratio,
custom_dumps, safe_model_inference, ModelNotLoadedException,
PipelineExecutionError, ConfigurationError, ModelInferenceError,
ImageProcessingError, DetectRequest
)
__all__ = [
'setup_logging', 'get_system_info', 'cleanup_memory',
'measure_performance', 'LOG_LEVEL_MAP', 'EMOJI_MAP',
'force_gpu_memory_update',
'ProcessingContext', 'ProcessingError', 'ProcessingWarning',
'ProcessedImage', 'ProcessingResponse', 'BoundingBox', 'Detection',
'create_pipeline_step', 'validate_image', 'resize_image_aspect_ratio',
'custom_dumps', 'safe_model_inference', 'ModelNotLoadedException',
'PipelineExecutionError', 'ConfigurationError', 'ModelInferenceError',
'ImageProcessingError', 'DetectRequest'
]