Gemini-VideoGeneration / run_gen_video_image_start_end_diff.sh
LehongWu's picture
Upload folder using huggingface_hub
6cc3d86 verified
#!/usr/bin/env bash
set -euo pipefail
start_image_path=/Users/lehongwu/Projects/others/VideoGeneration/input/example.png
end_image_path=/Users/lehongwu/Projects/others/VideoGeneration/input/example_end.png
export http_proxy="http://127.0.0.1:7890"
export https_proxy="http://127.0.0.1:7890"
if [[ -z "${GEMINI_API_KEY:-}" ]]; then
echo "Error: GEMINI_API_KEY is not set."
echo 'Run: export GEMINI_API_KEY="your_api_key"'
exit 1
fi
# if ! python3 -c "from google import genai" >/dev/null 2>&1; then
# echo "Installing dependency: google-genai"
# python3 -m pip install --upgrade google-genai
# fi
datetime=$(date +%m%d%H%M%S)
name=img_cond_diff
output_dir="output/${name}_${datetime}"
prompt="
A cinematic transition where the scene smoothly morphs from the first image to the last image,
with fluid motion, consistent lighting, and a natural, seamless progression.
"
python gen_video_image_start_end.py \
--prompt "$prompt" \
--start-image-path "$start_image_path" \
--end-image-path "$end_image_path" \
--resolution 4k \
--duration 8 \
--aspect-ratio 16:9 \
--name "$name" \
--output_dir "$output_dir"