• Stars
    star
    100
  • Rank 333,482 (Top 7 %)
  • Language
    Jupyter Notebook
  • License
    Other
  • Created over 7 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Understanding facial beauty with deep learning.

beauty.torch

This project serves a deep learning model scoring selfie images between 1 to 10 based on image and face attributes. You can learn the technical details of this project from this blog post. Use [resnet.torch] (https://github.com/erogol/resnet.torch), if you plan to follow all the training pipeline described on the post.

Given image is processed as follows;

  1. Detect face.
  2. Find landmarks
  3. Rotate image to align face.
  4. Fill gaps with constant pixel value.
  5. Send into scoring model.

For an example use check notebook ExampleUse.ipynb

Dataset & Converged Final Model

  • Contact me from erengolge at gmail.com

Requirements

Main requirement is Torch computing framework.

Models

dlib face model - place under utils/
beauty model - GPU model (use utils/convert2cpu.lua for setting it for CPU) place under trained/
optimstate - if you like to fine-tune the model.

Python

dlib sudo pip install dlib - face and landmark detection)
lutorpy sudo pip install lutorpy - using torch model on python
skimage sudo pip install skimage - image processing
cv2 sudo pip install cv2 - OpenCV python module

What you have here useful

  • Face alignment code in utils/img_processing.py.
  • A template for porting Torch models to python in utils/Classifier.py.
  • The model itself

Examples

Attention of the trained model.
alt text

Sorting A. Lima images from Google Search.
alt tag

More Repositories

1

RaspiSecurity

Home Surveillance for Raspberry
Python
142
star
2

FFTNet

FFTNet vocoder implementation
Jupyter Notebook
81
star
3

QuoraDQBaseline

Baseline solution to Quora Duplicate Question dataset.
Python
80
star
4

KLP_KMEANS

Very fast Clustering with Kohonen Learning Procedure KMEANS based on NUMPY, SCIPY or THEANO
Python
39
star
5

Net2Net

Net2Net implementation on PyTorch for any possible vision layers.
Python
38
star
6

resnet.torch

an updated version of fb.resnet.torch with many changes.
Jupyter Notebook
37
star
7

seg-torch

Segmentation with deep learning
Lua
37
star
8

RSOM

Rectifying Self Organizing Map
Python
26
star
9

TTS_tf

WIP Tensorflow implementation of https://github.com/mozilla/TTS
Python
15
star
10

Random_Forests

This is a very efficient Random Forests implementation for MATLAB based on low level "cart" tree implementation.
C++
14
star
11

Prebitation

Experiments to predict Bitcoin price with ML
Jupyter Notebook
12
star
12

StudyAdversarials

Some of my experiments targeting adversarial instances
Jupyter Notebook
12
star
13

Image_Stiching

Image Stiching for Panoramic Images
MATLAB
10
star
14

Shot_Boundary_Detection

Shot_Boundary_Detection at Matlab
MATLAB
8
star
15

DominantSetClustering

This is a MATLAB implementation of 'Dominant Sets and Pairwise Clustering', by Massimiliano Pavan and Marcello Pelillo, PAMI 2007.
MATLAB
8
star
16

caffe-windows

Caffe compilation for windows VS2013 from latest caffe-dev branch. Exact project is lying there https://github.com/BVLC/caffe
C++
6
star
17

TTS_experiments

Original repo is https://github.com/mozilla/TTS. Please fork that unless you have something you like here.
Jupyter Notebook
6
star
18

Neural_Network_Matlab_Imp

Some neural network pradigms implemented in Matlab
Objective-C
4
star
19

EigthtBit

Basic computer vision and deep learning routines on Python
Python
4
star
20

pytorch_layers

Pytorch snippets, layers and more
Python
3
star
21

ddc-samples

๐Ÿธ๐Ÿ’ฌ Coqui TTS Double Decoder Consistency samples
HTML
2
star
22

CUDA_MATRIX_TRANSPOSE

CUDA Matrix Transpose Variations
D
2
star
23

InnerTalk

A chatbot interface that helps you to take decision
HTML
1
star
24

hacking_scripts

Experimental computer hacking scripts
1
star
25

erogol.github.io

HTML
1
star
26

EM_with_Gaussian_Mixture_Model

fast and optimized experimental Expectation Maximization on Gaussian Mixture Model in MATLAB
Objective-C
1
star
27

sample_app

1
star