Download shared/utils/__init__.py from imageomics/emb-explorer-demo: direct link, hf CLI and curl.
- Browser
- Download file 328 Bytes
-
https://huggingface.co/spaces/imageomics/emb-explorer-demo/resolve/main/shared/utils/__init__.py
- Command line
-
hf download hf://spaces/imageomics/emb-explorer-demo/shared/utils/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/imageomics/emb-explorer-demo/resolve/main/shared/utils/__init__.py
328 Bytes
| """ | |
| Shared utilities for clustering, IO, models, and taxonomy. | |
| Modules are imported lazily to avoid pulling in heavy dependencies | |
| (sklearn, umap, cuml, torch, open_clip) at startup. | |
| Use direct imports instead: | |
| from shared.utils.clustering import reduce_dim, run_kmeans | |
| from shared.utils.io import list_image_files | |
| """ | |