Comments (19)
Please use CUDA 7.
from vrn.
Sorry, I meant to say CUDA 7.5 or 8.0
from vrn.
Thank you for your advise and sorry for my late response.
As you said, I've tried to install CUDA 7.5, and later CUDA 8.0
Also I've switched from Ubuntu 16.04 to Ubuntu 14.04
I could not use CUDA 7.5 because (if I understood it correctly) my video card is too recent.
But with CUDA 8.0 I have the same error - segmentation fault.
Do you have any idea how else it can be fixed?
Thank you.
from vrn.
It definitely does not work with CUDA 9 so that's the first part ruled out. If you open Adrian's face-alignment main.th
in a text editor, and in a terminal open the th
interpreter, you run line by line to see what fails. That will help us figure out where the problem lies.
from vrn.
Hi @AaronJackson !
Would this project work without cuda gpu? I'm trying to run it with "device" set to "cpu" and I'm also getting the same output as @yar-resh.
Thank you!
from vrn.
Hi @GregaVrbancic. Same result but for different reasons. While the VRN code will run on the CPU, the face-alignment will not, unfortunately, as it is used nngraph to build the model and converting it to float doesn't seem to work).
from vrn.
Hi, @AaronJackson
Could you indicate the suitable GPU ram size?
Is this caused by ram size?
Thx.
from vrn.
@yzhang559 Yes. What GPU do you have? You can check with nvidia-smi
from vrn.
@AaronJackson
It's NVIDIA GeForce GTX 645, only 972MB
from vrn.
@yzhang559 Yes that is not enough.
from vrn.
Hi, @AaronJackson
device =
gpu
/bin/bash: line 1: 5771 Segmentation fault (core dumped) CUDA_VISIBLE_DEVICES=0 th main.lua -model 2D-FAN-300W.t7 -input ../examples/ -detectFaces true -mode generate -output ../examples/ -device gpu -outputFormat txt 2>&1 > /dev/null
cd face-alignment;CUDA_VISIBLE_DEVICES=0 th main.lua -model 2D-FAN-300W.t7 -input ../examples/ -detectFaces true -mode generate -output ../examples/ -device gpu -outputFormat txt 2>&1 > /dev/null;: Segmentation fault
Error using run (line 38)
Failed to run Torch7 script.
I'm going crazy,I have make it to run on my computer for a week ,but it still not
Do you have any idea how to resolve this problem?
I have centos7
CUDA 8.0
CUDNN v5.1
nVidia GTX 1080 GPU
RAM 8G
CPU i5 7400
from vrn.
from vrn.
Hello @AaronJackson, thanks for the support. Also, how much memory is needed?
Also, I'm getting a similar error as @yar-resh. When I go through the requirements in main.lua
line-by-line in th
, I get a Segmentation fault (core dumped)
for the line local utils = require 'utils'
. So, moving to utils.lua
, I get a Segmentation fault (core dumped)
when I try to run the py.exec
lines that imports the Python libraries. So, I tried importing each library individually, and it seems that the matplotlib
libraries cause the segmentation fault. Therefore, I chose to only import the numpy
library, and th utils.lua
runs fine. So I proceed to run run.sh
with these lines commented, and I get the following error:
Scanning directory for data...
/home/leon/torch/install/bin/luajit: /home/leon/torch/install/share/lua/5.1/torch/Tensor.lua:466: Wrong size for view. Input size: 1x68x2. Output size: 2
stack traceback:
[C]: in function 'error'
/home/leon/torch/install/share/lua/5.1/torch/Tensor.lua:466: in function 'view'
./utils.lua:186: in function 'bounding_box'
./utils.lua:308: in function 'getFileList'
main.lua:25: in main chunk
[C]: in function 'dofile'
...leon/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405d50
ls: cannot access '.txt': No such file or directory
Found Environment variable CUDNN_PATH = /usr/local/cuda/lib64/libcudnn.so.5ls: cannot access '.raw': No such file or directory
I'm using Ubuntu 16.04 LTS, CUDA Version 8.0.61, CUDNN R5, NVIDIA GeForce GTX TITAN X, and Python 2.7.14 from Anaconda.
from vrn.
@longu How did you end up with an input of 1x68x2
from vrn.
@AaronJackson I'm not sure, but I found that I had some .t7 files in the examples folder from playing around with the opts parameters (I had changed the outputFormat from txt to t7), and having those files in the input folder caused that error. I deleted them and it runs fine now -- with the code I can produce and visualize the .raw files. However, I still get a segmentation fault message from the line in run.sh
that calls vis.py
when displaying some of the .raw files, despite being able to view all of them. It seems like for me there are certain issues in calling visualization libraries from Python (matplotlib and visvis): in the case of importing matplotlib in utils.lua
, it causes the code to fail as previously described.
from vrn.
@longu Maybe you can try to include 'do' and 'end at the beginning and end of the utils.lua, like this:
from vrn.
Hi @AaronJackson , I ran your code and it showed up like this, what should i do to get a 3D model?
from vrn.
Note to everyone: If your issue does not have anything to do with a segmentation fault, please open a separate support ticket. This is getting impossible to keep track of. I will close this ticket now, but we can continue discussing.
@JimmyLauren haha, oh dear. Did you change any of the lighting code? It is being displayed but it seems like the lighting code has been messed with, or you have some issues with opengl. If you haven't changed the lighting code in render.m
please try starting matlab with matlab -softwareopengl -desktop
from vrn.
@yar-resh @AaronJackson I have the same problem
from vrn.
Related Issues (20)
- Maybe Helpful: Ubuntu 18.04 to suxessfull running vrn Howto/run-throuth with Cuda10.1 HOT 2
- benchmark on AFLW2000-3D HOT 2
- ICP on florence face dataset HOT 8
- Warp back onto original image
- API for website demo HOT 2
- ./run.sh using UBUNTU 18.04 failed. How can I solve this? Is there any thing wrong with the directory? HOT 10
- Error in Ubuntu 18.04 HOT 7
- NME HOT 1
- cannot open <2D-FAN-300W.t7> in mode HOT 1
- Are you going to release the train code? HOT 1
- I make a better one [https://github.com/WIKI2020/FacePose_pytorch]
- Running via Octave instead of Matlab HOT 6
- Error on Building thpp HOT 1
- windows 10 successful install? HOT 1
- Improve the result HOT 11
- Fail in main.lua : main.lua:52: '=' expected near 'continue' HOT 11
- Rendering Florence with 20 poses HOT 2
- Results in vrn-docker HOT 1
- Online demo HOT 2
- The face detector failed to find your face.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vrn.