Pinwheel/ActsOfAgression
Viewer • Updated • 2k • 153 • 5
How to use archit11/videomae-base-finetuned-fight-nofight-subset2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("video-classification", model="archit11/videomae-base-finetuned-fight-nofight-subset2") # Load model directly
from transformers import AutoImageProcessor, AutoModelForVideoClassification
processor = AutoImageProcessor.from_pretrained("archit11/videomae-base-finetuned-fight-nofight-subset2")
model = AutoModelForVideoClassification.from_pretrained("archit11/videomae-base-finetuned-fight-nofight-subset2")NOTE: This is experimentational if youre expecting this to work accurately (it wont) or be useful should probably look eslewhere😛
This model is a fine-tuned version of MCG-NJU/videomae-base on the Acts of Agression (cttv footage fights) dataset. It achieves the following results on the evaluation set:
Classifies video input into "Fight" or "No Fight" Class
Can be used to detect fights/crime in cctv footage
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.5145 | 0.25 | 64 | 0.7845 | 0.5075 |
| 0.607 | 1.25 | 128 | 0.6886 | 0.6343 |
| 0.3986 | 2.25 | 192 | 0.5106 | 0.7463 |
| 0.3632 | 3.24 | 252 | 0.7408 | 0.6716 |
Base model
MCG-NJU/videomae-base