Files
detecttracking/contrast/model/utils.py
2024-09-05 19:01:49 +08:00

5 lines
151 B
Python

try:
from torch.hub import load_state_dict_from_url
except ImportError:
from torch.utils.model_zoo import load_url as load_state_dict_from_url