• Stars
    star
    468
  • Rank 93,767 (Top 2 %)
  • Language
    C#
  • License
    GNU General Publi...
  • Created almost 3 years ago
  • Updated 10 months ago

Reviews

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

Repository Details

Automatic 3D Character animation using Pose Estimation and Landmark Generation techniques

DigiHuman

Digihuman is a project which aims to automatically generate whole body pose animation + facial animation on 3D Character models based on the camera input.
This project is my B.Sc thesis of Computer Engineering at Amirkabir University of Technology(AUT).

About DigiHuman

DigiHuman is a system for bringing automation in animation generation on 3D virtual characters. It uses Pose estimation and facial landmark generator models to create entire body and face animation on 3D virtual characters.
DigiHuman is developed with MediaPipe and Unity3D. MediaPipe generates 3D landmarks for the human whole body and face, and Unity3D is used to render the final animation after processing the generated landmarks from MediaPipe. The diagram below, shows the whole architucture of the application.

Logo

Sample Outputs of the project

Hands animations

Full body animation

Face animation

Installation

Follow the instructions to run the program!

Backend server installtion

  1. Install MediaPipe python.
 pip install mediapipe
  1. Install OpenCV python.
 pip install opencv-python
  1. Go to backend directory and install other requirements:
 pip install -r requirements.txt
  1. You'll need to download the pre-trained generator model for the COCO dataset and place it into backend/checkpoints/coco_pretrained/.

Unity3D Installation

Install Unity3D and its requirements by the following guidelines(Skip 1-3 if Unity3D is already installed).

  1. Download and install UnityHub
  2. Add a new license in UnityHub and register it
  3. Install a Unity Editor inside UnityHub(LTS versions and a version higher than 2020.3.25f1 are recommended).
  4. In the Unity project setting, allow HTTP connections in the player setting.
  1. Download and import the following packages into your project to enable the recording option available with FFmpeg(Download .unitypackage files and drag them to your project).

Usage

  • Run backend server at backend directory with the following command:
     python server.py
    
  • Run Unity Project and open the main scene at Assets\Scenes\MainScene.unity
  • Test the program by uploading videos to backend from the Unity project(You can test the application by selecting provided animations from the right side menu!).

Adding new 3D characters

You can add your characters to the project! Characters should have a standard Humanoid rig to show kinematic animations. For rendering face animations, characters should have a facial rig(Blendmesh).
Follow these steps to add your character:

  1. Find a 3D character model from Unity asset store or download a free one(You can download them from websites like Mixamo).
  2. Open the character setting and set the rig to humanoid
  1. Drag and drop your 3D character model to CharacterChooser/CharacterSlideshow/Parent object in Unity main Scene like the image below
  1. Add BlendShapeController and QualityData components to the character object in the scene(which is dragged inside the Parent object in the last step).
  2. Set BlendShapeController values
  • Add character SkinnedMeshRenderer component to BlendShapeController component.
  • Find each blnedShape weight number under SkinnedMeshRenderer and set those numbers in BlendShapes field inside BlendShapeController (for specifying each blendshape value to the BlendShapeController component so the animation would be shown on character face by modification on these blnedShape values)
  1. Open CharacterSlideshow Object on CharacterChooser/CharacterSlideshow path inside the scene hierarchy, then add a new dragged character to the nodes property(all characters should be referenced inside nodes).
  1. Run the application and you can now select your character for rendering animation!

Features

  • Making full body animation
  • Animating multiple blendShapes on 3D character (up to 40 blendshape animations is supported currently)
  • Supporting any 3D models with Humanoid T-Pose rig
  • Exporting animation in a video file
  • Saving animation data and re-rendering it for future usage
  • Filtering mediaPipe outputs in order to detect and remove noises and better smoothness (Low Pass Filtering is used currently)
  • Animating the character's face in great details
    • Training a regression model to generate Blendmesh weights by feeding the output data of mediaPipe FaceMesh(468 points)
    • Using StyleGan techniques to replace whole character face mesh
  • Automatic rigging for 3D models without humanoid rig (Using deep neural network models like RigNet)
  • Generating complete character mesh automatically using models like PIFuHD (in progress!)
  • Animating 3D character mouth in great detail using audio signal or natural language processing methods
  • Generating complete environment in 3D

Resources

Licenses & Citations

DigiHuman Licence

Application License: GPL-3.0 license Non-commercial use only.

FFmpeg

GauGan

@inproceedings{park2019SPADE,
  title={Semantic Image Synthesis with Spatially-Adaptive Normalization},
  author={Park, Taesung and Liu, Ming-Yu and Wang, Ting-Chun and Zhu, Jun-Yan},
  booktitle={Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition},
  year={2019}
}

3D Characters

Unity-chan model & mixamo models

Contact

Danial Kordmodanlou - [email protected]

Website : danial-kord.github.io

Project Link: github.com/Danial-Kord/DigiHuman

Telegram ID: @Danial_km

More Repositories

1

Artificial-Intelligence-Visualization

Visual representation of Artificial Intelligence Algorithms
Python
15
star
2

Harris-Corner-Detector

My advanced 3D Computer Vision homework at Sharif University of Technology (SUT).
Jupyter Notebook
8
star
3

Panorama

Creating panorama image using SIFT, RANSAC and homography matrix
Jupyter Notebook
6
star
4

Solar-System-OpenGL

Simple Solar System simulation with C++, OpenGL.
C++
5
star
5

Cloud-Computing-Project

URL shortener with Ducker & Kubernetes
Java
2
star
6

Twitch-Drone

mini drone that can be controlled by mobile app(using Unity Game Engine) using wifi connected to ESP2688 in drone
C#
2
star
7

MoviesManager

this application helps you to find and select the movie you like to see from what you have in your hard drive by gaining information about your movies from specific site(30nama) and show it by using javaFx,css,fxml
Java
2
star
8

WorkLoad

recieve n job s , m workstations and n*m two-dimensional task matrix T of the time each job will spend at each workstation.each job becomes available at a specified time and may be processed in only one workstation at a time .The goal is to assign a start time for each job at workstation that minimizes the finish time of the last job.(NP Hard)
Java
2
star
9

Latex-CV-Builder

A tool for automatically making CV using Latex and Java.
Java
2
star
10

Sitadu

a resturant management application
Java
1
star
11

Information_Retrieval_Search_Engine

Making Information retrieval search engine from scratch
Python
1
star
12

XV6

changing XV6 operating system by adding system calls , changing cpu scheduling algoritems and ...
C
1
star
13

MedicalInstromnetsAnalysis

this game helps starter doctors for increasing their attention for surgeries with detecting correct placement of instroments by analizing original picture with new placement
ASP
1
star
14

Danial-Kord

Profile ReadMe
1
star
15

Unity-Computer-Vision

Using computer vision science within unity3D.
C#
1
star