AaronJackson / vrn

:man: Code for "Large Pose 3D Face Reconstruction from a Single Image via Direct Volumetric CNN Regression"
http://aaronsplace.co.uk/papers/jackson2017recon/
MIT License
4.52k stars 746 forks source link

The obj file is rendered, but the inside is empty, so how do you fill the inside with data? #82

Closed zhoujianwen closed 6 years ago

zhoujianwen commented 6 years ago

Hi,Aaron I'm a college student from China, and now we have a problem, which is how to fill the data inside the shape.The obj file is rendered, but the inside is empty, so how do you fill the inside with data? zhoujianwenai@foxmail.com image

AaronJackson commented 6 years ago

The network produces a filled face stored as an array of binary numbers. These are the raw files that are produced by the network. What you are looking at is the output from the raw2obj script, which calculates the isosurface of the volumetric representation. So, if you want a filled face, you should load the raw file into memory and reshape it to 192x192x200 (or something like that).

zhoujianwen commented 6 years ago

How do you load raw files into memory? I'm trying to use PhotoShop to open raw files like this. image image

Notepad displays as follows. image All is zero......

AaronJackson commented 6 years ago

As per usual, raw does not have any strict definition. See the raw2obj.py code in this repository to show you how to open it in Python. You can probably visualise it with some software such as LiveVolume or QVox, as long as you provide the correct shape and format.

I will not be providing any further support with this issue as it does not really relate to a problem with the code.