Download code/inference/memory_baselines_basic/run_infer_framepack_weight.sh from amonshano/echo: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/amonshano/echo/resolve/main/code/inference/memory_baselines_basic/run_infer_framepack_weight.sh
- Command line
-
hf download hf://amonshano/echo/code/inference/memory_baselines_basic/run_infer_framepack_weight.sh
-
curl -L -o run_infer_framepack_weight.sh https://huggingface.co/amonshano/echo/resolve/main/code/inference/memory_baselines_basic/run_infer_framepack_weight.sh
1.01 kB
| # Inference: framepack_weight | |
| # Corresponds to: train/memory_baselines_basic/run_ablation_framepack_weight_two_chunk.sh | |
| set -euo pipefail | |
| SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
| source "${SCRIPT_DIR}/common_env.sh" | |
| : "${CKPT:?ERROR: set CKPT to your framepack_weight checkpoint path}" | |
| OUTPUT="${INFER_OUTPUT_ROOT}/framepack_weight_$(date +%Y%m%d_%H%M%S).mp4" | |
| EXTRA_ARGS=() | |
| if [ -n "${CONTEXT_IMAGE}" ]; then | |
| EXTRA_ARGS+=(--context_image "${CONTEXT_IMAGE}") | |
| fi | |
| if [ -n "${ACTION_PATH}" ]; then | |
| EXTRA_ARGS+=(--action_path "${ACTION_PATH}") | |
| fi | |
| python inference/unified_inference.py \ | |
| --ckpt "${CKPT}" \ | |
| --memory_type framepack_weight \ | |
| --base_model "${WAN_BASE_MODEL}" \ | |
| --prompt "${PROMPT}" \ | |
| "${EXTRA_ARGS[@]}" \ | |
| --height "${HEIGHT}" --width "${WIDTH}" --num_frames "${NUM_FRAMES}" \ | |
| --seed "${SEED}" --num_inference_steps "${NUM_INFERENCE_STEPS}" \ | |
| --sigma_shift "${SIGMA_SHIFT}" --cfg_scale "${CFG_SCALE}" --fps "${FPS}" \ | |
| --output_path "${OUTPUT}" | |