+
    åûj++  ã            	       ó\  a € R t0 t ^ RIHtHtHtHtHtHt ^ RIt^ RIH	t	  ! R R]	P                  4      tR R R lltR. R!OR	. R"OR
. R#OR. R$O/t] ^ k R%R R lltRR/R R lltRR/R R lltRR/R R lltRR/R R lltRR/R R lltRR/R R lltRR/R R lltRR/R R lltR# )&é    )ÚAnyÚDictÚListÚOptionalÚUnionÚcastN)Únnc                   óX   a a€ ] tR t^t oRtRV3R lV 3R llltV3R lR ltRtVtV ;t	# )ÚVGGau  Implement a flexible VGG-style backbone for feature extraction.

Args:
    features: The convolutional feature extractor module.
    num_classes: The number of classes for the classification head. Default: 1000.
    init_weights: Whether to initialize weights using a predefined scheme. Default: True.
    dropout: The dropout probability for the classifier. Default: 0.5.
c          
      óJ   <€ V ^8„  d   QhRS[ P                  RS[RS[RS[RR/# )é   ÚfeaturesÚnum_classesÚinit_weightsÚdropoutÚreturnN)r	   ÚModuleÚintÚboolÚfloat)ÚformatÚ__classdict__s   "€ÚUC:\Ai_Coding\apps\studio\ComfyUI\.venv\Lib\site-packages\kornia\feature\dedode\vgg.pyÚ__annotate__ÚVGG.__annotate__"   s9   ø€ ÷ 1ñ 1ÙŸ	™	ð1Ù03ð1ÙJNð1Ù`eð1à	ñ1ó    c                ó   <€ \         SV `  4        Wn        \        P                  ! R	4      V n        \        P                  ! \        P                  ! R
R4      \        P                  ! R4      \        P                  ! VR7      \        P                  ! RR4      \        P                  ! R4      \        P                  ! VR7      \        P                  ! RV4      4      V n
        V'       Ed“   V P                  4        EF{  p\        V\        P                  4      '       di   \        P                  P                  VP                   RRR7       VP"                  e-   \        P                  P%                  VP"                  ^ 4       KŠ  KŒ  \        V\        P&                  4      '       dX   \        P                  P%                  VP                   ^4       \        P                  P%                  VP"                  ^ 4       EK  \        V\        P                  4      '       g   EK&  \        P                  P)                  VP                   ^ R4       \        P                  P%                  VP"                  ^ 4       EK~  	  R# R# )é   i   T)ÚpÚfan_outÚrelu)ÚmodeÚnonlinearityNg{®Gáz„?)r   r   i b  )ÚsuperÚ__init__r   r	   ÚAdaptiveAvgPool2dÚavgpoolÚ
SequentialÚLinearÚReLUÚDropoutÚ
classifierÚmodulesÚ
isinstanceÚConv2dÚinitÚkaiming_normal_ÚweightÚbiasÚ	constant_ÚBatchNorm2dÚnormal_)Úselfr   r   r   r   ÚmÚ	__class__s   &&&&& €r   r%   ÚVGG.__init__"   sƒ  ø€ ô 	‰ÑÔØ ŒÜ×+Ò+¨FÓ3ˆŒÜŸ-š-Ü�IŠI�k 4Ó(Ü�GŠG�D‹MÜ�JŠJ˜Ô!Ü�IŠI�d˜DÓ!Ü�GŠG�D‹MÜ�JŠJ˜Ô!Ü�IŠI�d˜KÓ(ó
ˆŒ÷ ˆ<Ø—\‘\—^�Ü˜a¤§¡×+Ò+Ü—G‘G×+Ñ+¨A¯H©H¸9ÐSYÐ+ÔZØ—v‘vÒ)ÜŸ™×)Ñ)¨!¯&©&°!Ö4ñ *ä ¤2§>¡>×2Ò2Ü—G‘G×%Ñ% a§h¡h°Ô2Ü—G‘G×%Ñ% a§f¡f¨a×0Ü ¤2§9¡9×-Õ-Ü—G‘G—O‘O A§H¡H¨a°Ô6Ü—G‘G×%Ñ% a§f¡f¨a×0ó $ñ r   c                óN   <€ V ^8„  d   QhRS[ P                  RS[ P                  /# )r   Úxr   )ÚtorchÚTensor)r   r   s   "€r   r   r   >   s#   ø€ ÷ "ñ "™Ÿ™ð "©%¯,©,ñ "r   c                ó–   € V P                  V4      pV P                  V4      p\        P                  ! V^4      pV P	                  V4      # )z¯Run this DeDoDe module forward.

Args:
    x: Input image tensor with shape ``(B, 3, H, W)``.

Returns:
    Classification logits with shape :math:`(B, \text{num\_classes})`.
)r   r'   r=   Úflattenr,   )r7   r<   s   &&r   ÚforwardÚVGG.forward>   s>   € ð �M‰M˜!ÓˆØ�L‰L˜‹OˆÜ�MŠM˜!˜QÓˆØ�‰˜qÓ!Ð!r   )r'   r,   r   )iè  Tg      à?)
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r%   rA   Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r9   r   s   @@r   r   r      s#   ù‡ € ñ÷1õ 1÷8"÷ "ð "r   r   c                óˆ   € V ^8„  d   QhR\         \        \        \        3,          ,          R\        R\
        P                  /# )r   ÚcfgÚ
