Skip to content

Configuration

The application is configured via environment variables controlled by the Env class.

satvis._env.Env

MASTER_ADDR class-attribute instance-attribute

MASTER_ADDR = EnvVariable(
    name="MASTER_ADDR",
    default_value="localhost",
    converter=str,
)

Master address for distributed training.

MASTER_PORT class-attribute instance-attribute

MASTER_PORT = EnvVariable(
    name="MASTER_PORT", default_value="12355", converter=str
)

Master port for distributed training.

SATVIS_DATASETS_DIR class-attribute instance-attribute

SATVIS_DATASETS_DIR = EnvVariable(
    name="SATVIS_DATASETS_DIR",
    default_value=str(
        home() / ".cache" / "satvis" / "datasets"
    ),
    converter=Path,
)

Raw datasets storage. May be slow (e.g., network drive).

SATVIS_MMAP_DATASETS_DIR class-attribute instance-attribute

SATVIS_MMAP_DATASETS_DIR = EnvVariable(
    name="SATVIS_MMAP_DATASETS_DIR",
    default_value=str(
        home() / ".cache" / "satvis" / "mmap_datasets"
    ),
    converter=Path,
)

Memory-mapped datasets storage. Should be on fast local storage.

SATVIS_MODEL_CACHE_DIR class-attribute instance-attribute

SATVIS_MODEL_CACHE_DIR = EnvVariable(
    name="SATVIS_MODEL_CACHE_DIR",
    default_value=str(
        home() / ".cache" / "satvis" / "models"
    ),
    converter=Path,
)

Directory where downloaded models are cached.