facebookresearch / co-tracker

CoTracker is a model for tracking any point (pixel) on a video.

Home Page:https://co-tracker.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error when loading model using torch.hub

julkaztwittera opened this issue · comments

Every time I try to load the model using the instruction from Readme.md using torch.hub, I get such an error:

torch/hub/facebookresearch_co-tracker_master/cotracker/models/core/cotracker/blocks.py", line 237, in <lambda>
    approx_gelu = lambda: nn.GELU(approximate="tanh")
TypeError: __init__() got an unexpected keyword argument 'approximate'

how did you solve this problem

Hello, I have the same error trying to initialize the model. Has anyone came across this and was able to solve it? Thank you

Use torch>=1.12.
(see here)