This app uses the pytorch retinaface library to detect faces from either a video or an image. I forked ternaus retinaface_demo repo and added the video functionality to the web application.
pip install -r requirements.txt
- clone this repo
git clone https://github.com/phemiloyeAI/face-detection.git
- change the directory to the path containing the streamlit app
cd ./app/app.py
- Run app.py script
streamlit run app.py
If you wish to deploy this app yourself, here is how to:
- sign up to open a streamlit cloud account.
- Connect your streamlit account to your github account containing this repo you cloned.
- On your streamlit cloud account, create an app. You can call it any name.
- Click on "Paste GitHub URL".
- Paste the link to your github repo in the bar.
- And finally click on "Deploy", right below the bar.
The code for the network: https://github.com/ternaus/retinaface \
The Web app: https://share.streamlit.io/phemiloyeai/face-detection/app/app.py