예제 #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()