+
     °³j!Õ  ã                   ó¼  € ^ RI t ^ RIt^ RIt^ 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t ^RIHt ^RIHtHtHtHtHtHtHtHtHtHtHtHtHt . t]! 4       '       d   ]PA                  ]PB                  4       ]! 4       '       d   ]PA                  ]PD                  4       ]! 4       '       d   ]PA                  ]PF                  4       ]! 4       '       d   ]PA                  ]PH                  4       ]! 4       '       d   ]PA                  ]PJ                  4       ]! 4       '       d   ]PA                  ]PL                  4       ]! 4       '       d   ]PA                  ]PN                  4       ]! 4       '       d   ]PA                  ]PP                  4       ]! 4       '       d   ]PA                  ]PR                  4       ]! ]*4      t+R t,R	 t- ! R
 R4      t. ! R R].4      t/ ! R R].4      t0 ! R R].4      t1 ! R R].4      t2 ! R R].4      t3 ! R R].4      t4 ! R R].4      t5 ! R R].4      t6 ! R R].4      t7R]3R]2R ]4R!]/R"]0R#]5R$]6R%]7R&]1/	t8R' R( lt9R+R) R* llt:R# ),é    N©Úwraps)ÚAnyÚOptionalÚUnion)Úversion)Ú
get_logger)ÚPartialState)Ú
LoggerTypeÚcompare_versionsÚis_aim_availableÚis_clearml_availableÚis_comet_ml_availableÚis_dvclive_availableÚis_mlflow_availableÚis_swanlab_availableÚis_tensorboard_availableÚis_trackio_availableÚis_wandb_availableÚlistifyÚstr_to_boolc                ó0   a € \        S 4      V 3R l4       pV# )zý
Decorator to selectively run the decorated function on the main process only based on the `main_process_only`
attribute in a class.

Checks at function execution rather than initialization time, not triggering the initialization of the
`PartialState`.
c                 óˆ   <€ \        V R R4      '       d$   \        4       P                  S4      ! V .VO5/ VB # S! V .VO5/ VB # )Úmain_process_onlyF)Úgetattrr
   Úon_main_process)ÚselfÚargsÚkwargsÚfunctions   &*,€ÚT/home/luca/screen-checking/.venv/lib/python3.14/site-packages/accelerate/tracking.pyÚexecute_on_main_processÚ0on_main_process.<locals>.execute_on_main_processX   sJ   ø€ ä�4Ð,¨e×4Ò4Ü“>×1Ñ1°(Ô;¸DÐRÀ4ÒRÈ6ÑRÐRá˜DÐ2 4Ò2¨6Ñ2Ð2ó    r   )r    r"   s   f r!   r   r   O   s#   ø€ ô ˆ8ƒ_ô3ó ð3ð #Ð"r$   c                 ó   € \         # )z@Returns a list of all supported available trackers in the system)Ú_available_trackers© r$   r!   Úget_available_trackersr(   b   s   € äÐr$   c                   óf   a € ] tR t^gt o RtRtRR ltR tV 3R lR ltRV 3R lR	 llt	R
 t
RtV tR# )ÚGeneralTrackera8  
A base Tracker class to be used for all logging integration implementations.

Each function should take in `**kwargs` that will automatically be passed in from a base dictionary provided to
[`Accelerator`].

Should implement `name`, `requires_logging_directory`, and `tracker` properties such that:

`name` (`str`): String representation of the tracker class name, such as "TensorBoard" `requires_logging_directory`
(`bool`): Whether the logger requires a directory to store their logs. `tracker` (`object`): Should return internal
tracking mechanism used by a tracker class (such as the `run` for wandb)

Implementations can also include a `main_process_only` (`bool`) attribute to toggle if relevant logging, init, and
other functions should occur on the main process or across all processes (by default will use `True`)
Tc                ó\  € V'       g¤   R p\        V R4      '       g
   VR,          p\        V R4      '       g#   \        V4      ^ 8”  d
   VR,          pVR,          pR\        V 4      9  d#   \        V4      ^ 8”  d
   VR,          pVR,          p\        V4      ^ 8”  d   \        RV 24      hR	# R	# )
Ú Únamez`name`Úrequires_logging_directoryz, z`requires_logging_directory`Útrackerz	`tracker`z„The implementation for this tracker class is missing the following required attributes. Please define them in the class definition: N)ÚhasattrÚlenÚdirÚNotImplementedError)r   Ú_blankÚerrs   && r!   Ú__init__ÚGeneralTracker.__init__z   s«   € ßØˆCÜ˜4 ×(Ò(Ø�x•�Ü˜4Ð!=×>Ò>Ü�s“8˜a”<Ø˜4•K�CØÐ5Õ5�ð ¤ D£	Ô)Ü�s“8˜a”<Ø˜4•K�CØ�{Õ"�Ü�3‹x˜!Œ|Ü)ðXà�eðóð ñ ñ r$   c                ó   € R# )zy
Lazy initialization of the tracker inside Accelerator to avoid initializing PartialState before
InitProcessGroupKwargs.
Nr'   ©r   s   &r!   ÚstartÚGeneralTracker.start�   ó   ‚ r$   c                ó    <€ V ^8„  d   QhRS[ /# ©é   Úvalues©Údict)ÚformatÚ__classdict__s   "€r!   Ú__annotate__ÚGeneralTracker.__annotate__–   s   ø€ ÷ 	ñ 	©tñ 	r$   c                ó   € R# )ak  
Logs `values` as hyperparameters for the run. Implementations should use the experiment configuration
functionality of a tracking API.

Args:
    values (Dictionary `str` to `bool`, `str`, `float` or `int`):
        Values to be stored as initial hyperparameters as key-value pairs. The values need to have type `bool`,
        `str`, `float`, `int`, or `None`.
Nr'   ©r   r@   s   &&r!   Ústore_init_configurationÚ'GeneralTracker.store_init_configuration–   r<   r$   Nc                ó6   <€ V ^8„  d   QhRS[ RS[S[,          /# ©r?   r@   Ústep©rB   r   Úint)rC   rD   s   "€r!   rE   rF   ¡   s   ø€ ÷ 
ñ 
™$ð 
¡h©s¥mñ 
r$   c                ó   € R# )a­  
Logs `values` to the current run. Base `log` implementations of a tracking API should go in here, along with
special behavior for the `step parameter.

Args:
    values (Dictionary `str` to `str`, `float`, or `int`):
        Values to be logged as key-value pairs. The values need to have type `str`, `float`, or `int`.
    step (`int`, *optional*):
        The run step. If included, the log will be affiliated with this step.
Nr'   ©r   r@   rM   r   s   &&&,r!   ÚlogÚGeneralTracker.log¡   r<   r$   c                ó   € R# )z€
Should run any finalizing functions within the tracking API. If the API should not have one, just don't
overwrite that method.
Nr'   r9   s   &r!   ÚfinishÚGeneralTracker.finish­   r<   r$   r'   )F©N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r6   r:   rI   rR   rU   Ú__static_attributes__Ú__classdictcell__©rD   s   @r!   r*   r*   g   s:   ø‡ € ñð  Ðôò,÷	ð 	÷
ò 
÷ð r$   r*   c                   óÖ   a a€ ] tR t^´t oRtRtRtV3R lV 3R llt]R 4       t	]
R 4       t]V3R lR	 l4       t]RV3R
 lR ll4       t]RV3R lR ll4       t]R 4       tRtVtV ;t# )ÚTensorBoardTrackera£  
A `Tracker` class that supports `tensorboard`. Should be initialized at the start of your script.

Args:
    run_name (`str`):
        The name of the experiment run
    logging_dir (`str`, `os.PathLike`):
        Location for TensorBoard logs to be stored.
    **kwargs (additional keyword arguments, *optional*):
        Additional key word arguments passed along to the `tensorboard.SummaryWriter.__init__` method.
ÚtensorboardTc                óP   <€ V ^8„  d   QhRS[ RS[S[ S[P                  3,          /# ©r?   Úrun_nameÚlogging_dir)Ústrr   ÚosÚPathLike)rC   rD   s   "€r!   rE   ÚTensorBoardTracker.__annotate__Ä   s)   ø€ ÷ "ñ "¡ð "±5¹¹b¿k¹kÐ9IÕ3Jñ "r$   c                óH   <€ \         SV `  4        Wn        W n        W0n        R # rW   )Úsuperr6   re   Úlogging_dir_paramÚinit_kwargs©r   re   rf   r   Ú	__class__s   &&&,€r!   r6   ÚTensorBoardTracker.__init__Ä   s   ø€ Ü‰ÑÔØ ŒØ!,ÔØ!Ör$   c                ó�  €  ^ RI Hp \        P
                  P                  V P                  V P                  4      V n	        VP                  ! V P                  3/ V P                  B V n        \        P                  RV P                   RV P                   24       \        P                  R4       R#   \         d    ^ RIp L¼i ; i)r   )rb   Nz Initialized TensorBoard project z logging to úaMake sure to log any initial configurations with `self.store_init_configuration` before training!)Útorch.utilsrb   ÚModuleNotFoundErrorÚtensorboardXrh   ÚpathÚjoinrm   re   rf   ÚSummaryWriterrn   ÚwriterÚloggerÚdebug)r   rb   s   & r!   r:   ÚTensorBoardTracker.startÊ   s™   € ð	/Ý/ô Ÿ7™7Ÿ<™<¨×(>Ñ(>ÀÇÁÓNˆÔØ!×/Ò/°×0@Ñ0@ÑUÀD×DTÑDTÑUˆŒÜ�‰Ð7¸¿¹°ÀlÐSW×ScÑScÐRdÐeÔfÜ�‰Øoö	
øô #ô 	/Ý.ð	/ús   ‚B3 Â3CÃCc                ó   € V P                   # rW   ©rz   r9   s   &r!   r/   ÚTensorBoardTracker.tracker×   ó   € à�{‰{Ðr$   c                ó    <€ V ^8„  d   QhRS[ /# r>   rA   )rC   rD   s   "€r!   rE   rj   Ü   s   ø€ ÷ jñ j©tñ jr$   c                óœ  € V P                   P                  V/ R7       V P                   P                  4        \        P                  ! 4       p\        P
                  P                  V P                  \        V4      4      p\        P                  ! VRR7       \        \        P
                  P                  VR4      R4      ;_uu_ 4       p \        P                  ! W4        RRR4       \        P#                  R4       R#   \        P                  P                   d    \        P!                  R4       h i ; i  + '       g   i     L`; i)	a  
Logs `values` as hyperparameters for the run. Should be run at the beginning of your experiment. Stores the
hyperparameters in a yaml file for future use.

Args:
    values (Dictionary `str` to `bool`, `str`, `float` or `int`):
        Values to be stored as initial hyperparameters as key-value pairs. The values need to have type `bool`,
        `str`, `float`, `int`, or `None`.
)Úmetric_dictT)Úexist_okzhparams.ymlÚwz-Serialization to store hyperparameters failedNzQStored initial configuration hyperparameters to TensorBoard and hparams yaml file)rz   Úadd_hparamsÚflushÚtimerh   rw   rx   rf   rg   ÚmakedirsÚopenÚyamlÚdumpÚrepresenterÚRepresenterErrorr{   Úerrorr|   )r   r@   Úproject_run_nameÚdir_nameÚoutfiles   &&   r!   rI   Ú+TensorBoardTracker.store_init_configurationÛ   sÞ   € ð 	�‰×Ñ °BÐÔ7Ø�‰×ÑÔÜŸ9š9›;ÐÜ—7‘7—<‘< × 0Ñ 0´#Ð6FÓ2GÓHˆÜ
�Š�H tÕ,Ü”"—'‘'—,‘,˜x¨Ó7¸×=Ô=ÀðÜ—	’	˜&Õ*÷ >ô 	�‰ÐhÖiøô ×#Ñ#×4Ñ4ô Ü—‘ÐLÔMØðú÷ >×=ús   Ã
D;ÃDÄ6D8Ä8D;Ä;E	c                ó6   <€ V ^8„  d   QhRS[ RS[S[,          /# rL   rN   )rC   rD   s   "€r!   rE   rj   ô   s   ø€ ÷ ;ñ ;™$ð ;¡h©s¥mñ ;r$   c                ó  € \        V4      pVP                  4        F°  w  rE\        V\        \        34      '       d"   V P
                  P                  ! WE3RV/VB  KB  \        V\        4      '       d"   V P
                  P                  ! WE3RV/VB  Ky  \        V\        4      '       g   K‘  V P
                  P                  ! WE3RV/VB  K²  	  V P
                  P                  4        \        P                  R4       R# )aR  
Logs `values` to the current run.

Args:
    values (Dictionary `str` to `str`, `float`, `int` or `dict` of `str` to `float`/`int`):
        Values to be logged as key-value pairs. The values need to have type `str`, `float`, `int` or `dict` of
        `str` to `float`/`int`.
    step (`int`, *optional*):
        The run step. If included, the log will be affiliated with this step.
    kwargs:
        Additional key word arguments passed along to either `SummaryWriter.add_scaler`,
        `SummaryWriter.add_text`, or `SummaryWriter.add_scalers` method based on the contents of `values`.
Úglobal_stepz"Successfully logged to TensorBoardN)r   ÚitemsÚ
isinstancerO   Úfloatrz   Ú
add_scalarrg   Úadd_textrB   Úadd_scalarsrˆ   r{   r|   ©r   r@   rM   r   ÚkÚvs   &&&,  r!   rR   ÚTensorBoardTracker.logó   s½   € ô ˜“ˆØ—L‘L–N‰DˆAÜ˜!œc¤5˜\×*Ò*Ø—‘×&Ò& qÑH¸ÐHÀÔHÜ˜Aœs×#Ò#Ø—‘×$Ò$ QÑF°tÐF¸vÔFÜ˜Aœt×$Ô$Ø—‘×'Ò'¨ÑI¸$ÐIÀ&ÔIñ #ð 	�‰×ÑÔÜ�‰Ð9Ö:r$   c                ó6   <€ V ^8„  d   QhRS[ RS[S[,          /# rL   rN   )rC   rD   s   "€r!   rE   rj     s#   ø€ ÷ Bñ B¡ð B©X±c­]ñ Br$   c                ó    € VP                  4        F$  w  rEV P                  P                  ! WE3RV/VB  K&  	  \        P	                  R4       R# )a­  
Logs `images` to the current run.

Args:
    values (Dictionary `str` to `List` of `np.ndarray` or `PIL.Image`):
        Values to be logged as key-value pairs. The values need to have type `List` of `np.ndarray` or
    step (`int`, *optional*):
        The run step. If included, the log will be affiliated with this step.
    kwargs:
        Additional key word arguments passed along to the `SummaryWriter.add_image` method.
r—   z)Successfully logged images to TensorBoardN)r˜   rz   Ú
add_imagesr{   r|   rž   s   &&&,  r!   Ú
log_imagesÚTensorBoardTracker.log_images  s?   € ð —L‘L–N‰DˆAØ�K‰K×"Ò" 1ÑD°TÐD¸VÔDñ #ä�‰Ð@ÖAr$   c                ód   € V P                   P                  4        \        P                  R4       R# )z
Closes `TensorBoard` writer
zTensorBoard writer closedN)rz   Úcloser{   r|   r9   s   &r!   rU   ÚTensorBoardTracker.finish  s!   € ð
 	�‰×ÑÔÜ�‰Ð0Ö1r$   )rn   rf   rm   re   rz   rW   ©rX   rY   rZ   r[   r\   r-   r.   r6   r   r:   Úpropertyr/   rI   rR   r¥   rU   r]   r^   Ú__classcell__©rp   rD   s   @@r!   ra   ra   ´   s­   ù‡ € ñ
ð €DØ!%Ð÷"ó "ð ñ

ó ð

ð ñó ðð ÷jó ðjð. ÷;ñ ;ó ð;ð2 ÷Bñ Bó ðBð  ñ2ó ÷2ð 2r$   ra   c                   óú   a a€ ] tR tRt oRtRtRtRtV3R lV 3R llt]	R 4       t
]R 4       t]	V3R	 lR
 l4       t]	RV3R lR ll4       t]	RV3R lR ll4       t]	RV3R lR ll4       t]	R 4       tRtVtV ;t# )ÚWandBTrackeri'  a*  
