Download src/fiberpose/__init__.py from vikba/fp2: direct link, hf CLI and curl.
- Browser
- Download file 662 Bytes
-
https://huggingface.co/spaces/vikba/fp2/resolve/main/src/fiberpose/__init__.py
- Command line
-
hf download hf://spaces/vikba/fp2/src/fiberpose/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/vikba/fp2/resolve/main/src/fiberpose/__init__.py
662 Bytes
| """Fiberpose: distance-transform-based segmentation and morphometry of fibrous microstructures.""" | |
| __version__ = "0.1.0" | |
| __all__ = ["AnalysisResult", "AppConfig", "FiberposeError", "analyze", "__version__"] | |
| def __getattr__(name): | |
| # Imported lazily so `import fiberpose` and `fiberpose --help` stay fast | |
| # and don't load ONNX Runtime or compile numba kernels. | |
| if name in ("AnalysisResult", "FiberposeError", "analyze"): | |
| from . import api | |
| return getattr(api, name) | |
| if name == "AppConfig": | |
| from .domain import AppConfig | |
| return AppConfig | |
| raise AttributeError(f"module 'fiberpose' has no attribute {name!r}") | |