PreprocessedInventory
Note
This page is a reference documentation. It only explains the class signature, and not how to use it. Please refer to the Habitat Guide and Python API guide (v2.0) for usage.
- class PreprocessedInventory(root: Path, subjects: Tuple[str, ...], image_keys: Tuple[str, ...], mask_keys: Tuple[str, ...], example_image: str | None, example_mask: str | None)[source]
Bases:
objectFilesystem inventory of a HABIT
images/+masks/root.This is a directory listing, not a loaded
Cohort. Use it to show users what is on disk and what their own tree should look like before they callcohort_from_directory().- root
Absolute preprocessed root (contains
images/andmasks/).- Type:
- __str__() str[source]
Return the English layout report printed by
fetch_demo().