Skip to content

CLI Trainer Application

The CLI trainer application allows you to train images via the terminal.

Train images

  1. Starting the trainer application with no argument, or -h, or -help displays usage instructions.

  2. Single image target training requires 3 arguments:

    • Output directory
    • Input configuration (e.g. defaultImageTargetTrainingConfig.json)
    • Input image file

    defaultImageTargetTrainingConfig.json

    {
      "Config.Target.Name": "VARIMG_000",
      "Config.Target.Type": "Image",
      "Object.Physical.Width": 0.297,
      "Object.Physical.Height": 0.198
    }
    
    The physical size of the image needs to be defined in meters

  3. Batch image target training requires 3 arguments:

    • -B
    • Output directory
    • Input batch configuration (e.g. defaultBatchImageTargetTrainingConfig.json)

    defaultBatchImageTargetTrainingConfig.json

    {
      "Batch.Target.Name" : "BatchImage",
      "Batch.Image.Path": "../images/",
      "Batch.Image.Files" : ["IMG_000.png", "second_image.png", "third.jpeg"],
      "Batch.Config.File" : "../TrainingConfig_Batch.json"
    }
    
    This sample configuration will generate 3 image targets with the names BatchImage_00000, BatchImage_00001 and BatchImage_00002

    TrainingConfig_Batch.json

    {
      "Config.Target.Type": "Image",
      "Object.Physical.Width": 0.297,
      "Object.Physical.Height": 0.198
    }
    
    The physical size of the image needs to be defined in meters

Back to top