-
Notifications
You must be signed in to change notification settings - Fork 747
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail in main.lua : main.lua:52: '=' expected near 'continue' #157
Comments
Looking at `main.lua` from the face alignment code, there is no equals
sign on line 52, which suggests it has been modified. Maybe check the
syntax on line 52 to make sure it's ok
gernhard1337 writes:
… Hello!
I am trying to get this to work for now 2 weeks. Today it got it as far as never, to fail again :c
However, first of all, i followed this script: #141
Had some errors while installing but i got everything to install and build.
Now if i type ./run.sh i get the same error as in Matlab.
Matlab gives :
`/home/tom/usr/local/torch/install/bin/lua: main.lua:52: '=' expected near 'continue'`
`stack traceback:`
` [C]: in function 'dofile'`
` .../torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk`
` [C]: ?`
`Error using run (line 38)`
`Failed to run Torch7 script.`
and ./run.sh gives:
***@***.***:~/usr/local/vrn$ ./run.sh`
`/home/tom/usr/local/torch/install/bin/lua: main.lua:52: '=' expected near 'continue'`
`stack traceback:`
` [C]: in function 'dofile'`
` .../torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk`
` [C]: ?`
`ls: cannot access *.txt: No such file or directory`
`ls: cannot access *.raw: No such file or directory`
Does someone know how to resolve this? I am really at the end of my knowledge and wasted almost 2 weeks bugfixing..
Thanks already for your help!
|
the code is fresh cloned without any change from my side. |
edited the main.lua file and managed to resolve to a new error. not it is but ./run.sh shows something very different:
|
Which distro of Linux are you running?
That might suggest that you haven't compiled fb.pythn for a while, since
the last OS upgrade at least. CentOS keeps the version of libstdc fixed,
I think, between minor upgrades. I don't think Ubuntu/Fedora/etc do the
same.
gernhard1337 writes:
… edited the main.lua file and managed to resolve to a new error. not it is
`libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by /home/tom/usr/local/torch/install/lib/lua/5.1/fb/python/lib.so)`
i will try to install this now.
|
i am running Ubuntu 14.04 like in #141 |
i used Matlab2015a before, now i downloaded 2019a where the GLIBCXX_3.4.18 is included.
i already recompiled fp.python. Nothing changed |
Ahh, yeah. matlab includes it's own libstdc++ i think.
Something definitely did change in that you now get a seg fault instead
of a missing library error.
What GPU are you using? Torch7 uses CUDA 8, which isn't supported on
2080 Ti cards (and cards of that era). Below CUDA 9.5 doesn't work on
these cards, so you might want to try compiling Torch7 against CUDA
10. Maybe this would work:
https://dwijaybane.wordpress.com/2020/03/13/torch-7-with-cuda-10-on-ubuntu/
I really need to update the readme. It's quite old at this point.
gernhard1337 writes:
… i used Matlab2015a before, now i downloaded 2019a where the GLIBCXX_3.4.18 is included.
Now Matlab throws the same error as ./run.sh
`/bin/bash: line 1: 22358 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 already recompiled fp.python. Nothing changed
|
yes i hoped to get with #141 something more since the old readme is not up-to-date that shoudlnt be a problem then since i got a Geforce GTX1070 (Laptop) should work then i guess? |
It is now working with the guide from #141 despite i needed to use a different way in installing cuda. I am running GTX1070 which needs a newer driver than in #141. What worked for me was : install Driver bundled with the Cuda 10.1 version. After this it worked! Thanks already and have a great new year in case u answer later. |
If you are still having issues, please give the https://github.com/AaronJackson/vrn-docker image a try. It's available on DockerHub but see the repo for docs. |
In case anyone's wondering |
Hello!
I am trying to get this to work for now 2 weeks. Today it got it as far as never, to fail again :c
However, first of all, i followed this script: #141
Had some errors while installing but i got everything to install and build.
Now if i type ./run.sh i get the same error as in Matlab.
Matlab gives :
/home/tom/usr/local/torch/install/bin/lua: main.lua:52: '=' expected near 'continue'
stack traceback:
[C]: in function 'dofile'
.../torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: ?
Error using run (line 38)
Failed to run Torch7 script.
and ./run.sh gives:
tom@tom-OMEN-by-HP-Laptop:~/usr/local/vrn$ ./run.sh
/home/tom/usr/local/torch/install/bin/lua: main.lua:52: '=' expected near 'continue'
stack traceback:
[C]: in function 'dofile'
.../torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: ?
ls: cannot access *.txt: No such file or directory
ls: cannot access *.raw: No such file or directory
Does someone know how to resolve this? I am really at the end of my knowledge and wasted almost 2 weeks bugfixing..
Thanks already for your help!
The text was updated successfully, but these errors were encountered: