+
    ýäûj#  ã                   óª   € ^ RI HtHtHtHtHt ^ RIHtHt ^ RI	H
t
 ^RIHt R R lt ! R R]P                  4      t ! R	 R
]P                  4      tR# )é    )ÚAnyÚDictÚListÚTupleÚUnion)ÚTensorÚnn)Úis_lazy©ÚAugmentationSequentialc                ó°   € V ^8„  d   QhR\         P                  R\        \        \        3,          R\        R\        \        \        3,          R\        RR/# )é   ÚmoduleÚ
state_dictÚprefixÚlocal_metadataÚargsÚreturnN)r	   ÚModuler   Ústrr   )Úformats   "ÚdC:\Ai_Coding\apps\studio\ComfyUI\.venv\Lib\site-packages\kornia\augmentation\container\dispatcher.pyÚ__annotate__r      sX   € ÷ ñ Ü�I‰Iðä”Sœ#�X•ðô ðô œœc˜•Nð	ô
 ðð 
ñó    c                 óä  a€ VP                  R ^4      ^8¼  d   R# \        ;QJ d    V3R lV 4       F  '       g   K   RM	  RM! V3R lV 4       4      '       d   R# V P                  RR7      P                  4        Fo  w  rVVP	                  R4      '       g   K  \        V\        4      '       d0   \        V4      '       g   VP                  4       P                  4       MTVSV,           &   Kq  	  R# )ÚversionNc              3   óR   <"  € T F  qP                  SR ,           4      x € K  	  R# 5i)úaugmentations.N)Ú
startswith)Ú.0Úkeyr   s   & €r   Ú	<genexpr>Ú3_fill_missing_augmentation_state.<locals>.<genexpr>%   s!   øé € Ð
KÁ
¸�>‰>˜&Ð#3Õ3×4Ð4Ã
ùs   ƒ$'TF)Ú	keep_varsr   )
ÚgetÚanyr   Úitemsr   Ú
isinstancer   r
   ÚdetachÚclone)r   r   r   r   r   ÚnameÚvalues   &&f&*  r   Ú _fill_missing_augmentation_stater-      s¯   ø€ ð ×Ñ˜) QÓ'¨1Ô,Ùß
