
    9j                         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mZ 	 ddlmZ dadZd	 Zd
 Zd Zd Zd Zd Zy# e$ r Y w xY w)    )ModuleN   )	extension)_autograd_registrations_meta_registrationsdatasetsiomodelsops
transformsutils)__version__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    T/media/conek/DATA/Code/OCR/venv/lib/python3.12/site-packages/torchvision/__init__.pyset_image_backendr      s(     )),WI5XYZZN    c                      t         S )z:
    Gets the name of the package used to load images
    )r    r   r   get_image_backendr   -   s
     r   c                      y)a  
    Specifies the package used to decode videos.

    Args:
        backend (string): Name of the video backend. Only 'pyav' is supported.
            The :mod:`pyav` package uses the 3rd party PyAv library. It is a Pythonic
            binding for the FFmpeg libraries.
    Nr   r   s    r   set_video_backendr   4   s     	r   c                      t         S )z
    Returns the currently active video backend used to decode videos.

    Returns:
        str: Name of the video backend. Currently only 'pyav' is supported.
    )_video_backendr   r   r   get_video_backendr!   @   s
     r   c                  >    t         j                  j                         S N)torch_C_get_tracing_stater   r   r   _is_tracingr'   K   s    88&&((r   c                       y r#   r   r   r   r   disable_beta_transforms_warningr)   O   s     	r   )modulefinderr   r$    r   torchvisionr   r   r   r	   r
   r   r   r   versionr   ImportErrorr   r    r   r   r   r!   r'   r)   r   r   r   <module>r/      sf      	 	 		$
 		)	u  		s   A A
A