Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion cotracker/models/core/cotracker/cotracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import torch.nn as nn
import torch.nn.functional as F

from huggingface_hub import PyTorchModelHubMixin

from cotracker.models.core.model_utils import sample_features4d, sample_features5d
from cotracker.models.core.embeddings import (
get_2d_embedding,
Expand All @@ -26,7 +28,11 @@
torch.manual_seed(0)


class CoTracker2(nn.Module):
class CoTracker2(nn.Module, PyTorchModelHubMixin,
library_name="co-tracker",
repo_url="https://github.com/facebookresearch/co-tracker",
license="cc-by-nc-4.0",
tags=["object-tracking"]):
def __init__(
self,
window_len=8,
Expand Down