Ë
    ÒPh(  ã                   ó<   — d dl mZmZ d dlZd dlmZ  G d„ d«      Zy)é    )ÚListÚTupleN)ÚTensorc                   óX   — e Zd ZdZdedeeeef      ddfd„Zde	j                  dd fd„Zy)	Ú	ImageListaq  
    Structure that holds a list of images (of possibly
    varying sizes) as a single tensor.
    This works by padding the images to the same size,
    and storing in a field the original sizes of each image

    Args:
        tensors (tensor): Tensor containing images.
        image_sizes (list[tuple[int, int]]): List of Tuples each containing size of images.
    ÚtensorsÚimage_sizesÚreturnNc                 ó    — || _         || _        y ©N)r   r	   )Úselfr   r	   s      úrC:\Users\daisl\Desktop\realtime-object-detection\venv\Lib\site-packages\torchvision/models/detection/image_list.pyÚ__init__zImageList.__init__   s   € ØˆŒØ&ˆÕó    Údevicec                 ód   — | j                   j                  |«      }t        || j                  «      S r   )r   Útor   r	   )r   r   Úcast_tensors      r   r   zImageList.to   s'   € Ø—l‘l—o‘o fÓ-ˆÜ˜ d×&6Ñ&6Ó7Ð7r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   Úintr   Útorchr   r   © r   r   r   r      sE   „ ñ	ð' ð '°T¸%ÀÀSÀ¹/Ñ5Jð 'Ètó 'ð8˜Ÿ™ð 8¨+ô 8r   r   )Útypingr   r   r   r   r   r   r   r   Ú<module>r      s   ðß ã Ý ÷8ò 8r   