A `Tracker` class that supports `wandb`. Should be initialized at the start of your script.

Args:
    run_name (`str`):
        The name of the experiment run.
    **kwargs (additional keyword arguments, *optional*):
        Additional key word arguments passed along to the `wandb.init` method.
ÚwandbFc                ó    <€ V ^8„  d   QhRS[ /# ©r?   re   ©rg   )rC   rD   s   "€r!   rE   ÚWandBTracker.__annotate__6  ó   ø€ ÷ "ñ "¡ñ "r$   c                ó<   <€ \         SV `  4        Wn        W n        R # rW   ©rl   r6   re   rn   ©r   re   r   rp   s   &&,€r!   r6   ÚWandBTracker.__init__6  ó   ø€ Ü‰ÑÔØ ŒØ!Ör$   c                óÖ   € ^ RI pVP                  ! RRV P                  /V P                  B V n        \
        P                  RV P                   24       \
        P                  R4       R# )r   NÚprojectzInitialized WandB project rs   r'   )r°   Úinitre   rn   Úrunr{   r|   )r   r°   s   & r!   r:   ÚWandBTracker.start;  sN   € ãà—:’:ÑH d§m¡mÐH°t×7GÑ7GÑHˆŒÜ�‰Ð1°$·-±-°ÐAÔBÜ�‰Øoö	
r$   c                ó   € V P                   # rW   ©r¾   r9   s   &r!   r/   ÚWandBTracker.trackerE  ó   € à�x‰xˆr$   c                ó    <€ V ^8„  d   QhRS[ /# r>   rA   )rC   rD   s   "€r!   rE   r´   J  s   ø€ ÷ Nñ N©tñ Nr$   c                ór   € ^ RI pVP                  P                  VRR7       \        P	                  R4       R# )áE  
Logs `values` as hyperparameters for the run. Should be run at the beginning of your experiment.

Args:
    values (Dictionary `str` to `bool`, `str`, `float` or `int`):
        Values to be stored as initial hyperparameters as key-value pairs. The values need to have type `bool`,
        `str`, `float`, `int`, or `None`.
NT©Úallow_val_changez5Stored initial configuration hyperparameters to WandB)r°   ÚconfigÚupdater{   r|   )r   r@   r°   s   && r!   rI   Ú%WandBTracker.store_init_configurationI  s+   € ó 	à�‰×Ñ˜F°TÐÔ:Ü�‰ÐLÖMr$   c                ó6   <€ V ^8„  d   QhRS[ RS[S[,          /# rL   rN   )rC   rD   s   "€r!   rE   r´   Y  s   ø€ ÷ 5ñ 5™$ð 5¡h©s¥mñ 5r$   c                ón   € V P                   P                  ! V3RV/VB  \        P                  R4       R# )aÜ  
Logs `values` to the current run.

Args:
    values (Dictionary `str` to `str`, `float`, `int` or `dict` of `str` to `float`/`int`):
        Values to be logged as key-value pairs. The values need to have type `str`, `float`, `int` or `dict` of
        `str` to `float`/`int`.
    step (`int`, *optional*):
        The run step. If included, the log will be affiliated with this step.
    kwargs:
        Additional key word arguments passed along to the `wandb.log` method.
rM   zSuccessfully logged to WandBN©r¾   rR   r{   r|   rQ   s   &&&,r!   rR   ÚWandBTracker.logX  s+   € ð 	�‰�Š�VÑ1 $Ð1¨&Ò1Ü�‰Ð3Ö4r$   c                ó6   <€ V ^8„  d   QhRS[ RS[S[,          /# rL   rN   )rC   rD   s   "€r!   rE   r´   j  s   ø€ ÷ <ñ <¡ð <©X±c­]ñ <r$   c           
     óÜ   € ^ RI pVP                  4        F9  w  rVV P                  ! YV Uu. uF  qtP                  V4      NK  	  up/3RV/VB  K;  	  \        P                  R4       R# u upi )aŸ  
Logs `images` to the current run.

Args:
    values (Dictionary `str` to `List` of `np.ndarray` or `PIL.Image`):
        Values to be logged as key-value pairs. The values need to have type `List` of `np.ndarray` or
    step (`int`, *optional*):
        The run step. If included, the log will be affiliated with this step.
    kwargs:
        Additional key word arguments passed along to the `wandb.log` method.
NrM   z#Successfully logged images to WandB)r°   r˜   rR   ÚImager{   r|   )r   r@   rM   r   r°   rŸ   r    Úimages   &&&,    r!   r¥   ÚWandBTracker.log_imagesi  s\   € ó 	à—L‘L–N‰DˆAØ�HŠH�a¸!Ó<¹!°Ÿ+™+ eÖ,¹!Ñ<Ð=ÑSÀDÐSÈFÔSñ #ä�‰Ð:Ö;ùò =ó   ªA)c                ó˜   <€ V ^8„  d   QhRS[ RS[S[S[ ,          ,          RS[S[S[S[,          ,          ,          RS[RS[S[,          /# ©r?   Ú
table_nameÚcolumnsÚdataÚ	dataframerM   ©rg   r   Úlistr   rO   )rC   rD   s   "€r!   rE   r´   }  sW   ø€ ÷ .ñ .áð.ñ ™$™s�)Õ$ð.ñ ‘t™D¡�I•Õ'ð	.ñ
 ð.ñ ‘s�mñ.r$   c                ó`   € ^ RI pWP                  W#VR7      /pV P                  ! V3RV/VB  R# )a{  
Log a Table containing any object type (text, image, audio, video, molecule, html, etc). Can be defined either
with `columns` and `data` or with `dataframe`.

Args:
    table_name (`str`):
        The name to give to the logged table on the wandb workspace
    columns (list of `str`, *optional*):
        The name of the columns on the table
    data (List of List of Any data type, *optional*):
        The data to be logged in the table
    dataframe (Any data type, *optional*):
        The data to be logged in the table
    step (`int`, *optional*):
        The run step. If included, the log will be affiliated with this step.
N)rÙ   rÚ   rÛ   rM   )r°   ÚTablerR   )	r   rØ   rÙ   rÚ   rÛ   rM   r   r°   r@   s	   &&&&&&,  r!   Ú	log_tableÚWandBTracker.log_table|  s3   € ó4 	àŸk™k°'ÐPY˜kÓZÐ[ˆØ�Š�Ñ-˜dÐ- fÔ-r$   c                ód   € V P                   P                  4        \        P                  R4       R# )z
Closes `wandb` writer
zWandB run closedN©r¾   rU   r{   r|   r9   s   &r!   rU   ÚWandBTracker.finish›  s   € ð
 	�‰�‰ÔÜ�‰Ð'Ö(r$   ©rn   r¾   re   rW   ©NNNN)rX   rY   rZ   r[   r\   r-   r.   r   r6   r   r:   r«   r/   rI   rR   r¥   rà   rU   r]   r^   r¬   r­   s   @@r!   r¯   r¯   '  sÉ   ù‡ € ñð €DØ!&ÐØÐ÷"ó "ð
 ñ
ó ð
ð ñó ðð ÷Nó ðNð ÷5ñ 5ó ð5ð  ÷<ñ <ó ð<ð$ ÷.ñ .ó ð.ð< ñ)ó ÷)ð )r$   r¯   c                   óº   a a€ ] tR tRt oRtRtRtRtV3R lV 3R llt]	R 4       t
]R 4       t]	V3R	 lR
 l4       t]	RV3R lR ll4       t]	R 4       tRtVtV ;t# )ÚTrackioTrackeri¤  a(  
A `Tracker` class that supports `trackio`. Should be initialized at the start of your script.

Args:
    run_name (`str`):
        The name of the experiment run. Will be used as the `project` name when instantiating trackio.
    **kwargs (additional keyword arguments, *optional*):
        Additional key word arguments passed along to the `trackio.init` method. Refer to this
        [init](https://github.com/gradio-app/trackio/blob/814809552310468b13f84f33764f1369b4e5136c/trackio/__init__.py#L22)
        to see all supported key word arguments.
ÚtrackioFc                ó    <€ V ^8„  d   QhRS[ /# r²   r³   )rC   rD   s   "€r!   rE   ÚTrackioTracker.__annotate__µ  rµ   r$   c                ó<   <€ \         SV `  4        Wn        W n        R # rW   r·   r¸   s   &&,€r!   r6   ÚTrackioTracker.__init__µ  rº   r$   c                óÖ   € ^ RI pVP                  ! RRV P                  /V P                  B V n        \
        P                  RV P                   24       \
        P                  R4       R# )r   Nr¼   zInitialized trackio project rs   r'   )ré   r½   re   rn   r¾   r{   r|   )r   ré   s   & r!   r:   ÚTrackioTracker.startº  sN   € ãà—<’<ÑJ¨¯©ÐJ¸×9IÑ9IÑJˆŒÜ�‰Ð3°D·M±M°?ÐCÔDÜ�‰Øoö	
r$   c                ó   € V P                   # rW   rÁ   r9   s   &r!   r/   ÚTrackioTracker.trackerÄ  rÃ   r$   c                ó    <€ V ^8„  d   QhRS[ /# r>   rA   )rC   rD   s   "€r!   rE   rë   É  ó   ø€ ÷ Pñ P©tñ Pr$   c                ór   € ^ RI pVP                  P                  VRR7       \        P	                  R4       R# )rÆ   NTrÇ   z7Stored initial configuration hyperparameters to trackio)ré   rÉ   rÊ   r{   r|   )r   r@   ré   s   && r!   rI   Ú'TrackioTracker.store_init_configurationÈ  ó+   € ó 	à�‰×Ñ˜f°tÐÔ<Ü�‰ÐNÖOr$   c                ó6   <€ V ^8„  d   QhRS[ RS[S[,          /# rL   rN   )rC   rD   s   "€r!   rE   rë   Ø  s   ø€ ÷ 7ñ 7™$ð 7¡h©s¥mñ 7r$   c                ón   € V P                   P                  ! V3RV/VB  \        P                  R4       R# )aÞ  
Logs `values` to the current run.

Args:
    values (Dictionary `str` to `str`, `float`, `int` or `dict` of `str` to `float`/`int`):
        Values to be logged as key-value pairs. The values need to have type `str`, `float`, `int` or `dict` of
        `str` to `float`/`int`.
    step (`int`, *optional*):
        The run step. If included, the log will be affiliated with this step.
    kwargs:
        Additional key word arguments passed along to the `trackio.log` method.
rM   zSuccessfully logged to trackioNrÎ   rQ   s   &&&,r!   rR   ÚTrackioTracker.log×  s+   € ð 	�‰�Š�VÑ1 $Ð1¨&Ò1Ü�‰Ð5Ö6r$   c                ód   € V P                   P                  4        \        P                  R4       R# )z
Closes `trackio` run
ztrackio run closedNrã   r9   s   &r!   rU   ÚTrackioTracker.finishè  ó   € ð
 	�‰�‰ÔÜ�‰Ð)Ö*r$   rå   rW   )rX   rY   rZ   r[   r\   r-   r.   r   r6   r   r:   r«   r/   rI   rR   rU   r]   r^   r¬   r­   s   @@r!   rè   rè   ¤  s—   ù‡ € ñ
ð €DØ!&ÐØÐ÷"ó "ð
 ñ
ó ð
ð ñó ðð ÷Pó ðPð ÷7ñ 7ó ð7ð  ñ+ó ÷+ð +r$   rè   c                   ó¶   a a€ ] tR tRt oRtRtRtV3R lV 3R llt]R 4       t	]
R 4       t]V3R	 lR
 l4       t]RV3R lR ll4       t]R 4       tRtVtV ;t# )ÚCometMLTrackeriñ  a“  
