§
    iP„jã  ã                   ó   — d Z ddlmZ d„ ZdS )z"The central place to define flags.é    )Úflagsc                  ó�  — t          j        ddd¬¦  «         t          j        ddg d¢d¬¦  «         t          j        d	dd
¬¦  «         t          j        ddd¬¦  «         t          j        ddd¬¦  «         	 t          j        ddd¬¦  «         n# t           j        $ r Y nw xY w	 t          j        ddd¬¦  «         n# t           j        $ r Y nw xY wt          j        ddd¬¦  «         t          j        ddd¬¦  «         t          j        ddd¬¦  «         t          j        ddd¬¦  «         t          j        ddd¬¦  «         dS )aO  Defines flags.

  All flags are defined as optional, but in practice most models use some of
  these flags and so mark_flags_as_required() should be called after calling
  this function. Typically, 'experiment', 'mode', and 'model_dir' are required.
  For example:

  ```
  from absl import flags
  from official.common import flags as tfm_flags  # pylint: disable=line-too-long
  ...
  tfm_flags.define_flags()
  flags.mark_flags_as_required(['experiment', 'mode', 'model_dir'])
  ```

  The reason all flags are optional is because unit tests often do not set or
  use any of the flags.
  Ú
experimentNz?The experiment type registered, specifying an ExperimentConfig.)ÚdefaultÚhelpÚmode)ÚtrainÚevalÚtrain_and_evalÚcontinuous_evalÚcontinuous_train_and_evalÚtrain_and_validateÚtrain_and_post_evalz®Mode to run: `train`, `eval`, `train_and_eval`, `continuous_eval`, `continuous_train_and_eval` and `train_and_validate` (which is not implemented in the open source version).)r   Úenum_valuesr   Ú	model_dirzJThe directory where the model and training/evaluation summariesare stored.Úconfig_filea[  YAML/JSON files which specifies overrides. The override order follows the order of args. Note that each file can be used as an override template to override the default parameters specified in Python. If the same parameter is specified in both `--config_file` and `--params_override`, `config_file` will be used first, followed by params_override.Úparams_overrideaµ  a YAML/JSON string or a YAML file which specifies additional overrides over the default parameters and those specified in `--config_file`. Note that this is supposed to be used only to override the model parameters, but not the parameters like TPU specific flags. One canonical use case of `--config_file` and `--params_override` is users first define a template config file using `--config_file`, then use `--params_override` to adjust the minimal set of tuning parameters, for example setting up different `train_batch_size`. The final override order of parameters: default_model_params --> params from config_file --> params in params_override. See also the help message of `--config_file`.Úgin_filez"List of paths to the config files.Ú
gin_paramsz1Newline separated list of Gin parameter bindings.Útpuz‹The Cloud TPU to use for training. This should be either the name used when creating the Cloud TPU, or a grpc://ip.address.of.tpu:8470 url.Útf_data_servicezThe tf.data service addressÚtpu_platformzTPU platform type.Útfhub_handlez½TFHub handle for publishing the model to TFHub. When this flag is set your train.py should use xm_tfhub to publish to TFHub. If using TFleX, prefer tflex_output_uri + TfHubPusher component.Útflex_output_uriz�When running in TFleX, you can configure an XManagerLauncher output to set this flag (go/tflex-xm#connect-your-component-to-other-components))r   ÚDEFINE_stringÚDEFINE_enumÚDEFINE_multi_stringÚDuplicateFlagError© ó    úZ/root/disk_3tb/conda_envs/Huy-visual/lib/python3.11/site-packages/official/common/flags.pyÚdefine_flagsr"      sM  € õ& ÔØ˜DØGðIñ Iô Ið Iõ ÔØØðð ð ð
"ð#ñ #ô #ð #õ ÔØØððñ ô ð õ ÔØØð,ð-ñ -ô -ð -õ ÔØØð
ðñ ô ð ð"	Ý	ÔØ˜DÐ'KðMñ Mô Mð Mð Møå	Ô	!ð 	ð 	ð 	Ø€Dð	øøøð	Ý	ÔØØØ@ðBñ Bô Bð Bð Bøõ 
Ô	!ð 	ð 	ð 	Ø€Dð	øøøõ ÔØØððñ ô ð õ ÔØ Ð,IðKñ Kô Kð Kõ ÔØ˜dÐ)=ð?ñ ?ô ?ð ?õ ÔØØðMð	ñ ô ð õ" ÔØØðFð	ñ ô ð ð ð s$   Á8B ÂB"Â!B"Â&B> Â>CÃCN)Ú__doc__Úabslr   r"   r   r    r!   ú<module>r%      s=   ðð )Ð (à Ð Ð Ð Ð Ð ðyð yð yð yð yr    