Download run.sh from HY-2012/DeepFilterNet3.AXERA: direct link, hf CLI and curl.
- Browser
- Download file 495 Bytes
-
https://huggingface.co/HY-2012/DeepFilterNet3.AXERA/resolve/main/run.sh
- Command line
-
hf download hf://HY-2012/DeepFilterNet3.AXERA/run.sh
-
curl -L -o run.sh https://huggingface.co/HY-2012/DeepFilterNet3.AXERA/resolve/main/run.sh
495 Bytes
| # DeepFilterNet3 一键降噪 (Python) | |
| # 用法: ./run.sh input.wav [output.wav] | |
| set -euo pipefail | |
| cd "$(dirname "$0")" | |
| INPUT="${1:?用法: ./run.sh input.wav [output.wav]}" | |
| OUTPUT="${2:-${INPUT%.wav}_enhanced.wav}" | |
| PYTHON_BIN="${PYTHON_BIN:-python3}" | |
| if [[ -x /root/miniforge3/bin/python ]]; then | |
| PYTHON_BIN=/root/miniforge3/bin/python | |
| fi | |
| PYTHONPATH="$(pwd)${PYTHONPATH:+:$PYTHONPATH}" \ | |
| "$PYTHON_BIN" inference.py "$INPUT" -o "$OUTPUT" --model-dir "$(pwd)/axmodels" | |