A `Tracker` class that supports `comet_ml`. Should be initialized at the start of your script.

API keys must be stored in a Comet config file.

Note:
    For `comet_ml` versions < 3.41.0, additional keyword arguments are passed to `comet_ml.Experiment` instead:
    https://www.comet.com/docs/v2/api-and-sdk/python-sdk/reference/Experiment/#comet_ml.Experiment.__init__

Args:
    run_name (`str`):
        The name of the experiment run.
    **kwargs (additional keyword arguments, *optional*):
        Additional key word arguments passed along to the `comet_ml.start` method:
        https://www.comet.com/docs/v2/api-and-sdk/python-sdk/reference/start/
Úcomet_mlFc                ó    <€ V ^8„  d   QhRS[ /# r²   r³   )rC   rD   s   "€r!   rE   ÚCometMLTracker.__annotate__  rµ   r$   c                ó<   <€ \         SV `  4        Wn        W n        R # rW   r·   r¸   s   &&,€r!   r6   ÚCometMLTracker.__init__  rº   r$   c                óÂ  € ^ RI p\        P                  ! VP                  4      p\	        VRR4      '       d/   VP
                  ! RRV P                  /V P                  B V n        MB\        P                  R4       VP                  ! RRV P                  /V P                  B V n        \        P                  RV P                   24       \        P                  R4       R# )	r   Nz>=z3.41.0Úproject_namezFUpdate `comet_ml` (>=3.41.0) for experiment reuse and offline support.zInitialized CometML project rs   r'   )rÿ   r   ÚparseÚ__version__r   r:   re   rn   rz   r{   ÚinfoÚ
Experimentr|   )r   rÿ   Úcomet_versions   &  r!   r:   ÚCometMLTracker.start  s¢   € ãäŸš h×&:Ñ&:Ó;ˆÜ˜M¨4°×:Ò:Ø"Ÿ.š.ÑX°d·m±mÐXÀt×GWÑGWÑXˆD�Kä�K‰KÐ`ÔaØ"×-Ò-Ñ]¸4¿=¹=Ð]ÈD×L\ÑL\Ñ]ˆDŒKä�‰Ð3°D·M±M°?ÐCÔDÜ�‰Øoö	
r$   c                ó   € V P                   # rW   r   r9   s   &r!   r/   ÚCometMLTracker.tracker  r�   r$   c                ó    <€ V ^8„  d   QhRS[ /# r>   rA   )rC   rD   s   "€r!   rE   r     s   ø€ ÷ 
Nñ 
N©tñ 
Nr$   c                óf   € V P                   P                  V4       \        P                  R4       R# )rÆ   z5Stored initial configuration hyperparameters to CometN)rz   Úlog_parametersr{   r|   rH   s   &&r!   rI   Ú'CometMLTracker.store_init_configuration  s#   € ð 	�‰×"Ñ" 6Ô*Ü�‰ÐLÖMr$   c                ó6   <€ V ^8„  d   QhRS[ RS[S[,          /# rL   rN   )rC   rD   s   "€r!   rE   r  -  s   ø€ ÷ 5ñ 5™$ð 5¡h©s¥mñ 5r$   c                óò  € Ve   V P                   P                  V4       VP                  4        F®  w  rE\        V\        \
        34      '       d"   V P                   P                  ! WE3RV/VB  KB  \        V\        4      '       d    V P                   P                  ! WE3/ VB  Kw  \        V\        4      '       g   K�  V P                   P                  ! V3RV/VB  K°  	  \        P                  R4       R# )aJ  
