|
Download readme.md from LEGIONM36/Video-Classification-GRU-Model: direct link, hf CLI and curl.
- Browser
- Download file 712 Bytes
-
https://huggingface.co/LEGIONM36/Video-Classification-GRU-Model/resolve/main/readme.md
- Command line
-
hf download hf://LEGIONM36/Video-Classification-GRU-Model/readme.md
-
curl -L -o readme.md https://huggingface.co/LEGIONM36/Video-Classification-GRU-Model/resolve/main/readme.md
712 Bytes
| # Violence GRU Model | |
| ## Model Architecture | |
| - **Type**: CNN-GRU Hybrid | |
| - **Components**: | |
| - **CNN Backbone**: 4-Layer 2D CNN to extract spatial features from each frame. | |
| - **Recurrent Unit**: 2-Layer GRU (Gated Recurrent Unit) to model temporal dependencies. | |
| - **Classifier**: Fully Connected Layer. | |
| - **Input**: Video sequence of 16 frames, resized to 112x112. | |
| - **Output**: Binary Classification (Violence vs No-Violence). | |
| ## Dataset Structure | |
| The code expects a `Dataset` folder in the parent directory. | |
| ``` | |
| Dataset/ | |
| ├── violence/ | |
| └── no-violence/ | |
| ``` | |
| ## How to Run | |
| 1. Install dependencies: `torch`, `opencv-python`, `scikit-learn`, `numpy`. | |
| 2. Run `python train.py`. | |