Download scripts/download_base_codecs.sh from SCU-VIP-Lab/FlexICM: direct link, hf CLI and curl.
- Browser
- Download file 703 Bytes
-
https://huggingface.co/SCU-VIP-Lab/FlexICM/resolve/19051ddde5ff4d3bb2d65fa930bb0af2ade29df1/scripts/download_base_codecs.sh
- Command line
-
hf download hf://SCU-VIP-Lab/FlexICM@19051ddde5ff4d3bb2d65fa930bb0af2ade29df1/scripts/download_base_codecs.sh
-
curl -L -o download_base_codecs.sh https://huggingface.co/SCU-VIP-Lab/FlexICM/resolve/19051ddde5ff4d3bb2d65fa930bb0af2ade29df1/scripts/download_base_codecs.sh
703 Bytes
| # Download pretrained TIC base codecs into checkpoints/base_codec/ | |
| set -euo pipefail | |
| ROOT="$(cd "$(dirname "$0")/.." && pwd)" | |
| OUT="${ROOT}/checkpoints/base_codec" | |
| mkdir -p "${OUT}" | |
| BASE_URL="https://github.com/NYCU-MAPL/TransTIC/releases/download/v1.0" | |
| for q in 1 2 3 4; do | |
| f="base_codec_${q}.pth.tar" | |
| # remove text placeholder if present | |
| rm -f "${OUT}/PLACEHOLDER_${f}.txt" | |
| if [[ -f "${OUT}/${f}" ]]; then | |
| echo "exists ${f}" | |
| else | |
| echo "downloading ${f}" | |
| curl -L "${BASE_URL}/${f}" -o "${OUT}/${f}" | |
| fi | |
| # also keep a convenience copy at checkpoints/ for older configs | |
| ln -sfn "base_codec/${f}" "${ROOT}/checkpoints/${f}" | |
| done | |
| echo "Done. Files in ${OUT}" | |