synthpic2.utilities
¶
Module for synthpic2 utilities.
Module Contents¶
Functions¶
|
Set seeds of numpy.random and python.random. |
|
|
|
Get the output root path from Hydra. |
- synthpic2.utilities.seed_everything(seed: int = 42) None ¶
Set seeds of numpy.random and python.random.
- Args:
seed (int, optional): Random seed. Defaults to 42.
- synthpic2.utilities.get_object_md5(obj: Any) str ¶
- synthpic2.utilities.get_unique_reproducible_random_colors(num_colors: int, alpha: float = 1) List[Tuple[float, float, float, float]] ¶
- synthpic2.utilities.get_hydra_output_root() pathlib.Path ¶
Get the output root path from Hydra.
- Returns:
pathlib.Path: Output root path.