This is a repository for a classification training and inference API using the Gluoncv toolkit. It's supported on both Windows and Linux Operating systems.
Note: To be able to fast train a model with the training_API repository make sure to use git clone
and avoid downloading the repository as ZIP because it will not download the needed files stored on git lfs
but just the pointer instead
- Ubuntu 18.04
- Docker CE latest stable release
- Docker-Compose (1.19.0 or higher)
To check if you have docker-ce installed:
docker --version
To check if you have docker-compose installed:
docker-compose --version
-
If you don't have neither docker nor docker-compose use the following command
chmod +x install_full.sh && source install_full.sh
-
If you have docker ce installed and wish only to install docker-compose and perform necessary operations, use the following command
chmod +x install_compose.sh && source install_compose.sh
To install Docker on Windows, please follow the link.
To build the solution, run the following command from the repository's root directory
docker-compose -f build.yml build
To run the solution, run the following command from the repository's root directory
docker-compose -f run.yml up
After a successful run you should see something like the following:
-
If the app is deployed on your machine:
- open your web browser and type the following:
localhost:8000
or127.0.0.1:8000
for the training API - open your web browser and type the following:
localhost:4343
or127.0.0.1:4343
for the Inference API
- open your web browser and type the following:
-
If the app is deployed on a different machine: open your web browser and type the following:
<machine_ip>:<port>
Train a new model and pass the parameters using a json format object
Train a new model and give only the model name as parameter
Loads all available models and returns every model with it's hashed value. Loaded models are stored and aren't loaded again.
Train a new model and give only the model name as parameter