Download hmc/reference/scripts/fetch-ants.sh from neurodeskorg/webapps: direct link, hf CLI and curl.
- Browser
- Download file 439 Bytes
-
https://huggingface.co/datasets/neurodeskorg/webapps/resolve/main/hmc/reference/scripts/fetch-ants.sh
- Command line
-
hf download hf://datasets/neurodeskorg/webapps/hmc/reference/scripts/fetch-ants.sh
-
curl -L -o fetch-ants.sh https://huggingface.co/datasets/neurodeskorg/webapps/resolve/main/hmc/reference/scripts/fetch-ants.sh
439 Bytes
| # Download ANTs source at the commit of the repository's ANTs WASM. | |
| set -euo pipefail | |
| export TMPDIR=/var/tmp/dwi-tmp | |
| COMMIT=52bc0ab588102682587303d31c720de94e6ef6c1 | |
| cd /var/tmp/dwi-hmc/ants | |
| curl -sSL -o "ants-${COMMIT:0:7}.tar.gz" "https://codeload.github.com/ANTsX/ANTs/tar.gz/${COMMIT}" | |
| sha256sum "ants-${COMMIT:0:7}.tar.gz" | |
| rm -rf src | |
| mkdir src | |
| tar xzf "ants-${COMMIT:0:7}.tar.gz" -C src --strip-components=1 | |
| ls src | |