Closed xleeeon closed 6 years ago
@AaronJackson
The setup of cuda and cudnn seems fine. The libstdc++ error in matlab is because it was compiled outside of matlab using a much newer version of libstdc++ (i.e. the system version). Are you using Ubuntu 17.10 or something very new like that? You can try forcing MATLAB to use the system libstdc++ by starting it like so:
LD_PRELOAD=/usr/lib64/libstdc++.so.6 matlab -desktop
As for the error in your first screen shot - I am unsure. Maybe your matplotlib version is much newer than most others. However, it's likely that you can just comment this out from the Python portion of utils.lua
, since no displaying is done from the Torch code.
@AaronJackson Thanks for replying. I think I can ignore running in terminal.
I am using Ubuntu 16.04.3 LTS, what version of libstdc++ should I use.
I tried your solution in MATLAB using:
LD_PRELOAD=/usr/lib64/libstdc++.so.6 matlab -desktop
Looks like the first error was gone. However, I am still getting like this.
`device =
'gpu'
ERROR: ld.so: object '/usr/lib64/libstdc++.so.6' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
/bin/bash: line 0: cd: face-alignment: No such file or directory
ERROR: ld.so: object '/usr/lib64/libstdc++.so.6' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib64/libstdc++.so.6' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib64/libstdc++.so.6' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib64/libstdc++.so.6' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object '/usr/lib64/libstdc++.so.6' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
/home/eddie/usr/local/torch/install/bin/luajit: cannot open main.lua: No such file or directory
stack traceback:
[C]: in function 'dofile'
...ocal/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405d50
Error using run (line 38)
Failed to run Torch7 script.`
Upgrading/Downgrading your libstdc++ will break the system so I'd recommend not messing with it. You can try compiling Torch from inside matlab, but to be honest, I'm not sure it is worth it unless you are trying to compare with our work (the matlab version should be used for this). Focus on getting the Python version working otherwise.
@AaronJackson I am very interested in your work, and I want to see if there's any improvements when I am using OpenGL instead of WebGL, and if I can get a better face model(better texture or resolution) when I am using local build comparing to the demo you showed in your website.
However, may I ask which Linux system and some prerequisites are you using to make the vrn work.
It is unlikely that running the code locally will give you much improvement in terms of quality. The faces are still normalised to have a diagonal of 90px and the model is the same.
To answer your question about your system:
Hi, I followed all setup requirements. And finally ready to run! However, I got something like this when I try to run in terminal.
And some error message showed in MATLAB.
I have CUDA 7.5 and corresponding cudnn 5.1 installed.
Please help :D