batch_normr   )r   r   Ústrr   r   r	   r(   )r   s   "r   r   r   M   s2   € ÷ "ñ "”Tœ%¤¤S �/Õ*ð "¼ð "ÌÏÉñ "r   c                ó¤  € . p^pV  F³  pVR8X  d#   V\         P                  ! ^^R7      .,          pK,  \        \        V4      p\         P                  ! W4^^R7      pV'       d6   W%\         P
                  ! V4      \         P                  ! RR7      .,          pMW%\         P                  ! RR7      .,          pTpKµ  	  \         P                  ! V!  # )zMake model layers.ÚM)Úkernel_sizeÚstride)rQ   ÚpaddingT)Úinplace)r	   Ú	MaxPool2dr   r   r/   r5   r*   r(   )rL   rM   ÚlayersÚin_channelsÚvÚconv2ds   &&    r   Úmake_layersrZ   M   s¢   € à €FØ€KÛˆØ�Œ8Ø”r—|’|°¸!Ô<Ð=Õ=ŠFä”S˜!“ˆAÜ—Y’Y˜{¸1ÀaÔHˆFßØ¤2§>¢>°!Ó#4´b·g²gÀdÔ6KÐLÕL‘à¤2§7¢7°4Ô#8Ð9Õ9�ØŠKñ ô �=Š=˜&Ñ!Ð!r   ÚAÚBÚDÚEc          
      ój   € V ^8„  d   QhR\         R\        R\        \        ,          R\        R\        /# )r   rL   rM   ÚweightsÚkwargsr   )rN   r   r   r   r   )r   s   "r   r   r   g   s;   € ÷ Hñ HŒcð Hœtð H¬h´s­mð HÌcð HÔVYñ Hr   c                 óF   € \        \        \        V ,          VR 7      3/ VB # ))rM   )r   rZ   Úcfgs)rL   rM   r`   ra   s   &&&,r   Ú_vggrd   g   s   € ÜŒ{œ4 �9°Ô<ÑGÀÑGÐGr   r`   c                óR   € V ^8„  d   QhR\         \        ,          R\        R\        /# ©r   r`   ra   r   ©r   r   r   )r   s   "r   r   r   k   ó%   € ÷ /ñ /”hœs•mð /´cð /¼cñ /r   c                ó   € \        RRV 3/ VB # )aÁ  VGG-11 from `Very Deep Convolutional Networks for Large-Scale Image Recognition <https://arxiv.org/abs/1409.1556>`__.

Args:
    weights (:class:`~torchvision.models.VGG11_Weights`, optional): The
        pretrained weights to use. See
        :class:`~torchvision.models.VGG11_Weights` below for
        more details, and possible values. By default, no pre-trained
        weights are used.
    **kwargs: parameters passed to the ``torchvision.models.vgg.VGG``
        base class. Please refer to the `source code
        <https://github.com/pytorch/vision/blob/main/torchvision/models/vgg.py>`_
        for more details about this class.

.. autoclass:: torchvision.models.VGG11_Weights
    :members:

