GithubHelp home page GithubHelp logo

papagina / hairnet_datasetgeneration Goto Github PK

View Code? Open in Web Editor NEW
130.0 130.0 34.0 13.95 MB

The programs for generating the 40k hair dataset in HairNet: Single-View Hair Reconstruction using Convolutional Neural Networks https://arxiv.org/abs/1806.07467

License: Other

CMake 1.29% C++ 98.71%

hairnet_datasetgeneration's People

Contributors

papagina avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

hairnet_datasetgeneration's Issues

Body model not rendered

First, thank you for sharing the code!

I'm having trouble with rendering the body/head, at the moment only the hair is rendered. There are no errors or warnings. Is this because I don't have the transformed body model yet? How can I transform the "Low Poly Base Mesh .obj" such that I can use it as the expected "female_halfbody_medium.obj"?

Looking forward to any suggestions, thank you.

Is another version of OpenMesh used?

Hi - I downloaded OpenMesh 6.3 but this error occurs when I run make:

/home/ubuntu/c/HairNet_DataSetGeneration/Hair_generate_convdata_and_imgs/HairHelper.h:15:38: fatal error: OpenMesh/Core/IO/MeshIO.hh: No such file or directory

HairNet_DataSetGeneration/Hair_generate_convdata_and_imgs/build$ cmake ..
-- Found OpenCV: /usr/local (found version "4.2.0") 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu/c/HairNet_DataSetGeneration/Hair_generate_convdata_and_imgs/build
ubuntu@ip-172-31-28-83:~/c/HairNet_DataSetGeneration/Hair_generate_convdata_and_imgs/build$ make
[ 20%] Building CXX object CMakeFiles/Hair_generate_convdata_and_imgs.dir/main.cpp.o
In file included from /home/ubuntu/c/HairNet_DataSetGeneration/Hair_generate_convdata_and_imgs/TrainingDataGenerator.h:15:0,
                 from /home/ubuntu/c/HairNet_DataSetGeneration/Hair_generate_convdata_and_imgs/main.cpp:14:
/home/ubuntu/c/HairNet_DataSetGeneration/Hair_generate_convdata_and_imgs/HairHelper.h:15:38: fatal error: OpenMesh/Core/IO/MeshIO.hh: No such file or directory
compilation terminated.
CMakeFiles/Hair_generate_convdata_and_imgs.dir/build.make:75: recipe for target 'CMakeFiles/Hair_generate_convdata_and_imgs.dir/main.cpp.o' failed
make[2]: *** [CMakeFiles/Hair_generate_convdata_and_imgs.dir/main.cpp.o] Error 1
CMakeFiles/Makefile2:82: recipe for target 'CMakeFiles/Hair_generate_convdata_and_imgs.dir/all' failed
make[1]: *** [CMakeFiles/Hair_generate_convdata_and_imgs.dir/all] Error 2
Makefile:90: recipe for target 'all' failed
make: *** [all] Error 2

The rendered image is black.

My opengl version is 3.3. glfw version is 3.3. The rendered image is back at times . What's the problem? Thanks very much.

I rerun the command, It's ok.

Question: Why apply "color[0] = x / 2.0 + 0.5;" at line #210 in the Renderer.h file?

Hi, thank you for providing us such a convenient tools for generating 2D hair tangent orientation fields.

However, when I look up the source code in the Renderer.h file, I find that you applied a "color[0] = x / 2.0 + 0.5;" operation at line #210. Could you please tell me the reason why?

I can infer that after doing "x = x/norm" and "y = y/norm", we got the sin and cos values of the orientation angle. And those two values could help us to compute the tangent value of the angle.

How to construct the ellipsoids in the collision loss?

Thanks for your contribution. How to construst the coordinate system in .txt (the rotation (Euler angles) and the position of the head)? If I want to construct the ellipsoids, how to do it? When we render the training data, how to rotate the ellipsoids according to different views? Thank you very much.

Is there any way I can render the hair strand with a wider width?

Hi, I was recently reproduce HairGANs using the USC Hair Salon dataset. Since I wanted to reduce the aliasing of the 2D orientation map, I tried to render wider hair strands.

I set glLineWidth but it didn't help. Could you please give me some suggestions about this?

Many Thanks!

the generation of rendered images

hi, thanks you for contribution of so awesome works,
when i try my best to compile the environment and run ./Hair_generate_convdata_and_imgs, only convdata was generated but no any renderd images were generated, and no any warnings or errors were found, the following is my snapshot:

Inked1628668975965_LI

are there any problems?
thanks, hope your reply much

about the result of ./HairMix_run

hi, thanks your work very much
original hair has 10,000 strands , each strand with 100 or 0 3d points, ./HairMix_run will generate hair with 10000 strands but for each strand,in addition to 100 and 0 points, there are other different num points (such as 37 or 33 points ....),
Can the generate-data be used directly for training?

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.