+
     °³jI  ã                   ó`   € ^ RI Ht ^ RIHtHtHtHt ^RIHtH	t	 ^RI
HtHt  ! R R]	4      tR# )é    )ÚPath)ÚAnyÚCallableÚOptionalÚUnion)Údefault_loaderÚImageFolder)Údownload_and_extract_archiveÚverify_str_argc                   ó|   a a€ ] tR t^t oRtRtRtRRRR]3V3R lV 3R llltV3R	 lR
 lt	V3R lR lt
RtVtV ;t# )Ú
Country211a  `The Country211 Data Set <https://github.com/openai/CLIP/blob/main/data/country211.md>`_ from OpenAI.

This dataset was built by filtering the images from the YFCC100m dataset
that have GPS coordinate corresponding to a ISO-3166 country code. The
dataset is balanced by sampling 150 train images, 50 validation images, and
100 test images for each country.

Args:
    root (str or ``pathlib.Path``): Root directory of the dataset.
    split (string, optional): The dataset split, supports ``"train"`` (default), ``"valid"`` and ``"test"``.
    transform (callable, optional): A function/transform that takes in a PIL image or torch.Tensor, depends on the given loader,
        and returns a transformed version. E.g, ``transforms.RandomCrop``
    target_transform (callable, optional): A function/transform that takes in the target and transforms it.
    download (bool, optional): If True, downloads the dataset from the internet and puts it into
        ``root/country211/``. If dataset is already downloaded, it is not downloaded again.
    loader (callable, optional): A function to load an image given its path.
        By default, it uses PIL as its image loader, but users could also pass in
        ``torchvision.io.decode_image`` for decoding image data into tensors directly.
z;https://openaipublic.azureedge.net/clip/data/country211.tgzÚ 84988d7644798601126c29e9877aab6aÚtrainNFc                ó�   <€ V ^8„  d   QhRS[ S[S[3,          RS[RS[S[,          RS[S[,          RS[RS[S[.S[3,          RR/# )	é   ÚrootÚsplitÚ	transformÚtarget_transformÚdownloadÚloaderÚreturnN)r   Ústrr   r   r   Úboolr   )ÚformatÚ__classdict__s   "€Ú`/home/luca/screen-checking/.venv/lib/python3.14/site-packages/torchvision/datasets/country211.pyÚ__annotate__ÚCountry211.__annotate__    so   ø€ ÷ ñ á‘C™�IÕðñ ðñ ™HÕ%ð	ñ
 #¡8Õ,ðñ ðñ ™#˜¡˜Õ$ðð 
ñó    c                óš  <€ \        VR R4      V n        \        V4      P                  4       p\	        V4      V n        VR,          V n        V'       d   V P                  4        V P                  4       '       g   \        R4      h\        SV `-  \	        V P                  V P                  ,          4      VVVR7       \	        V4      V n        R# )r   Ú
country211z;Dataset not found. You can use download=True to download it)r   r   r   N)r   ÚvalidÚtest)r   Ú_splitr   Ú
expanduserr   r   Ú_base_folderÚ	_downloadÚ_check_existsÚRuntimeErrorÚsuperÚ__init__)Úselfr   r   r   r   r   r   Ú	__class__s   &&&&&&&€r   r,   ÚCountry211.__init__    s§   ø€ ô % U¨GÐ5OÓPˆŒä�D‹z×$Ñ$Ó&ˆÜ˜“IˆŒ	Ø  <Õ/ˆÔçØ�N‰NÔà×!Ñ!×#Ò#ÜÐ\Ó]Ð]ä‰ÑÜ�×!Ñ! D§K¡KÕ/Ó0ØØ-Øð	 	ô 	
ô ˜“IˆŽ	r    c                ó    <€ V ^8„  d   QhRS[ /# )r   r   )r   )r   r   s   "€r   r   r   =   s   ø€ ÷ Iñ I™tñ Ir    c                óz   € V P                   P                  4       ;'       d    V P                   P                  4       # )N)r'   ÚexistsÚis_dir©r-   s   &r   r)   ÚCountry211._check_exists=   s.   € Ø× Ñ ×'Ñ'Ó)×HÐH¨d×.?Ñ.?×.FÑ.FÓ.HÐHr    c                ó   <€ V ^8„  d   QhRR/# )r   r   N© )r   r   s   "€r   r   r   @   s   ø€ ÷ Xñ X˜4ñ Xr    c                óŽ   € V P                  4       '       d   R # \        V P                  V P                  V P                  R7       R # )N)Údownload_rootÚmd5)r)   r
   Ú_URLr   Ú_MD5r4   s   &r   r(   ÚCountry211._download@   s,   € Ø×Ñ×ÒÙÜ$ T§Y¡Y¸d¿i¹iÈTÏYÉY×Wr    )r'   r%   r   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r;   r<   r   r,   r)   r(   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r.   r   s   @@r   r   r      sP   ù‡ € ñð( I€DØ-€Dð
 Ø(,Ø/3ØØ'5÷õ ÷:Ið I÷X÷ Xð Xr    r   N)Úpathlibr   Útypingr   r   r   r   Úfolderr   r	   Úutilsr
   r   r   r7   r    r   Ú<module>rJ      s"   ðÝ ß 1Ó 1ç /ß ?ô;X�ö ;Xr    