-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·28 lines (24 loc) · 828 Bytes
/
test.sh
File metadata and controls
executable file
·28 lines (24 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
PROMPT="A ball falls from the table onto the floor"
CONFIG="./MAGI-1/example/24B/24B_base_config.json"
INIT="./example/0001_switch-frames_anyFPS_perspective-left_trimmed-ball-and-block-fall.jpg"
OUT="./results/guidance_check"
mkdir -p "$OUT"
torchrun --standalone --nproc_per_node=8 generate_magi1.py \
--config_file "$CONFIG" \
--prompt "$PROMPT" \
--init_image "$INIT" \
--output_path "$OUT/baseline.mp4" \
--mode i2v \
--guidance_scale 0 \
--guidance_frequency 5
torchrun --standalone --nproc_per_node=8 generate_magi1.py \
--config_file "$CONFIG" \
--prompt "$PROMPT" \
--init_image "$INIT" \
--output_path "$OUT/guided.mp4" \
--mode i2v \
--guidance_scale 0.01 \
--guidance_frequency 5
python3 tests/check_guidance_effect.py \
--baseline "$OUT/baseline.mp4" \
--guided "$OUT/guided.mp4"