nicetoolbox.detectors.method_detectors.sam_3d_body.sam_3d_body_paths

Paths for SAM 3D Body: Hugging Face cache, upstream repo (git submodule), and raw inference .npz.

Functions

default_sam3d_assets_root

default_sam3d_repo_path

Default checkout: <repo>/submodules/sam-3d-body.

ensure_directory

ensure_hf_hub_cache_env

Set HF_HOME / HUGGINGFACE_HUB_CACHE under assets/sam_3d_body/hf_home if unset.

ensure_sam3d_repo

Resolve sam-3d-body checkout containing the sam_3d_body/ package.

nicetoolbox.detectors.method_detectors.sam_3d_body.sam_3d_body_paths.default_sam3d_repo_path(nicetoolbox_root: Path) Path[source]

Default checkout: <repo>/submodules/sam-3d-body.

nicetoolbox.detectors.method_detectors.sam_3d_body.sam_3d_body_paths.ensure_hf_hub_cache_env(nicetoolbox_root: Path) Path[source]

Set HF_HOME / HUGGINGFACE_HUB_CACHE under assets/sam_3d_body/hf_home if unset.

nicetoolbox.detectors.method_detectors.sam_3d_body.sam_3d_body_paths.ensure_sam3d_repo(repo: str | None, nicetoolbox_root: Path) Path[source]

Resolve sam-3d-body checkout containing the sam_3d_body/ package.