Logs `values` to the current run.

Args:
    values (Dictionary `str` to `str`, `float`, `int` or `dict` of `str` to `float`/`int`):
        Values to be logged as key-value pairs. The values need to have type `str`, `float`, `int` or `dict` of
        `str` to `float`/`int`.
    step (`int`, *optional*):
        The run step. If included, the log will be affiliated with this step.
    kwargs:
        Additional key word arguments passed along to either `Experiment.log_metric`, `Experiment.log_other`,
        or `Experiment.log_metrics` method based on the contents of `values`.
NrM   zSuccessfully logged to Comet)rz   Úset_stepr˜   r™   rO   rš   Ú
log_metricrg   Ú	log_otherrB   Úlog_metricsr{   r|   rž   s   &&&,  r!   rR   ÚCometMLTracker.log,  s·   € ð ÒØ�K‰K× Ñ  Ô&Ø—L‘L–N‰DˆAÜ˜!œc¤5˜\×*Ò*Ø—‘×&Ò& qÑA°$ÐA¸&ÔAÜ˜Aœs×#Ò#Ø—‘×%Ò% aÑ5¨fÔ5Ü˜Aœt×$Ô$Ø—‘×'Ò'¨Ñ?°Ð?¸Ô?ñ #ô 	�‰Ð3Ö4r$   c                ód   € V P                   P                  4        \        P                  R4       R# )z
Flush `comet-ml` writer
zComet run flushedN)rz   Úendr{   r|   r9   s   &r!   rU   ÚCometMLTracker.finishF  s   € ð
 	�‰�‰ÔÜ�‰Ð(Ö)r$   )rn   re   rz   rW   ©rX   rY   rZ   r[   r\   r-   r.   r6   r   r:   r«   r/   rI   rR   rU   r]   r^   r¬   r­   s   @@r!   rþ   rþ   ñ  s‘   ù‡ € ñð" €DØ!&Ð÷"ó "ð
 ñ
ó ð
ð ñó ðð ÷
Nó ð
Nð ÷5ñ 5ó ð5ð2 ñ*ó ÷*ð *r$   rþ   c                   óÚ   a a€ ] tR tRt oRtRtRtRV3R lV 3R lllt]R 4       t	]
R 4       t]V3R	 lR
 l4       t]RV3R lR ll4       t]RV3R lR ll4       t]R 4       tRtVtV ;t# )Ú
AimTrackeriO  a*  
A `Tracker` class that supports `aim`. Should be initialized at the start of your script.

Args:
    run_name (`str`):
        The name of the experiment run.
    **kwargs (additional keyword arguments, *optional*):
        Additional key word arguments passed along to the `Run.__init__` method.
ÚaimTc                ó`   <€ V ^8„  d   QhRS[ RS[S[S[ S[P                  3,          ,          /# rd   )rg   r   r   rh   ri   )rC   rD   s   "€r!   rE   ÚAimTracker.__annotate__]  s.   ø€ ÷ "ñ "¡ð "±8¹EÁ#ÁrÇ{Á{ÐBRÕ<SÕ3Tñ "r$   c                óH   <€ \         SV `  4        Wn        W n        W0n        R # rW   )rl   r6   re   Úaim_repo_pathrn   ro   s   &&&,€r!   r6   ÚAimTracker.__init__]  s   ø€ Ü‰ÑÔØ ŒØ(ÔØ!Ör$   c                óü   € ^ RI Hp V! RRV P                  /V P                  B V n        V P
                  V P                  n        \        P                  RV P
                   24       \        P                  R4       R# )r   )ÚRunÚrepozInitialized Aim project rs   Nr'   )	r  r&  r#  rn   rz   re   r-   r{   r|   )r   r&  s   & r!   r:   ÚAimTracker.startc  s\   € åáÑF˜t×1Ñ1ÐF°T×5EÑ5EÑFˆŒØŸ=™=ˆ�‰ÔÜ�‰Ð/°·±¨Ð?Ô@Ü�‰Øoö	
r$   c                ó   € V P                   # rW   r   r9   s   &r!   r/   ÚAimTracker.trackern  r�   r$   c                ó    <€ V ^8„  d   QhRS[ /# r>   rA   )rC   rD   s   "€r!   rE   r!  s  s   ø€ ÷ (ñ (©tñ (r$   c                ó"   € WP                   R&   R# )úÉ
Logs `values` as hyperparameters for the run. Should be run at the beginning of your experiment.

Args:
    values (`dict`):
        Values to be stored as initial hyperparameters as key-value pairs.
ÚhparamsNr   rH   s   &&r!   rI   Ú#AimTracker.store_init_configurationr  s   € ð "(�‰�IÓr$   c                ó6   <€ V ^8„  d   QhRS[ RS[S[,          /# rL   rN   )rC   rD   s   "€r!   rE   r!  ~  s#   ø€ ÷ Dñ D™$ð D¡h©s¥mñ Dr$   c                óz   € VP                  4        F&  w  rEV P                  P                  ! V3RVRV/VB  K(  	  R# )a5  
Logs `values` to the current run.

Args:
    values (`dict`):
        Values to be logged as key-value pairs.
    step (`int`, *optional*):
        The run step. If included, the log will be affiliated with this step.
    kwargs:
        Additional key word arguments passed along to the `Run.track` method.
r-   rM   N)r˜   rz   Útrack)r   r@   rM   r   ÚkeyÚvalues   &&&,  r!   rR   ÚAimTracker.log}  s7   € ð !Ÿ,™,ž.‰JˆCØ�K‰K×Ò˜eÑC¨#ÐC°DÐC¸FÔCó )r$   c          	      ób   <€ V ^8„  d   QhRS[ RS[S[,          RS[S[ S[S[ 3,          ,          /# )r?   r@   rM   r   )rB   r   rO   rg   )rC   rD   s   "€r!   rE   r!  �  s=   ø€ ÷ Jñ J¡ð J©X±c­]ð JÉ8ÑTXÑY\Ñ^bÐYbÕTcÕKdñ Jr$   c                ó@  € ^ RI p/ p/ pVe%   VP                  R/ 4      pVP                  R/ 4      pVP                  4        FY  w  rx\        V\        4      '       d   Vw  ršMTRr©VP
                  ! V	3RV
/VB pV P                  P                  ! V3RVRV/VB  K[  	  R# )a›  
Logs `images` to the current run.

Args:
    values (`Dict[str, Union[np.ndarray, PIL.Image, Tuple[np.ndarray, str], Tuple[PIL.Image, str]]]`):
        Values to be logged as key-value pairs. The values need to have type `np.ndarray` or PIL.Image. If a
        tuple is provided, the first element should be the image and the second element should be the caption.
    step (`int`, *optional*):
        The run step. If included, the log will be affiliated with this step.
    kwargs (`Dict[str, dict]`):
        Additional key word arguments passed along to the `Run.Image` and `Run.track` method specified by the
        keys `aim_image` and `track`, respectively.
NÚ	aim_imager2  r,   Úcaptionr-   rM   )r  Úgetr˜   r™   ÚtuplerÒ   rz   r2  )r   r@   rM   r   r  Úaim_image_kwÚtrack_kwr3  r4  Úimgr9  r8  s   &&&&        r!   r¥   ÚAimTracker.log_imagesŽ  sŸ   € ó 	àˆØˆàÒØ!Ÿ:™: k°2Ó6ˆLØ—z‘z '¨2Ó.ˆHà Ÿ,™,ž.‰JˆCÜ˜%¤×'Ò'Ø$‘��Wà$ b�WØŸ	š	 #ÑG¨wÐG¸,ÑGˆIØ�K‰K×Ò˜iÑI¨cÐI¸ÐIÀÔIó )r$   c                ó:   € V P                   P                  4        R# )z
Closes `aim` writer
N)rz   r¨   r9   s   &r!   rU   ÚAimTracker.finish®  s   € ð
 	�‰×ÑÖr$   )r#  rn   re   rz   )Ú.rW   ©NNrª   r­   s   @@r!   r  r  O  s®   ù‡ € ñð €DØ!%Ð÷"õ "ð ñ
ó ð
ð ñó ðð ÷(ó ð(ð ÷Dñ Dó ðDð  ÷Jñ Jó ðJð> ñó ÷ð r$   r  c                   ó
  a € ] tR tRt o RtRtRtRV 3R lR llt]R 4       t	]
R	 4       t]V 3R
 lR l4       t]RV 3R lR ll4       t]V 3R lR l4       t]RV 3R lR ll4       t]RV 3R lR ll4       t]R 4       tRtV tR# )ÚMLflowTrackeri¶  u²  
A `Tracker` class that supports `mlflow`. Should be initialized at the start of your script.

Args:
    experiment_name (`str`, *optional*):
        Name of the experiment. Environment variable MLFLOW_EXPERIMENT_NAME has priority over this argument.
    logging_dir (`str` or `os.PathLike`, defaults to `"."`):
        Location for mlflow logs to be stored.
    run_id (`str`, *optional*):
        If specified, get the run with the specified UUID and log parameters and metrics under that run. The runâ€™s
        end time is unset and its status is set to running, but the runâ€™s other attributes (source_version,
        source_type, etc.) are not changed. Environment variable MLFLOW_RUN_ID has priority over this argument.
    tags (`Dict[str, str]`, *optional*):
        An optional `dict` of `str` keys and values, or a `str` dump from a `dict`, to set as tags on the run. If a
        run is being resumed, these tags are set on the resumed run. If a new run is being created, these tags are
        set on the new run. Environment variable MLFLOW_TAGS has priority over this argument.
    nested_run (`bool`, *optional*, defaults to `False`):
        Controls whether run is nested in parent run. True creates a nested run. Environment variable
        MLFLOW_NESTED_RUN has priority over this argument.
    run_name (`str`, *optional*):
        Name of new run (stored as a mlflow.runName tag). Used only when `run_id` is unspecified.
    description (`str`, *optional*):
        An optional string that populates the description box of the run. If a run is being resumed, the
        description is set on the resumed run. If a new run is being created, the description is set on the new
        run.
