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 747 forks source link

MATLAB ImportError: numpy.core.multiarray failed to import #120

Closed BabuTango closed 2 years ago

BabuTango commented 5 years ago

ImportError: numpy.core.multiarray failed to import /home/tango/usr/local/torch/install/bin/luajit: ...ngo/usr/local/torch/install/share/lua/5.1/trepl/init.lua:389: ...ngo/usr/local/torch/install/share/lua/5.1/trepl/init.lua:389: ...ngo/usr/local/torch/install/share/lua/5.1/trepl/init.lua:389: Python error: import numpy array module ImportError: numpy.core.multiarray failed to import

Could you please help me @AaronJackson

BabuTango commented 5 years ago

Have tried installing

  1. pip install -U numpy
  2. pip install numpy

None of the options work

AaronJackson commented 5 years ago

Which version of Python are you using?

NarenBabuR commented 5 years ago

python 2.7

NarenBabuR commented 5 years ago

Every package is installed perfectly as per your instructions

AaronJackson commented 5 years ago

but this issue is from @BabuTango, i need to know what he/she is using. you have a different issue

NarenBabuR commented 5 years ago

I too have the same issue

Narasimmavarman commented 5 years ago

I also have the same issue particularly in MATLAB, I have Python 2.7 and numpy installed

BabuTango commented 5 years ago

@AaronJackson As you referred, Python 2.7

BabuTango commented 5 years ago

I'm able run the code in Python, but the color texture is not there for the generated images and the output image is really bad.

Thats the reason I want to run in MATLAB, but unfortunately the above error occurs

BabuTango commented 5 years ago

I have also tried to install npy4th using luarocks install npy4th. But installing this throws me, **fatal error: zlib.h: No such file or directory

include**

So I ended up installing "sudo apt-get install libz-dev". After installing libz-dev also, it says fatal error: zlib.h: No such file or directory