This is the backend server for the Dafne platform.
The server does the following:
- provide trained models to the client
- receive updated models from the client
- merge the new client models with the existing model to improve the model (federated learning)
- provide new improved model to the client
Put models into the following folder structure:
db
'-> model
'-> Classifier
'-> XXX.model
'-> Leg
'-> XXX.model
'-> Thigh
'-> XXX.model
Replace XXX with an integer (unique ID / timestamp) (e.g. 1603281013.model).
Then start the server:
python main.py
See test_api.py
Build:
docker build --no-cache -t dafne-server:master .
Run:
docker run -p 5000:80 -v /mnt/data/dafne-server-db:/app/db dafne-server:master