--- license: other license_name: mixed license_link: LICENSE.md tags: - face-recognition - attendance - facenet - arcface - sface - onnx - pytorch - pyqt5 --- # FaceAttend – face recognition attendance system FaceAttend is a desktop app that records attendance from RTSP cameras. It recognizes employees by face and logs their check-in and check-out automatically. - Runs on a normal CPU; no graphics card needed. - Python 3.9.9 with a PyQt5 GUI. - Five selectable face-recognition models, each as ONNX or PyTorch. - Everything needed for an **offline install** is included. ## What's in this repository | Folder | Contents | |---|---| | `AttendanceSystem(window)/` | the app for **Windows 10/11 64-bit** (`setup.bat`, `run.bat`) | | `AttendanceSystem(linux)/` | the app for **Linux x86_64** (`setup.sh`, `run.sh`) | | `models/` | the 5 recognition models, each as `.onnx` and `.pt`, ready to use | | `models/original/` | the original model releases, unchanged | | `packages/windows/` | Python 3.9.9 installer (signed by python.org), Microsoft Visual C++ runtime, all Python packages as Windows wheels | | `packages/linux/` | Python 3.9.9 source (signed by python.org) and all Python packages as Linux wheels, CPU builds | ## Quick start Download the repository and keep the folder layout. The setup scripts look for `../packages` and `../models`. **Windows:** open `AttendanceSystem(window)`, double-click `setup.bat`, then `run.bat`. **Linux:** ```bash cd "AttendanceSystem(linux)" ./setup.sh ./run.sh ``` When the `packages` folder is present, both setups install everything from it without internet. Each project's own README covers the details, from the first steps to the attendance rules, tuning and troubleshooting. To download only what one OS needs: ```bash pip install -U huggingface_hub # Windows huggingface-cli download mchuca/AttendanceSystem --local-dir AttendanceSystem --include "AttendanceSystem(window)/*" "packages/windows/*" "models/*.onnx" "models/*.pt" # Linux huggingface-cli download mchuca/AttendanceSystem --local-dir AttendanceSystem --include "AttendanceSystem(linux)/*" "packages/linux/*" "models/*.onnx" "models/*.pt" ``` ## Models | Model | Format in `models/` | Original release (`models/original/`) | License | |---|---|---|---| | FaceNet · VGGFace2 (default) | `facenet_vggface2.pt` = original weights; `.onnx` converted from it | `20180402-114759-vggface2.pt` from [facenet-pytorch](https://github.com/timesler/facenet-pytorch) | MIT | | FaceNet · CASIA-WebFace | `facenet_casia.pt` = original weights; `.onnx` converted from it | `20180408-102900-casia-webface.pt` from facenet-pytorch | MIT | | ArcFace · ResNet-50 | `arcface_r50.onnx` = original; `.pt` = TorchScript conversion | `buffalo_l.zip` (`w600k_r50.onnx`) from [InsightFace](https://github.com/deepinsight/insightface) | **non-commercial research only** | | ArcFace · MobileFaceNet | `arcface_mbf.onnx` = original; `.pt` = TorchScript conversion | `buffalo_s.zip` (`w600k_mbf.onnx`) from InsightFace | **non-commercial research only** | | SFace | `sface.onnx` = original; `.pt` = TorchScript conversion | `face_recognition_sface_2021dec.onnx` from [OpenCV Zoo](https://github.com/opencv/opencv_zoo) | Apache-2.0 | - **Accuracy of conversions:** every converted file was checked against its source and gives the same embeddings (cosine similarity 1.000000). - **Checksums:** `models/SHA256SUMS.txt` lists SHA-256 checksums for every model file. - **Face detection:** MTCNN, whose weights come inside the `facenet-pytorch` package. ## Licenses - **InsightFace models:** the InsightFace models (`arcface_*`, `buffalo_*.zip`) may only be used for non-commercial research. For commercial use, choose FaceNet or SFace. - **Python packages and installers:** the files in `packages/` keep their own licenses. That covers PyTorch (BSD), ONNX Runtime (MIT), PyQt5 (GPL v3), OpenCV (Apache-2.0), Python (PSF) and the Microsoft Visual C++ Redistributable (Microsoft's redistribution terms). - **Biometric data:** face pictures and embeddings are personal data. Restrict access to the app's `data` folder, and inform the people concerned and get their consent as your local law requires.