Oink
Nodes

AIVectorGenerator

AIVectorGenerator (Nuke SmartVector): Generate runs optical flow (SEA-RAFT, BSD-3) in the AI worker and caches vectors per frame.

raw .md

AIVectorGenerator (Nuke SmartVector): Generate runs optical flow (SEA-RAFT, BSD-3) in the AI worker and caches vectors per frame. Adds layers motion (forward u,v + backward u,v in pixels, v up), forward, backward and occlusion; SmartVector layers add frame distances 2-16 for VectorDistort. Model Auto picks the best flow model that fits the free GPU memory. Resolution auto runs the flow at about 1024 px on the long side. Viewing a generated frame never blocks the app: the vectors of the last frames you looked at stay in memory.

NodeAIVectorGenerator
Type idOC_N_aivectorgenerator
MenuAI › AIVectorGenerator
Nuke classnone: saved in .nk files as an Oink node
Codeopencomp_core/nodes/ai/aimotion.py

AIVectorGenerator properties

Inputs and outputs

PortNameType
input 0Sourceimage
output 0Imageimage

Knobs

Panel tab Aivectorgenerator, in panel order.

KnobLabelTypeDefaultRange / valuesNuke knobDescription
modelmodelmenuAUTOAUTO (Auto (by free GPU memory)), sea-raft-m (SEA-RAFT M), sea-raft-s (SEA-RAFT S (fast))
smartvectorSmartVector layersboolfalseAlso compute frame distances 2, 4, 8, 16 (smartvector_fNN_v01) for VectorDistort
scale_moderesolutionmenuautoauto, custom
proc_scalescalefloat0.50.1 to 1
check_inputcheck inputbooltrueOnly use vectors made from exactly this input (content hash)
cache_pathcache foldertextEmpty = ~/.cache/opencomp/ai-results/vectors/<key>
keep_other_frameskeep other framesbooltrue
keep_loadedkeep model loadedboolfalse

Other knobs (Python, .nk and the assistant; not on the panel)

KnobLabelTypeDefaultRange / valuesNuke knobDescription
gl_colorViewer Controls Colorfloat ×30, 0, 00 to 1
postage_stamp_frameStatic Frameint1-2147483648 to 2147483647
lifetimeStartLifetime Startint0-2147483648 to 2147483647
lifetimeEndLifetime Endint100-2147483648 to 2147483647
useLifetimeUse Lifetimebooleanfalse
cachedCachedbooleanfalse
bookmarkBookmarkbooleanfalse
dope_sheetDope Sheetbooleanfalse
clone_groupClone Groupstring
link_sourceLink Sourcestring
link_overridesLink Overridesstring
split_viewsSplit Viewsstring
generationGenerationint0-2147483648 to 2147483647
generated_firstGenerated Firstint0-2147483648 to 2147483647
generated_lastGenerated Lastint-1-2147483648 to 2147483647

Nuke equivalent

No Nuke class. In a .nk file this node is written as an Oink node that Nuke will not recognise.

On this page