Update app.py
Browse files
app.py
CHANGED
@@ -36,10 +36,10 @@ from huggingface_hub import hf_hub_download
|
|
36 |
# Device on which to run the model
|
37 |
# Set to cuda to load on GPU
|
38 |
device = "cuda"
|
39 |
-
model_video_path = hf_hub_download(repo_id="OpenGVLab/VideoMamba", filename="
|
40 |
model_image_path = hf_hub_download(repo_id="OpenGVLab/VideoMamba", filename="videomamba_t16_in1k_res224.pth")
|
41 |
# Pick a pretrained model
|
42 |
-
model_video = videomamba_tiny(num_classes=400, num_frames=
|
43 |
video_sd = torch.load(model_video_path, map_location='cpu')
|
44 |
model_video.load_state_dict(video_sd)
|
45 |
model_image = videomamba_image_tiny()
|
|
|
36 |
# Device on which to run the model
|
37 |
# Set to cuda to load on GPU
|
38 |
device = "cuda"
|
39 |
+
model_video_path = hf_hub_download(repo_id="OpenGVLab/VideoMamba", filename="videomamba_t16_k400_f16_res224.pth")
|
40 |
model_image_path = hf_hub_download(repo_id="OpenGVLab/VideoMamba", filename="videomamba_t16_in1k_res224.pth")
|
41 |
# Pick a pretrained model
|
42 |
+
model_video = videomamba_tiny(num_classes=400, num_frames=16)
|
43 |
video_sd = torch.load(model_video_path, map_location='cpu')
|
44 |
model_video.load_state_dict(video_sd)
|
45 |
model_image = videomamba_image_tiny()
|