Skip to content

Commit

Permalink
New VideoMAEv2 ckpt_url
Browse files Browse the repository at this point in the history
  • Loading branch information
desaixie authored Sep 28, 2024
1 parent 118f4ac commit 3752bb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cdfvd/third_party/VideoMAEv2/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def load_videomae_model(device, ckpt_path=None):

if not os.path.exists(ckpt_path):
# download the ckpt to the path
ckpt_url = 'https://pjlab-gvm-data.oss-cn-shanghai.aliyuncs.com/internvideo/videomaev2/vit_g_hybrid_pt_1200e_ssv2_ft.pth'
ckpt_url = 'https://huggingface.co/OpenGVLab/InternVideoMAE_models/resolve/main/mae-g/vit_g_hybrid_pt_1200e_ssv2_ft.pth'
response = requests.get(ckpt_url, stream=True, allow_redirects=True)
total_size = int(response.headers.get("content-length", 0))
block_size = 1024
Expand All @@ -78,4 +78,4 @@ def load_videomae_model(device, ckpt_path=None):
ckpt = ckpt[model_key]
break
model.load_state_dict(ckpt)
return model.to(device)
return model.to(device)

0 comments on commit 3752bb6

Please sign in to comment.