ÚmlflowFNc                ó
  <€ V ^8„  d   QhRS[ S[,          RS[ S[S[S[P                  3,          ,          RS[ S[,          RS[ S[S[S[S[3,          S[3,          ,          RS[ S[,          RS[ S[,          RS[ S[,          /# )r?   Úexperiment_namerf   Úrun_idÚtagsÚ
nested_runre   Údescription)r   rg   r   rh   ri   rB   r   Úbool)rC   rD   s   "€r!   rE   ÚMLflowTracker.__annotate__Õ  s�   ø€ ÷ 'ñ 'á!¡#�ð'ñ ™e¡C©¯©Ð$4Õ5Õ6ð'ñ ™•ð	'ñ
 ‘u™T¡#¡s (�^©SÐ0Õ1Õ2ð'ñ ™T•Nð'ñ ™3•-ð'ñ ™c•]ñ'r$   c                óú  € \         P                  P                  R V4      p\         P                  P                  RV4      p\         P                  P                  RV4      p\        V\        4      '       d   \
        P                  ! V4      p\         P                  P                  RV4      p\        V\        4      '       d   \        V4      ^8H  pWn        W n	        W0n
        W@n        WPn        W`n        Wpn        R# )ÚMLFLOW_EXPERIMENT_NAMEÚMLFLOW_RUN_IDÚMLFLOW_TAGSÚMLFLOW_NESTED_RUNN)rh   Úenvironr:  r™   rg   ÚjsonÚloadsr   rH  rf   rI  rJ  rK  re   rL  )r   rH  rf   rI  rJ  rK  re   rL  s   &&&&&&&&r!   r6   ÚMLflowTracker.__init__Õ  s³   € ô Ÿ*™*Ÿ.™.Ð)AÀ?ÓSˆÜ—‘—‘ °Ó8ˆÜ�z‰z�~‰~˜m¨TÓ2ˆÜ�dœC× Ò Ü—:’:˜dÓ#ˆDä—Z‘Z—^‘^Ð$7¸ÓDˆ
Ü�j¤#×&Ò&Ü$ ZÓ0°AÑ5ˆJà.ÔØ&ÔØŒØŒ	Ø$ŒØ ŒØ&Ör$   c           	     óN  € ^ RI pVP                  RV P                   R2R7      p\        V4      ^ 8”  d:   \        V4      ^8”  d   \        P                  R4       V^ ,          P                  pM2VP                  V P                  V P                  V P                  R7      pVP                  V P                  VV P                  V P                  V P                  V P                  R7      V n        \        P!                  RV P                   24       \        P!                  R	4       R# )
r   Nzname = 'Ú')Úfilter_stringz?Multiple experiments with the same name found. Using first one.)r-   Úartifact_locationrJ  )rI  Úexperiment_idre   ÚnestedrJ  rL  zInitialized mlflow experiment rs   )rF  Úsearch_experimentsrH  r1   r{   Úwarningr\  Úcreate_experimentrf   rJ  Ú	start_runrI  re   rK  rL  Ú
active_runr|   )r   rF  Úexpsr\  s   &   r!   r:   ÚMLflowTracker.startñ  sö   € ãà×(Ñ(¸À$×BVÑBVÐAWÐWXÐ7YÐ(ÓZˆÜˆt‹9�qŒ=Ü�4‹y˜1Œ}Ü—‘Ð`ÔaØ  �G×1Ñ1‰Mà"×4Ñ4Ø×)Ñ)Ø"&×"2Ñ"2Ø—Y‘Yð 5ó ˆMð !×*Ñ*Ø—;‘;Ø'Ø—]‘]Ø—?‘?Ø—‘Ø×(Ñ(ð +ó 
ˆŒô 	�‰Ð5°d×6JÑ6JÐ5KÐLÔMÜ�‰Øoö	
r$   c                ó   € V P                   # rW   )rb  r9   s   &r!   r/   ÚMLflowTracker.tracker  s   € à�‰Ðr$   c                ó    <€ V ^8„  d   QhRS[ /# r>   rA   )rC   rD   s   "€r!   rE   rN    s   ø€ ÷ Oñ O©tñ Or$   c           
     ót  € ^ RI p. pVP                  4        F�  w  rE\        \        V4      4      VP                  P
                  P                  8”  d@   \        P                  RV RV RVP                  P
                  P                   R24       K{  VP                  WE34       K�  	  \        ^ \        V4      VP                  P
                  P                  4       FC  pVP                  \        W6WbP                  P
                  P                  ,            4      4       KE  	  \        P                  R4       R# )r-  Nz,Accelerate is attempting to log a value of "z" for key "zJ" as a parameter. MLflow's log_param() only accepts values no longer than z) characters so we dropped this attribute.z6Stored initial configuration hyperparameters to MLflow)rF  r˜   r1   rg   ÚutilsÚ
validationÚMAX_PARAM_VAL_LENGTHr{   Úwarning_onceÚappendÚrangeÚMAX_PARAMS_TAGS_PER_BATCHÚ
log_paramsrB   r|   )r   r@   rF  Úvalues_listr-   r4  Úis   &&     r!   rI   Ú&MLflowTracker.store_init_configuration  sü   € ó 	àˆØ!Ÿ<™<ž>‰KˆDä”3�u“:‹ §¡×!8Ñ!8×!MÑ!MÔMÜ×#Ñ#ØBÀ5À'ÈÐUYÐTZð [GØGMÇ|Á|×G^ÑG^×GsÑGsÐFtð  u^ð_öð
 ×"Ñ" D =Ö1ñ *ô �qœ#˜kÓ*¨F¯L©L×,CÑ,C×,]Ñ,]Ö^ˆAØ×Ñœd ;°1·|±|×7NÑ7N×7hÑ7hÕ3hÐ#iÓjÖkñ _ô 	�‰ÐMÖNr$   c                ó6   <€ V ^8„  d   QhRS[ RS[S[,          /# rL   rN   )rC   rD   s   "€r!   rE   rN  0  s   ø€ ÷ 6ñ 6™$ð 6¡h©s¥mñ 6r$   c           
     ó,  € / pVP                  4        FO  w  rV\        V\        \        34      '       d   WdV&   K'  \        P                  RV R\        V4       RV R24       KQ  	  ^ RIpVP                  ! V3RV/VB  \        P                  R4       R# )a>  
Logs `values` to the current run.

Args:
    values (`dict`):
        Values to be logged as key-value pairs.
    step (`int`, *optional*):
        The run step. If included, the log will be affiliated with this step.
    kwargs:
        Additional key word arguments passed along to the `mlflow.log_metrics` method.
z/MLflowTracker is attempting to log a value of "ú
" of type ú
 for key "zc" as a metric. MLflow's log_metric() only accepts float and int types so we dropped this attribute.NrM   zSuccessfully logged to mlflow)
r˜   r™   rO   rš   r{   rl  ÚtyperF  r  r|   )r   r@   rM   r   ÚmetricsrŸ   r    rF  s   &&&,    r!   rR   ÚMLflowTracker.log/  s–   € ð ˆØ—L‘L–N‰DˆAÜ˜!œc¤5˜\×*Ò*Ø˜“
ä×#Ñ#ØEÀaÀSÈ
ÔSWÐXYÓSZÐR[Ð[eÐfgÐehð ikð köñ	 #ó 	à×Ò˜7Ñ8¨Ð8°Ò8Ü�‰Ð4Ö5r$   c                ó&   <€ V ^8„  d   QhRS[ RS[/# )r?   ÚfigureÚartifact_file)r   rg   )rC   rD   s   "€r!   rE   rN  K  s   ø€ ÷ <ñ <¡ð <±Sñ <r$   c                ód   € ^ RI pVP                  ! RRVRV/VB  \        P                  R4       R# )a–  
Logs an figure to the current run.

Args:
    figure (`Any`):
        The figure to be logged.
    artifact_file (`str`, *optional*):
        The run-relative artifact file path in posixpath format to which the image is saved. If not
        provided, the image is saved to a default location.
    **save_kwargs:
        Additional keyword arguments passed to the underlying `mlflow.log_figure` function.
Nr|  r}  z#Successfully logged image to mlflowr'   )rF  Ú
log_figurer{   r|   )r   r|  r}  Úsave_kwargsrF  s   &&&, r!   r  ÚMLflowTracker.log_figureJ  s/   € ó 	à×ÒÑT ÐT°}ÐTÈÒTÜ�‰Ð:Ö;r$   c                ó6   <€ V ^8„  d   QhRS[ RS[S[ ,          /# )r?   Ú	local_dirÚartifact_path©rg   r   )rC   rD   s   "€r!   rE   rN  ^  ó   ø€ ÷ ?ñ ?¡sð ?¹8ÁC½=ñ ?r$   c                ó\   € ^ RI pVP                  WR7       \        P                  R4       R# )aÁ  
Logs an artifacts (all content of a dir) to the current run.

    local_dir (`str`):
        Path to the directory to be logged as an artifact.
    artifact_path (`str`, *optional*):
        Directory within the run's artifact directory where the artifact will be logged. If omitted, the
        artifact will be logged to the root of the run's artifact directory. The run step. If included, the
        artifact will be affiliated with this step.
N)rƒ  r„  ú&Successfully logged artofact to mlflow)rF  Úlog_artifactsr{   r|   )r   rƒ  r„  rF  s   &&& r!   r‰  ÚMLflowTracker.log_artifacts]  s%   € ó 	à×Ñ yÐÔNÜ�‰Ð=Ö>r$   c                ó6   <€ V ^8„  d   QhRS[ RS[S[ ,          /# )r?   Ú
local_pathr„  r…  )rC   rD   s   "€r!   rE   rN  o  r†  r$   c                ó\   € ^ RI pVP                  WR7       \        P                  R4       R# )a¬  
Logs an artifact (file) to the current run.

    local_path (`str`):
        Path to the file to be logged as an artifact.
    artifact_path (`str`, *optional*):
        Directory within the run's artifact directory where the artifact will be logged. If omitted, the
        artifact will be logged to the root of the run's artifact directory. The run step. If included, the
        artifact will be affiliated with this step.
N)rŒ  r„  rˆ  )rF  Úlog_artifactr{   r|   )r   rŒ  r„  rF  s   &&& r!   rŽ  ÚMLflowTracker.log_artifactn  s%   € ó 	à×Ñ zÐÔOÜ�‰Ð=Ö>r$   c                ó.   € ^ RI pVP                  4        R# )z
End the active MLflow run.
N)rF  Úend_run)r   rF  s   & r!   rU   ÚMLflowTracker.finish  s   € ó
 	à�‰Ör$   )rb  rL  rH  rf   rK  rI  re   rJ  )NNNNFNNrW   )rX   rY   rZ   r[   r\   r-   r.   r6   r   r:   r«   r/   rI   rR   r  r‰  rŽ  rU   r]   r^   r_   s   @r!   rE  rE  ¶  sÒ   ø‡ € ñð6 €DØ!&Ð÷'ò 'ð8 ñ
ó ð
ð: ñó ðð ÷Oó ðOð6 ÷6ñ 6ó ð6ð4 ÷<ó ð<ð$ ÷?ñ ?ó ð?ð  ÷?ñ ?ó ð?ð  ñó ör$   rE  c                   ó
  a a€ ] tR tRt oRtRtRtRV3R lV 3R lllt]R 4       t	]
R 4       t]V3R	 lR
 l4       t]RV3R lR ll4       t]RV3R lR ll4       t]RV3R lR ll4       t]R 4       t]R 4       tRtVtV ;t# )ÚClearMLTrackeri‰  a�  
A `Tracker` class that supports `clearml`. Should be initialized at the start of your script.

Args:
    run_name (`str`, *optional*):
        Name of the experiment. Environment variables `CLEARML_PROJECT` and `CLEARML_TASK` have priority over this
        argument.
    **kwargs (additional keyword arguments, *optional*):
        Kwargs passed along to the `Task.__init__` method.
ÚclearmlFc                ó0   <€ V ^8„  d   QhRS[ S[,          /# r²   )r   rg   )rC   rD   s   "€r!   rE   ÚClearMLTracker.__annotate__˜  s   ø€ ÷ "ñ "¡©#¥ñ "r$   c                óJ   <€ \         SV `  4        Wn        R V n        W n        R# )FN)rl   r6   Úuser_provided_run_nameÚ_initialized_externallyrn   r¸   s   &&,€r!   r6   ÚClearMLTracker.__init__˜  s"   ø€ Ü‰ÑÔØ&.Ô#Ø',ˆÔ$Ø!Ör$   c                ó’  € ^ RI Hp VP                  4       pV'       d   RV n        W n        R# / V P
                  CpVP                  R\        P                  P                  RV P                  4      4       VP                  R\        P                  P                  RV P                  4      4       VP                  ! R/ VB V n        R# )	r   )ÚTaskTNr  ÚCLEARML_PROJECTÚ	task_nameÚCLEARML_TASKr'   )r•  r�  Úcurrent_taskrš  Útaskrn   Ú
setdefaultrh   rT  r:  r™  r½   )r   r�  r¡  Útask_init_argss   &   r!   r:   ÚClearMLTracker.startž  s•   € å à×(Ñ(Ó*ˆßØ+/ˆDÔ(Ø$ŒIÙà-˜D×,Ñ,Ð-ˆØ×!Ñ! .´"·*±*·.±.ÐARÐTX×ToÑToÓ2pÔqØ×!Ñ! +¬r¯z©z¯~©~¸nÈd×NiÑNiÓ/jÔkØ—I’IÑ/ Ñ/ˆŽ	r$   c                ó   € V P                   # rW   )r¢  r9   s   &r!   r/   ÚClearMLTracker.tracker­  ó   € à�y‰yÐr$   c                ó    <€ V ^8„  d   QhRS[ /# r>   rA   )rC   rD   s   "€r!   rE   r—  ²  s   ø€ ÷ 7ñ 7©tñ 7r$   c                ó8   € V P                   P                  V4      # )zÐ
Connect configuration dictionary to the Task object. Should be run at the beginning of your experiment.

Args:
    values (`dict`):
        Values to be stored as initial hyperparameters as key-value pairs.
)r¢  Úconnect_configurationrH   s   &&r!   rI   Ú'ClearMLTracker.store_init_configuration±  s   € ð �y‰y×.Ñ.¨vÓ6Ð6r$   c                ób   <€ V ^8„  d   QhRS[ S[S[S[S[3,          3,          RS[S[,          /# rL   )rB   rg   r   rO   rš   r   )rC   rD   s   "€r!   rE   r—  ½  s6   ø€ ÷ hñ h™$™s¡E©#©u¨*Õ$5Ð5Õ6ð h¹hÁs½mñ hr$   c                ó’  € V P                   P                  4       pVP                  4        F˜  w  rV\        V\        \
        34      '       g+   \        P                  RV R\        V4       RV R24       KK  Vf   VP                  ! RRVRV/VB  Kg  \        P                  V4      w  rxVP                  ! RRVR	VRVR
V/VB  Kš  	  R# )aP  
Logs `values` dictionary to the current run. The dictionary keys must be strings. The dictionary values must be
ints or floats

Args:
    values (`Dict[str, Union[int, float]]`):
        Values to be logged as key-value pairs. If the key starts with 'eval_'/'test_'/'train_', the value will
        be reported under the 'eval'/'test'/'train' series and the respective prefix will be removed.
        Otherwise, the value will be reported under the 'train' series, and no prefix will be removed.
    step (`int`, *optional*):
        If specified, the values will be reported as scalars, with the iteration number equal to `step`.
        Otherwise they will be reported as single values.
    kwargs:
        Additional key word arguments passed along to the `clearml.Logger.report_single_value` or
        `clearml.Logger.report_scalar` methods.
z-Accelerator is attempting to log a value of "rv  rw  zn" as a scalar. This invocation of ClearML logger's  report_scalar() is incorrect so we dropped this attribute.Nr-   r4  ÚtitleÚseriesÚ	iterationr'   )r¢  r	   r˜   r™   rO   rš   r{   rl  rx  Úreport_single_valuer”  Ú_get_title_seriesÚreport_scalar©	r   r@   rM   r   Úclearml_loggerrŸ   r    r¯  r°  s	   &&&,     r!   rR   ÚClearMLTracker.log¼  sÎ   € ð$ Ÿ™×-Ñ-Ó/ˆØ—L‘L–N‰DˆAÜ˜a¤#¤u ×.Ò.Ü×#Ñ#ðØ�s˜*¤T¨!£W I¨Z¸°sð ;AðAôñ ØŠ|Ø×2Ò2ÑM¸ÐMÀÐMÀfÒMÙÜ*×<Ñ<¸QÓ?‰MˆEØ×(Ò(Ñg¨uÐg¸VÐgÈ1ÐgÐX\ÐgÐ`fÔgó #r$   c                ó6   <€ V ^8„  d   QhRS[ RS[S[,          /# rL   rN   )rC   rD   s   "€r!   rE   r—  ß  s#   ø€ ÷ gñ g¡ð g©X±c­]ñ gr$   c                óÎ   € V P                   P                  4       pVP                  4        F6  w  rV\        P	                  V4      w  rxVP
                  ! RRVRVRVRV/VB  K8  	  R# )a¦  
Logs `images` to the current run.

Args:
    values (`Dict[str, List[Union[np.ndarray, PIL.Image]]`):
        Values to be logged as key-value pairs. The values need to have type `List` of `np.ndarray` or
    step (`int`, *optional*):
        The run step. If included, the log will be affiliated with this step.
    kwargs:
        Additional key word arguments passed along to the `clearml.Logger.report_image` method.
r¯  r°  r±  rÓ   Nr'   )r¢  r	   r˜   r”  r³  Úreport_imagerµ  s	   &&&,     r!   r¥   ÚClearMLTracker.log_imagesÞ  sa   € ð Ÿ™×-Ñ-Ó/ˆØ—L‘L–N‰DˆAÜ*×<Ñ<¸QÓ?‰MˆEØ×'Ò'Ñf¨eÐf¸FÐfÈdÐfÐZ[ÐfÐ_eÔfó #r$   c                ó˜   <€ V ^8„  d   QhRS[ RS[S[S[ ,          ,          RS[S[S[S[,          ,          ,          RS[RS[S[,          /# r×   rÜ   )rC   rD   s   "€r!   rE   r—  ñ  s^   ø€ ÷ #xñ #xáð#xñ ™$™s�)Õ$ð#xñ ‘t™D¡�I•Õ'ð	#xñ
 ð#xñ ‘s�mñ#xr$   c                óê   € TpVf$   Vf   \        R4      hV'       d   V.V,           MTp\        P                  V4      w  r‰V P                  P	                  4       P
                  ! RRVRV	RVRV/VB  R# )aò  
Log a Table to the task. Can be defined eitherwith `columns` and `data` or with `dataframe`.

Args:
    table_name (`str`):
        The name of the table
    columns (list of `str`, *optional*):
        The name of the columns on the table
    data (List of List of Any data type, *optional*):
        The data to be logged in the table. If `columns` is not specified, then the first entry in data will be
        the name of the columns of the table
    dataframe (Any data type, *optional*):
        The data to be logged in the table
    step (`int`, *optional*):
        The run step. If included, the log will be affiliated with this step.
    kwargs:
        Additional key word arguments passed along to the `clearml.Logger.report_table` method.
NzW`ClearMLTracker.log_table` requires that `data` to be supplied if `dataframe` is `None`r¯  r°  Ú
table_plotr±  r'   )Ú
ValueErrorr”  r³  r¢  r	   Úreport_table)
r   rØ   rÙ   rÚ   rÛ   rM   r   Ú	to_reportr¯  r°  s
   &&&&&&,   r!   rà   ÚClearMLTracker.log_tableð  s}   € ð8 ˆ	ØÒØŠ|Ü Ømóð ÷ -4˜˜	 DÖ(¸ˆIÜ&×8Ñ8¸ÓD‰ˆØ�	‰	×ÑÓ×+Ò+Ñw°%ÐwÀÐwÐS\ÐwÐhlÐwÐpvÔwr$   c                óŠ   € V P                   '       d1   V P                  '       g   V P                   P                  4        R# R# R# )z€
Close the ClearML task. If the task was initialized externally (e.g. by manually calling `Task.init`), this
function is a noop
N)r¢  rš  r¨   r9   s   &r!   rU   ÚClearMLTracker.finish  s-   € ð �9�9ˆ9˜T×9×9Ð9Ø�I‰I�O‰OÖñ :‰9r$   c                óŠ   € R F:  pV P                  VR,           4      '       g   K#  V \        V4      ^,           R V3u # 	  V R3# )ÚevalÚtrainÚ_N)rÆ  ÚtestrÇ  )Ú
startswithr1   )r-   Úprefixs   & r!   r³  Ú ClearMLTracker._get_title_series  sF   € ã/ˆFØ�‰˜v¨�|×,Ô,ØœC ›K¨!�OÐ-Ð.°Ð6Ò6ñ 0ð �Wˆ}Ðr$   )rš  rn   r¢  r™  rW   ræ   )rX   rY   rZ   r[   r\   r-   r.   r6   r   r:   r«   r/   rI   rR   r¥   rà   rU   Ústaticmethodr³  r]   r^   r¬   r­   s   @@r!   r”  r”  ‰  sà   ù‡ € ñ	ð €DØ!&Ð÷"õ "ð ñ0ó ð0ð ñó ðð ÷7ó ð7ð ÷hñ hó ðhðB ÷gñ gó ðgð" ÷#xñ #xó ð#xðJ ñó ðð ñó ÷ð r$   r”  c                   óº   a a€ ] tR tRt oRtRtRtRV3R lV 3R lllt]R 4       t	]
R 4       t]V3R	 lR
 l4       t]RV3R lR ll4       t]R 4       tRtVtV ;t# )ÚDVCLiveTrackeri'  a  
