ComfyUI Image to Video: A Working Workflow and Fixes
A ComfyUI image-to-video workflow needs a compatible model, the correct VAE and a starting image that actually reaches the Video latent node. This guide uses native Wan2.2-TI2V-5B, with a pinned workflow, exact filenames and a recovery sequence for memory errors, frozen motion and changing subjects.
For a hosted route, the DIY AI Video generator lets you animate an image using its available Video models and review the credit quote before generating. The local setup below gives you control over the ComfyUI graph and model files.
Validation status: The workflow structure, model references and settings have been checked against pinned source files. GPU generation, memory use and output quality have not been validated for this guide. The settings below are starting configurations, not DIY AI benchmark results.
Start with the pinned workflow and enable its image input
Download the pinned official Wan2.2 5B workflow. Save it as a JSON file and drag it onto the ComfyUI canvas. This upstream file supports both text-to-video and image-to-video, and its Load Image node is bypassed by default.
- Install the three matching model files listed below and select them in their loaders.
- Select Load Image and press Ctrl+B to remove its bypass. Upload your starting JPG.
- Confirm that its IMAGE output connects to
start_imageon.Wan22ImageToVideoLatent. - Enter the prompt and fixed starting settings below. Use the smaller diagnostic configuration first if capacity is uncertain.
- Run once, then check the saved clip and the last completed node before changing anything.
The backend source reference is ComfyUI v0.46.0, commit a277b5bf213e8a44fa34817b7770b54f86ef4cea, whose requirements specify frontend 1.59.6. The linked workflow is pinned separately to commit e0f557447323530e50be99fc3b2208a275d9ae78. Older version strings inside the JSON describe its authoring history; they do not prove which version your installation runs.
The companion pack includes the unchanged upstream file and two adapted copies: wan22-5b-baseline.json and wan22-5b-diagnostic.json. Those copies enable the image input and include the boat prompt and fixed seed. When downloading the upstream file directly, make those changes yourself using the instructions here.
Keep the diffusion model, encoder and VAE together
| File | Folder inside ComfyUI | Approximate download |
|---|---|---|
wan2.2_ti2v_5B_fp16.safetensors | models/diffusion_models/ | 10.00 GB |
umt5_xxl_fp8_e4m3fn_scaled.safetensors | models/text_encoders/ | 6.74 GB |
wan2.2_vae.safetensors | models/vae/ | 1.41 GB |
These files total approximately 18.14 GB on disk, before the application, dependencies and outputs. The pack model-manifest.json records immutable download URLs and SHA-256 values from the official repository metadata. Its model revision is 5df3a4a3ed0628002308022198249dbbbd045d09 in Comfy-Org/Wan-2.2. Compare the hashes with your downloaded files; file sizes alone cannot establish integrity.
In Load CLIP, select the listed encoder and set its type to wan. Keep the diffusion loader’s weight dtype at default. This setup uses one diffusion model and native nodes. It does not require a CLIP Vision download, a second high-noise or low-noise model, or a custom Wan wrapper.
The 5B VAE is easy to get wrong. The official 14B examples use a Wan2.1 VAE, but this 5B graph uses wan2.2_vae.safetensors. Copying the VAE from a different Wan tutorial can produce incompatible tensor shapes. Restore the three-file combination before investigating prompts or sampling settings.
ComfyUI’s documentation says the 5B model should fit 8 GB VRAM using native offloading. That is vendor guidance, not a measured requirement for these presets. Available system RAM, other GPU applications, resolution, frame count and decoding also affect whether a run completes.
Use an input whose shape and movement you can judge
The companion pack supplies paper-boat-input.jpg, a synthetic orange paper boat on water created for this tutorial. It contains no person, branding or borrowed stock photograph. You can use it for the walkthrough, or use a photograph you own and have permission to animate.
Upload the JPG through Load Image even if the node already displays its filename. A workflow JSON references an input file; it does not contain the image bytes. Confirm that the preview shows the intended picture.
Keep the whole subject away from the edges. The Video latent node resizes and centre-crops the source to the requested aspect ratio so that a portrait photograph can lose substantial content in a landscape output. If the still needs an edit before animation, use our ComfyUI image-to-image workflow and export the accepted image first.
For the boat, use this positive prompt:
A single orange paper boat drifts slowly to the right across calm water. Small ripples spread behind the boat. The camera remains fixed on the water and keeps the whole boat in frame. The folded paper shape and orange colour remain consistent.
Replace the upstream negative prompt with this short starting version:
frozen frame, abrupt camera movement, cuts, deformed boat, duplicate boat, flickering, text, watermark
The requested action is deliberately observable: the boat should travel across the frame while its folds remain recognisable. Camera instructions remain requests rather than enforced constraints.
Hold the sampler steady while testing a smaller workload
The baseline retains the official template’s dimensions and sampling settings. The diagnostic configuration reduces dimensions and length to help isolate capacity problems. It is a proposed troubleshooting preset, not a proven low-VRAM configuration.
| Setting | Baseline | Diagnostic configuration |
|---|---|---|
| Width x height | 1280 x 704 | 640 x 352 |
| Length | 121 frames | 41 frames |
| Batch size | 1 | 1 |
| KSampler seed | 20261124, fixed | 20261124, fixed |
| Steps / CFG | 20 / 5 | 20 / 5 |
| Sampler / scheduler | uni_pc / simple | uni_pc / simple |
| Denoise | 1.0 | 1.0 |
| ModelSamplingSD3 shift | 8 | 8 |
| Create Video frame rate | 24 fps | 24 fps |
| Calculated playback duration | About 5.04 seconds | About 1.71 seconds |
Use dimensions divisible by 32 and lengths of 4n + 1, such as 41, 81 or 121 frames. The duration figures above are frame count divided by frame rate. They are not generation times.
Leave Save Video’s format and codec on auto for the initial run, and check those controls after importing the workflow. The native default path saves an MP4 under the ComfyUI output directory. The adapted files use a prefix beginning video/DIY_AI_Wan22_5B. This graph has no Audio source, so the result is silent.
A fixed seed helps compare one change on the same setup. It does not guarantee identical results across different GPUs, numerical precision or software versions. Keep a copy of the original configuration before experimenting.
Identify the failed stage before choosing a fix
| Where it stops | Check first | Next action |
|---|---|---|
| Workflow validation or model selection | Missing core nodes, absent filenames or incomplete downloads | Check the backend version, startup errors, file locations and model hashes. Restart after adding files. |
| Loading, Text encoding or input encoding | Exact error, available RAM/VRAM and the selected model trio | Close other heavy workloads and restore the matching files. A smaller clip cannot repair a corrupt model. |
| KSampler | Whether the error actually reports GPU memory exhaustion | Keep batch 1, shorten the clip, then reduce dimensions. Decoder tiling cannot fix a sampler allocation. |
| VAE Decode | Whether automatic tiled fallback is still progressing | Let recovery finish. If it fails, follow the decode sequence below. |
| Save Video | Output path, disk space and encoder error | Check saving separately before changing the diffusion settings. Try MP4 with H.264 in the current Save Video controls. |
A browser showing Reconnecting does not identify the cause. Read the server terminal: the process may have exited, exhausted system memory or lost its connection. Record the last completed node and the full error before restarting. Prescribing a huge pagefile without checking the failure can hide the real problem.
When sampling finishes but decoding runs out of memory
In the pinned backend, ordinary VAE Decode already retries tiled decoding after a recognised out-of-memory error. A warning announcing that retry is not itself a failed job. Watch whether decoding continues and whether a playable file appears.
- Reduce the decoded workload. Try 81 frames, then 41, at the same dimensions. If necessary, use 640 x 352 with 41 frames. Lowering steps does not reduce the size of the decoded frame sequence.
- Try explicit tiled decoding. Replace VAE Decode with VAE Decode (Tiled). Connect the sampler’s LATENT output to its samples input, the same VAE to its vae input, and its IMAGE output to Create Video.
- Start with the node defaults. These are tile size 512, overlap 64, temporal size 64 and temporal overlap 8. A smaller candidate is 256, 64, 16 and 8, respectively. That candidate is valid against the node’s input rules but has not been tested here. Check the resulting clip for spatial seams or temporal changes.
- Consider CPU VAE only after checking RAM. The launch option
--cpu-vaemoves VAE work to the CPU and system memory. It can shift the bottleneck rather than remove it, and requires restarting ComfyUI.
The tiled node’s spatial values refer to decoded pixels and its temporal values to frames; the implementation converts them internally for the VAE. Avoid copying values described as latent tiles from a different wrapper.
See more of our reporting in Google Top Stories, AI Overviews and AI Mode.
Fix frozen motion without mixing incompatible recipes
First compare separated frames in the saved Video. A preview that has stopped updating is a different problem from a completed clip whose frames barely change. Increasing the playback frame rate does not invent movement; it plays the existing frames faster.
Check that the intended image is connected, then request one visible action. For the boat, keep the camera fixed and ask for a short drift. Describing what the camera should keep filming is clearer than filling the prompt with repeated prohibitions.
A recurring problem in shared workflows is that a speed LoRA, quantised checkpoint, low step count and frame interpolation arrive together. Removing one component while keeping the others can leave an unsuitable recipe. Restore this native configuration as a whole before borrowing settings from a turbo example.
Keep the seed fixed while changing the motion instruction. Once you have compared that change, try a different seed as a separate experiment. If neither produces useful movement, record the failure instead of adding several new controls at once.
Protect the source by reducing the requested transformation
If the boat changes shape or duplicates, check the input crop and first frame before judging the later motion. The source passes through VAE encoding and decoding, so even the first frame is not guaranteed to be pixel-identical to the JPG.
Then simplify the movement: one short translation, a stable camera and no simultaneous change of lighting or viewpoint. A large orbit asks the model to invent surfaces absent from the photograph. Shortening the clip also reduces how far the subject must remain coherent.
Leave denoise at 1.0 for this baseline. The Wan latent node encodes the starting image and protects its initial latent slice with a noise mask. Lowering denoise based on ordinary image-to-image advice changes this sampling schedule; it is not a dependable identity-preservation control for the Video graph.
Inspect the first, middle and final frames for recognisable folds, orange colour, unwanted camera movement and clipping. Do not accept an output solely because it exported successfully.
Keep a real run record before automating the workflow
Record the GPU model and VRAM, system RAM, driver, operating system, Python, PyTorch/CUDA and ComfyUI versions alongside the workflow, input image, seed and model hashes. The pack includes an environment recorder and a blank run record. An environment inventory alone does not prove that generation completed.
Measure the complete run through loading, sampling, decoding and saving. Label cold and warm runs separately, and state how you measured memory. Preserve the output clip and note whether the requested motion and subject consistency passed visual inspection.
Once a local run completes reliably, our ComfyUI API guide covers queue submission and completion checks. If the remaining limitation is the model’s result or the hardware commitment, compare AI image-to-video generators before expanding the graph.

