iTranslated by AI
Running High-Quality Video Generation AI "Allegro" Locally with 12GB VRAM
What is Allegro
Allegro is an open-source video generation AI (Diffusion Transformer: DiT) introduced in a paper published in October 2024. The paper states that despite being open-source, it has achieved user evaluations comparable to commercial-grade models.
(Looking at the title of the paper, it's clear they are very conscious of commercial models.)
One of the particularly good things about Allegro is that while it has performance comparable to commercial models, as of November 2024, it has been integrated into the Diffusers library. Since high-quality images can be generated even on an affordable (approx. 30,000 JPY) consumer GPU (RTX 3060), I thought I had to try it out and decided to write this article.
(Furthermore, it uses a license that allows for commercial use.)
The frame rate is a bit low at 15 FPS, but as officially recommended, it can be improved to 60 FPS or similar using frame interpolation technology, so it's not a problem. (I'll say it again: since it's a local model, the fact that it runs on an RTX 3060 is what matters.)
Later in the article, I will also share a video where the FPS was actually increased to 60 FPS.
You can see the quality of the generated videos released by the official team in the demo below. The level is quite high.
Environment Setup
Allegro is very easy to use because it is integrated into the Diffusers library.
(That said, since it hasn't been released yet at the time of writing, you need to pull the Diffusers library directly from GitHub.)
Runtime Environment
OS: Ubuntu 20.04
GPU: RTX 3060 12GB
CUDA: 12.2
RAM: 64GB
Python: 3.11.7
We will create a virtual environment using venv.
Creating a virtual environment with venv
python -m venv env
source env/bin/activate
Installing necessary packages
Install them with the following command:
pip install git+https://github.com/huggingface/diffusers.git
pip install torch==2.4.1 transformers accelerate sentencepiece beautifulsoup4 ftfy opencv-python imageio imageio-ffmpeg
I have also output my complete list of Python environment packages.
If the above commands didn't work for you, please expand the section below.
requirements.lock
If you want to use the following, execute this command:
pip install -r requirements.lock
accelerate==1.0.1
beautifulsoup4==4.12.3
certifi==2024.8.30
charset-normalizer==3.4.0
diffusers @ git+https://github.com/huggingface/diffusers.git@a98a839de75f1ad82d8d200c3bc2e4ff89929081
filelock==3.16.1
fsspec==2024.10.0
ftfy==6.3.1
huggingface-hub==0.26.2
idna==3.10
imageio==2.36.0
imageio-ffmpeg==0.5.1
importlib_metadata==8.5.0
Jinja2==3.1.4
MarkupSafe==3.0.2
mpmath==1.3.0
networkx==3.4.2
numpy==2.1.2
nvidia-cublas-cu12==12.1.3.1
nvidia-cuda-cupti-cu12==12.1.105
nvidia-cuda-nvrtc-cu12==12.1.105
nvidia-cuda-runtime-cu12==12.1.105
nvidia-cudnn-cu12==9.1.0.70
nvidia-cufft-cu12==11.0.2.54
nvidia-curand-cu12==10.3.2.106
nvidia-cusolver-cu12==11.4.5.107
nvidia-cusparse-cu12==12.1.0.106
nvidia-nccl-cu12==2.20.5
nvidia-nvjitlink-cu12==12.6.77
nvidia-nvtx-cu12==12.1.105
opencv-python==4.10.0.84
packaging==24.1
pillow==11.0.0
psutil==6.1.0
PyYAML==6.0.2
regex==2024.9.11
requests==2.32.3
safetensors==0.4.5
sentencepiece==0.2.0
soupsieve==2.6
sympy==1.13.3
tokenizers==0.20.1
torch==2.4.1
tqdm==4.66.6
transformers==4.46.1
triton==3.0.0
typing_extensions==4.12.2
urllib3==2.2.3
wcwidth==0.2.13
zipp==3.20.2
Create Execution Code
Prepare a main.py file like the one below. (It's long, so it's collapsed.) I've implemented it in the standard Diffusers style, referring to the implementation code in the Diffusers library.
I also referred to the official sample code and the official implementation.
Full code for Allegro execution
import torch
from diffusers import AutoencoderKLAllegro, AllegroPipeline
from diffusers.utils import export_to_video
import os
vae = AutoencoderKLAllegro.from_pretrained("rhymes-ai/Allegro", subfolder="vae", torch_dtype=torch.float32)
pipe = AllegroPipeline.from_pretrained("rhymes-ai/Allegro", vae = vae, torch_dtype=torch.bfloat16)
pipe.enable_sequential_cpu_offload()
pipe.vae.enable_slicing()
pipe.vae.enable_tiling()
prompts = [
"A seaside harbor with bright sunlight and sparkling seawater, with many boats in the water. From an aerial view, the boats vary in size and color, some moving and some stationary. Fishing boats in the water suggest that this location might be a popular spot for docking fishing boats.",
"Timelapse at the snow land with aurora in the sky.",
"A Japanese tram glides gracefully through the snowy city streets, its streamlined design elegantly cutting through the falling snowflakes. The tram’s illuminated windows cast warm light onto the snow-white surroundings, creating a cozy atmosphere. Snowflakes dance in the air, swirling around the tram. Outside the tram, the city is covered in a layer of snow, turning familiar streets into a winter wonderland. The cherry blossom trees are now bare, quietly standing beside the tram tracks, their branches covered in snow. People hurry along the street, wrapped up warmly.",
"A robot is dancing in Times Square.",
"A side profile shot of a woman with fireworks exploding in the distance beyond her",
"A garden comes to life as a kaleidoscope of butterflies flutters amidst the blossoms, their delicate wings casting shadows on the petals below. In the background, a grand fountain cascades water with a gentle splendor, its rhythmic sound providing a soothing backdrop. Beneath the cool shade of a mature tree, a solitary wooden chair invites solitude and reflection, its smooth surface worn by the touch of countless visitors seeking a moment of tranquility in nature's embrace.",
"An elderly gentleman, with a serene expression, sits at the water's edge, a steaming cup of tea by his side. He is engrossed in his artwork, brush in hand, as he renders an oil painting on a canvas that's propped up against a small, weathered table. The sea breeze whispers through his silver hair, gently billowing his loose-fitting white shirt, while the salty air adds an intangible element to his masterpiece in progress. The scene is one of tranquility and inspiration, with the artist's canvas capturing the vibrant hues of the setting sun reflecting off the tranquil sea.",
"A golden retriever, sporting sleek black sunglasses, with its lengthy fur flowing in the breeze, sprints playfully across a rooftop terrace, recently refreshed by a light rain. The scene unfolds from a distance, the dog's energetic bounds growing larger as it approaches the camera, its tail wagging with unrestrained joy, while droplets of water glisten on the concrete behind it. The overcast sky provides a dramatic backdrop, emphasizing the vibrant golden coat of the canine as it dashes towards the viewer.",
"On a brilliant sunny day, the lakeshore is lined with an array of willow trees, their slender branches swaying gently in the soft breeze. The tranquil surface of the lake reflects the clear blue sky, while several elegant swans glide gracefully through the still water, leaving behind delicate ripples that disturb the mirror-like quality of the lake. The scene is one of serene beauty, with the willows' greenery providing a picturesque frame for the peaceful avian visitors.",
"A small boy, head bowed and determination etched on his face, sprints through the torrential downpour as lightning crackles and thunder rumbles in the distance. The relentless rain pounds the ground, creating a chaotic dance of water droplets that mirror the dramatic sky's anger. In the far background, the silhouette of a cozy home beckons, a faint beacon of safety and warmth amidst the fierce weather. The scene is one of perseverance and the unyielding spirit of a child braving the elements.",
]
positive_prompt = """
(masterpiece), (best quality), (ultra-detailed), (unwatermarked),
{}
emotional, harmonious, vignette, 4k epic detailed, shot on kodak, 35mm photo,
sharp focus, high budget, cinemascope, moody, epic, gorgeous
"""
negative_prompt = """
nsfw, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality,
low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry.
"""
os.makedirs("output", exist_ok=True)
for step, prompt in enumerate(prompts):
print(f"Step {step+1}/{len(prompts)}")
user_prompt = positive_prompt.format(prompt.lower().strip())
video = pipe(
user_prompt,
negative_prompt = negative_prompt,
num_inference_steps=100,
guidance_scale=7.5,
max_sequence_length=512,
generator = torch.Generator(device="cuda:0").manual_seed(42)
).frames[0]
export_to_video(video, "./output/output{}.mp4".format(step), fps=15)
Execution
You can generate videos by running the following command.
python main.py
Generated Videos
Testing Text to Video
Unfortunately, at this time, Allegro only supports T2V (Text to Video), so I will test that.
(Image to Video would be more practical for actual use cases, so I'd love to see that supported in the future.)
I experimented with 4 official demo prompts, 5 prompts used previously with CogVideoX, and 1 prompt used with Pyramid-Flow.
The prompts are as follows:
prompts = [
"A seaside harbor with bright sunlight and sparkling seawater, with many boats in the water. From an aerial view, the boats vary in size and color, some moving and some stationary. Fishing boats in the water suggest that this location might be a popular spot for docking fishing boats.",
"Timelapse at the snow land with aurora in the sky.",
"A Japanese tram glides gracefully through the snowy city streets, its streamlined design elegantly cutting through the falling snowflakes. The tram’s illuminated windows cast warm light onto the snow-white surroundings, creating a cozy atmosphere. Snowflakes dance in the air, swirling around the tram. Outside the tram, the city is covered in a layer of snow, turning familiar streets into a winter wonderland. The cherry blossom trees are now bare, quietly standing beside the tram tracks, their branches covered in snow. People hurry along the street, wrapped up warmly.",
"A robot is dancing in Times Square.",
"A side profile shot of a woman with fireworks exploding in the distance beyond her",
"A garden comes to life as a kaleidoscope of butterflies flutters amidst the blossoms, their delicate wings casting shadows on the petals below. In the background, a grand fountain cascades water with a gentle splendor, its rhythmic sound providing a soothing backdrop. Beneath the cool shade of a mature tree, a solitary wooden chair invites solitude and reflection, its smooth surface worn by the touch of countless visitors seeking a moment of tranquility in nature's embrace.",
"An elderly gentleman, with a serene expression, sits at the water's edge, a steaming cup of tea by his side. He is engrossed in his artwork, brush in hand, as he renders an oil painting on a canvas that's propped up against a small, weathered table. The sea breeze whispers through his silver hair, gently billowing his loose-fitting white shirt, while the salty air adds an intangible element to his masterpiece in progress. The scene is one of tranquility and inspiration, with the artist's canvas capturing the vibrant hues of the setting sun reflecting off the tranquil sea.",
"A golden retriever, sporting sleek black sunglasses, with its lengthy fur flowing in the breeze, sprints playfully across a rooftop terrace, recently refreshed by a light rain. The scene unfolds from a distance, the dog's energetic bounds growing larger as it approaches the camera, its tail wagging with unrestrained joy, while droplets of water glisten on the concrete behind it. The overcast sky provides a dramatic backdrop, emphasizing the vibrant golden coat of the canine as it dashes towards the viewer.",
"On a brilliant sunny day, the lakeshore is lined with an array of willow trees, their slender branches swaying gently in the soft breeze. The tranquil surface of the lake reflects the clear blue sky, while several elegant swans glide gracefully through the still water, leaving behind delicate ripples that disturb the mirror-like quality of the lake. The scene is one of serene beauty, with the willows' greenery providing a picturesque frame for the peaceful avian visitors.",
"A small boy, head bowed and determination etched on his face, sprints through the torrential downpour as lightning crackles and thunder rumbles in the distance. The relentless rain pounds the ground, creating a chaotic dance of water droplets that mirror the dramatic sky's anger. In the far background, the silhouette of a cozy home beckons, a faint beacon of safety and warmth amidst the fierce weather. The scene is one of perseverance and the unyielding spirit of a child braving the elements.",
]
Also, referring to the official implementation, I appended the following quality-improving prompts to the above prompts.
positive_prompt = """
(masterpiece), (best quality), (ultra-detailed), (unwatermarked),
{}
emotional, harmonious, vignette, 4k epic detailed, shot on kodak, 35mm photo,
sharp focus, high budget, cinemascope, moody, epic, gorgeous
"""
user_prompt = positive_prompt.format(prompt.lower().strip())
Furthermore, since it was mentioned that a Negative Prompt can also be used, I used the one from the official implementation.
negative_prompt = """
nsfw, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality,
low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry.
"""
Generated Videos
The actual generated videos are as follows.
(1280x720 resolution, 6 seconds, 15 FPS)
Official Demo Prompts
A seaside harbor with bright sunlight and sparkling seawater, with many boats in the water. From an aerial view, the boats vary in size and color, some moving and some stationary. Fishing boats in the water suggest that this location might be a popular spot for docking fishing boats.
Timelapse at the snow land with aurora in the sky.
A Japanese tram glides gracefully through the snowy city streets, its streamlined design elegantly cutting through the falling snowflakes. The tram’s illuminated windows cast warm light onto the snow-white surroundings, creating a cozy atmosphere. Snowflakes dance in the air, swirling around the tram. Outside the tram, the city is covered in a layer of snow, turning familiar streets into a winter wonderland. The cherry blossom trees are now bare, quietly standing beside the tram tracks, their branches covered in snow. People hurry along the street, wrapped up warmly.
A robot is dancing in Times Square.
Pyramid-Flow Official Demo Prompts
A side profile shot of a woman with fireworks exploding in the distance beyond her
CogVideoX Official Demo Prompts
A garden comes to life as a kaleidoscope of butterflies flutters amidst the blossoms, their delicate wings casting shadows on the petals below. In the background, a grand fountain cascades water with a gentle splendor, its rhythmic sound providing a soothing backdrop. Beneath the cool shade of a mature tree, a solitary wooden chair invites solitude and reflection, its smooth surface worn by the touch of countless visitors seeking a moment of tranquility in nature's embrace.
An elderly gentleman, with a serene expression, sits at the water's edge, a steaming cup of tea by his side. He is engrossed in his artwork, brush in hand, as he renders an oil painting on a canvas that's propped up against a small, weathered table. The sea breeze whispers through his silver hair, gently billowing his loose-fitting white shirt, while the salty air adds an intangible element to his masterpiece in progress. The scene is one of tranquility and inspiration, with the artist's canvas capturing the vibrant hues of the setting sun reflecting off the tranquil sea.
A golden retriever, sporting sleek black sunglasses, with its lengthy fur flowing in the breeze, sprints playfully across a rooftop terrace, recently refreshed by a light rain. The scene unfolds from a distance, the dog's energetic bounds growing larger as it approaches the camera, its tail wagging with unrestrained joy, while droplets of water glisten on the concrete behind it. The overcast sky provides a dramatic backdrop, emphasizing the vibrant golden coat of the canine as it dashes towards the viewer.
On a brilliant sunny day, the lakeshore is lined with an array of willow trees, their slender branches swaying gently in the soft breeze. The tranquil surface of the lake reflects the clear blue sky, while several elegant swans glide gracefully through the still water, leaving behind delicate ripples that disturb the mirror-like quality of the lake. The scene is one of serene beauty, with the willows' greenery providing a picturesque frame for the peaceful avian visitors.
A small boy, head bowed and determination etched on his face, sprints through the torrential downpour as lightning crackles and thunder rumbles in the distance. The relentless rain pounds the ground, creating a chaotic dance of water droplets that mirror the dramatic sky's anger. In the far background, the silhouette of a cozy home beckons, a faint beacon of safety and warmth amidst the fierce weather. The scene is one of perseverance and the unyielding spirit of a child braving the elements.
Although the FPS is a bit low, I thought the quality of the generated videos was very high. (I'm impressed with this level of quality even though I'm using prompts other than those used in the demo.)
Furthermore, the fact that it can run in a local environment and on an affordable GPU makes it a very welcome model. I hope more and more models like this emerge. (I want an expensive GPU...)
Trying to reduce the number of steps
That said, the video above took "5.5 hours" to create, so the production cost in terms of time is very high.
One factor is that it runs with 100 steps (default). By reducing this, the video quality decreases, but the generation time can be reduced linearly.
Therefore, I compared the difference in quality based on the number of steps. I used the first prompt for this test.
30 steps
If you look closely, subtle artifacts appear in the waves of the sea. Also, the resolution feels a bit lower.
50 steps
There isn't much difference from 30 steps.
80 steps
It is different from 30 or 50 steps, but if you look closely, various parts are falling apart.
I thought I could shorten the generation time if I could produce good videos at around 30-80 steps, but unfortunately, the 100-step video is overwhelmingly higher in quality, so it seems that using 100 steps is a prerequisite... (5.5 hours...)
Brief Code Explanation
Basically, it can be written following the standard Diffusers notation.
Model Definition
For example, the model definition is written as follows.
vae = AutoencoderKLAllegro.from_pretrained("rhymes-ai/Allegro", subfolder="vae", torch_dtype=torch.float32)
pipe = AllegroPipeline.from_pretrained("rhymes-ai/Allegro", vae = vae, torch_dtype=torch.bfloat16)
Since the VAE is defined separately in the official implementation as well, I have separated it in this implementation. Defining only the VAE in float32 also follows the official guidelines.
VRAM Reduction via Model Offloading
pipe.enable_sequential_cpu_offload()
pipe.vae.enable_slicing()
pipe.vae.enable_tiling()
To enable execution on an RTX 3060, I have defined CPU offloading per layer. Also, enable_slicing and enable_tiling for the VAE in the latter half contribute to VRAM reduction, but please note that if you don't include these, the following error will occur:
raise NotImplementedError("Decoding without tiling has not been implemented yet.")
NotImplementedError: Decoding without tiling has not been implemented yet.
Prompt Definition
prompts = [
"A seaside harbor with bright sunlight and sparkling seawater, with many boats in the water. From an aerial view, the boats vary in size and color, some moving and some stationary. Fishing boats in the water suggest that this location might be a popular spot for docking fishing boats.",
"Timelapse at the snow land with aurora in the sky.",
"A Japanese tram glides gracefully through the snowy city streets, its streamlined design elegantly cutting through the falling snowflakes. The tram’s illuminated windows cast warm light onto the snow-white surroundings, creating a cozy atmosphere. Snowflakes dance in the air, swirling around the tram. Outside the tram, the city is covered in a layer of snow, turning familiar streets into a winter wonderland. The cherry blossom trees are now bare, quietly standing beside the tram tracks, their branches covered in snow. People hurry along the street, wrapped up warmly.",
"A robot is dancing in Times Square.",
"A side profile shot of a woman with fireworks exploding in the distance beyond her",
"A garden comes to life as a kaleidoscope of butterflies flutters amidst the blossoms, their delicate wings casting shadows on the petals below. In the background, a grand fountain cascades water with a gentle splendor, its rhythmic sound providing a soothing backdrop. Beneath the cool shade of a mature tree, a solitary wooden chair invites solitude and reflection, its smooth surface worn by the touch of countless visitors seeking a moment of tranquility in nature's embrace.",
"An elderly gentleman, with a serene expression, sits at the water's edge, a steaming cup of tea by his side. He is engrossed in his artwork, brush in hand, as he renders an oil painting on a canvas that's propped up against a small, weathered table. The sea breeze whispers through his silver hair, gently billowing his loose-fitting white shirt, while the salty air adds an intangible element to his masterpiece in progress. The scene is one of tranquility and inspiration, with the artist's canvas capturing the vibrant hues of the setting sun reflecting off the tranquil sea.",
"A golden retriever, sporting sleek black sunglasses, with its lengthy fur flowing in the breeze, sprints playfully across a rooftop terrace, recently refreshed by a light rain. The scene unfolds from a distance, the dog's energetic bounds growing larger as it approaches the camera, its tail wagging with unrestrained joy, while droplets of water glisten on the concrete behind it. The overcast sky provides a dramatic backdrop, emphasizing the vibrant golden coat of the canine as it dashes towards the viewer.",
"On a brilliant sunny day, the lakeshore is lined with an array of willow trees, their slender branches swaying gently in the soft breeze. The tranquil surface of the lake reflects the clear blue sky, while several elegant swans glide gracefully through the still water, leaving behind delicate ripples that disturb the mirror-like quality of the lake. The scene is one of serene beauty, with the willows' greenery providing a picturesque frame for the peaceful avian visitors.",
"A small boy, head bowed and determination etched on his face, sprints through the torrential downpour as lightning crackles and thunder rumbles in the distance. The relentless rain pounds the ground, creating a chaotic dance of water droplets that mirror the dramatic sky's anger. In the far background, the silhouette of a cozy home beckons, a faint beacon of safety and warmth amidst the fierce weather. The scene is one of perseverance and the unyielding spirit of a child braving the elements.",
]
positive_prompt = """
(masterpiece), (best quality), (ultra-detailed), (unwatermarked),
{}
emotional, harmonious, vignette, 4k epic detailed, shot on kodak, 35mm photo,
sharp focus, high budget, cinemascope, moody, epic, gorgeous
"""
negative_prompt = """
nsfw, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality,
low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry.
"""
for step, prompt in enumerate(prompts):
user_prompt = positive_prompt.format(prompt.lower().strip())
I wanted to have the process run overnight or while I was out, so I am attempting to execute multiple prompts sequentially. As a result, the prompts are defined as an array.
Following the official implementation, I have applied the default prompt styles to both the user prompt and the negative prompt.
Calling the Pipeline and Saving Video
video = pipe(
user_prompt,
negative_prompt = negative_prompt,
num_inference_steps=100,
guidance_scale=7.5,
max_sequence_length=512,
generator = torch.Generator(device="cuda:0").manual_seed(42)
).frames[0]
export_to_video(video, "./output/output{}.mp4".format(step), fps=15)
The implementation is almost identical to the standard Diffusers library style. I have configured the parameters referring to the official values and the default values of the pipeline's __call__ method in the Diffusers library.
Additionally, num_inference_steps represents the number of steps for the diffusion model to solve the differential equations. I varied this value in the experiments shown in the latter half.
Improving FPS
As I mentioned in a previous article, for videos with a low frame rate, you can use frame interpolation technology to improve the FPS.
While the official Allegro documentation recommends using a different frame interpolation technique, this time I'll quickly use RIFE, which I also used for CogVideoX.
(Please refer to the article above for usage instructions.)
Results of Frame Interpolation
The following are the videos actually generated.
(1280x720 resolution, 6 seconds, 60 FPS)
Official Demo Prompts
A seaside harbor with bright sunlight and sparkling seawater, with many boats in the water. From an aerial view, the boats vary in size and color, some moving and some stationary. Fishing boats in the water suggest that this location might be a popular spot for docking fishing boats.
Timelapse at the snow land with aurora in the sky.
A Japanese tram glides gracefully through the snowy city streets, its streamlined design elegantly cutting through the falling snowflakes. The tram’s illuminated windows cast warm light onto the snow-white surroundings, creating a cozy atmosphere. Snowflakes dance in the air, swirling around the tram. Outside the tram, the city is covered in a layer of snow, turning familiar streets into a winter wonderland. The cherry blossom trees are now bare, quietly standing beside the tram tracks, their branches covered in snow. People hurry along the street, wrapped up warmly.
A robot is dancing in Times Square.
Pyramid-Flow Official Demo Prompts
A side profile shot of a woman with fireworks exploding in the distance beyond her
CogVideoX Official Demo Prompts
A garden comes to life as a kaleidoscope of butterflies flutters amidst the blossoms, their delicate wings casting shadows on the petals below. In the background, a grand fountain cascades water with a gentle splendor, its rhythmic sound providing a soothing backdrop. Beneath the cool shade of a mature tree, a solitary wooden chair invites solitude and reflection, its smooth surface worn by the touch of countless visitors seeking a moment of tranquility in nature's embrace.
An elderly gentleman, with a serene expression, sits at the water's edge, a steaming cup of tea by his side. He is engrossed in his artwork, brush in hand, as he renders an oil painting on a canvas that's propped up against a small, weathered table. The sea breeze whispers through his silver hair, gently billowing his loose-fitting white shirt, while the salty air adds an intangible element to his masterpiece in progress. The scene is one of tranquility and inspiration, with the artist's canvas capturing the vibrant hues of the setting sun reflecting off the tranquil sea.
A golden retriever, sporting sleek black sunglasses, with its lengthy fur flowing in the breeze, sprints playfully across a rooftop terrace, recently refreshed by a light rain. The scene unfolds from a distance, the dog's energetic bounds growing larger as it approaches the camera, its tail wagging with unrestrained joy, while droplets of water glisten on the concrete behind it. The overcast sky provides a dramatic backdrop, emphasizing the vibrant golden coat of the canine as it dashes towards the viewer.
On a brilliant sunny day, the lakeshore is lined with an array of willow trees, their slender branches swaying gently in the soft breeze. The tranquil surface of the lake reflects the clear blue sky, while several elegant swans glide gracefully through the still water, leaving behind delicate ripples that disturb the mirror-like quality of the lake. The scene is one of serene beauty, with the willows' greenery providing a picturesque frame for the peaceful avian visitors.
A small boy, head bowed and determination etched on his face, sprints through the torrential downpour as lightning crackles and thunder rumbles in the distance. The relentless rain pounds the ground, creating a chaotic dance of water droplets that mirror the dramatic sky's anger. In the far background, the silhouette of a cozy home beckons, a faint beacon of safety and warmth amidst the fierce weather. The scene is one of perseverance and the unyielding spirit of a child braving the elements.
Summary
Although the generation time is very long, I thought it was truly amazing that a commercial-grade video generation AI can run locally. The quality of the resulting videos is also very high. I feel that the environment for the practical use of video generation AI is becoming increasingly accessible. (Considering that generative AI usually assumes "gacha-style" iteration by changing seed values, achieving this level of performance in a single shot with a fixed seed is very attractive.)
At the time of writing, the highest-performing video generation model is said to be "Mochi 1," but since it currently requires at least 24GB of VRAM (which is already a significant reduction from its original requirements), it still necessitates a quite expensive GPU. In comparison, I think this model is highly competitive, as it can generate commercial-grade videos and run on an RTX 3060. If I were to ask for more, I'm hoping that quantized models or similar developments will emerge to enable even faster video generation.
Thank you very much for reading this far!
Discussion