Skip to content

SAC-PhoeniX/AI-Challenge-22-Server

Repository files navigation

PhoeniX AI Challenge 2022 Backend

The server used to run Keras models from the AI Challenge participant teams.

Requirements

This uses the latest (?) versions of:

  • tensorflow
  • aiohttp with Python 3

Running

  1. Make a copy of example.conf and enter team names and models like in the example
  2. Run conda env create -f environment.yml to download the requirements
  3. Run server.py

Running with stream frontend

If you want to serve the stream frontend as well, you will need to clone using git clone --recurse-submodules https://github.com/SAC-PhoeniX/AI-Challenge-22-Server.git. Before running server.py, do

$ cd AI-Challenge-22-Server/stream
$ yarn # or: npm i .
$ yarn build # or: npm run build

to build the frontend files. The files will be served if they are found.

Running without TensorFlow

If you need to run the server to test the endpoints, you can set the MODELS environment variable to NO_TF before running server.py. To do so, use these commands:

on Linux/OSX:

MODELS=NO_TF python server.py

on Windows in PowerShell:

$env:MODELS='NO_TF'
python server.py

# do after testing:
$env:MODELS="TF"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages