temp / Helios /_DEV2 /scripts /inference /helios-base_t2v.sh
Cccccz's picture
Add files using upload-large-folder tool
315a949 verified
Raw
History Blame Contribute Delete
6.18 kB
#!/usr/bin/env bash
set -euo pipefail
# Example: Running inference with 2-GPU parallelism
# CUDA_VISIBLE_DEVICES=0,1 torchrun --nproc_per_node 2 infer_helios.py \
# --enable_parallelism \
# --cp_backend "ulysses" \ # ["ring", "ulysses", "unified", "ulysses_anything"]
PROMPTS=(
# "In a still frame within a traditional tea room, a meticulously arranged tea set awaits, featuring delicate porcelain cups, a bamboo whisk, and other elegant tea-making tools. The scene is filled with a hushed ambiance, emphasizing the serene atmosphere. The room is adorned with wooden furnishings, soft lighting, and minimalistic decor, highlighting the beauty of simplicity. The tea set is centered in the frame, inviting viewers to imagine the ritual of preparing matcha. Medium close-up shot, static camera."
# "A close-up of a sleek black bicycle parked on a clean, paved street. The bicycle has shiny black tires, a polished black frame, and reflective silver components such as the brakes and pedals. The handlebars are straight and the saddle is positioned upright. The background shows a blurred urban environment with hints of greenery and buildings. The bicycle remains stationary but the focus shifts slightly to highlight various parts of the bike. Medium shot focusing on the bicycle as the central object."
# "A close-up view of a vibrant pink ceramic bowl with intricate floral patterns painted on its surface. The bowl is filled with colorful fruits such as strawberries, cherries, and grapes, creating a lively and inviting scene. The bowl's smooth texture and glossy finish reflect soft ambient lighting, casting gentle shadows within the bowl. The background is a blurred, pastel-toned kitchen setting, adding to the cozy and homely atmosphere. Medium shot focusing on the bowl and its contents."
# "Pixel art style, Gwen Stacy is sitting comfortably in a cozy room, reading an open book. She has long red hair tied up in a ponytail, green eyes, and is dressed in a casual outfit consisting of a white t-shirt and blue jeans. Gwen's expression is focused and calm as she turns the pages of the book. The room around her is simply furnished with a wooden desk and a small lamp. The background is a soft pastel color, adding a gentle ambiance to the scene. Medium close-up shot focusing on Gwen's face and the book she is holding."
# "A detailed close-up of a sleek, glossy purple suitcase with silver hardware. The suitcase has a sturdy handle and intricate patterns embossed on its surface. It sits on a smooth, neutral-colored floor in a well-lit room. The camera slowly pans around the suitcase to showcase its elegant design from multiple angles. The suitcase remains static, but the camera movement emphasizes its sleek and modern appearance."
"A front view of a creative culinary fusion dish featuring a hot dog placed atop a pizza. The pizza has a golden, crispy crust with melted cheese bubbling around the edges. The hot dog is fully cooked, with a slightly charred exterior and a juicy interior. It is positioned in the center of the pizza, partially sliced so that the toppings peek through. The sauce and toppings on the pizza are clearly visible, adding vibrant colors and textures to the scene. The camera focuses closely on the dish, capturing every detail in a medium close-up shot."
"A front view of a colorful kite lying flat on the bottom of a skateboard. The skateboard is positioned horizontally, showcasing its smooth surface and vibrant deck design. The kite, with its intricate patterns and detailed tail, is centered on the skateboard, partially obscuring the wheels and trucks. The scene captures the playful interaction between the kite and the skateboard, with a focus on their textures and colors. Static shot, emphasizing the stillness and close-up detail of the objects."
"A beautifully crafted green ceramic vase, adorned with intricate patterns and detailed engravings, sits elegantly on a wooden table. The vase is tall and slender, with a graceful curve near the top. It reflects a soft, ambient light, casting gentle shadows across the tabletop. The background is a cozy living room with warm lighting and soft textures. The vase stands still, but the subtle play of light and shadow adds a sense of movement and life to the scene. Medium close-up shot focusing on the vase."
"Animated style, a well-dressed couple in formal evening wear is walking down a bustling city street as a sudden heavy downpour begins. They quickly pull out their umbrellas, the vibrant colors contrasting against the dark, rain-soaked environment. The man, wearing a black tuxedo and bow tie, holds his umbrella over the woman, who is adorned in a flowing, elegant red gown. Both have expressions of surprise and amusement as they navigate the slippery sidewalk. The background showcases a busy urban scene with neon lights reflecting off the rainwater. Medium shot capturing the couple from the waist up, emphasizing their interaction and the rain falling around them."
"A vibrant underwater coral reef teeming with life. The corals are in various shapes and colors, ranging from bright pinks and purples to soft greens and yellows. Schools of colorful fish swim gracefully among the corals, while sea turtles lazily glide by. The water is clear, allowing sunlight to filter through, creating a mesmerizing play of light and shadow. Small bubbles rise gently to the surface. Wide shot, capturing the vastness and beauty of the coral reef ecosystem."
)
for i in "${!PROMPTS[@]}"; do
echo "Generating sample $((i + 1))/${#PROMPTS[@]}"
CUDA_VISIBLE_DEVICES=1 python infer_helios.py \
--base_model_path "./checkpoints/Helios-Base" \
--transformer_path "./checkpoints/Helios-Base" \
--sample_type "t2v" \
--num_frames 990 \
--fps 24 \
--prompt "${PROMPTS[$i]}" \
--guidance_scale 5.0 \
--enable_compile \
--output_folder "./output_helios/helios-base" \
--visualize_relative_l1 \
--seed 0
done
# --enable_low_vram_mode \
# --group_offloading_type "leaf_level" \ # ["leaf_level", "block_level"]
# --num_blocks_per_group 4 \
# --use_cfg_zero_star \
# --use_zero_init \
# --zero_steps 1 \