ANR Tools

ANR AI Dense Point Tracker

Tracks points through the whole range at once: every frame is matched straight to the Reference Frame, so tracks do not drift, and covered or off-frame points wait until they are back.

  • Trackers
  • Trackers pack
  • Tracker models
  • 3 inputs
  • 47 controls

Overview

The AI Dense Point Tracker follows points through a whole shot in one go. Place the points on the Reference Frame and press Analyse Range: a quick rough pass finds where each point goes, then the Reference Frame is matched straight to every frame in a crop around the points (the plate's own pixels on HD, up to 1920 pixels across on larger plates). A track does not drift over a long shot, and it holds on long occlusions, low-contrast surfaces and small subjects.

A point that is covered or leaves the frame is hidden on those frames and comes back only when it is really back in view. Post Tracking Refine decides where a hidden point goes meanwhile, for example carried along with the points still visible. You can change the method after tracking and apply it with Refine Occluded Frames, without tracking again.

Tracking Model has two choices: the Full Range Tracker (the default), and Custom Model, a full-range model you installed yourself through the Custom Model window, which opens when you pick it. Frame-by-frame tracking, the CPU trackers and Optical Flow are in the ANR AI Point Tracker.

Points come from Points From: a freehand outline drawn in the Viewer (Lasso, where a new node starts, with Points at 50), clicks (Click Points), an even grid in a box you drag (Grid In Box), or a matte of the subject (From Matte). Each mode adds to the points already placed instead of replacing them: draw a lasso, switch to Click Points and click a few more, and Analyse Range tracks them all.

In Nuke 14 and later the list of points sits at the top of the panel, with Delete Selected and Go to Reference, and the exports at the bottom: Export to Tracker builds a Nuke Tracker, Export to Camera Tracker a CameraTracker with the points as user tracks, and Export to Mesh Warp an ANR Mesh Warp whose pins follow the points. The Track inputs of ANR Adaptive Light Matcher, ANR Transform and ANR Mesh Warp read this node's tracks too.

Inputs

SourceMatteOcclusionAI Dense Point TrackerOutput
  1. Sourcerequired

    The plate to track.

  2. Matteoptional

    A matte of the subject, for Points From > From Matte: points are scattered inside its alpha on the Reference Frame. Separate white areas count as separate regions for Separate tracker per mask.

  3. Occlusionoptional

    Not used by point tracking. Leave it empty.

Output. The plate with each tracked point drawn on it. Turn off Draw Markers to pass the plate through untouched. The tracks themselves are keyframes on the node, exported with the buttons at the bottom of the panel.

Quick start

  1. Add ANR AI Dense Point Tracker and connect the plate to Source. Go to a frame where the area to track is clear.
  2. With Points From on Lasso, draw round what to track in the Viewer. The node places points on the strongest detail inside the outline, as many as Points asks for (50 on a new node), and the frame you draw on becomes the Reference Frame.
  3. To add more, switch Points From to Click Points and click features, or to Grid In Box and drag a box. The points already placed stay.
  4. Press Analyse Range, in the list at the top of the panel or on the Viewer toolbar. The model loads by itself the first time, and the whole Range is solved at once. The Stop button beside it keeps the frames already finished.
  5. Scrub and check the markers: amber means low confidence, red a lost point. Change Post Tracking Refine if a hidden point goes the wrong way, then press Refine Occluded Frames.
  6. When the track ends, Selection Mode turns to Select: click a point in the Viewer, or drag a box round several, to pick them for Delete Selected, Clear Before, Clear After or Export Selected Points Only.
  7. At the bottom of the panel, tick T (translate), R (rotate) and S (scale) as needed and press Export to Tracker, or press Export to Mesh Warp on the frame the Mesh Warp should use as its Reference Frame.

The panel

The node's panel as Nuke shows it, with the values of a new node. Click any control to see what it does; tabs and sections work as in Nuke.

ANR_AI_Dense_Point_Tracker1
Add Point|◀◀■▶▶|Center ViewerFollowAnalyse RangeRefine Occluded
Clear TracksClear BeforeClear After
StatusDraw a Lasso round what to track on the Reference Frame (or place points), then press Analyse Range: the whole range ...
Load ModelUnload
Tracking ModelOptical Flow (Occlusion Aware)
Custom Model
Custom Model...
Window (frames)0
Points FromLasso
Selection ModeCreate
Points50
Subtract Mode
Clear Prompts
Reference Frame1Set to Current Frame
RangeInput
Custom First0Custom Last0
Tracking InputWorking Space (no transform)
Refine Low-Confidence Frames
Post Tracking RefineSmart Edge Trajectory & Mid-Frame Gap
Refine Occluded Frames
Keep Moving Off-Screen5
Draw Markers
DeviceAutomatic (fastest)
Tracks0

All controls

ANR Point38 controls
Add PointButtonSome modesanrPointTb_addPoint

Add an algorithm point, then click its feature in the viewer. Existing tracks stay in place.

|◀ButtonSome modesanrPointTb_trackStepBackward

A button.

◀ButtonSome modesanrPointTb_trackBackward

A button.

■ButtonanrPointTb_stop

Stop ANR AI Point Tracker: ANR AI Dense Point Tracker1

▶ButtonSome modesanrPointTb_trackForward

A button.

▶|ButtonSome modesanrPointTb_trackStepForward

A button.

Center ViewerButtonanrPointTb_center

A button.

FollowCheckboxanrPointTb_follow

No description.

Default: off

Analyse RangeButtonanrPointTb_analyse

A button.

Refine OccludedButtonanrPointTb_refine

A button.

Clear TracksButtontrackClear

Delete every keyframe this node has written, and the points placed on it. Analyse overwrites rather than appends, so this is only needed to start over.

Clear BeforeButtontrackClearBefore

Delete the track keys BEFORE the current frame, on the selected points (every point when none is selected). The current frame and the reference frame keep theirs, and the points stay.

Clear AfterButtontrackClearAfter

Delete the track keys AFTER the current frame, on the selected points (every point when none is selected). The current frame and the reference frame keep theirs, and the points stay.

StatusStatusstatus

Reports whether the inference models are installed and which device is in use.

Load ModelButtonloadModel

Load the chosen tracker into memory. Takes a few seconds. The node passes the picture through until this succeeds.

UnloadButtonunloadModel

Release the model and its VRAM. Useful before rendering something else heavy on the same GPU.

Tracking ModelMenutrackDenseModel

Which tracker solves the range. All of them work on the whole range at once: press Analyse Range.

Full Range Tracker: a quick rough pass finds where each point goes, then the Reference Frame is matched straight to every frame in a crop around that place (the plate's own pixels on HD, up to 1920 px across on bigger plates), so a track does not drift from frame to frame. A point that leaves the frame is hidden there, as an occlusion, and comes back only when it is really back in view; Post Tracking Refine rebuilds the hidden frames. The first time it is used, its matching model installs (its install window opens).

Full Range Mixed: the Full Range Tracker and a window tracker over the same range, one after the other, mixed point by point and frame by frame. The window tracker follows each point through the shot (tight on texture, and it follows a part that moves on its own); the Full Range Tracker matches the Reference Frame to every frame (it holds plain surfaces and is not thrown by things passing over a point). Where they agree the window tracker's place is kept; where they part, a picture check against the point's own look decides, and a point neither can vouch for is hidden. It takes about as long as both.

Optical Flow (Occlusion Aware): each point follows the optical flow of the whole frame (the ANR AI Vector Tracker's own tracking, three frames at a time) while it is in view. A quick window pass over the points and a grid of support points around them finds the frames on which a point is covered. On those frames, and on frames where its place is off the frame, the point is carried by the average move of the support points around it and keyed as carried (blue in the Viewer); when it is back in view it follows the flow again. The first time it is used, its models install.

Custom Model: a full-range model you installed yourself, chosen in the Custom Model window (it opens when you pick this): one from the list, with its licence, or a file on this PC. A frame-by-frame model runs in the ANR AI Point Tracker; this node refuses one with a message before it loads.

Frame by frame tracking, the CPU trackers and Optical Flow are in the ANR AI Point Tracker.

Default: Optical Flow (Occlusion Aware)Options: Full Range Tracker Custom Model Full Range Mixed Optical Flow (Occlusion Aware)

Custom ModelFiletrackCustomModel

The full-range model Tracking Model's Custom Model tracks with (greyed out until Custom Model is picked): picked in the Custom Model window, which opens when you choose Custom Model: a model you installed, one from the list with its licence, or a file on this PC. ANR Tools hosts none of them; each licence is between you and the model's authors.

A frame-by-frame model is refused here with a message (it runs in the ANR AI Point Tracker). Every weight the model has must be in the file, at its size, or it is refused and nothing is tracked; no code is ever run from the weights file. It runs in a helper of its own.

Default: empty

Custom Model...ButtontrackCustomWindow

Full-range models: the ones installed here, one from the list with its licence, or a file on this PC.

Opens the Custom Model window for full-range models: the ones installed here, A. Install a local model for a file on this PC, and B. Download and install for the list, with each model's licence beside it. It also opens when you pick Custom Model in Tracking Model. ANR hosts none of the models: they download from their authors, and a model marked research only is not for paid work.

Window (frames)SlidertrackWindow

How many frames a full-range model looks at together on every pass: the reference frame plus the frames around the ones it solves. 0 = Auto: as many as this graphics card holds at full speed beside everything else on it. Any other value is the most it uses, never more than the card holds -- so the computer never stalls on a tracker (Windows slows everything down once a program asks for more graphics memory than it keeps ready for it).

A smaller window is not faster per frame (measured on a 12 GB card: 2 frames 0.35 s a frame, 3 frames 0.45 s, 6 frames 0.27 s); a longer one gives the model more context through an occlusion. Used by the Full Range Tracker with a Custom Model path and by a full-range Custom Model; greyed out for the others, which do not use it.

Used by a full-range Custom Model only, and greyed out on the Full Range Tracker. 0 lets the model take as many frames as your graphics card holds at full speed.

Default: 0

Points FromMenupromptMode

Where the points to follow come from.

Grid In Box -- drag a box and scatter an even grid inside it. For planar surfaces, warps and mesh work, where you want many points rather than chosen ones.

Click Points -- click them in the viewer, the way you would place trackers by hand. Best when you know which features matter.

From Matte -- scatter points inside the matte wired into the Matte input, so only the subject is tracked. Feed it an ANR AI Matte and the two nodes work together.

Lasso -- draw a freehand outline around the area in the Viewer; the node fills it with Points on the strongest detail inside (corners, spread apart), evenly where the picture is flat. The frame you draw on becomes the Reference Frame. Clear Prompts clears it.

Default: LassoOptions: Grid In Box Click Points From Matte Lasso

Selection ModeMenutrackSelectMode

Create: a click or drag in the Viewer places points (Points From: Click Points, Lasso, Box).

Select: a click picks the tracked point under it, a drag picks every tracked point inside its box, Shift adds to the pick (Shift-click a picked point to take it out), a click on nothing clears it. The Points list follows, so Delete Selected and Export Selected Points Only use the pick.

It turns to Select by itself when a track ends; set Create to place new points.

Default: CreateOptions: Create Select

PointsSlidertrackGrid

How many points to scatter, for Grid In Box and From Matte. They are laid out to suit the shape of the box, so 40 points in a wide box gives more columns than rows. Anything landing outside the box or off the matte is dropped, so the result can be fewer than asked for.

Default: 50

Subtract ModeCheckboxsubtractMode

When on, clicking in the viewer adds an exclude point instead of an include point. Ctrl-click does the same in hosts that forward modifier keys.

Default: off

Clear PromptsButtonclearPrompts

Remove every click point and box from the current frame.

Reference FrameSlidertrackRefFrame

The frame the points are placed on. Analyse runs forward to the end of the range and backward to its start, both from here, so a point can be placed where it is easiest to see rather than on the first frame.

Default: 1

Set to Current FrameButtontrackRefFromPlayhead

Set Reference Frame to the frame the viewer is on.

A new node already starts on the frame it was created at, so this is for after you have moved somewhere else and want to prompt from there instead.

RangeMenutrackRangeMode

Which frames to track. Input uses the range of the footage into this node, Global uses the project range, and Custom uses the two frame fields below.

Default: InputOptions: Input Global Custom

Custom FirstSlidertrackRangeStart

First and last frame to analyse, used when Range is set to Custom.

Default: 0

Custom LastSlidertrackRangeEnd

First and last frame to analyse, used when Range is set to Custom.

Default: 0

Tracking InputMenutrackInputSpace

How the pixels are encoded on their way to the model. This changes the TRACKING BUFFER only -- the picture this node renders is untouched, and no display transform is baked into anything.

Working Space is the default and what this node has always done: clamp the host's values to 0..1 and quantise. Measured level with sRGB on a normally exposed plate and better on a display-referred one, so it is the safe setting.

sRGB encodes the buffer the way the older Python tracker did -- it rendered sRGB JPEGs, so its tracker never saw a linear pixel. Worth trying on a DARK scene-linear plate, and only there: two and a half stops down it measured 21% more accurate, because clamping linear leaves 44 distinct code values where sRGB leaves 116. On material that is already display-referred it encodes twice, flattens the contrast and makes the model guess -- measured inventing a sighting 530 px from the truth.

Press Dump Tracking Frame on both settings and look at the two files: the right one is the one that looks like the shot.

Default: Working Space (no transform)Options: Working Space (no transform) sRGB (dark scene-linear plates) Working Space, Keep Highlights sRGB, Keep Highlights

Refine Low-Confidence FramesCheckboxtrackRefineLowConfidence

Include amber low-confidence frames as lost frames when applying Post Tracking Refine. Refinement starts at the first amber frame, not only at the first red frame. The yellow selection ring is unrelated. Choose a refinement method or press Refine Occluded Frames to apply. Turning this off affects future refinements; use Undo to revert an applied refinement.

Default: on

Post Tracking RefineMenutrackOccludedMode

What to do with a marker while it is hidden - behind something, or out of frame. Picking one applies it to the tracks already on the node.

Trajectory Matching (the default): every stretch a marker was not seen is rebuilt. While other markers are still seen it moves with them (their pan, rotation and scale) - forwards from where it was last seen, backwards from where it is seen again. Only while no marker at all is seen does it follow its own path, at its own speed and direction, and the two sides are blended there, so it meets the subject exactly when it is found again, with no jump. A marker that never comes back keeps its motion to the end. While tracking it keys the model's own guess, like Independent; the rebuild runs when you pick it or press Refine Occluded Frames, and with the Frame by Frame Tracker by itself when tracking stops.

Leaving the frame (Frame by Frame Tracker, as the Full Range Tracker): a marker within one of the model's pixels of the frame edge counts as gone, like a hidden one, and the frames no marker is seen in are crossed by one smooth curve that leaves and comes back at the speed of the 3 frames on each side - with Trajectory Matching and Follow Visible Markers.

Independent: the marker goes where the AI guesses it is. Each marker keeps its own identity, so a turning face or a deforming object comes back on the right spot.

Follow Visible Markers: group trajectory matching - the markers are one shape and no marker moves alone. The shape is the one placed on the Reference Frame; every frame the whole group (its position, size and rotation) follows the markers seen, even a single one, and each hidden marker keeps its place from its last confident sighting. Once none is seen, the group carries on along the last trajectory out; the first marker found again pulls the group onto it and the way out is blended into the way in, with no jump. A marker that slides onto something else (its offset disagrees with its neighbours') and sightings at the frame edge, where the model squashes positions, are held in the shape instead. Use this for a surface, and with the Frame by Frame Tracker when markers leave the frame - that model cannot place a point outside the picture.

Interpolate Gap: no keys while hidden; the curve draws a straight line across.

Hidden frames never count as solved, whichever you pick. Change it after tracking and press Refine Occluded Frames to apply it without tracking again.

Trajectory Repair: also rebuilds spikes, false re-finds and the frames next to a gap that the occluder dragged.

Smart Edge Trajectory & Mid-Frame Gap: Trajectory Matching where a point leaves or enters the frame, a straight bridge where something passes in front of it inside the frame.

Default: Smart Edge Trajectory & Mid-Frame GapOptions: Follow Visible Markers Independent Interpolate Gap Trajectory Matching Trajectory Repair Smart Edge Trajectory & Mid-Frame Gap

Refine Occluded FramesButtontrackRefineOccluded

Re-apply Post Tracking Refine and Keep Moving Off-Screen to the tracks already on this node, without tracking again.

Every frame the model reported hidden is rewritten the way the current method says: carried on the visible markers, the model's own coordinate, or left to the curve. Frames the model saw are not touched. So track once with any model, then try the three modes on the result and keep the one that looks right. Works on any track made after this button existed; older tracks have no record of the model's own coordinate and use the keyed position instead.

Keep Moving Off-ScreenSlidertrackCoastFrames

How many frames the points carry on travelling after the LAST one has left the frame, before they stop and wait for the subject to come back.

While any point is still visible the hidden ones always follow the motion of the ones that can be seen. This is only about what happens once nothing is visible at all and there is nothing left to measure: the points coast on the last motion for this many frames, then hold.

0 stops them the moment the last one goes, which can look early - a subject part-way out of frame stops before it has finished leaving. Higher values carry it further out. None of these frames count as solved, so no match-move is ever built from them.

This is the carry while tracking. Post Tracking Refine's Follow Visible Markers (picking it, or Refine Occluded Frames; with the Frame by Frame Tracker also by itself when tracking stops) rebuilds those frames instead: the whole shape keeps the group's motion while nothing is seen and lands with no jump where the markers are found again.

Default: 5

Draw MarkersCheckboxtrackShowMarkers

Draw each tracked point onto the output picture. Useful for checking a track and for rendering a reference; turn it off to pass the plate through untouched.

Default: on

DeviceMenudevice

Automatic picks the fastest available and is what you want. The other two force a specific backend for testing: CUDA is the GPU, CPU is many times slower and cannot run tracking on the ONNX engine at all.

Default: Automatic (fastest)Options: Automatic (fastest) CUDA CPU

TracksSlidertrackCount

How many tracks Analyse produced. Read-only.

Default: 0

Points9 controls
anrClassicalPointListPanelanrClassicalPointList

A panel of its own in Nuke.

Default: empty

Export to TrackerButtonanrExportTracker

Build a native Tracker4 from these tracks. Occluded frames arrive marked as interpolated rather than solved.

Export to Camera TrackerButtonanrExportCameraTracker

Build a CameraTracker with these tracks as its User Tracks, ready to solve. Its table has no per-frame enable column, so occluded frames arrive as genuine GAPS in the curve rather than as keys marked unsolved. It does not press Solve -- that wants survey points and a lens model, and is your call.

Export to Mesh WarpButtonanrExportMeshWarp

Build an ANR Mesh Warp under this tracker with the CURRENT FRAME as its Reference Frame: every point with a position on this frame becomes a pin that follows the point (and lets go while it is hidden). The tracker goes on the Mesh Warp's Track input, so Import Track Input there reads it again after a new track. Up to 64 pins.

T (translate)CheckboxanrExportT

Set this column for every exported track. Rotate and scale need at least two tracks to mean anything.

Default: on

R (rotate)CheckboxanrExportR

Set this column for every exported track. Rotate and scale need at least two tracks to mean anything.

Default: off

S (scale)CheckboxanrExportS

Set this column for every exported track. Rotate and scale need at least two tracks to mean anything.

Default: off

Separate tracker per maskCheckboxanrExportPerMask

OFF exports the usual way: one node holding every track.

ON builds a node per mask region instead, each holding only the points that sat on it -- for separate objects that each want their own match-move, rather than one solve averaging across things that are not moving together.

Only does anything when the points came From Matte and the matte has more than one separate region in it. A region is a connected white area of the picture on the Matte input: the node is handed a rendered matte, not the Roto's list of shapes, so two shapes that touch or overlap count as one.

Default: off

Export Selected Points OnlyCheckboxanrExportSelectedPoints

When enabled, both Export to Tracker and Export to Camera Tracker use only the selected rows in Points. Select the AI group to export all its points. With no selected tracks, nothing is exported.

Default: off

Tips

  • Clear Before and Clear After delete the track keys before or after the current frame on the selected points (every point when none is selected). The current frame and the Reference Frame keep theirs, and the points stay. When the Reference Frame is on the cleared side, the frames between it and the current frame hold the point still where it was placed, and they do not count as tracked.
  • Clear Tracks deletes every track key and sets Selection Mode back to Create. Clear Prompts clears the outline, the clicks or the box, and the points kept from the other Points From modes.
  • In Select mode, Shift adds to the pick and a click on nothing clears it. Set Selection Mode back to Create to place new points.
  • Grid In Box suits flat surfaces, warps and mesh work. From Matte keeps every point on the subject; with Separate tracker per mask each separate object gets its own Tracker on export.
  • Go to Reference jumps to the Reference Frame: new points are placed there.
  • Export Selected Points Only exports just the points selected in the list.
  • Center Viewer centres the Viewer on the selected points; Follow keeps them centred as the frame changes.
  • Unload, beside Load Model, frees the graphics card's memory when you are done tracking. Deleting the node or closing the comp frees it too.

Good to know

  • Needs an NVIDIA graphics card (CUDA). If the Tracker models were not installed with ANR Tools, Nuke offers to download them when you create the node. After the download, try again; restart Nuke if it asks you to.
  • This node tracks with Analyse Range only: it has no frame-by-frame buttons. Each press replaces every key inside the Range and leaves the keys outside it alone.
  • Analyse Range looks at the Reference Frame before it loads a model: when the input gives no picture there, or an all-black one, it stops and says why in Status instead of tracking black frames. The usual cause is a Read in error: a missing file, or a colourspace the script's colour settings do not have.
  • While a point is out of the picture it is kept outside it, never placed on a lookalike inside it. On a long range the whole-range solve takes longer than frame-by-frame tracking.
  • Hidden and carried frames never count as solved: Export to Tracker marks them unsolved, and Export to Camera Tracker leaves them out as gaps. Export to Camera Tracker does not press Solve: add survey points and a lens model and solve it yourself.
  • Custom Model takes a full-range model only: a frame-by-frame model is refused with a message before it loads (it runs in the ANR AI Point Tracker). Use only weights your work allows: a model you add yourself keeps its own licence.
  • A comp saved with an ANR AI Point Tracker on the Full Range Tracker opens on Frame by Frame with its tracks unchanged, and Nuke asks once whether to make those nodes AI Dense Point Trackers, keeping their points, tracks, settings and connections (Edit > Undo puts each back). ANR > Trackers > Make AI Dense Point Tracker in Nuke's menu bar does it later for the selected nodes.
  • The Viewer toolbar (Center Viewer, Follow, Analyse Range, Refine Occluded) comes with Nuke 14.0 to 16.0. It is not there yet in Nuke 16.1 and 17: use the same buttons on the panel.

Something unclear or missing? Write to support@anrfx.com.