Spaces:
Sleeping
Sleeping
Download ultralytics/yolo/utils/errors.py from AkashDataScience/FastSAM: direct link, hf CLI and curl.
- Browser
- Download file 317 Bytes
-
https://huggingface.co/spaces/AkashDataScience/FastSAM/resolve/main/ultralytics/yolo/utils/errors.py
- Command line
-
hf download hf://spaces/AkashDataScience/FastSAM/ultralytics/yolo/utils/errors.py
-
curl -L -o errors.py https://huggingface.co/spaces/AkashDataScience/FastSAM/resolve/main/ultralytics/yolo/utils/errors.py
317 Bytes
| # Ultralytics YOLO ๐, AGPL-3.0 license | |
| from ultralytics.yolo.utils import emojis | |
| class HUBModelError(Exception): | |
| 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)) | |