1git clone (https://github.com/Musawer1214/Fight-Violence-detection-yolov8)
2cd <repository-directory>pip install -r requirements.txtpython detect.py --weights best.pt --source <input-video-or-image-path> --class 1 --save-txt<input-video-or-image-path> with the path to the video or image you wish to analyze. The class ID for Violence/Fight is 1.best.pt file contains the pre-trained YOLOv8-nano or YOLOv8-small model optimized for detecting violence/fights.