Spaces:
Running on Zero

File size: 635 Bytes
7547a6b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""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,
    )