A larger, sharper video: SeedVR2
Lesson "video-upscale", in the group Packs and tools of the lesson list. Steps: 8.
What you will be able to do
A low-resolution clip is redrawn at 1080p with its details restored.
What you need
- It goes on from Load, cut and save video: VideoHelperSuite. The card says so; it is a hint, not a lock.
- Node packs: ComfyUI-SeedVR2_VideoUpscaler. You install them in ComfyUI yourself, then choose Sync ▸ Sync now. Until then the card says the lesson does not fit and names the pack.
- Model files the lesson checks:
- for
modelof SeedVR2 (Down)Load DiT Model: a file whose name hasseedvr2; - for
modelof SeedVR2 (Down)Load VAE Model: a file whose name hasvae.
- for
- Nodes: Load Video, Get Video Components, SeedVR2 (Down)Load DiT Model, SeedVR2 (Down)Load VAE Model, SeedVR2 Video Upscaler, Create Video, Save Video.
- The app downloads and installs nothing. The step texts below say which files and folders, and which ComfyUI template names them.
The steps
The words of each step, as the lesson shows them. Node names are in bold.
What it costs, first (reading)
This lesson needs the ComfyUI-SeedVR2_VideoUpscaler pack. Install it yourself through ComfyUI's manager. A pack runs other people's code on your computer, so take it from its official page and keep it up to date.
SeedVR2 does not only stretch frames: it redraws them larger, restoring detail, and keeps neighbouring frames consistent.
What it costs: the 3B model (about 7 GB) or the 7B one (about 16 GB, sharper), and a VAE. When a file is missing, the pack's loader fetches it itself into
models/SEEDVR2when the graph is first run in ComfyUI; the app downloads nothing. With block swapping and tiled VAE, as here, the 3B model runs on modest cards. Each frame is redrawn, so a long clip takes long: start with a few seconds.If the canvas already holds another graph, start from an empty one: "File ▸ New project".
Load the clip
Add Load Video and Get Video Components. Choose the clip in
fileand connect Load Video to thevideoinput of Get Video Components.Load the model with block swapping
Add a SeedVR2 (Down)Load DiT Model node. In
modelchoose the 3B file to start with. Setblocks_to_swapto 32 andoffload_devicetocpu.Block swapping keeps most of the model's blocks in system memory and brings each in when it is needed: much less graphics memory, a slower run. With a large card, set it to 0.
Load the VAE in tiles
Add a SeedVR2 (Down)Load VAE Model node, choose the VAE file in
model, and setencode_tiledanddecode_tiledtotrue.The frames are read and written in pieces, so the peak of memory stays low.
The upscaler
Add a SeedVR2 Video Upscaler node. Connect the
imagesoutput of Get Video Components to itsimageinput, SeedVR2 (Down)Load DiT Model toditand SeedVR2 (Down)Load VAE Model tovae. Setresolutionto 1080,batch_sizeto 33 andcolor_correctiontolab.resolutionis the length of the shorter side of the result.batch_sizeis how many frames are redrawn together: more keeps the motion consistent and needs more memory. It is of the form 4n + 1 (5, 21, 33).Save with the sound
Add Create Video and Save Video. The frames of SeedVR2 Video Upscaler go into
images, theaudiooutput of Get Video Components intoaudio, the clip intovideoof Save Video. Setfpsto the rate of the original clip, for example 24.When the result is not right (reading)
- Out of memory: lower
batch_sizeto 21 or 5, orresolutionto 720. - Flicker between groups of frames: raise
batch_size. - The colours shift: try
waveletincolor_correction. - Too slow: cut the clip shorter first; the template takes the first 96 frames with Image From Batch, which the app accepts on the way.
- Out of memory: lower
The graph is ready (reading)
Save the graph with "File ▸ Save workflow for ComfyUI…", open the file in ComfyUI and run it there. This app runs nothing in ComfyUI itself.
What the lesson checks
A reading step is done when you press Got it, next. A doing step ticks itself off when the canvas holds:
- Step 2, Load the clip:
- a Load Video node.
- a Get Video Components node.
VIDEOof Load Video intovideoof Get Video Components.fileof Load Video: a value is chosen.
- Step 3, Load the model with block swapping:
- a SeedVR2 (Down)Load DiT Model node.
modelof SeedVR2 (Down)Load DiT Model holds a file whose name hasseedvr2(capitals, dots and dashes do not matter).blocks_to_swapof SeedVR2 (Down)Load DiT Model is from 0 to 36; Do this for me sets 32.offload_deviceof SeedVR2 (Down)Load DiT Model iscpu.
- Step 4, Load the VAE in tiles:
- a SeedVR2 (Down)Load VAE Model node.
modelof SeedVR2 (Down)Load VAE Model holds a file whose name hasvae(capitals, dots and dashes do not matter).encode_tiledof SeedVR2 (Down)Load VAE Model istrue.decode_tiledof SeedVR2 (Down)Load VAE Model istrue.
- Step 5, The upscaler:
- a SeedVR2 Video Upscaler node.
imagesof Get Video Components intoimageof SeedVR2 Video Upscaler (a Upscale Image or Upscale Image By or ImageFromBatch or ImageResizeKJv2 or Resize Image or GetImageRangeFromBatch or ResizeImageMaskNode in between is accepted).SEEDVR2_DITof SeedVR2 (Down)Load DiT Model intoditof SeedVR2 Video Upscaler.SEEDVR2_VAEof SeedVR2 (Down)Load VAE Model intovaeof SeedVR2 Video Upscaler.resolutionof SeedVR2 Video Upscaler is from 720 to 2160; Do this for me sets 1080.batch_sizeof SeedVR2 Video Upscaler is from 5 to 81; Do this for me sets 33.color_correctionof SeedVR2 Video Upscaler islab.
- Step 6, Save with the sound:
- a Create Video node.
- a Save Video node.
IMAGEof SeedVR2 Video Upscaler intoimagesof Create Video.audioof Get Video Components intoaudioof Create Video.VIDEOof Create Video intovideoof Save Video.fpsof Create Video is from 1 to 120; Do this for me sets 24.