o
    ois                     @   s   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 zddlmZ W n	 ey3   Y nw dadZd	d
 Zdd Zdd Zdd Zdd Zdd ZdS )    )ModuleN   )	extension)_meta_registrationsdatasetsiomodelsops
transformsutils)__version__PILpyavc                 C   s    | dvrt d|  d| adS )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backend r   ^/var/www/addictedbytheproject.nl/epg/venv/lib/python3.10/site-packages/torchvision/__init__.pyset_image_backend   s   
r   c                   C      t S )z:
    Gets the name of the package used to load images
    )r   r   r   r   r   get_image_backend$   s   r   c                 C   s   dS )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   r   r   r   set_video_backend+   s   	r   c                   C   r   )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   r   get_video_backend7   s   r   c                   C   s
   t j S N)torch_C_get_tracing_stater   r   r   r   _is_tracingB   s   
r    c                   C   s   d S r   r   r   r   r   r   disable_beta_transforms_warningF   s   r!   )modulefinderr   r    r   torchvisionr   r   r   r   r	   r
   r   versionr   ImportErrorr   r   r   r   r   r   r    r!   r   r   r   r   <module>   s"    $