A `Tracker` class that supports `dvclive`. Should be initialized at the start of your script.

Args:
    run_name (`str`, *optional*):
        Ignored for dvclive. See `kwargs` instead.
    kwargs:
        Additional key word arguments passed along to [`dvclive.Live()`](https://dvc.org/doc/dvclive/live).

Example:

```py
from accelerate import Accelerator

accelerator = Accelerator(log_with="dvclive")
accelerator.init_trackers(project_name="my_project", init_kwargs={"dvclive": {"dir": "my_directory"}})
```
ÚdvcliveFc                óF   <€ V ^8„  d   QhRS[ S[,          RS[ S[,          /# )r?   re   Úlive)r   rg   r   )rC   rD   s   "€r!   rE   ÚDVCLiveTracker.__annotate__>  s#   ø€ ÷ "ñ "¡©#¥ð "¹XÁc½]ñ "r$   c                ó<   <€ \         SV `  4        W n        W0n        R # rW   )rl   r6   rÒ  rn   )r   re   rÒ  r   rp   s   &&&,€r!   r6   ÚDVCLiveTracker.__init__>  s   ø€ Ü‰ÑÔØŒ	Ø!Ör$   c                ó‚   € ^ RI Hp V P                  e   V P                  V n        R# V! R/ V P                  B V n        R# )r   )ÚLiveNr'   )rÐ  r×  rÒ  rn   )r   r×  s   & r!   r:   ÚDVCLiveTracker.startC  s-   € å à!%§¡Ò!6�D—I‘IˆŽ	¹DÑ<TÀ4×CSÑCSÑ<TˆŽ	r$   c                ó   € V P                   # rW   )rÒ  r9   s   &r!   r/   ÚDVCLiveTracker.trackerI  r¨  r$   c                ó    <€ V ^8„  d   QhRS[ /# r>   rA   )rC   rD   s   "€r!   rE   rÓ  N  s   ø€ ÷ 
%ñ 
%©tñ 
%r$   c                ó<   € V P                   P                  V4       R# )a—  
Logs `values` as hyperparameters for the run. Should be run at the beginning of your experiment. Stores the
hyperparameters in a yaml file for future use.

Args:
    values (Dictionary `str` to `bool`, `str`, `float`, `int`, or a List or Dict of those types):
        Values to be stored as initial hyperparameters as key-value pairs. The values need to have type `bool`,
        `str`, `float`, or `int`.
N)rÒ  rp  rH   s   &&r!   rI   Ú'DVCLiveTracker.store_init_configurationM  s   € ð 	�	‰	×Ñ˜VÖ$r$   c                ó6   <€ V ^8„  d   QhRS[ RS[S[,          /# rL   rN   )rC   rD   s   "€r!   rE   rÓ  [  s   ø€ ÷ ñ ™$ð ¡h©s¥mñ r$   c           
     ó\  € ^ RI Hp Ve   W P                  n        VP	                  4        Fc  w  rVVP                  V4      '       d    V P                  P                  ! WV3/ VB  K;  \        P                  RV R\        V4       RV R24       Ke  	  V P                  P                  4        R# )a—  
Logs `values` to the current run.

Args:
    values (Dictionary `str` to `str`, `float`, or `int`):
        Values to be logged as key-value pairs. The values need to have type `str`, `float`, or `int`.
    step (`int`, *optional*):
        The run step. If included, the log will be affiliated with this step.
    kwargs:
        Additional key word arguments passed along to `dvclive.Live.log_metric()`.
)ÚMetricNz)Accelerator attempted to log a value of "rv  rw  zh" as a scalar. This invocation of DVCLive's Live.log_metric() is incorrect so we dropped this attribute.)Údvclive.plotsrà  rÒ  rM   r˜   Ú	could_logr  r{   rl  rx  Ú	next_step)r   r@   rM   r   rà  rŸ   r    s   &&&,   r!   rR   ÚDVCLiveTracker.logZ  s–   € õ 	)àÒØ!�I‰IŒNØ—L‘L–N‰DˆAØ×Ñ ×"Ò"Ø—	‘	×$Ò$ QÑ4¨VÔ4ä×#Ñ#ðØ�s˜*¤T¨!£W I¨Z¸°sð ;AðAöñ	 #ð 	�	‰	×ÑÖr$   c                ó:   € V P                   P                  4        R# )z
Closes `dvclive.Live()`.
N)rÒ  r  r9   s   &r!   rU   ÚDVCLiveTracker.finishw  s   € ð
 	�	‰	�‰Žr$   )rn   rÒ  rC  rW   r  r­   s   @@r!   rÏ  rÏ  '  s‘   ù‡ € ñð& €DØ!&Ð÷"õ "ð
 ñUó ðUð
 ñó ðð ÷
