+
     °³jY*  ã                   óŒ  € ^ RI t ^ RIHt ^ RIHtHtHt ^ RIt^ RIH	t	 ^ RI
H	u Ht ^ RIHt ^ RIHt ^ RIHtHt ^RIHt ^RIHtHtHt ^R	IHt ^R
IHtHt ^RIH t H!t!H"t" . R*Ot# ! R R]PH                  4      t% ! R R]PL                  4      t' ! R R]PP                  4      t) ! R R]PT                  4      t+ ! R R]PX                  4      t- ! R R]P\                  4      t/ ! R R]P`                  4      t1 ! R R]Pd                  4      t3 ! R R]4      t4]! RR7      ]! R R! 3R"7      R#RR$R%R&R'/R( R) ll4       4       t5R# )+é    N)Úpartial)ÚAnyÚOptionalÚUnion©ÚTensor)Ú	inception)ÚInception_V3_WeightsÚInceptionOutputs)ÚImageClassification)Úregister_modelÚWeightsÚWeightsEnum)Ú_IMAGENET_CATEGORIES)Ú_ovewrite_named_paramÚhandle_legacy_interface)Ú_fuse_modulesÚ_replace_reluÚquantize_modelÚQuantizableInception3ÚInception_V3_QuantizedWeightsc                   óf   a a€ ] tR t^t oV3R lV 3R lltV3R lR ltRV3R lR lltRtVtV ;t	# )	ÚQuantizableBasicConv2dc                ó*   <€ V ^8„  d   QhRS[ RS[ RR/# ©é   ÚargsÚkwargsÚreturnN©r   )ÚformatÚ__classdict__s   "€Új/home/luca/screen-checking/.venv/lib/python3.14/site-packages/torchvision/models/quantization/inception.pyÚ__annotate__Ú#QuantizableBasicConv2d.__annotate__   s"   ø€ ÷ ñ ™cð ©Sð °Tñ ó    c                ó\   <€ \         SV `  ! V/ VB  \        P                  ! 4       V n        R # ©N)ÚsuperÚ__init__ÚnnÚReLUÚrelu©Úselfr   r   Ú	__class__s   &*,€r#   r*   ÚQuantizableBasicConv2d.__init__   s"   ø€ Ü‰Ò˜$Ð) &Ò)Ü—G’G“IˆŽ	r&   c                ó&   <€ V ^8„  d   QhRS[ RS[ /# ©r   Úxr   r   )r!   r"   s   "€r#   r$   r%      s   ø€ ÷ ñ ™ð ¡Fñ r&   c                ól   € V P                  V4      pV P                  V4      pV P                  V4      pV# r(   ©ÚconvÚbnr-   )r/   r4   s   &&r#   ÚforwardÚQuantizableBasicConv2d.forward   s.   € Ø�I‰I�a‹LˆØ�G‰G�A‹JˆØ�I‰I�a‹LˆØˆr&   c                ó4   <€ V ^8„  d   QhRS[ S[,          RR/# ©r   Úis_qatr   N©r   Úbool)r!   r"   s   "€r#   r$   r%   %   s#   ø€ ÷ Jñ J¡©$¥ð J¸4ñ Jr&   c                ó(   € \        V . ROVRR7       R# )r7   T)ÚinplaceNr6   )r   )r/   r=   s   &&r#   Ú
fuse_modelÚ!QuantizableBasicConv2d.fuse_model%   s   € Ü�dÒ2°FÀD×Ir&   )r-   r(   ©
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r*   r9   rB   Ú__static_attributes__Ú__classdictcell__Ú__classcell__©r0   r"   s   @@r#   r   r      s+   ù‡ € ÷ó ÷ð ÷J÷ Jò Jr&   r   c                   óP   a a€ ] tR t^)t oV3R lV 3R lltV3R lR ltRtVtV ;t# )ÚQuantizableInceptionAc                ó*   <€ V ^8„  d   QhRS[ RS[ RR/# r   r    )r!   r"   s   "€r#   r$   Ú"QuantizableInceptionA.__annotate__+   ó"   ø€ ÷ 3ñ 3™cð 3©Sð 3°Tñ 3r&   c                óz   <€ \         SV `  ! VR \        /VB  \        P                  P                  4       V n        R# ©Ú
conv_blockN©r)   r*   r   r+   Ú	quantizedÚFloatFunctionalÚmyopr.   s   &*,€r#   r*   ÚQuantizableInceptionA.__init__+   ó/   ø€ Ü‰Ò˜$ÐLÔ+AÐLÀVÒLÜ—L‘L×0Ñ0Ó2ˆŽ	r&   c                ó&   <€ V ^8„  d   QhRS[ RS[ /# r3   r   )r!   r"   s   "€r#   r$   rP   /   ó   ø€ ÷ )ñ )™ð )¡Fñ )r&   c                ó\   € V P                  V4      pV P                  P                  V^4      # ©é   ©Ú_forwardrX   Úcat©r/   r4   Úoutputss   && r#   r9   ÚQuantizableInceptionA.forward/   ó%   € Ø—-‘- Ó"ˆØ�y‰y�}‰}˜W aÓ(Ð(r&   ©rX   ©	rE   rF   rG   rH   r*   r9   rI   rJ   rK   rL   s   @@r#   rN   rN   )   ó   ù‡ € ÷3ó 3÷)÷ )ð )r&   rN   c                   óP   a a€ ] tR t^4t oV3R lV 3R lltV3R lR ltRtVtV ;t# )ÚQuantizableInceptionBc                ó*   <€ V ^8„  d   QhRS[ RS[ RR/# r   r    )r!   r"   s   "€r#   r$   Ú"QuantizableInceptionB.__annotate__6   rQ   r&   c                óz   <€ \         SV `  ! VR \        /VB  \        P                  P                  4       V n        R# rS   rU   r.   s   &*,€r#   r*   ÚQuantizableInceptionB.__init__6   rZ   r&   c                ó&   <€ V ^8„  d   QhRS[ RS[ /# r3   r   )r!   r"   s   "€r#   r$   rm   :   r\   r&   c                ó\   € V P                  V4      pV P                  P                  V^4      # r^   r`   rc   s   && r#   r9   ÚQuantizableInceptionB.forward:   rf   r&   rg   rh   rL   s   @@r#   rk   rk   4   ri   r&   rk   c                   óP   a a€ ] tR t^?t oV3R lV 3R lltV3R lR ltRtVtV ;t# )ÚQuantizableInceptionCc                ó*   <€ V ^8„  d   QhRS[ RS[ RR/# r   r    )r!   r"   s   "€r#   r$   Ú"QuantizableInceptionC.__annotate__A   rQ   r&   c                óz   <€ \         SV `  ! VR \        /VB  \        P                  P                  4       V n        R# rS   rU   r.   s   &*,€r#   r*   ÚQuantizableInceptionC.__init__A   rZ   r&   c                ó&   <€ V ^8„  d   QhRS[ RS[ /# r3   r   )r!   r"   s   "€r#   r$   rv   E   r\   r&   c                ó\   € V P                  V4      pV P                  P                  V^4      # r^   r`   rc   s   && r#   r9   ÚQuantizableInceptionC.forwardE   rf   r&   rg   rh   rL   s   @@r#   rt   rt   ?   ri   r&   rt   c                   óP   a a€ ] tR t^Jt oV3R lV 3R lltV3R lR ltRtVtV ;t# )ÚQuantizableInceptionDc                ó*   <€ V ^8„  d   QhRS[ RS[ RR/# r   r    )r!   r"   s   "€r#   r$   Ú"QuantizableInceptionD.__annotate__L   rQ   r&   c                óz   <€ \         SV `  ! VR \        /VB  \        P                  P                  4       V n        R# rS   rU   r.   s   &*,€r#   r*   ÚQuantizableInceptionD.__init__L   rZ   r&   c                ó&   <€ V ^8„  d   QhRS[ RS[ /# r3   r   )r!   r"   s   "€r#   r$   r   P   r\   r&   c                ó\   € V P                  V4      pV P                  P                  V^4      # r^   r`   rc   s   && r#   r9   ÚQuantizableInceptionD.forwardP   rf   r&   rg   rh   rL   s   @@r#   r}   r}   J   ri   r&   r}   c                   ób   a a€ ] tR t^Ut oV3R lV 3R lltV3R lR ltV3R lR ltRtVtV ;t	# )ÚQuantizableInceptionEc                ó*   <€ V ^8„  d   QhRS[ RS[ RR/# r   r    )r!   r"   s   "€r#   r$   Ú"QuantizableInceptionE.__annotate__W   s"   ø€ ÷ 4ñ 4™cð 4©Sð 4°Tñ 4r&   c                ó  <€ \         SV `  ! VR \        /VB  \        P                  P                  4       V n        \        P                  P                  4       V n        \        P                  P                  4       V n        R# rS   )	r)   r*   r   r+   rV   rW   Úmyop1Úmyop2Úmyop3r.   s   &*,€r#   r*   ÚQuantizableInceptionE.__init__W   sW   ø€ Ü‰Ò˜$ÐLÔ+AÐLÀVÒLÜ—\‘\×1Ñ1Ó3ˆŒ
Ü—\‘\×1Ñ1Ó3ˆŒ
Ü—\‘\×1Ñ1Ó3ˆŽ
r&   c                ó6   <€ V ^8„  d   QhRS[ RS[S[ ,          /# r3   )r   Úlist)r!   r"   s   "€r#   r$   rˆ   ]   s   ø€ ÷ ñ ™&ð ¡T©&¥\ñ r&   c                óä  € V P                  V4      pV P                  V4      pV P                  V4      V P                  V4      .pV P                  P                  V^4      pV P                  V4      pV P                  V4      pV P                  V4      V P                  V4      .pV P                  P                  V^4      p\        P                  ! V^^^R7      pV P                  V4      pW#WE.pV# )r_   )Úkernel_sizeÚstrideÚpadding)Ú	branch1x1Úbranch3x3_1Úbranch3x3_2aÚbranch3x3_2brŠ   rb   Úbranch3x3dbl_1Úbranch3x3dbl_2Úbranch3x3dbl_3aÚbranch3x3dbl_3br‹   ÚFÚ
avg_pool2dÚbranch_pool)r/   r4   r”   Ú	branch3x3Úbranch3x3dblrž   rd   s   &&     r#   ra   ÚQuantizableInceptionE._forward]   sà   € Ø—N‘N 1Ó%ˆ	à×$Ñ$ QÓ'ˆ	Ø×&Ñ& yÓ1°4×3DÑ3DÀYÓ3OÐPˆ	Ø—J‘J—N‘N 9¨aÓ0ˆ	à×*Ñ*¨1Ó-ˆØ×*Ñ*¨<Ó8ˆà× Ñ  Ó.Ø× Ñ  Ó.ð
ˆð —z‘z—~‘~ l°AÓ6ˆä—l’l 1°!¸AÀqÔIˆØ×&Ñ& {Ó3ˆà¨ÐCˆØˆr&   c                ó&   <€ V ^8„  d   QhRS[ RS[ /# r3   r   )r!   r"   s   "€r#   r$   rˆ   r   s   ø€ ÷ *ñ *™ð *¡Fñ *r&   c                ó\   € V P                  V4      pV P                  P                  V^4      # r^   )ra   rŒ   rb   rc   s   && r#   r9   ÚQuantizableInceptionE.forwardr   s%   € Ø—-‘- Ó"ˆØ�z‰z�~‰~˜g qÓ)Ð)r&   )rŠ   r‹   rŒ   )
rE   rF   rG   rH   r*   ra   r9   rI   rJ   rK   rL   s   @@r#   r†   r†   U   s(   ù‡ € ÷4ó 4÷ð ÷**÷ *ð *r&   r†   c                   ó>   a a€ ] tR t^wt oV3R lV 3R lltRtVtV ;t# )ÚQuantizableInceptionAuxc                ó*   <€ V ^8„  d   QhRS[ RS[ RR/# r   r    )r!   r"   s   "€r#   r$   Ú$QuantizableInceptionAux.__annotate__y   s'   ø€ ÷ Mñ M™cð M©Sð M°Tñ Mr&   c                ó4   <€ \         SV `  ! VR \        /VB  R# rS   )r)   r*   r   r.   s   &*,€r#   r*   Ú QuantizableInceptionAux.__init__y   s   ø€ Ü‰Ò˜$ÐLÔ+AÐLÀVÔLr&   © )rE   rF   rG   rH   r*   rI   rJ   rK   rL   s   @@r#   r¦   r¦   w   s   ù‡ € ÷M÷ Mó Mr&   r¦   c                   óf   a a€ ] tR t^}t oV3R lV 3R lltV3R lR ltRV3R lR lltRtVtV ;t	# )	r   c                ó*   <€ V ^8„  d   QhRS[ RS[ RR/# r   r    )r!   r"   s   "€r#   r$   Ú"QuantizableInception3.__annotate__~   s"   ø€ ÷ ;ñ ;™cð ;©Sð ;°Tñ ;r&   c                ó&  <€ \         SV `  ! VR \        \        \        \
        \        \        \        ./VB  \        P                  P                  P                  4       V n        \        P                  P                  P                  4       V n        R# )Úinception_blocksN)r)   r*   r   rN   rk   rt   r}   r†   r¦   ÚtorchÚaoÚquantizationÚ	QuantStubÚquantÚDeQuantStubÚdequantr.   s   &*,€r#   r*   ÚQuantizableInception3.__init__~   st   ø€ Ü‰ÒØð	
ô 'Ü%Ü%Ü%Ü%Ü%Ü'ðð	
ð ò	
ô —X‘X×*Ñ*×4Ñ4Ó6ˆŒ
Ü—x‘x×,Ñ,×8Ñ8Ó:ˆŽr&   c                ó&   <€ V ^8„  d   QhRS[ RS[/# r3   )r   r   )r!   r"   s   "€r#   r$   r®   �   s   ø€ ÷ .ñ .™ð .Ñ$4ñ .r&   c                óŠ  € V P                  V4      pV P                  V4      pV P                  V4      w  rV P                  V4      pV P                  ;'       d    V P
                  p\        P                  P                  4       '       d*   V'       g   \        P                  ! R 4       \        W4      # V P                  W4      # )zIScripted QuantizableInception3 always returns QuantizableInception3 Tuple)Ú_transform_inputrµ   ra   r·   ÚtrainingÚ
aux_logitsr±   ÚjitÚis_scriptingÚwarningsÚwarnr   Úeager_outputs)r/   r4   ÚauxÚaux_defineds   &&  r#   r9   ÚQuantizableInception3.forward�   s�   € Ø×!Ñ! !Ó$ˆØ�J‰J�q‹MˆØ—‘˜qÓ!‰ˆØ�L‰L˜‹OˆØ—m‘m×7Ð7¨¯©ˆÜ�9‰9×!Ñ!×#Ò#ßÜ—’ÐiÔjÜ# AÓ+Ð+à×%Ñ% aÓ-Ð-r&   c                ó4   <€ V ^8„  d   QhRS[ S[,          RR/# r<   r>   )r!   r"   s   "€r#   r$   r®   œ   s   ø€ ÷ 
%ñ 
%¡©$¥ð 
%¸4ñ 
%r&   c                ó€   € V P                  4        F)  p\        V4      \        J g   K  VP                  V4       K+  	  R# )zýFuse conv/bn/relu modules in inception model

Fuse conv+bn+relu/ conv+relu/conv+bn modules to prepare for quantization.
Model is modified in place.  Note that this operation does not change numerics
and the model after modification is in floating point
N)ÚmodulesÚtyper   rB   )r/   r=   Úms   && r#   rB   Ú QuantizableInception3.fuse_modelœ   s-   € ð —‘–ˆAÜ�A‹wÔ0Õ0Ø—‘˜VÖ$ó  r&   )r·   rµ   r(   rD   rL   s   @@r#   r   r   }   s(   ù‡ € ÷;ó ;÷".ð .÷
%÷ 
%ò 
%r&   c                   óŠ   € ] tR t^©t]! R]! ]RRR7      RRRRR]R	R
RRR]P                  RRRRRR//RRRRRR/
R7      t
]
tRtR# )r   zUhttps://download.pytorch.org/models/quantized/inception_v3_google_fbgemm-a2837893.pthi+  iV  )Ú	crop_sizeÚresize_sizeÚ
num_paramsi°ržÚmin_sizeÚ
categoriesÚbackendÚfbgemmÚrecipezdhttps://github.com/pytorch/vision/tree/main/references/classification#post-training-quantized-modelsÚunquantizedÚ_metricszImageNet-1Kzacc@1g%�•CKS@zacc@5g-²�ï§VW@Ú_opsg'1¬Ú@Ú
_file_sizegL7‰A`%7@Ú_docszª
                These weights were produced by doing Post Training Quantization (eager mode) on top of the unquantized
                weights listed below.
            )ÚurlÚ
transformsÚmetar«   N)éK   rÝ   )rE   rF   rG   rH   r   r   r   r   r
   ÚIMAGENET1K_V1ÚIMAGENET1K_FBGEMM_V1ÚDEFAULTrI   r«   r&   r#   r   r   ©   s~   † Ù"ØcÙÐ.¸#È3ÔOà˜(Ø˜ØÐ.Ø�xØÐ|ØÐ/×=Ñ=ØØØ˜VØ˜Vð ðð �EØ˜&Øð ð
ôÐð0 #„Gr&   Úquantized_inception_v3)ÚnameÚ
pretrainedc                 ór   € V P                  R R4      '       d   \        P                  # \        P                  # )ÚquantizeF)Úgetr   rß   r
   rÞ   )r   s   &r#   Ú<lambda>rç   É   s1   € à�z‰z˜* e×,Ò,ô *×>Ñ>ð 4ä%×3Ñ3ð4r&   )Úweightsrè   ÚprogressTrå   Fc          
      óŒ   € V ^8„  d   QhR\         \        \        \        3,          ,          R\        R\        R\
        R\        /# )r   rè   ré   rå   r   r   )r   r   r   r
   r?   r   r   )r!   s   "r#   r$   r$   Ð   sT   € ÷ Cñ Cä”eÔ9Ô;OÐOÕPÕQðCô ðCô ð	Cô
 ðCô ñCr&   c                ó   € V'       d   \         M\        P                  V 4      p VP                  RR4      pV ex   RV9  d   \	        VRR4       \	        VRR4       \	        VR\        V P                  R,          4      4       RV P                  9   d   \	        VRV P                  R,          4       VP                  RR	4      p\        R/ VB p\        V4       V'       d   \        We4       V e_   V'       d   V'       g   RVn        RVn        VP                  V P                  VRR
7      4       V'       g   V'       g   RVn        RVn        V# )a6  Inception v3 model architecture from
`Rethinking the Inception Architecture for Computer Vision <http://arxiv.org/abs/1512.00567>`__.

