Commit ·
a744b6a
1
Parent(s): 170a264
Updated model cards
Browse files- README.md +4 -4
- final/MODEL_CARD.md +2 -2
- i3d_r50/MODEL_CARD.md +1 -1
- r2plus1d_18/MODEL_CARD.md +1 -1
- slowfast_r50/MODEL_CARD.md +1 -1
- x3d_m/MODEL_CARD.md +1 -1
README.md
CHANGED
|
@@ -108,13 +108,13 @@ from huggingface_hub import hf_hub_download
|
|
| 108 |
|
| 109 |
# Recommended: final optimized models
|
| 110 |
ckpt_path = hf_hub_download(
|
| 111 |
-
repo_id="
|
| 112 |
filename="final/final_x3d_realtime.pt", # or "final/final_best.pt"
|
| 113 |
)
|
| 114 |
|
| 115 |
# Or one of the baselines
|
| 116 |
ckpt_path = hf_hub_download(
|
| 117 |
-
repo_id="
|
| 118 |
filename="x3d_m/x3d_m_best.pt",
|
| 119 |
)
|
| 120 |
```
|
|
@@ -194,6 +194,6 @@ MIT License - tự do sử dụng cho mục đích nghiên cứu và phi thươn
|
|
| 194 |
|
| 195 |
## Contact
|
| 196 |
|
| 197 |
-
- Author:
|
| 198 |
-
- Demo Space: [
|
| 199 |
- Source code: GitHub repository (ask author for link)
|
|
|
|
| 108 |
|
| 109 |
# Recommended: final optimized models
|
| 110 |
ckpt_path = hf_hub_download(
|
| 111 |
+
repo_id="visionlab-ai/school-violence-detection-models",
|
| 112 |
filename="final/final_x3d_realtime.pt", # or "final/final_best.pt"
|
| 113 |
)
|
| 114 |
|
| 115 |
# Or one of the baselines
|
| 116 |
ckpt_path = hf_hub_download(
|
| 117 |
+
repo_id="visionlab-ai/school-violence-detection-models",
|
| 118 |
filename="x3d_m/x3d_m_best.pt",
|
| 119 |
)
|
| 120 |
```
|
|
|
|
| 194 |
|
| 195 |
## Contact
|
| 196 |
|
| 197 |
+
- Author: visionlab-ai
|
| 198 |
+
- Demo Space: [visionlab-ai/school-violence-detection-app](https://huggingface.co/spaces/visionlab-ai/school-violence-detection-app)
|
| 199 |
- Source code: GitHub repository (ask author for link)
|
final/MODEL_CARD.md
CHANGED
|
@@ -82,7 +82,7 @@ from sv_model import create_model
|
|
| 82 |
|
| 83 |
# X3D-M realtime
|
| 84 |
ckpt_path = hf_hub_download(
|
| 85 |
-
repo_id="
|
| 86 |
filename="final/final_x3d_realtime.pt",
|
| 87 |
)
|
| 88 |
model = create_model(backbone="x3d_m", num_classes=2, pretrained=False, dropout=0.3)
|
|
@@ -92,7 +92,7 @@ model.eval()
|
|
| 92 |
|
| 93 |
# R(2+1)D-18 best
|
| 94 |
ckpt_path = hf_hub_download(
|
| 95 |
-
repo_id="
|
| 96 |
filename="final/final_best.pt",
|
| 97 |
)
|
| 98 |
model = create_model(backbone="r2plus1d_18", num_classes=2, pretrained=False, dropout=0.5)
|
|
|
|
| 82 |
|
| 83 |
# X3D-M realtime
|
| 84 |
ckpt_path = hf_hub_download(
|
| 85 |
+
repo_id="visionlab-ai/school-violence-detection-models",
|
| 86 |
filename="final/final_x3d_realtime.pt",
|
| 87 |
)
|
| 88 |
model = create_model(backbone="x3d_m", num_classes=2, pretrained=False, dropout=0.3)
|
|
|
|
| 92 |
|
| 93 |
# R(2+1)D-18 best
|
| 94 |
ckpt_path = hf_hub_download(
|
| 95 |
+
repo_id="visionlab-ai/school-violence-detection-models",
|
| 96 |
filename="final/final_best.pt",
|
| 97 |
)
|
| 98 |
model = create_model(backbone="r2plus1d_18", num_classes=2, pretrained=False, dropout=0.5)
|
i3d_r50/MODEL_CARD.md
CHANGED
|
@@ -35,7 +35,7 @@ from huggingface_hub import hf_hub_download
|
|
| 35 |
from pytorchvideo.models.hub import i3d_r50
|
| 36 |
|
| 37 |
ckpt_path = hf_hub_download(
|
| 38 |
-
repo_id="
|
| 39 |
filename="i3d_r50/i3d_r50_best.pt",
|
| 40 |
)
|
| 41 |
|
|
|
|
| 35 |
from pytorchvideo.models.hub import i3d_r50
|
| 36 |
|
| 37 |
ckpt_path = hf_hub_download(
|
| 38 |
+
repo_id="visionlab-ai/school-violence-detection-models",
|
| 39 |
filename="i3d_r50/i3d_r50_best.pt",
|
| 40 |
)
|
| 41 |
|
r2plus1d_18/MODEL_CARD.md
CHANGED
|
@@ -35,7 +35,7 @@ from huggingface_hub import hf_hub_download
|
|
| 35 |
from torchvision.models.video import r2plus1d_18
|
| 36 |
|
| 37 |
ckpt_path = hf_hub_download(
|
| 38 |
-
repo_id="
|
| 39 |
filename="r2plus1d_18/r2plus1d_best.pt",
|
| 40 |
)
|
| 41 |
|
|
|
|
| 35 |
from torchvision.models.video import r2plus1d_18
|
| 36 |
|
| 37 |
ckpt_path = hf_hub_download(
|
| 38 |
+
repo_id="visionlab-ai/school-violence-detection-models",
|
| 39 |
filename="r2plus1d_18/r2plus1d_best.pt",
|
| 40 |
)
|
| 41 |
|
slowfast_r50/MODEL_CARD.md
CHANGED
|
@@ -37,7 +37,7 @@ import torch
|
|
| 37 |
from huggingface_hub import hf_hub_download
|
| 38 |
|
| 39 |
ckpt_path = hf_hub_download(
|
| 40 |
-
repo_id="
|
| 41 |
filename="slowfast_r50/slowfast_best.pt",
|
| 42 |
)
|
| 43 |
|
|
|
|
| 37 |
from huggingface_hub import hf_hub_download
|
| 38 |
|
| 39 |
ckpt_path = hf_hub_download(
|
| 40 |
+
repo_id="visionlab-ai/school-violence-detection-models",
|
| 41 |
filename="slowfast_r50/slowfast_best.pt",
|
| 42 |
)
|
| 43 |
|
x3d_m/MODEL_CARD.md
CHANGED
|
@@ -35,7 +35,7 @@ from huggingface_hub import hf_hub_download
|
|
| 35 |
from pytorchvideo.models.hub import x3d_m
|
| 36 |
|
| 37 |
ckpt_path = hf_hub_download(
|
| 38 |
-
repo_id="
|
| 39 |
filename="x3d_m/x3d_m_best.pt",
|
| 40 |
)
|
| 41 |
|
|
|
|
| 35 |
from pytorchvideo.models.hub import x3d_m
|
| 36 |
|
| 37 |
ckpt_path = hf_hub_download(
|
| 38 |
+
repo_id="visionlab-ai/school-violence-detection-models",
|
| 39 |
filename="x3d_m/x3d_m_best.pt",
|
| 40 |
)
|
| 41 |
|