
    h                        S SK r S SKrS SKJr  S SKrSSKJr  S SKJrJ	r	J
r
JrJrJrJr   SSKJr  \(       d  \ R$                  R'                  \ R$                  R)                  \5      5      \ R$                  R-                  \ R$                  R)                  \ R.                  " 5       5      S5      :X  a2  Sr\R2                  " \R5                  \ R.                  " 5       5      5        S	qS
qS rS rS rS r S r!S r"g! \ a     Nf = f)    N)Module   )_HAS_OPS)_meta_registrationsdatasetsiomodelsops
transformsutils)__version__torchvisionzYou 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                 2    U S;  a  [        SU  S35      eU qg)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    L/var/www/auris/envauris/lib/python3.13/site-packages/torchvision/__init__.pyset_image_backendr   "   s(     )),WI5XYZZN    c                      [         $ )z2
Gets the name of the package used to load images
)r    r   r   get_image_backendr   1   s
     r   c                     U S;  a  [        SU -  5      eU S:X  a"  [        R                  (       d  Sn[        U5      eU S:X  a"  [        R                  (       d  Sn[        U5      eU qg)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dgnnoo. )B)Bu7##	F	2#<#<87## r   c                      [         $ )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                  >    [         R                  R                  5       $ N)torch_C_get_tracing_stater   r   r   _is_tracingr,   b   s    88&&((r   c                      g 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	$ BGGOOBGG$4$4X$>?277<<GGRYY[!=D 	K 
 MM'..-.!>)	q  		s   C< <DD