torch / demos

Demos and tutorials around Torch7.
355 stars 301 forks source link

Cannot run facedetector #11

Closed synchro-- closed 9 years ago

synchro-- commented 9 years ago

How can I run the file run.lua in the facedetector demo? I should run it with qlua that has qt packege preloaded of course. So:

qlua run.lua qlua: /usr/local/share/lua/5.1/inline/init.lua:120: attempt to concatenate local 'path' (a nil value)

So I tried qlua first and then If I do : require 'inline' the first time it gives me the same error, the second time it works. (why?) . Anyway after I run it:

dofile 'run.lua' run.lua:69: attempt to call field 'load' (a nil value)

No matter what it gaves me the error above. Thank you for helping

soumith commented 9 years ago

the face detector might be a little outdated. try the ones in this repo: https://github.com/e-lab/torch7-demos

synchro-- commented 9 years ago

Ah yes it seemed to be a little old. Thank you. Btw if now I do from terminal (in the face-detector-elab folder) :

qlua run.lua ==> processing options qlua: /usr/local/share/lua/5.1/torch/File.lua:232: read error: read 1 blocks instead of 25602 stack traceback: [C]: at 0x7f699fd06620 [C]: in function 'read' /usr/local/share/lua/5.1/torch/File.lua:232: in function </usr/local/share/lua/5.1/torch/File.lua:163>

And if I run it inside qlua :

==> processing options /usr/local/share/lua/5.1/pl/lapp.lua:321: attempt to get length of local 'arg' (a nil value) stack traceback: /usr/local/share/lua/5.1/pl/lapp.lua:321: in function 'lapp' run.lua:26: in main chunk

Actually there are errors like that for every demo.

soumith commented 9 years ago

i removed the face detector demo, it was broken and not working.

synchro-- commented 9 years ago

Ok, sorry for opening too much issues but I was searching for some working demo for face detection to actually looking at the code and learn some trick.

jonathantompson commented 9 years ago

When I was TA for Davi's class I copied Clement's face-detector demo and fixed it so it runs on the new torch / lua:

https://github.com/jonathantompson/geiger_facedetector

Aysegul commented 9 years ago

you can take a look at person-detector demo which is almost the same as face-detector. The network there doesn't perform well but there are many tricks.

synchro-- commented 9 years ago

Thanks @Aysegul @jonathantompson I'll take a look at both

synchro-- commented 9 years ago

Ok @soumith the code works, I had something old for sure. Apart from that, are this and the person-detector good for learning how to use the multiscale pyramid technique? I mean for a newbie. Sure there are things more complex, like the road-net for example. @Aysegul

Aysegul commented 9 years ago

I think they are good. You can display the middle steps with image.display to see what pyramid does.