Week 12 (22/11 - 26/11)

Sorting out the OpenFace service.

The OpenFace service

Most of the week was spent on a Dockerfile for the OpenFace service. The idea is to bundle an API with OpenFace, so that the analysis can be triggered remotely. OpenFace already has a docker image, meaning we could use that as a base and go from there. There were various issues, however...

  • When using OpenFace as a base, an updated version of Python was needed. I tried to do this using both apt-get and by manually building python locally, but neither worked. It would not switch to the new Python version.

  • The next option was to take the Python base image and install OpenFace on there. The issue here was the number of libraries and dependencies OpenFace has caused it not to work.

  • In the end, progress was made using the first option. I encountered another issue though: there was no SSL installation. I tried to resolve this by manually downloading and building it again, but to no avail.

  • Finally, using the base OpenFace Dockerfile and adding Python to it at the end gave me a good base image to start from. I then used this to build my API from, and it works!

This openface/openface image is the base OpenFace package bundled with Python.

Other activities

The other interesting activity this week was a guest lesson/presentation for the VR minor students. A colleague and I were asked to present something about the use of Avatars and how they will be validated in my project. The feedback on this was positive.

An issue that came up during the week was the fact that my Azure credit ran out. An Azure environment is now being created by the school, making handing in the project at the end of the semester easier too.

Spoilers for next week

  • Working on a new Azure environment

  • Run services on Gunicorn

  • Explore deployment to Azure

Last updated

Was this helpful?