This project is a preparation stage for making a good GAN, more specifically a big dataset for face generation
you can get theoretically (Video Duration (seconds) ) * (fps) faces.
- Python
3.6
- face_recognition
1.3.0
- opencv-python
4.2.0.32
- face_recognition
My CPU had 12 cores so I ran 10 processes simultaneously using multiprocessing
however you could set the number of process by changing the value of SEGMENT
install pipenv
pip3 install pipenv
-
clone this repo
git clone https://github.com/hajindvlp/Sebom.git cd Sebom
-
install packages
pipenv install
-
Make required directories
mkdir videos mkdir faces
-
Put a video that has faces
-
Run the program
pipenv shell python3 main.py