Пример #1
0
def get_output_dir(subfolder: Optional[str] = None) -> str:
    """Return an unique output dir based on the configuration overrides"""
    path = HydraConfig.get().run.dir
    if subfolder is not None:
        name = os.path.basename(path)
        path = os.path.dirname(path)
        path = os.path.join(path, subfolder, name)
        if not os.path.exists(path):
            os.makedirs(path)
    return path
Пример #2
0
def get_sweep_dir() -> str:
    return HydraConfig.get().sweep.dir
Пример #3
0
def get_overrides() -> str:
    """Return the configuration overrides"""
    return HydraConfig.get().job.override_dirname
Пример #4
0
def get_hydra_config() -> DictConfig:
    r""" Return the configuration """
    return HydraConfig.get()
Пример #5
0
def get_output_dir() -> str:
  r""" Return an unique output dir based on the configuration overrides """
  return HydraConfig.get().run.dir
Пример #6
0
def get_output_dir() -> str:
  r""" Specific output dir based on the override """
  return HydraConfig.get().run.dir
Пример #7
0
def get_overrides() -> str:
  return HydraConfig.get().job.override_dirname
Пример #8
0
def get_hydra_config() -> DictConfig:
  return HydraConfig.get()