ƒsÔ
KÁ
Ó
K‡s‡s‚sÔ
KÁ
Ó
K×KÒKÙØ×(Ñ(°5Ð(Ó9×?Ñ?ÖA‰ˆØ�?‰?Ð+×,Ô,ô +5°U¼F×*CÒ*CÌGÐTYÏNÊN�—‘“×$Ñ$Ô&Ð`eð �v •}Ó%ó Br   c                   ój   a a€ ] tR t^/t oRt^t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# )	ÚManyToManyAugmentationDispatherað  Run one augmentation container for each matching input bundle.

``outputs = ManyToManyAugmentationDispather(*augmentations)(*bundles)`` pairs each
:class:`~kornia.augmentation.container.AugmentationSequential` with the bundle at the same position and returns
its result. Use :class:`~kornia.augmentation.container.ManyToOneAugmentationDispather` to run several containers
over one shared bundle.

See the Convention block on :class:`~kornia.augmentation.container.AugmentationSequential`.

Args:
    augmentations: a list or a sequence of kornia AugmentationSequential modules.

Convention:
    - every member has to be an :class:`~kornia.augmentation.container.AugmentationSequential`; anything else is
      rejected at construction with ``ValueError``.
    - the call takes one input bundle per augmentation and returns a list in that order; a different number
      of bundles raises ``ValueError`` before any augmentation runs. Each augmentation draws its own
      parameters, so the members are independent of one another.

See Also:
    - :class:`~kornia.augmentation.container.ManyToOneAugmentationDispather`: gives every container one bundle.
    - :class:`~kornia.augmentation.container.AugmentationSequential`: augments an aligned data bundle.

Examples:
    >>> import torch
    >>> input_1, input_2 = torch.randn(2, 3, 5, 6), torch.randn(2, 3, 5, 6)
    >>> mask_1, mask_2 = torch.ones(2, 3, 5, 6), torch.ones(2, 3, 5, 6)
    >>> aug_list = ManyToManyAugmentationDispather(
    ...     AugmentationSequential(
    ...         kornia.augmentation.ColorJiggle(0.1, 0.1, 0.1, 0.1, p=1.0),
    ...         kornia.augmentation.RandomAffine(360, p=1.0),
    ...         data_keys=["input", "mask",],
    ...     ),
    ...     AugmentationSequential(
    ...         kornia.augmentation.ColorJiggle(0.1, 0.1, 0.1, 0.1, p=1.0),
    ...         kornia.augmentation.RandomAffine(360, p=1.0),
    ...         data_keys=["input", "mask",],
    ...     )
    ... )
    >>> output = aug_list((input_1, mask_1), (input_2, mask_2))

c                ó$   <€ V ^8„  d   QhRS[ RR/# )r   Úaugmentationsr   Nr   )r   Ú__classdict__s   "€r   r   Ú,ManyToManyAugmentationDispather.__annotate__]   s    ø€ ÷ dñ dÑ'=ð dÀ$ñ dr   c                ó¨   <€ \         SV `  4        V P                  ! V!   \        P                  ! V4      V n        V P                  \        R R7       R# ©T)Úwith_moduleN)ÚsuperÚ__init__Ú_check_consistencyr	   Ú
ModuleListr1   Ú"_register_load_state_dict_pre_hookr-   )Úselfr1   Ú	__class__s   &*€r   r8   Ú(ManyToManyAugmentationDispather.__init__]   sB   ø€ Ü‰ÑÔØ×Ò Ò/ÜŸ]š]¨=Ó9ˆÔØ×/Ñ/Ô0PÐ^bÐ/Öcr   c                ó&   <€ V ^8„  d   QhRS[ RS[/# ©r   r1   r   ©r   Úbool)r   r2   s   "€r   r   r3   c   s   ø€ ÷ ñ Ñ1Gð ÉDñ r   c                óx   € \        V4       F*  w  r#\        V\        4      '       d   K  \        R V R24      h	  R# )ú Please wrap your augmentations[`ú"`] with `AugmentationSequentials`.T)Ú	enumerater(   r   Ú
ValueError©r<   r1   ÚiÚaugs   &*  r   r9   Ú2ManyToManyAugmentationDispather._check_consistencyc   s<   € Ü Ö.‰FˆAÜ˜cÔ#9×:Ô:Ü Ð#CÀAÀ3ÐFhÐ!iÓjÐjñ /ñ r   c                ó²   <€ V ^8„  d   QhRS[ S[S[,          S[S[S[,          ,          3,          RS[ S[S[,          S[S[S[,          ,          3,          /# ©r   Úinputr   )r   r   r   r   )r   r2   s   "€r   r   r3   i   sT   ø€ ÷ Jñ J™e¡D©¥L±$±u¹Vµ}Õ2EÐ$EÕFð JÉ5ÑQUÑV\ÕQ]Ñ_cÑdiÑjpÕdqÕ_rÐQrÕKsñ Jr   c                ó
  € \        V4      \        V P                  4      8w  d/   \        R\        V P                  4       R\        V4       R24      h\        WP                  4       UUu. uF  w  r#V! V!  NK  	  upp# u uppi )a  Apply each augmentation to the matching input tuple.

Args:
    *input: One input bundle per configured augmentation.

Returns:
    Outputs from each augmentation, preserving input order.

Raises:
    ValueError: If the number of input bundles differs from the number of augmentations.
z	Expected z. input bundles, one per augmentation, but got Ú.)Úlenr1   rG   Úzip)r<   rN   ÚinprJ   s   &*  r   ÚforwardÚ'ManyToManyAugmentationDispather.forwardi   s}   € ô ˆu‹:œ˜T×/Ñ/Ó0Ô0ÜØœC × 2Ñ 2Ó3Ð4Ð4bÔcfÐglÓcmÐbnÐnoÐpóð ô +.¨e×5GÑ5GÔ*HÔIÑ*H™h˜c‘�S”	Ñ*HÒIÐIùÓIs   Á*A?©r1   ©Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú_versionr8   r9   rT   Ú__static_attributes__Ú__classdictcell__Ú__classcell__©r=   r2   s   @@r   r/   r/   /   s:   ù‡ € ñ)ðV €H÷dó d÷ð ÷J÷ Jð Jr   r/   c                   ór   a a€ ] tR t^|t oRt^tRR/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# )ÚManyToOneAugmentationDispatheraý  Run several augmentation containers independently over one input bundle.

``outputs = ManyToOneAugmentationDispather(*augmentations)(*inputs)`` gives the same inputs to every
:class:`~kornia.augmentation.container.AugmentationSequential` and returns one result per container. Use
:class:`~kornia.augmentation.container.ManyToManyAugmentationDispather` to pair containers and bundles.

See the Convention block on :class:`~kornia.augmentation.container.AugmentationSequential`.

Same `datakeys` must be applied across different augmentations. By default, with input
(image, mask), the augmentations must not mess it as (mask, image) to avoid unexpected
errors. This check can be cancelled with `strict=False` if needed.

Args:
    augmentations: a list or a sequence of kornia AugmentationSequential modules.

Convention:
    - the same input payload is broadcast to every augmentation, so the returned list is always as long
      as the list of augmentations and no input can be dropped.
    - with ``strict=True``, the default, the members must all declare the same ``data_keys``; a mismatch
      raises ``RuntimeError`` at construction.

See Also:
    - :class:`~kornia.augmentation.container.ManyToManyAugmentationDispather`: pairs containers with bundles.
    - :class:`~kornia.augmentation.container.AugmentationSequential`: augments an aligned data bundle.

Examples:
    >>> import torch
    >>> input = torch.randn(2, 3, 5, 6)
    >>> mask = torch.ones(2, 3, 5, 6)
    >>> aug_list = ManyToOneAugmentationDispather(
    ...     AugmentationSequential(
    ...         kornia.augmentation.ColorJiggle(0.1, 0.1, 0.1, 0.1, p=1.0),
    ...         kornia.augmentation.RandomAffine(360, p=1.0),
    ...         data_keys=["input", "mask",],
    ...     ),
    ...     AugmentationSequential(
    ...         kornia.augmentation.ColorJiggle(0.1, 0.1, 0.1, 0.1, p=1.0),
    ...         kornia.augmentation.RandomAffine(360, p=1.0),
    ...         data_keys=["input", "mask",],
    ...     )
    ... )
    >>> output = aug_list(input, mask)

ÚstrictTc                ó*   <€ V ^8„  d   QhRS[ RS[RR/# )r   r1   rd   r   NrA   )r   r2   s   "€r   r   Ú+ManyToOneAugmentationDispather.__annotate__¬   s)   ø€ ÷ dñ dÑ'=ð dÁtð dÐW[ñ dr   c               ó´   <€ \         SV `  4        Wn        V P                  ! V!   \        P
                  ! V4      V n        V P                  \        R R7       R# r5   )	r7   r8   rd   r9   r	   r:   r1   r;   r-   )r<   rd   r1   r=   s   &$*€r   r8   Ú'ManyToOneAugmentationDispather.__init__¬   sG   ø€ Ü‰ÑÔØŒØ×Ò Ò/ÜŸ]š]¨=Ó9ˆÔØ×/Ñ/Ô0PÐ^bÐ/Öcr   c                ó&   <€ V ^8„  d   QhRS[ RS[/# r@   rA   )r   r2   s   "€r   r   rf   ³   s   ø€ ÷ 	ñ 	Ñ1Gð 	ÉDñ 	r   c                ó‚  € \        V4       F¯  w  r#\        V\        4      '       g   \        R V R24      hV P                  '       g   K>  V^ 8w  g   KG  VP
                  W^,
          ,          P
                  8w  g   Kq  \        RV^,
           RV RVP
                   RW^,
          ,          P
                   R2	4      h	  R# )rD   rE   zDifferent `data_keys` between z and z elements, got rP   T)rF   r(   r   rG   rd   Ú	data_keysÚRuntimeErrorrH   s   &*  r   r9   Ú1ManyToOneAugmentationDispather._check_consistency³   s¬   € Ü Ö.‰FˆAÜ˜cÔ#9×:Ò:Ü Ð#CÀAÀ3ÐFhÐ!iÓjÐjØ�{�{Š{˜q Ažv¨#¯-©-¸=ÈQÍÕ;O×;YÑ;YÖ*YÜ"Ø4°Q¸µU°G¸5ÀÀð DØŸ=™=˜/¨¨}À½UÕ/C×/MÑ/MÐ.NÈaðQóð ñ	 /ñ r   c                ó’   <€ V ^8„  d   QhRS[ S[S[S[,          3,          RS[ S[S[,          S[S[S[,          ,          3,          /# rM   )r   r   r   r   )r   r2   s   "€r   r   rf   ¾   sD   ø€ ÷ 	;ñ 	;™e¡F©E±&­MÐ$9Õ:ð 	;¹uÁTÉ&Å\ÑSWÑX]Ñ^dÕXeÕSfÐEfÕ?gñ 	;r   c                óJ   € V P                    Uu. uF  q"! V!  NK
  	  up# u upi )z­Apply all augmentations to the same input payload.

Args:
    *input: Shared input payload passed to every augmentation.

Returns:
    One output per augmentation sequence.
rV   )r<   rN   rJ   s   &* r   rT   Ú&ManyToOneAugmentationDispather.forward¾   s(   € ð (,×'9Ò'9Ó:Ñ'9 ��U”Ñ'9Ñ:Ð:ùÒ:s   � )r1   rd   rW   ra   s   @@r   rc   rc   |   s?   ù‡ € ñ+ðZ €HðdÈd÷ dõ d÷	ð 	÷	;÷ 	;ð 	;r   rc   N)Útypingr   r   r   r   r   Útorchr   r	   Útorch.nn.parameterr
   Úaugmentr   r-   r   r/   rc   © r   r   Ú<module>rv      sB   ð÷$ 1Õ 0ç Ý &å +õô*JJ b§i¡iô JJôZK; R§Y¡Yö K;r   