Ë
    þÍ:jÎ  ã                   ó  — d dl Z d dlZd dlmZ d dlZddlmZ d dlmZm	Z	m
Z
mZmZmZmZ 	 ddlmZ es«e j$                  j'                  e j$                  j)                  e«      «      e j$                  j-                  e j$                  j)                   e j.                  «       «      d«      k(  r2dZ ej2                  ej5                   e j.                  «       «      «       d	ad
ad„ Zd„ Zd„ Zd„ Z d„ Z!d„ Z"y# e$ r Y ŒËw xY w)é    N)ÚModuleé   )Ú_HAS_OPS)Ú_meta_registrationsÚdatasetsÚioÚmodelsÚopsÚ
transformsÚutils)Ú__version__ÚtorchvisionzÁYou are importing torchvision within its own root folder ({}). This is not expected to work and may give errors. Please exit the torchvision project source and relaunch your python interpreter.ÚPILÚpyavc                 ó.   — | dvrt        d| › d�«      ‚| ay)a*  
    Specifies the package used to load images.

    Args:
        backend (string): Name of the image backend. one of {'PIL', 'accimage'}.
            The :mod:`accimage` package uses the Intel IPP library. It is
            generally faster than PIL, but does not support as many operations.
    )r   ÚaccimagezInvalid backend 'z#'. Options are 'PIL' and 'accimage'N)Ú
ValueErrorÚ_image_backend)Úbackends    úi/home/mcse/projects/srt_converter/srt-converter-venv/lib/python3.12/site-packages/torchvision/__init__.pyÚset_image_backendr   "   s(   € ð Ð)Ñ)ÜÐ,¨W¨IÐ5XÐYÓZÐZØ�Nó    c                  ó   — t         S )z:
    Gets the name of the package used to load images
    )r   © r   r   Úget_image_backendr   1   s
   € ô Ðr   c                 ó´   — | dvrt        d| z  «      ‚| dk(  rt        j                  sd}t        |«      ‚| dk(  rt        j                  sd}t        |«      ‚| ay)aÓ  
    Specifies the package used to decode videos.

    Args:
        backend (string): Name of the video backend. one of {'pyav', 'video_reader'}.
            The :mod:`pyav` package uses the 3rd party PyAv library. It is a Pythonic
            binding for the FFmpeg libraries.
            The :mod:`video_reader` package includes a native C++ implementation on
            top of FFMPEG libraries, and a python API of TorchScript custom operator.
            It generally decodes faster than :mod:`pyav`, but is perhaps less robust.

    .. note::
        Building with FFMPEG is disabled by default in the latest `main`. If you want to use the 'video_reader'
        backend, please compile torchvision from source.
    )r   Úvideo_readerÚcudazIInvalid video backend '%s'. Options are 'pyav', 'video_reader' and 'cuda'r   zavideo_reader video backend is not available. Please compile torchvision from source and try againr   z$cuda video backend is not available.N)r   r   Ú_HAS_CPU_VIDEO_DECODERÚRuntimeErrorÚ_HAS_GPU_VIDEO_DECODERÚ_video_backend)r   Úmessages     r   Úset_video_backendr$   8   sd   € ð" Ð6Ñ6ÜÐdÐgnÑnÓoÐoØ�.Ò ¬×)BÒ)BàuˆÜ˜7Ó#Ð#Ø	�FÒ	¤2×#<Ò#<à8ˆÜ˜7Ó#Ð#à ‰r   c                  ó   — t         S )z¢
    Returns the currently active video backend used to decode videos.

    Returns:
        str: Name of the video backend. one of {'pyav', 'video_reader'}.
    )r"   r   r   r   Úget_video_backendr&   W   s
   € ô Ðr   c                  ó>   — t         j                  j                  «       S ©N)ÚtorchÚ_CÚ_get_tracing_stater   r   r   Ú_is_tracingr,   b   s   € Ü�8‰8×&Ñ&Ó(Ð(r   c                   ó   — y r(   r   r   r   r   Údisable_beta_transforms_warningr.   f   s   € ð 	r   )#ÚosÚwarningsÚmodulefinderr   r)   Ú	extensionr   r   r   r   r   r	   r
   r   r   Úversionr   ÚImportErrorÚpathÚdirnameÚrealpathÚ__file__ÚjoinÚgetcwdr#   ÚwarnÚformatr   r"   r   r   r$   r&   r,   r.   r   r   r   ú<module>r=      sä   ðÛ 	Û Ý ã õ  ß Y× YÑ Yð	Ý$ñ �B—G‘G—O‘O B§G¡G×$4Ñ$4°XÓ$>Ó?À2Ç7Á7Ç<Á<Ø‡G�G×Ñ�Y�R—Y‘Y“[Ó! =óDò ð	Kð ð
 €H‡M�M�'—.‘.  §¡£Ó-Ô.à€à€òòò!ò>ò)ó	øðq ò 	Ùð	ús   ¬C6 Ã6C>Ã=C>