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.51k stars 745 forks source link

Reason of image broken #73

Closed serilee27 closed 6 years ago

serilee27 commented 6 years ago

Hi Aaron, Thanks for sharing the code. I ran the code and finally I got result. But the result image got broken some like this. aa

I assume the reason as rendering problem.

Can you give me any clue to fix it? Thank you

AaronJackson commented 6 years ago

Was this using MATLAB or Python? If matlab you can try starting with -softwareopengl, either way, this is probably an issue with your graphics setup.

serilee27 commented 6 years ago

@AaronJackson Thank you for reply. It was using Python. Do you meant that OpenGL setup?

AaronJackson commented 6 years ago

Yes, opengl. If so, I cannot really guide you through this process.

marvelikov commented 6 years ago

did you solve it @serilee27 ? i have the exact same issue. Tried on both Windows 10 and Linux Mint 19 (Ubuntu 18.04) with gpu gtx1070, opengl 4.6

miladm commented 5 years ago

Was this problem resolved? I see the same issue on MacBook Pro (2016) and MacBook Air (2015) with OpenGL 4.1 and 2.1 respectively. MacBook Pro looks slightly better, yet both results are poor. I wonder if this is something beyond OpenGL setup given the recency of my machines? I use Python. I use AWS Ubuntu to generate the .raw files. The only code running on my Mac is vis.py.

image 2018-11-07 09 37 32

AaronJackson commented 5 years ago

No idea really. If not OpenGL, most likely a bug in whatever library I used to do the rendering. Happy to receive pull requests, not so interested in trying to fix the Python version.

Aaron

MiladM writes:

Was this problem resolved? I see the same issue on MacBook Pro (2016) and MacBook Air (2015) with OpenGL 4.1 and 2.1 respectively. MacBook Pro looks slightly better, yet both results are poor. I wonder if this is something beyond OpenGL setup given the recency of my machines?

image 2018-11-07 09 37 32

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.

-- Aaron Jackson - M6PIU http://aaronsplace.co.uk/

miladm commented 5 years ago

No idea really. If not OpenGL, most likely a bug in whatever library I used to do the rendering. Happy to receive pull requests, not so interested in trying to fix the Python version. Aaron MiladM writes: Was this problem resolved? I see the same issue on MacBook Pro (2016) and MacBook Air (2015) with OpenGL 4.1 and 2.1 respectively. MacBook Pro looks slightly better, yet both results are poor. I wonder if this is something beyond OpenGL setup given the recency of my machines? image 2018-11-07 09 37 32 — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread. -- Aaron Jackson - M6PIU http://aaronsplace.co.uk/

Thanks for the feedback! Update: a third MacBook Pro lead to the same results.

Can you pleas share the machine/OS configurations you used to develop the original successful python code? This info might help me debug the problem. As of now I am torn between this being an OpenGL shortcoming vs. a bug.

AaronJackson commented 5 years ago

I've used it with software only OpenGL rendering as well as libgl provided by nvidia for their nvidia cards, both under CentOS. The simplest thing to do is just render it in something else. Dump the object with raw2obj or use a different isosurface extraction tool.