Facial feature analysis has always been a topic of interest mainly due to its applicability. Deep Learning techniques are now making it possible for face analysis to be not just a dream but a reality. This practice problem is get you more acquainted with deep learning. Link
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Proyecto to Age detection Challenge.
To get a local copy up and running follow these simple steps.
Download the file shape_predictor_68_face_landmarks.dat.bz2
contained in the repository https://github.com/othneildrew/Best-README-Template
, unzip it and save the file shape_predictor_68_face_landmarks.dat
inside the repository.
- Clone the repo
git clone https://github.com/TEAM-IMT/Age-Detection-Actors-Challenge.git
- Install requerements
python3 -m pip install -U requirements.
In python, import de processing.py
library and use it as well as:
from libraries.processing import Preprocessing
preproc = Preprocessing(gray_scale, resize, normalize, rotate, vae_weight_path)
Where each variable is:
gray_scale
: Flag to return each variable in gray_scale format (default = False
)resize
: Tuple with new(heigh, width)
desired (default = (None, None)
)normalize
: Flag to normalize each image (default = False
)rotate
:shape_predictor_68_face_landmarks.dat
path (default = None
-> No rotate)vae_weight_path
: Path with default weights to VAE model (default = None
-> No encode)
Then, you can use 2 functions:
image = preproc.image_read(ipath)
images = preproc.images_processing(ilist)
preproc.image_read(str)
: Read and process a image and return it in numpy.array formatpreproc.images_processing(list or directory)
: Read multiple images and return them into a batch ((N, heigh, width, color)
or(N, heigh, width)
, depends ofgray_scale
value)
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.