Generated Sep 16, 2015
DIGITS exposes its internal functionality through a REST API. You can access these endpoints by performing a GET or POST on the route, and a JSON object will be returned.
For more information about other routes used for the web interface, see this page.
Show a DatasetJob
Returns JSON when requested:
{id, name, directory, status}
Methods: GET
Arguments: job_id
Location: digits/dataset/views.py
Creates a new ImageClassificationDatasetJob
Returns JSON when requested: {job_id,name,status} or {errors:[]}
Methods: POST
Location: digits/dataset/images/classification/views.py
Creates a new GenericImageDatasetJob
Returns JSON when requested: {job_id,name,status} or {errors:[]}
Methods: POST
Location: digits/dataset/images/generic/views.py
DIGITS home page
Returns information about each job on the server
Returns JSON when requested:
{
datasets: [{id, name, status},...],
models: [{id, name, status},...]
}
Methods: GET
Location: digits/views.py
Show a ModelJob
Returns JSON when requested:
{id, name, directory, status, snapshots: [epoch,epoch,...]}
Methods: GET
Arguments: job_id
Location: digits/model/views.py
Create a new ImageClassificationModelJob
Returns JSON when requested: {job_id,name,status} or {errors:[]}
Methods: POST
Location: digits/model/images/classification/views.py
Classify many images and return the top 5 classifications for each
Returns JSON when requested: {classifications: {filename: [[category,confidence],...],...}}
Methods: POST
Location: digits/model/images/classification/views.py
Classify one image and return the top 5 classifications
Returns JSON when requested: {predictions: {category: confidence,...}}
Methods: POST
Location: digits/model/images/classification/views.py
Create a new GenericImageModelJob
Returns JSON when requested: {job_id,name,status} or {errors:[]}
Methods: POST
Location: digits/model/images/generic/views.py
Infer many images
Methods: POST
Location: digits/model/images/generic/views.py
Infer one image
Methods: POST
Location: digits/model/images/generic/views.py