mirror of
https://github.com/THU-MIG/yolov10.git
synced 2025-05-24 06:14:55 +08:00

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
11 lines
312 B
Python
11 lines
312 B
Python
# Ultralytics YOLO 🚀, AGPL-3.0 license
|
|
|
|
from ultralytics.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))
|