"""Pixel features and the per-frame pixel update, owned by Tracker.""" from .motion_net.stream import CoTrackerThreeStream def build_motion(image_size): """The fnet and the pixel updater. Weights come from the tracker checkpoint.""" input_cache_size = 15 return CoTrackerThreeStream( stride=4, corr_radius=3, corr_levels=4, window_len=input_cache_size + 1, num_virtual_tracks=64, model_resolution=tuple(image_size), input_cache_size=input_cache_size, ttt_layers=(0, 1, 2), ttt_type="linear", ttt_head_dim=32, ttt_base_lr=0.1, )