Esempio n. 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
Esempio n. 2
0
def get_sweep_dir() -> str:
    return HydraConfig.get().sweep.dir
Esempio n. 3
0
def get_overrides() -> str:
    """Return the configuration overrides"""
    return HydraConfig.get().job.override_dirname
Esempio n. 4
0
def get_hydra_config() -> DictConfig:
    r""" Return the configuration """
    return HydraConfig.get()
Esempio n. 5
0
def get_output_dir() -> str:
  r""" Return an unique output dir based on the configuration overrides """
  return HydraConfig.get().run.dir
Esempio n. 6
0
def get_output_dir() -> str:
  r""" Specific output dir based on the override """
  return HydraConfig.get().run.dir
Esempio n. 7
0
def get_overrides() -> str:
  return HydraConfig.get().job.override_dirname
Esempio n. 8
0
def get_hydra_config() -> DictConfig:
  return HydraConfig.get()