r[   F©rd   ©r`   ra   s   $,r   Úvgg11rl   k   ó   € ô$ ��U˜GÑ. vÑ.Ð.r   c                óR   € V ^8„  d   QhR\         \        ,          R\        R\        /# rf   rg   )r   s   "r   r   r   €   ó%   € ÷ .ñ .œ¤#�ð .¼ð .Äñ .r   c                ó   € \        RRV 3/ VB # )aÍ  VGG-11-BN from `Very Deep Convolutional Networks for Large-Scale Image Recognition <https://arxiv.org/abs/1409.1556>`__.

Args:
    weights (:class:`~torchvision.models.VGG11_BN_Weights`, optional): The
        pretrained weights to use. See
        :class:`~torchvision.models.VGG11_BN_Weights` below for
        more details, and possible values. By default, no pre-trained
        weights are used.
    **kwargs: parameters passed to the ``torchvision.models.vgg.VGG``
        base class. Please refer to the `source code
        <https://github.com/pytorch/vision/blob/main/torchvision/models/vgg.py>`_
        for more details about this class.

.. autoclass:: torchvision.models.VGG11_BN_Weights
    :members:

r[   Trj   rk   s   $,r   Úvgg11_bnrq   €   ó   € ô$ ��T˜7Ñ- fÑ-Ð-r   c                óR   € V ^8„  d   QhR\         \        ,          R\        R\        /# rf   rg   )r   s   "r   r   r   •   rh   r   c                ó   € \        RRV 3/ VB # )aÁ  VGG-13 from `Very Deep Convolutional Networks for Large-Scale Image Recognition <https://arxiv.org/abs/1409.1556>`__.

Args:
    weights (:class:`~torchvision.models.VGG13_Weights`, optional): The
        pretrained weights to use. See
        :class:`~torchvision.models.VGG13_Weights` below for
        more details, and possible values. By default, no pre-trained
        weights are used.
    **kwargs: parameters passed to the ``torchvision.models.vgg.VGG``
        base class. Please refer to the `source code
        <https://github.com/pytorch/vision/blob/main/torchvision/models/vgg.py>`_
        for more details about this class.

.. autoclass:: torchvision.models.VGG13_Weights
    :members:

r\   Frj   rk   s   $,r   Úvgg13ru   •   rm   r   c                óR   € V ^8„  d   QhR\         \        ,          R\        R\        /# rf   rg   )r   s   "r   r   r   ª   ro   r   c                ó   € \        RRV 3/ VB # )aÍ  VGG-13-BN from `Very Deep Convolutional Networks for Large-Scale Image Recognition <https://arxiv.org/abs/1409.1556>`__.

Args:
    weights (:class:`~torchvision.models.VGG13_BN_Weights`, optional): The
        pretrained weights to use. See
        :class:`~torchvision.models.VGG13_BN_Weights` below for
        more details, and possible values. By default, no pre-trained
        weights are used.
    **kwargs: parameters passed to the ``torchvision.models.vgg.VGG``
        base class. Please refer to the `source code
        <https://github.com/pytorch/vision/blob/main/torchvision/models/vgg.py>`_
        for more details about this class.

.. autoclass:: torchvision.models.VGG13_BN_Weights
    :members:

r\   Trj   rk   s   $,r   Úvgg13_bnrx   ª   rr   r   c                óR   € V ^8„  d   QhR\         \        ,          R\        R\        /# rf   rg   )r   s   "r   r   r   ¿   rh   r   c                ó   € \        RRV 3/ VB # )aÁ  VGG-16 from `Very Deep Convolutional Networks for Large-Scale Image Recognition <https://arxiv.org/abs/1409.1556>`__.

Args:
    weights (:class:`~torchvision.models.VGG16_Weights`, optional): The
        pretrained weights to use. See
        :class:`~torchvision.models.VGG16_Weights` below for
        more details, and possible values. By default, no pre-trained
        weights are used.
    **kwargs: parameters passed to the ``torchvision.models.vgg.VGG``
        base class. Please refer to the `source code
        <https://github.com/pytorch/vision/blob/main/torchvision/models/vgg.py>`_
        for more details about this class.

.. autoclass:: torchvision.models.VGG16_Weights
    :members:

r]   Frj   rk   s   $,r   Úvgg16r{   ¿   rm   r   c                óR   € V ^8„  d   QhR\         \        ,          R\        R\        /# rf   rg   )r   s   "r   r   r   Ô   ro   r   c                ó   € \        RRV 3/ VB # )aÍ  VGG-16-BN from `Very Deep Convolutional Networks for Large-Scale Image Recognition <https://arxiv.org/abs/1409.1556>`__.

Args:
    weights (:class:`~torchvision.models.VGG16_BN_Weights`, optional): The
        pretrained weights to use. See
        :class:`~torchvision.models.VGG16_BN_Weights` below for
        more details, and possible values. By default, no pre-trained
        weights are used.
    **kwargs: parameters passed to the ``torchvision.models.vgg.VGG``
        base class. Please refer to the `source code
        <https://github.com/pytorch/vision/blob/main/torchvision/models/vgg.py>`_
        for more details about this class.

.. autoclass:: torchvision.models.VGG16_BN_Weights
    :members:

r]   Trj   rk   s   $,r   Úvgg16_bnr~   Ô   rr   r   c                óR   € V ^8„  d   QhR\         \        ,          R\        R\        /# rf   rg   )r   s   "r   r   r   é   rh   r   c                ó   € \        RRV 3/ VB # )aÁ  VGG-19 from `Very Deep Convolutional Networks for Large-Scale Image Recognition <https://arxiv.org/abs/1409.1556>`__.

Args:
    weights (:class:`~torchvision.models.VGG19_Weights`, optional): The
        pretrained weights to use. See
        :class:`~torchvision.models.VGG19_Weights` below for
        more details, and possible values. By default, no pre-trained
        weights are used.
    **kwargs: parameters passed to the ``torchvision.models.vgg.VGG``
        base class. Please refer to the `source code
        <https://github.com/pytorch/vision/blob/main/torchvision/models/vgg.py>`_
        for more details about this class.

.. autoclass:: torchvision.models.VGG19_Weights
    :members:

r^   Frj   rk   s   $,r   Úvgg19r�   é   rm   r   c                óR   € V ^8„  d   QhR\         \        ,          R\        R\        /# rf   rg   )r   s   "r   r   r   þ   ro   r   c                ó   € \        RRV 3/ VB # )aÍ  VGG-19_BN from `Very Deep Convolutional Networks for Large-Scale Image Recognition <https://arxiv.org/abs/1409.1556>`__.

Args:
    weights (:class:`~torchvision.models.VGG19_BN_Weights`, optional): The
        pretrained weights to use. See
        :class:`~torchvision.models.VGG19_BN_Weights` below for
        more details, and possible values. By default, no pre-trained
        weights are used.
    **kwargs: parameters passed to the ``torchvision.models.vgg.VGG``
        base class. Please refer to the `source code
        <https://github.com/pytorch/vision/blob/main/torchvision/models/vgg.py>`_
        for more details about this class.

.. autoclass:: torchvision.models.VGG19_BN_Weights
    :members:

r^   Trj   rk   s   $,r   Úvgg19_bnr„   þ   rr   r   c                óš   € V ^8„  d   Qh/ ^ \         9   d7   \        \        \        \        \        \
        3,          ,          3,          ;R&   # )r   rc   )Ú__conditional_annotations__r   rN   r   r   r   )r   s   "r   r   r      s7   € × 9Ñ 9÷Zò „dŒ3””Uœ3¤˜8•_Õ%Ð%Õ&ñ ò[ :r   )F)é@   rP   é€   rP   é   r‰   rP   é   rŠ   rP   rŠ   rŠ   rP   )r‡   r‡   rP   rˆ   rˆ   rP   r‰   r‰   rP   rŠ   rŠ   rP   rŠ   rŠ   rP   )r‡   r‡   rP   rˆ   rˆ   rP   r‰   r‰   r‰   rP   rŠ   rŠ   rŠ   rP   rŠ   rŠ   rŠ   rP   )r‡   r‡   rP   rˆ   rˆ   rP   r‰   r‰   r‰   r‰   rP   rŠ   rŠ   rŠ   rŠ   rP   rŠ   rŠ   rŠ   rŠ   rP   )N)r†   Útypingr   r   r   r   r   r   r=   r	   r   r   rZ   rc   rd   rl   rq   ru   rx   r{   r~   r�   r„   r   )r†   s   @r   Ú<module>rŒ      s¾   øð÷$ :× 9Ô 9ã Ý ô2"ˆ"�)‰)ô 2"÷j"ð& Ò	IØÒ	RØÒ	aØÒ	pð	*€ó ÷Hð/ d÷ /ð*.¨÷ .ð*/ d÷ /ð*.¨÷ .ð*/ d÷ /ð*.¨÷ .ð*/ d÷ /ð*.¨÷ .ñ .r   