─░├žeri─če ge├ž

Referans i├žin ultralytics/utils/errors.py

Not

Bu dosya https://github.com/ultralytics/ultralytics/blob/main/ ultralytics/utils/errors .py adresinde mevcuttur. Bir sorun tespit ederseniz l├╝tfen bir ├çekme ─░ste─či ­čŤá´ŞĆ ile katk─▒da bulunarak d├╝zeltilmesine yard─▒mc─▒ olun. Te┼čekk├╝rler ­čÖĆ!



ultralytics.utils.errors.HUBModelError

├ťsler: Exception

Ultralytics YOLO adresinde model getirme ile ilgili hatalar─▒ i┼člemek i├žin ├Âzel istisna s─▒n─▒f─▒.

Bu istisna, istenen bir model bulunamad─▒─č─▒nda veya al─▒namad─▒─č─▒nda ortaya ├ž─▒kar. Mesaj ayr─▒ca daha iyi bir kullan─▒c─▒ deneyimi i├žin emojileri i├žerecek ┼čekilde i┼členir.

Nitelikler:

─░sim Tip A├ž─▒klama
message str

─░stisna ortaya ├ž─▒kt─▒─č─▒nda g├Âr├╝nt├╝lenen hata mesaj─▒.

Not

Mesaj, 'ultralytics.utils' paketindeki 'emojis' i┼člevi arac─▒l─▒─č─▒yla otomatik olarak i┼členir.

Kaynak kodu ultralytics/utils/errors.py
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))

__init__(message='Model not found. Please check model URL and try again.')

Bir model bulunamad─▒─č─▒nda kullan─▒lmak ├╝zere bir istisna olu┼čturun.

Kaynak kodu ultralytics/utils/errors.py
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))





Created 2023-11-12, Updated 2024-06-02
Authors: glenn-jocher (5), Burhan-Q (1)