Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Video Training

Train a video LoRA to learn a motion or visual effect from a small collection of clips.

This guide covers preparing the videos, describing the action, configuring training, and testing Wan2.1, Hunyuan, and Wan2.2 models.

Video Training Type Recommendation

Name
Model

t2v (text to video)

wan2.2 t2v 720p

i2v (image to video)

wan2.2 i2v 480p

r2v (reference to video)

minimax h3


Wan2.1, Hunyuan Video LoRA Training

Start by preparing and tagging the clips. The following sections explain the shared preparation process, the Wan2.1 training settings, and the testing routes for Wan2.1 and Hunyuan.

Preprocessing Videos

Selection of training videos

  • Video content is unified, action or effects are unified, subjects differ. Prefer videos; images can be used as a supplement.

  • High-definition quality and no watermark.

Number of videos

  • 4-10 videos is enough. (Directly using images for training is not recommended.)

Frame rate

  • Process videos to 16fps, with a total length of 81 frames, 5s in total (you can use editing tools to cut the video to 5s, then extract frames to 16 fps).

  • If the video is shorter than 5s, use its actual length, for example 2s or 3s are all fine, but it must be processed to 16fps.

Resolution

  • Around 480p is enough. You can also process it to 320p to speed up training. (Too high a resolution will make training fail directly.)

Video tagging

  • Auto tagging (auto annotation is not recommended).

  • Manual tagging.

  • Key points: secondary features + primary features.

  • Primary features: the action or effect that needs to be learned. Secondary features: the video's character, where they are, and what they do.

Example:

In the video, a woman wearing a black formal suit is presented. The person raises her hand and showers colorful confetti in celebration with smile. The person then reveals a bikini, causing a b1k1n1 bikini up effect. The person continues celebrating, further showing the b1k1n1 bikini up effect.

The text before the highlighted part describes the video content, while the highlighted part summarizes the action or effect to be learned. In other words, the highlighted part is the primary feature and the rest are secondary features.

Online Parameter Settings

Image to video

  • Image to video: Wan2.1-14B-480P or Wan2.1-14B-720P, chosen mainly by the resolution of your training video.

  • If your material is 216*320, below 480p, choose the 480p model. The 720p and 480p models train to nearly the same result, so 480p is the recommended starting point.

Resolution
Specific size
Total pixels

480p

854*480

~410k

720p

1280*720

~920k

Finish uploading the dataset.

Parameter Settings

  • Frame extraction rate: how many frames are extracted within a single video segment. Recommended value: 17.

  • Example: if a segment is 16 frames, a frame extraction rate of 9 will not capture every frame.

  • Slice count: how many segments a single video is split into. Recommended value: 5.

  • Example: for a 5-second video at 16 frames per second, a slice count of 5 gives 16 frames per segment, while a slice count of 4 gives 20 frames per segment.

  • Repeats per image: how many times each video is learned.

  • Cycles: how many times to repeat the process on top of repeats per image.

  • Model effect preview prompt: the prompt used to generate the sample video, adjusted to combine the dataset tags with the content of the initial frame.

  • Initial frame: for image to video, the image the model needs, and the image used to generate the sample video.

Parameter settings

Advanced Parameter Settings

The only value you need to change is Flow Shift.

720p takes 5, and 480p takes 3 (the material must also be 480p).

Wan2.1 Testing

  • Image to video

Workflow:

App testing: SeaArt AI | Wanxiang Guanliu

Parameter settings:

  • Model selection: use the same model for testing that you used for training.

  • Select Lora: choose the Lora saved in your own models.

  • Weight: the weight of the Lora.

  • Width: the width of the input image after compression and cropping.

  • Height: the height of the input image after compression and cropping.

  • Frame count: the total frame rate across the output duration, given by 4*n+1, where n is the number of seconds. Five seconds is 81 frames.

  • Shift: 720p is 5, 480p is 3.

  • cfg: defaults to 6, and can be adjusted to 5.

Text to Video Testing

Wan workflow testing

RedCraft Models as a Service H3 GS - SeaArt AI Model

  1. In Model, select wan2.1.

  2. In Additional, select the model saved after training.

  3. Select text to video.

Test the Hunyuan LoRA

Use the Hunyuan workflow testing route and the model page named

Hunyuan Video (Safetensors) - New Decensored Llama - SeaArt AI Model.

  1. Set Model to Hunyuan Video.

  2. In Additional, select the model saved after training.

  3. Select text to video.

