OpenFace Integration with Django

56 views
Skip to first unread message

RON MICHAEL

unread,
Feb 15, 2017, 7:21:54 AM2/15/17
to Django users
Hello! I'm 16 and I'm working on a project using Facial Recognition. I'm working on a face recognition API called OpenFace. Here's the link to Openface 

The way I did it was a imported the necessary files and folders required for OpenFace to work. After doing so and running OpenFace on my localhost, it worked. 
It should the image and the confidence value. 

The way I fed the image to OpenFace was that I had a list of urls of images that could be found on my local directory. I simply gave OpenFace the urls and had OpenFace recognise the faces.
This worked very well in my localhost. 

The trouble now was when uploading it to a Web Server. When I ran OpenFace in my web server the result was not the same as the one in my localhost. 
Instead of showing me the images and the confidence value, the return was empty. Nothing was being returned to me. But, when I tried it my localhost there was a return.

Any ideas? Thanks! 

Shawn Milochik

unread,
Feb 15, 2017, 11:24:40 AM2/15/17
to django...@googlegroups.com
It's probably some difference between environments. If you know your code works (it runs locally) and you're running the same versions of all your dependencies (Python, Django, Openface, etc.), then it doesn't seem too likely to be a major bug. It could be a bug -- not checking for and handling an exceptional condition. For example, what if your code processes each file in a directory -- but that directory is empty? It'll "work" perfectly, and return nothing.

Add some logging along the way -- see what files it sees, what directories it's looking it, etc. If you're hitting any external resources (APIs, databases, etc.) make sure that your credentials work from your server and that the services are available.

RON MICHAEL

unread,
Feb 16, 2017, 8:27:36 PM2/16/17
to Django users, Sh...@milochik.com
Great! I've tried logging stuff but it doesn't seem to work when uploading it to a webserver. When running on my localhost server there was a log about a depreciation, then when it was doing training, then when it has finished training. But I can't seem to see it in the webserver terminal :/
Reply all
Reply to author
Forward
0 new messages