Your ad could be here - Reach CV/ML engineers
Contact for advertisingalbumentations.core.hub_mixin
This module provides mixin functionality for the Albumentations library. It includes utility functions and classes to enhance the core capabilities.
Members
- classHubMixin
- functionrequire_huggingface_hub
HubMixinclass
HubMixin()
Mixin class for Hugging Face Hub integration. This class provides functionality for saving and loading transforms to/from the Hugging Face Hub. It enables serialization, deserialization, and sharing of transform configurations.
require_huggingface_hubfunction
require_huggingface_hub(
func: Callable[..., Any]
)
Decorator to require huggingface_hub. This decorator ensures that the `huggingface_hub` package is installed before executing the decorated function. If the package is not installed, it raises an ImportError with instructions on how to install it.
Parameters
Name | Type | Default | Description |
---|---|---|---|
func | Callable[..., Any] | - | The function to decorate. |
Returns
- Callable[..., Any]: The decorated function.