Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ class Uniformerv2(nn.Module):
|
|
29 |
# Device on which to run the model
|
30 |
# Set to cuda to load on GPU
|
31 |
device = "cpu"
|
32 |
-
model_path = hf_hub_download(repo_id="
|
33 |
# Pick a pretrained model
|
34 |
model = Uniformerv2(uniformerv2_b16(pretrained=False, t_size=8, no_lmhra=True, temporal_downsample=False))
|
35 |
state_dict = torch.load(model_path, map_location='cpu')
|
|
|
29 |
# Device on which to run the model
|
30 |
# Set to cuda to load on GPU
|
31 |
device = "cpu"
|
32 |
+
model_path = hf_hub_download(repo_id="lierzhao/uniformerv2_lez1", filename="lierzhao/mit_uniformerv2_l14_8x336.pyth/mit_uniformerv2_l14_8x336.pyth")
|
33 |
# Pick a pretrained model
|
34 |
model = Uniformerv2(uniformerv2_b16(pretrained=False, t_size=8, no_lmhra=True, temporal_downsample=False))
|
35 |
state_dict = torch.load(model_path, map_location='cpu')
|