Wan2.2 Video LoRA Training

Prepare the Videos

Use the same preparation process as for Wan2.1:

Prepare 4 to 10 clips, process them to 16fps, use the duration and frame guidance above, and keep the resolution around 480p or reduce it to 320p. The video count, duration, frame rate, and resolution requirements are the same.

Choose the High-Noise and Low-Noise Models

Each video type has two model choices:

  • Text-to-video: wan2.2 t2v-low and wan2.2 t2v-high.

  • Image-to-video: wan2.2 i2v-low and wan2.2 i2v-high.

Unlike Wan2.1, Wan2.2 provides a high-noise and a low-noise model for each video type. The high-noise model mainly controls motion, while the low-noise model mainly controls visual detail.

If you want to minimize training time, train only the low-noise model to reach a basic result more quickly. For the best results, train the high-noise and low-noise models separately using the same dataset, then load both LoRAs together when generating a video.

Wan2.2 understands language more effectively, so its video annotations can use simpler, more consistent wording. The appropriate level of detail differs between text-to-video and image-to-video, as explained next.

Tag the Videos for Your Training Type

Text-to-video: describe the content clearly

You can use automatic tagging for text-to-video training.

If you write the tags manually, describe the video content clearly. Avoid reducing the whole description to a vague label such as “a person” or “an animal.”

Image-to-video: keep the effect description simple and consistent

Automatic tagging is not recommended for this setup. The dataset contains relatively few videos, and automatic tags tend to describe too much detail. With Wan2.2, those detailed tags can make the prompts cumbersome when you later use the LoRA.

For manual tagging, a simple description is enough if all the clips show people.

For example, the transformation in the guide can be described as:

A person's head turns into a pumpkin, and the person then wears a robe. The Halloween background includes a pumpkin lantern, bats, and the moon.

You do not need to specify the person's age or gender. Use “a person” to keep the subject description general, and describe the transformation accurately and consistently. You can then copy the sentence to the other video tags.

Configure the Wan2.2 Training Parameters

Use the following settings for extracting video segments, repeating the training material, and generating previews:

Frame extraction rate

This applies within each segment. The recommended value is 17; a value of 9 for a 16-frame segment would not allow every frame to be learned.

Slice count

Set the number of segments created from each video. The recommended value is 5. For a 5-second video at 16fps, the example gives 16 frames per segment with 5 slices, or 20 frames per segment with 4 slices.

Repeats per image

This determines how many times each video is used for training.

Cycles

This repeats the process for the specified number of rounds.

Model effect preview prompt

Use a prompt based on the dataset tags, adjusted to match the initial-frame image when generating an image-to-video preview.

Initial frame

For image-to-video, this is the input image used to generate the sample video.

Set Up Image-to-Video Training

For a typical image-to-video run, select wan2.2 i2v-low. Leave the advanced settings at their default values.

For Model Effect Preview Prompts, you can select the video tags to fill the field directly.

For Initial Frame, upload an image that matches the type of your training clips. (Use a realistic image for realistic footage. If the footage shows a half-body view, choose a half-body image for the preview as well.)

Set Up Text-to-Video Training

Select wan2.2 t2v-low. You can fill Model Effect Preview Prompts directly by selecting the video tags.

Follow the Training Demonstrations

The demonstrations below show the training process for each video type. Follow the one that matches the model you selected.

Text-to-video (t2v)

Image-to-video (i2v)

Test the Wan2.2 LoRA

Image-to-video testing

Use the workflow:

or the app Wan2.2 Test

  1. Select the high-noise LoRA in the first loader.

  2. Select the low-noise LoRA in the second loader.

  3. If you trained only one of them, select that same LoRA in both loaders.

  4. Enter the prompt. In Please enter text, enter the tagging sentence.

  5. Provide an input image. In Please select an image, choose an image, preferably one similar to the first frame of the training video.

Text-to-video testing

Use the workflow:

or the app Wan2.2 Text-to-Video Test

  1. Select the high-noise LoRA in the first loader.

  2. Select the low-noise LoRA in the second loader.

  3. If you have only one LoRA, select it in both loaders.

  4. Enter the output video's width in Please enter the width.

  5. Enter the output video's height in Please enter the height.

  6. Enter the prompt. In Please enter text, enter the tagging sentence.

Last updated