• Stars
    star
    232
  • Rank 166,364 (Top 4 %)
  • Language
    Scala
  • License
    Apache License 2.0
  • Created over 6 years ago
  • Updated almost 3 years ago

Reviews

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

Repository Details

Generate fully parametric face images from the Basel Face Model 2017

parametric-face-image-generator

This software enables you to generate fully parametric face images from the Basel Face Model 2017 as proposed in:

You can control the variation of parameters such as pose, shape, color, camera and illumination based on your demand and application. This dataset can be used for training and comparing machine learning techniques such as CNNs on a common ground as proposed in [1,3] by generating fully controlled training and test data.

Rendering Setup

0_00_10_2

1_01_11_2

Above you can see example face images sampled from this data generator. Each row shows different images of the same facial identity.

In the "controlled" setup (top row), the model parameters are sampled at equidistant positions along a certain parameter , e.g. the yaw pose.

In the "random" setup (bottom row), the model parameters are sampled randomly from a custom distribution.

Rendering Different Image Modalities

0_00_10_2

1_01_11_2

You can render different image modalities such as e.g. depth images (top row), color coded correspondence images (bottom row), normals, albedo or illumination.

Rendering Face Regions

0_00_10_2

0_00_10_2

You can render different region maps, while we provide two default ones.

Facial Landmarks

For each face image the location and visibilty of 19 facial landmarks is written in a .tlms file in the following format:

"facial landmark name" "visibility" "x-position" "y-position"

Usage

Setup

Run

  • adapt paths and configuration in data/config_files/example_config_controlled.json
  • For generating images in the controlled setup execute:
  • java -Xmx2g -cp generator.jar faces.apps.ControlledFaces -c data/config_files/example_config_controlled.json
  • For generating images in the random setup execute:
  • java -Xmx2g -cp generator.jar faces.apps.RandomFaces -c data/config_files/example_config_random.json

For Developers:

  • installed Java (Version 8.0 or higher recommended)
  • installed sbt (only for compiling from sources)
  • clone repository
  • compile and run using sbt run -mem 2000

Singularity:

  • we provide a singularity container recipe file to run the data generator directly on compute servers

Help needed

There is a scalismo-faces google group for general questions and discussion.

Background

Besides the publications listed next, we have also freely available lectures and tutorials. Some of the topics covered are statistical shape modeling and model-based image analysis as part of our research about Probabilistic Morphable Models.

Publications

If you use this software you will need the Basel Face Model 2017, the Basel Illumination Prior 2017 and a dataset of backgrounds. Please cite the following papers:

Data Generator - Random Mode

Data Generator - Controlled Mode

Basel Face Model 2017

  • [4] Thomas Gerig, Andreas Morel-Forster, Clemens Blumer, Bernhard Egger, Marcel Luethi, Sandro Schoenborn and Thomas Vetter " Morphable Face Models - An Open Framework", IN: 13th IEEE Conference on Automatic Face and Gesture Recognition (FG 2018)

Basel Illumination Prior 2017

Background Dataset

  • A background dataset of your choice

Contributors

  • Bernhard Egger
  • Adam Kortylewski
  • Andreas Morel-Forster
  • Andreas Schneider

Maintainers

License

Apache License, Version 2.0, details see LICENSE

Copyright 2017, University of Basel, Graphics and Vision Research

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

More Repositories

1

scalismo

Scalable Image Analysis and Shape Modelling
Scala
238
star
2

basel-face-pipeline

Scala
222
star
3

Occlusion-Robust-MoFA

Python
201
star
4

basel-face-model-viewer

Simple Viewer for the Basel Face Model 2017
Scala
161
star
5

scalismo-faces

Scalable Image Analysis and Shape Modelling: Module to work with 2d images, with a focus on face images
Scala
114
star
6

icp-proposal

Source code to the paper "A Closest Point Proposal for MCMC-based Probabilistic Surface Registration"
Scala
31
star
7

scalismo-ui

Visualization for Statistical Shape Models and Medical Images based on Scalismo.
Scala
22
star
8

GiNGR

Generalized iterative Non-Rigid Point Cloud and Surface Registration using Gaussian Process Regression
Scala
15
star
9

landmarks-clicker

A landmark clicker for 2d images. The clicked landmarks are in the format of scalismo-faces
Scala
11
star
10

probabilistic-fitting-ASM

Project to the publication "Probabilistic Fitting of Active Shape Models"
Scala
7
star
11

VSDClient

a library providing a REST client to the Virtual Skeleton Database (https://www.virtualskeleton.ch/)
Scala
5
star
12

scalismo-asm

Active Shape Model implementation in Scalismo
Scala
2
star
13

scalismo-vtk

This library enables Conversion between Scalismo and VTK and adds VTK based IO capabilities
Scala
2
star
14

pmm2018-faces

Summerschool on probabilistic morphable models. Template for face projects
Scala
2
star
15

sequential-gpmm

Code for the paper "Sequential Gaussian Process Regression for Simultaneous Pathology Detection and Shape Reconstruction"
Scala
2
star
16

scalismo-microsite

microsite for the scalismo project
Scala
2
star
17

scalismo-hdf5-json

Library to read and write files in hdf5-json format
Scala
1
star
18

posterior-shape-models-revisited

Source code and experiments accompanying the paper posterior-shape-models-revisited
Scala
1
star
19

bnn-informed-face-sampler

This is the repository to the paper "Informed MCMC with Bayesian Neural Networks for Facial Image Analysis".
1
star
20

ssia-march

Scalismo tutorial for workshop on Statistical and Shape-Based Image Analysis With Applications in Medicine
Scala
1
star
21

scalismo-native

Native libraries packaging for Scalismo
Java
1
star
22

scalismo-seed.g8

A minimal seed template for a Scalismo build
Scala
1
star
23

scalismo-faces-tutorial

A tutorial to get started with the Scalismo-Faces library
Scala
1
star
24

scalismo-tutorial

Tutorial for Scalismo and Scalismo-ui
Batchfile
1
star
25

shape-priors-from-pieces

Code repository for our MICCAI2020 ShapeMI workshop paper: "Learning Shape Priors from Pieces"
Scala
1
star