First off, thanks for taking the time to contribute! 🎉
We welcome contributions from everyone. By participating in this project, you agree to abide by our Code of Conduct.
Since this repository uses Strict Rulesets and CI/CD Pipelines, you cannot push directly to the main branch. Please follow this workflow:
Fork the repository to your GitHub account, then clone it locally:
git clone [https://github.com/RevDra/human-face-detection.git](https://github.com/RevDra/human-face-detection.git)
cd Human_face_detectionWe recommend using a virtual environment:
# Create venv
python -m venv venv
source venv/bin/activate # Linux/Mac
# venv\Scripts\activate # Windows
# Install dependencies (CPU optimized for dev)
pip install -r requirements.txtNote: You need to download the models manually for local development. Run:
# Linux/Mac
bash config/deploy.sh check
# Windows
config\deploy.bat checkNever work on the main branch. Create a feature branch:
git checkout -b feature/amazing-feature
# or
git checkout -b fix/bug-fix-name- Python: Follow PEP 8 guidelines.
- Structure: Keep source code in
src/and configs inconfig/. - Requirements: If you add a new library, update
requirements.txt, but avoid upgradingnumpyto 2.0+ (Keep it<2.0.0).
Before submitting, ensure the app runs locally, and Docker builds successfully: Test App:
python src/web_app.pyTest Docker Build (Crucial):
docker build -f config/Dockerfile -t test-build .We encourage Semantic Commit Messages to keep the history clean:
feat: add new video processing logicfix: resolve crash on uploaddocs: update deployment guidestyle: format code with blackchore: update dockerfile
- Push your branch to your fork:
git push origin feature/amazing-feature- Open a Pull Request to the
mainbranch of this repository. - Wait for Checks: The Docker GitHub Action will run automatically.
- Green Check? If the build passes, your code is safe to merge.
- Red Cross? If the build fails, fix the errors and push again.
If you find a bug, please create an issue with:
- Steps to reproduce.
- Expected vs. Actual behavior.
- Screenshots (if applicable).
Happy Coding! 🚀