Skip to main content

Start jobs with LandingLens CLI

You can start jobs through CLI or Python SDK. Launching jobs using CLI gives you advantages:

  • Programmatically initiating jobs

  • Fine-tune model hyperparameter

  • Apply custom transformations in pre/post processing

Note: We have a limit at 10 maximum running job on the project level. If you have 10 jobs running, launching a new job will fail.

Initiate Source Codes#

In a new local folder, run:

llens model init object-detection  # or segmentation

This will create the following files and folders that contain source codes to launch a CLI job:

.โ”œโ”€โ”€ README.mdโ”œโ”€โ”€ customโ”‚   โ”œโ”€โ”€ __init__.pyโ”‚   โ””โ”€โ”€ object_detection_to_classification.pyโ”œโ”€โ”€ testโ”‚   โ””โ”€โ”€ test_od.pyโ”œโ”€โ”€ train.yamlโ””โ”€โ”€ transforms.yaml

Configure your Job#

Please follow these instructions and set up your job.

Launch your Job#

Launch a Train-Evaluation job#

  • Command
llens model train <FOLDER> --dataset-id <DATASET_ID> --job-name <JOB_NAME> (--job-description <JOB_DESCRIPTION>)
  • Parameters

FOLDER

The directory that contains train.yaml and transforms.yaml. If you are in the same folder of these files, you can use โ€œ.โ€ to denote the current folder.

DATASET_ID

Dataset ID number. You can obtain the id of exported dataset from LandingLens Platform under Data > Exported dataset

JOB_NAME

Job Name

(Optional) JOB_DESCRIPTION

Job Description

Launch a Evaluation only job#

  • Command
llens model eval <FOLDER> --dataset-id <DATASET_ID> --train-job-id <TRAIN_JOB_ID> --job-name <JOB_NAME> \    (--job-description <JOB_DESCRIPTION>)
  • Parameters

FOLDER

The directory that contains train.yaml and transforms.yaml. If you are in the same folder of these files, you can use โ€œ.โ€ to denote the current folder.

DATASET_ID

Dataset ID number. You can obtain the ID of exported dataset from LandingLens Platform under Data > Exported dataset

TRAIN_JOB_ID

Train Job ID number. You can obtain the ID from the URL of the model detail page https://platform.landingai.io/app/{ORG_ID/pr/{PROJ_ID}/models/view/{TRAIN_JOB_ID}.

You can also click on the clipboard icon in the models tab to copy the TRAIN_JOB_ID.

job_detail

JOB_NAME

Job Name

(Optional) JOB_DESCRIPTION

Job Description