%ó ð
%ð ÷ñ ó ðð8 ñó ÷ð r$   rÏ  c                   óÚ   a a€ ] tR tRt oRtRtRtRtV3R lV 3R llt]	R 4       t
]R 4       t]	V3R	 lR
 l4       t]	RV3R lR ll4       t]	RV3R lR ll4       t]	R 4       tRtVtV ;t# )ÚSwanLabTrackeri  a.  
A `Tracker` class that supports `swanlab`. Should be initialized at the start of your script.

Args:
    run_name (`str`):
        The name of the experiment run.
    **kwargs (additional keyword arguments, *optional*):
        Additional key word arguments passed along to the `swanlab.init` method.
ÚswanlabFc                ó    <€ V ^8„  d   QhRS[ /# r²   r³   )rC   rD   s   "€r!   rE   ÚSwanLabTracker.__annotate__Ž  rµ   r$   c                ó<   <€ \         SV `  4        Wn        W n        R # rW   r·   r¸   s   &&,€r!   r6   ÚSwanLabTracker.__init__Ž  rº   r$   c                óô   € ^ RI pVP                  ! RRV P                  /V P                  B V n        RVP
                  R&   \        P                  RV P                   24       \        P                  R4       R# )r   Nr¼   u   ðŸ¤—AccelerateÚ	FRAMEWORKzInitialized SwanLab project rs   r'   )ré  r½   re   rn   r¾   rÉ   r{   r|   )r   ré  s   & r!   r:   ÚSwanLabTracker.start“  s\   € ãà—<’<ÑJ¨¯©ÐJ¸×9IÑ9IÑJˆŒØ&6ˆ�‰�{Ñ#Ü�‰Ð3°D·M±M°?ÐCÔDÜ�‰Øoö	
r$   c                ó   € V P                   # rW   rÁ   r9   s   &r!   r/   ÚSwanLabTracker.trackerž  rÃ   r$   c                ó    <€ V ^8„  d   QhRS[ /# r>   rA   )rC   rD   s   "€r!   rE   rë  £  ró   r$   c                ór   € ^ RI pVP                  P                  VRR7       \        P	                  R4       R# )rÆ   NTrÇ   z7Stored initial configuration hyperparameters to SwanLab)ré  rÉ   rÊ   r{   r|   )r   r@   ré  s   && r!   rI   Ú'SwanLabTracker.store_init_configuration¢  rö   r$   c                ó6   <€ V ^8„  d   QhRS[ RS[S[,          /# rL   rN   )rC   rD   s   "€r!   rE   rë  ²  s   ø€ ÷ 7ñ 7™$ð 7¡h©s¥mñ 7r$   c                ón   € V P                   P                  ! V3RV/VB  \        P                  R4       R# )aÃ  
Logs `values` to the current run.

Args:
    values (`Dict[str, DataType]`):
        Values to be logged as key-value pairs. The key must be a string with 0-9, a-z, A-Z, " ", "_", "-",
        "/". The value must be a `float`, `float convertible object`, `int` or `swanlab.data.BaseType`.
    step (`int`, *optional*):
        The step number of the current data, if not provided, it will be automatically incremented. If step
        is duplicated, the data will be ignored.
    kwargs:
        Additional key word arguments passed along to the `swanlab.log` method. Likes:
            print_to_console (`bool`, *optional*):
                Whether to print the data to the console, the default is False.
rM   zSuccessfully logged to SwanLabNrÎ   rQ   s   &&&,r!   rR   ÚSwanLabTracker.log±  s+   € ð" 	�‰�Š�VÑ1 $Ð1¨&Ò1Ü�‰Ð5Ö6r$   c                ó6   <€ V ^8„  d   QhRS[ RS[S[,          /# rL   rN   )rC   rD   s   "€r!   rE   rë  Æ  s   ø€ ÷ >ñ >¡ð >©X±c­]ñ >r$   c           
     óÜ   € ^ RI pVP                  4        F9  w  rVV P                  ! YV Uu. uF  qtP                  V4      NK  	  up/3RV/VB  K;  	  \        P                  R4       R# u upi )a&  
