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 CodesIn 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 JobPlease 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_NAME
Job Name
(Optional) JOB_DESCRIPTION
Job Description