This sets up a pair of Docker container services for classifying footage with a tensorflow model
The two services are:
- tf_server: A tensorflow-serving server which hosts Convolutional Neural Networks. The example model classifies footage as in-vehicle or out-of-vehicle. The services can be accessed from localhost at
localhost:8501
, or from within the docker-compose network attf_server
. See the tf_server README for more details - client: A python3 docker image which processes the videos contained within the subdirectory
videos
and generates a report in the subdirectoryreports
. It accomplishes this by using ffmpeg to extract keyframes, then submits those frames totf_server
for classification, and then generates a report based on the classifications. See the client README for more details
- Create a Docker Hub Account
- Install Docker Desktop for Windows
- Add Docker to Windows Path, should be something like C:\Program Files\Docker\Docker\resources\bin
- Configure Docker to use proxy, if needed (note look for config.json in \Users\USERXXX.docker)
- Copy video files to directory: \deploy\videos
- Open Windows PowerShell
- Navigate to deploy directory
- Log in to the Docker registry,
docker login
- Run Docker Compose to build service,
docker-compose build
docker-compose up
docker-compose up -d
- Install Docker for your platform, e.g. ubuntu
- Configure proxy if necessary
- Navigate into this directory in terminal
- Copy video files to directory
./videos
docker-compose build
docker-compose up
- Jeffrey Liu (MITLL)
- Chris Budny (MITLL)
- Andrew Weinert (MITLL)
- Gabriela Barrera (MITLL)
- Dieter Schuldt (MITLL)
- Steven Talpas (NJOHSP)
- William Drew (NJOHSP)
This work was performed under the following financial assistance award 70NANB17Hl69 from U.S. Department of Commerce, National Institute of Standards and Technology.