.. note::
    **Important**: In contrast to the other models the inception_v3 expects tensors with a size of
    N x 3 x 299 x 299, so ensure your images are sized accordingly.

.. note::
    Note that ``quantize = True`` returns a quantized model with 8 bit
    weights. Quantized models only support inference and run on CPUs.
    GPU inference is not yet supported.

Args:
    weights (:class:`~torchvision.models.quantization.Inception_V3_QuantizedWeights` or :class:`~torchvision.models.Inception_V3_Weights`, optional): The pretrained
        weights for the model. See
        :class:`~torchvision.models.quantization.Inception_V3_QuantizedWeights` below for
        more details, and possible values. By default, no pre-trained
        weights are used.
    progress (bool, optional): If True, displays a progress bar of the download to stderr.
        Default is True.
    quantize (bool, optional): If True, return a quantized version of the model.
        Default is False.
    **kwargs: parameters passed to the ``torchvision.models.quantization.QuantizableInception3``
        base class. Please refer to the `source code
        <https://github.com/pytorch/vision/blob/main/torchvision/models/quantization/inception.py>`_
        for more details about this class.

.. autoclass:: torchvision.models.quantization.Inception_V3_QuantizedWeights
    :members:

.. autoclass:: torchvision.models.Inception_V3_Weights
    :members:
    :noindex:
