{"id":18000203,"url":"https://github.com/alihassanml/fight-prediction-project","last_synced_at":"2026-01-23T09:39:52.959Z","repository":{"id":258830286,"uuid":"875763730","full_name":"alihassanml/Fight-Prediction-Project","owner":"alihassanml","description":"This project focuses on predicting fight actions using deep learning. We utilize models such as **ResNet152** and **EfficientNetB7** to classify different fight actions. The project predicts the following actions:","archived":false,"fork":false,"pushed_at":"2024-10-20T19:27:48.000Z","size":2148,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T07:43:59.824Z","etag":null,"topics":["cnn","deep-learning","efficientnet","opencv","rsnet50","streamlit"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alihassanml.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-20T19:17:39.000Z","updated_at":"2025-01-02T05:40:04.000Z","dependencies_parsed_at":"2024-10-22T00:29:56.654Z","dependency_job_id":null,"html_url":"https://github.com/alihassanml/Fight-Prediction-Project","commit_stats":null,"previous_names":["alihassanml/fight-prediction-project"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alihassanml%2FFight-Prediction-Project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alihassanml%2FFight-Prediction-Project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alihassanml%2FFight-Prediction-Project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alihassanml%2FFight-Prediction-Project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alihassanml","download_url":"https://codeload.github.com/alihassanml/Fight-Prediction-Project/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247142043,"owners_count":20890652,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cnn","deep-learning","efficientnet","opencv","rsnet50","streamlit"],"created_at":"2024-10-29T23:10:32.821Z","updated_at":"2026-01-23T09:39:52.901Z","avatar_url":"https://github.com/alihassanml.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fight Action Prediction\n\nThis project focuses on predicting fight actions using deep learning models. We classify various fight-related actions using models like **ResNet152** and **EfficientNetB7**. The actions being predicted include:\n\n- **0**: Hit\n- **1**: Kick\n- **2**: Punch\n- **3**: Push\n- **4**: Ride Horse\n- **5**: Shoot Gun\n- **6**: Stand\n- **7**: Wave\n\n![image](./image.png)\n\n## Models\nWe trained and fine-tuned the following models:\n- **ResNet152**: Fine-tuned on the action dataset.\n- **EfficientNetB7**: Another deep learning model used for comparison.\n\n## Dataset\nThe dataset for training includes labeled images corresponding to the actions mentioned above. Ensure your dataset follows the directory structure:\n\n```\ndata/\n│\n├── train/\n│   └── \u003cclass_name\u003e/\n│       └── image1.jpg\n├── test/\n    └── \u003cclass_name\u003e/\n        └── image2.jpg\n```\n\nEach class folder contains relevant images for that action.\n\n## Installation\n\nClone the repository and install the dependencies:\n\n```bash\ngit clone https://github.com/alihassanml/Fight-Prediction-Project.git\ncd Fight-Prediction-Project\npip install -r requirements.txt\n```\n\n## Training\n\nTo train the models, run the following command:\n\n```bash\npython train.py\n```\n\nThis will start training the model on the dataset located in the `data/train` directory.\n\n## Streamlit Application\n\nYou can interact with the trained models using a web interface powered by Streamlit. To run the app:\n\n```bash\nstreamlit run streamlit_app.py\n```\n\nUpload an image, select the model you want to use, and get predictions for the action being performed in the image.\n\n## Results\n\nAfter training, models will be saved as `.h5` files, and the model performance can be assessed using validation data and metrics such as accuracy, confusion matrix, and classification report.\n\n## Fine-Tuning\n\nFine-tuning is done by unfreezing the last few layers of the pre-trained models and retraining them with a smaller learning rate to improve accuracy.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falihassanml%2Ffight-prediction-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falihassanml%2Ffight-prediction-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falihassanml%2Ffight-prediction-project/lists"}