Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1.84 KB

ObjectTrainApi.md

File metadata and controls

59 lines (41 loc) · 1.84 KB

nanonets.ObjectTrainApi

All URIs are relative to https://app.nanonet.com/api/v2

Method HTTP request Description
object_detection_model_train_by_model_id_post POST /ObjectDetection/Model/{model_id}/Train/ Train Model

object_detection_model_train_by_model_id_post

object_detection_model_train_by_model_id_post(model_id)

Train Model

You can use this endpoint to train a model after uploading images for each category. You can use the same endpoint to retrain a model after uploading more images to improve the model.

Example

from __future__ import print_function
import time
import nanonets
from nanonets.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: ApiKey
configuration = nanonets.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = nanonets.ObjectTrainApi(nanonets.ApiClient(configuration))
model_id = 'model_id_example' # str | 

try:
    # Train Model
    api_instance.object_detection_model_train_by_model_id_post(model_id)
except ApiException as e:
    print("Exception when calling ObjectTrainApi->object_detection_model_train_by_model_id_post: %s\n" % e)

Parameters

Name Type Description Notes
model_id str

Return type

void (empty response body)

Authorization

ApiKey

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]