r½   FNÚtransform_inputTÚnum_classesrÑ   rÒ   rÓ   )ré   Ú
check_hashr«   )r   r
   Úverifyræ   r   ÚlenrÜ   Úpopr   r   r   r½   Ú	AuxLogitsÚload_state_dictÚget_state_dict)rè   ré   rå   r   Úoriginal_aux_logitsrÒ   Úmodels   $$$,   r#   Úinception_v3r÷   Å   s  € ÷h 19Õ,Ô>R×ZÑZÐ[bÓc€Gà Ÿ*™* \°5Ó9ÐØÒØ FÔ*Ü! &Ð*;¸TÔBÜ˜f l°DÔ9Ü˜f m´S¸¿¹ÀlÕ9SÓ5TÔUØ˜Ÿ™Ô$Ü! &¨)°W·\±\À)Õ5LÔMØ�j‰j˜ HÓ-€Gä!Ñ+ FÑ+€EÜ�%ÔßÜ�uÔ&àÒß×/Ø$ˆEÔØ"ˆEŒOØ×Ñ˜g×4Ñ4¸hÐSWÐ4ÓXÔYß× 3Ø$ˆEÔØ"ˆEŒOà€Lr&   )r   r   r÷   )6rÀ   Ú	functoolsr   Útypingr   r   r   r±   Útorch.nnr+   Útorch.nn.functionalÚ
functionalrœ   r   Útorchvision.modelsr	   Úinception_moduleÚtorchvision.models.inceptionr
   r   Útransforms._presetsr   Ú_apir   r   r   Ú_metar   Ú_utilsr   r   Úutilsr   r   r   Ú__all__ÚBasicConv2dr   Ú
InceptionArN   Ú
InceptionBrk   Ú
InceptionCrt   Ú
InceptionDr}   Ú
InceptionEr†   ÚInceptionAuxr¦   Ú
Inception3r   r   r÷   r«   r&   r#   Ú<module>r     sA  ðÛ Ý ß 'Ñ 'ã Ý ß Ð Ý Ý <ß Oå 6ß 7Ñ 7Ý (ß Cß ?Ñ ?ò€ôJÐ-×9Ñ9ô Jô)Ð,×7Ñ7ô )ô)Ð,×7Ñ7ô )ô)Ð,×7Ñ7ô )ô)Ð,×7Ñ7ô )ô*Ð,×7Ñ7ô *ôDMÐ.×;Ñ;ô Mô)%Ð,×7Ñ7ô )%ôX# Kô #ñ8 Ð-Ô.Ùàñ	
ðô	ðCàTXðCð ðCð ö	Có	ó /òCr&   