Logs `images` to the current run.

Args:
    values (Dictionary `str` to `List` of `np.ndarray` or `PIL.Image`):
        Values to be logged as key-value pairs. The values need to have type `List` of `np.ndarray` or
    step (`int`, *optional*):
        The run step. If included, the log will be affiliated with this step.
    kwargs:
        Additional key word arguments passed along to the `swanlab.log` method. Likes:
            print_to_console : bool, optional
                Whether to print the data to the console, the default is False.
NrM   z%Successfully logged images to SwanLab)ré  r˜   rR   rÒ   r{   r|   )r   r@   rM   r   ré  rŸ   r    rÓ   s   &&&,    r!   r¥   ÚSwanLabTracker.log_imagesÅ  s\   € ó 	à—L‘L–N‰DˆAØ�HŠH�a¸AÓ>¹A°5Ÿ-™-¨Ö.¹AÑ>Ð?ÑUÀdÐUÈfÔUñ #ä�‰Ð<Ö=ùò ?rÕ   c                ód   € V P                   P                  4        \        P                  R4       R# )z
Closes `swanlab` writer
zSwanLab run closedNrã   r9   s   &r!   rU   ÚSwanLabTracker.finishÚ  rü   r$   rå   rW   )rX   rY   rZ   r[   r\   r-   r.   r   r6   r   r:   r«   r/   rI   rR   r¥   rU   r]   r^   r¬   r­   s   @@r!   rè  rè    s°   ù‡ € ñð €DØ!&ÐØÐ÷"ó "ð
 ñ
ó ð
ð ñó ðð ÷Pó ðPð ÷7ñ 7ó ð7ð& ÷>ñ >ó ð>ð( ñ+ó ÷+ð +r$   rè  r  rÿ   rF  rb   r°   r•  rÐ  ré  ré   c                ó:   € V ^8„  d   QhR\         \        ,          /# )r?   Útracker_class)rx  r*   )rC   s   "r!   rE   rE   ð  s   € ÷ /=ñ /=¬$¬~Õ*>ñ /=r$   c                ó�  € \        V \        4      '       d   \        V \        4      '       g   \	        RV  R24      h\        V RR4      '       g   \	        R4      h\        V R4      '       g   \	        R4      hV P                  \        9   d(   \        P                  ! RV P                   R	V  R
24       V \        V P                  &   R# )aö  
Registers a custom [`GeneralTracker`] subclass so it can be referenced by its `name` in the `log_with` argument of
[`Accelerator`], the same way as the built-in trackers.

The tracker must be registered before instantiating the [`Accelerator`] that uses it.

Args:
    tracker_class (subclass of [`GeneralTracker`]):
        The tracker class to register. It must subclass [`GeneralTracker`] and define a non-empty `name` class
        attribute and a `requires_logging_directory` class attribute. The class is instantiated with the
        `project_name` passed to [`Accelerator.init_trackers`] as the first positional argument. When
        `requires_logging_directory` is `True`, the logging directory is passed as the second positional argument
        (matching the built-in tracker convention). Tracker-specific keyword arguments from `init_kwargs` are
        forwarded as `**kwargs`.

Example:

```python
from accelerate import Accelerator
from accelerate.tracking import GeneralTracker, register_tracker_class


class MyTracker(GeneralTracker):
    name = "my_tracker"
    requires_logging_directory = False
    # ... implement the rest of the `GeneralTracker` interface


register_tracker_class(MyTracker)
accelerator = Accelerator(log_with="my_tracker")
```
z@`tracker_class` must be a subclass of `GeneralTracker`, but got rB  r-   NzGThe tracker class to register must define a non-empty `name` attribute.r.   zªThe tracker class to register must define a `requires_logging_directory` class attribute. Set it to `True` if the tracker needs a logging directory, or `False` otherwise.zA tracker with the name 'z3' is already registered and will be overwritten by zC. This is especially significant when shadowing a built-in tracker.)r™   rx  Ú
issubclassr*   r¿  r   r0   r-   ÚLOGGER_TYPE_TO_CLASSÚwarningsÚwarn)rÿ  s   &r!   Úregister_tracker_classr  ð  sÁ   € ôB �}¤d×+Ò+´
¸=Ì.×0YÒ0YÜÐ[Ð\iÐ[jÐjkÐlÓmÐmÜ�= &¨$×/Ò/ÜÐbÓcÐcÜ�=Ð">×?Ò?Üð_ó
ð 	
ð ×ÑÔ1Ô1Ü�ŠØ'¨×(:Ñ(:Ð';Ð;nØˆoÐ`ðbô	
ð 0=Ô˜×+Ñ+Ó,r$   c                ó¾   € V ^8„  d   QhR\         \        \        \        \        3,          ,          R\
        \        \        \        P                  3,          ,          /# )r?   Úlog_withrf   )rÝ   r   rg   r   r*   r   rh   ri   )rC   s   "r!   rE   rE   "  sD   € ÷ Bñ BÜ”5œœj¬.Ð8Õ9Õ:ðBäœ%¤¤R§[¡[Ð 0Õ1Õ2ñBr$   c                ó6  € . pV Ee   \        V \        \        34      '       g   V .p RV 9   g   \        P                  V 9   dE   V  Uu. uF&  p\        \        V4      \        4      '       g   K$  VNK(  	  up\        4       ,           pV# V  EF†  pV\        9  dX   \        \        V4      \        4      '       g9   \        V4      \        9  d%   \        RV R\        P                  ! 4        24      h\        \        V4      \        4      '       d   VP                  V4       K˜  V\        9   d�   \        V4      pWB9  d{   V\        4       9   dP   \        \        V4      ,          pVP                  '       d   Vf   \        RV R24      hVP                  V4       EK  \        P                  RV R24       EK.  EK1  WB9  g   EK:  \        \        V4      ,          pVP                  '       d   Vf   \        RV R24      hVP                  V4       EK‰  	  V# u upi )a+  
Takes in a list of potential tracker types and checks that:
    - The tracker wanted is available in that environment
    - Filters out repeats of tracker types
    - If `all` is in `log_with`, will return all trackers in the environment
    - If a tracker requires a `logging_dir`, ensures that `logging_dir` is not `None`

Args:
    log_with (list of `str`, [`~utils.LoggerType`] or [`~tracking.GeneralTracker`], *optional*):
        A list of loggers to be setup for experiment tracking. Should be one or several of:

        - `"all"`
        - `"tensorboard"`
        - `"wandb"`
        - `"trackio"`
        - `"aim"`
        - `"comet_ml"`
        - `"mlflow"`
        - `"dvclive"`
        - `"swanlab"`
        If `"all"` is selected, will pick up all available trackers in the environment and initialize them. Can
        also accept implementations of `GeneralTracker` for custom trackers, and can be combined with `"all"`.
    logging_dir (`str`, `os.PathLike`, *optional*):
        A path to a directory for storing logs of locally-compatible loggers.
Úallz Unsupported logging capability: z. Choose between zLogging with `z+` requires a `logging_dir` to be passed in.zTried adding logger z+, but package is unavailable in the system.)r™   rÝ   r;  r   ÚALLr  rx  r*   r(   rg   r  r¿  rm  r.   r{   r|   )r  rf   ÚloggersÚoÚlog_typeÚtracker_inits   &&    r!   Úfilter_trackersr  "  sÀ  € ð: €GØÓÜ˜(¤T¬5 M×2Ò2Ø �zˆHØ�HÔ¤
§¡°(Ô :Ù"*ÓR¡(˜Q¬j¼¸a»Ä.×.Q—q�q¡(ÑRÔUkÓUmÕmˆGð@ €Nô= %�à¤JÔ.Ü&¤t¨H£~´~×FÒFÜ˜H›Ô-AÔAä$Ð'GÈÀzÐQbÔcm×crÒcrÓctÐbuÐ%vÓwÐwÜœd 8›n¬n×=Ò=Ø—N‘N 8Ö,Ø¤Ô+Ü)¨(Ó3�HØÔ.Ø#Ô'=Ó'?Ô?Ü+?ÄÀHÃÕ+N˜LØ+×F×FÐFØ#.Ò#6Ü*4Ø*8¸¸
ÐBmÐ(nó+&ð %&ð $ŸN™N¨8×4ä"ŸL™LÐ+?À¸zÐItÐ)u×vò /ð  ×.Ü';¼CÀ»MÕ'J˜Ø'×B×BÐBÀ{ÒGZÜ",¨~¸h¸ZÐGrÐ-sÓ"tÐtØŸ™ x×0ñ9 %ð< €NùòA Ss   Á!HÁ-HrW   );rU  rh   r‰   r  Ú	functoolsr   Útypingr   r   r   rŒ   Ú	packagingr   Úloggingr	   Ústater
   ri  r   r   r   r   r   r   r   r   r   r   r   r   r   r&   rm  ÚTENSORBOARDÚWANDBÚCOMETMLÚAIMÚMLFLOWÚCLEARMLÚDVCLIVEÚSWANLABÚTRACKIOrX   r{   r   r(   r*   ra   r¯   rè   rþ   r  rE  r”  rÏ  rè  r  r  r  r'   r$   r!   Ú<module>r     s9  ðó$ Û 	Û Û Ý ß 'Ñ 'ã Ý å Ý ÷÷ ÷ õ ð" Ð á×ÒØ×Ñ˜z×5Ñ5Ô6á×ÒØ×Ñ˜z×/Ñ/Ô0á×ÒØ×Ñ˜z×1Ñ1Ô2á×ÒØ×Ñ˜zŸ~™~Ô.á×ÒØ×Ñ˜z×0Ñ0Ô1á×ÒØ×Ñ˜z×1Ñ1Ô2á×ÒØ×Ñ˜z×1Ñ1Ô2á×ÒØ×Ñ˜z×1Ñ1Ô2á×ÒØ×Ñ˜z×1Ñ1Ô2á	�HÓ	€ò#ò&÷
Jñ JôZp2˜ô p2ôfz)�>ô z)ôzJ+�^ô J+ôZ[*�^ô [*ô|d�ô dôNP�Nô Pôf[�^ô [ô|U�^ô Uôpa+�^ô a+ðJ 
ˆ:Ø�ØˆmØÐ%Øˆ\Øˆ~Øˆ~Øˆ~Øˆ~ð
Ð õ/=÷dBñ Br$   