Spaces:
Build error
Build error
Download tracking/ultralytics/utils/errors.py from VerokeAI/Object_tracking_boxmot: direct link, hf CLI and curl.
- Browser
- Download file 844 Bytes
-
https://huggingface.co/spaces/VerokeAI/Object_tracking_boxmot/resolve/main/tracking/ultralytics/utils/errors.py
- Command line
-
hf download hf://spaces/VerokeAI/Object_tracking_boxmot/tracking/ultralytics/utils/errors.py
-
curl -L -o errors.py https://huggingface.co/spaces/VerokeAI/Object_tracking_boxmot/resolve/main/tracking/ultralytics/utils/errors.py
844 Bytes
| # Ultralytics ๐ AGPL-3.0 License - https://ultralytics.com/license | |
| from ultralytics.utils import emojis | |
| class HUBModelError(Exception): | |
| """ | |
| Custom exception class for handling errors related to model fetching in Ultralytics YOLO. | |
| This exception is raised when a requested model is not found or cannot be retrieved. | |
| The message is also processed to include emojis for better user experience. | |
| Attributes: | |
| message (str): The error message displayed when the exception is raised. | |
| Note: | |
| The message is automatically processed through the 'emojis' function from the 'ultralytics.utils' package. | |
| """ | |
| def __init__(self, message="Model not found. Please check model URL and try again."): | |
| """Create an exception for when a model is not found.""" | |
| super().__init__(emojis(message)) | |