get_cache_dir() -> PathReturn the root cache directory for Detrium (~/.cache/detrium or $DETRIUM_CACHE_DIR).
Standard filesystem path helpers for Detrium caches and run directories.
get_cache_dir() -> PathReturn the root cache directory for Detrium (~/.cache/detrium or $DETRIUM_CACHE_DIR).
get_ops_cache_dir() -> PathReturn the out-of-tree build cache directory for compiled CUDA/C++ extensions.
get_hub_cache_dir() -> PathReturn the local cache directory for downloaded Hugging Face / ModelScope weights.
get_datasets_cache_dir() -> PathReturn the local cache directory for auto-downloaded sample datasets (e.g. coco8).
increment_path(path: PathLike, exist_ok: bool=False, mkdir: bool=False) -> PathIncrement a run directory path, e.g. runs/detect/train -> train2 -> train3.
| 名称 | 类型 | 默认值 |
|---|---|---|
path | PathLike | — |
exist_ok | bool | False |
mkdir | bool | False |