Download docs/inference.sh from MONAI/segmentation_template: direct link, hf CLI and curl.
- Browser
- Download file 396 Bytes
-
https://huggingface.co/MONAI/segmentation_template/resolve/main/docs/inference.sh
- Command line
-
hf download hf://MONAI/segmentation_template/docs/inference.sh
-
curl -L -o inference.sh https://huggingface.co/MONAI/segmentation_template/resolve/main/docs/inference.sh
396 Bytes
| eval "$(conda shell.bash hook)" | |
| conda activate monai | |
| homedir="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| BUNDLE="$(cd "$homedir/.." && pwd)" | |
| echo "Bundle root: $BUNDLE" | |
| export PYTHONPATH="$BUNDLE" | |
| python -m monai.bundle run \ | |
| --meta_file "$BUNDLE/configs/metadata.json" \ | |
| --config_file "$BUNDLE/configs/inference.yaml" \ | |
| --bundle_root "$BUNDLE" \ | |
| $@ | |