GithubHelp home page GithubHelp logo

donfanning / hairnet_orient2d Goto Github PK

View Code? Open in Web Editor NEW

This project forked from papagina/hairnet_orient2d

0.0 1.0 0.0 4.81 MB

This repo contains the code for generating the orientation images in the paper HairNet: Single-View Hair Reconstruction using Convolutional Neural Networks.

License: MIT License

C++ 99.08% CMake 0.92%

hairnet_orient2d's Introduction

#
#  Created by Yi 16 June 2020
#

#This repo contains the code for generating the orientation images in the paper HairNet: Single-View Hair Reconstruction using Convolutional Neural Networks.


#####################################STEP ONE##################################################################
#Compile the code in Hair_Orient2D.

#Please check the CMakeLists for dependencies.

#OPENGL, GLEW, GLFW3 and OpenMesh are only used for rendering a white body silhouette. If you don't need it, you can simply remove them and compile with the optional main_nobodyrender.cpp.

#####################################STEP Two##################################################################
#Compute 2D orienation maps from portrait images in given folder.

#Put the test imgs in "test_imgs/img/", the test images should be square, e.g. 800*800
#Manually draw the body image and the hair segments. (T_T Sorry, I can't opensource this part so please either manually draw it or look for some other opensource codes.)
#Put the body images in "test_imgs/body_img/", with the same name as in img folder, XXX.png. body is white, background is black
#Put the segment images in "test_imgs/seg/", with the same name as in img folder, XXX.png. hair is white, background is black
#Use command:
Hair_Orient2D/Orient2D 1 test_imgs/
#argv: has_body_img, hair_folder

#if you somehow can retreat the transformation matrix of the head in the image as described in our paper, you can also choose to automatically render the body as follows:
#Put the transformation matrices(4x4) in "test_imgs/exMat/"
#Use command:
Hair_Orient2D/Orient2D 0 test_imgs/


#Note: all the directory arguments need to have "/" at the end of the string.
#I put some sample input and output in "test_img/".





hairnet_orient2d's People

Contributors

papagina avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.