Downloads · 30 days
43
38% of all-time downloads
mostafaalazzaly/aleris-violence-detector-x3d-resnet18
aleris-violence-detector-x3d-resnet18 is a video classification model from mostafaalazzaly. Use it for the video classification task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as apache-2.0.
Aleris X3D Violence Detector is a deep learning model for video violence detection developed as part of the Aleris Graduation Project.
Downloads · 30 days
43
38% of all-time downloads
All-time downloads
114
Public
Repo size
280 MB
Likes
1
Public
Click a slice to open those files.
.pth210 MB · 75%
From the Hugging Face model README
Aleris X3D Violence Detector is a deep learning model for video violence detection developed as part of the Aleris Graduation Project.
The model uses a hybrid architecture that combines:
The model classifies videos into:
Input Video
│
▼
┌─────────────┐
│ X3D-M │
└─────────────┘
│
├──────────────┐
│ │
▼ ▼
┌─────────────┐ ┌─────────────┐
│ Features │ │ ResNet18 │
└─────────────┘ └─────────────┘
│ │
└──────┬───────┘
▼
Feature Fusion
▼
Fully Connected Layers
▼
Violence / Non-Violence
| Label | Class |
|---|---|
| 0 | Non-Violent |
| 1 | Violent |
Where:
| File | Description |
|---|---|
| aleris-violence-detector-x3d-resnet18.pth | PyTorch model checkpoint |
| aleris-violence-detector-x3d-resnet18.onnx | ONNX exported model |
| config.json | General model configuration |
| model_config.json | Architecture configuration |
| labels.json | Class labels |
| preprocessing_config.json | Input preprocessing configuration |
| requirements.txt | Required Python packages |
pip install -r requirements.txt
import torch
checkpoint = torch.load(
"aleris-violence-detector-x3d-resnet18.pth",
map_location="cpu"
)
model.load_state_dict(checkpoint["model_state_dict"])
model.eval()
import onnxruntime as ort
session = ort.InferenceSession(
"aleris-violence-detector-x3d-resnet18.onnx"
)
The model was trained on a custom violence detection dataset containing:
with manually curated annotations and train/validation/test splits.
Developed as part of the Aleris Graduation Project by:
Mostafa Alazzaly
@misc{alazzaly2026alerisx3d,
title={Aleris X3D Violence Detector},
author={Mostafa Alazzaly},
year={2026},
publisher={Hugging Face}
}