- 21 Dec 2022
- 1 Minute to read
- Print
- DarkLight
- PDF
Start Jobs with LandingLens CLI
- Updated on 21 Dec 2022
- 1 Minute to read
- Print
- DarkLight
- PDF
Overview
You can start jobs with LandingLens CLI or Python SDK. Launching jobs via LandingLens CLI has these advantages:
- Programmatically initiate jobs
- Fine-tune Model hyperparameters
- Apply custom transformations in pre- and post-processing
Initiate Source Codes
In a new local folder, run the following:
llens model init object-detection # or segmentation |
This will create the following files and folders that contain source codes to launch a LandingLens CLI job:
. |
Configure Jobs
To configure your job:
- Configure the train specifications.
- Create and apply custom transformations.
Launch Train-Evaluation Jobs
Command
llens model train <FOLDER> --dataset-id <DATASET_ID> --job-name <JOB_NAME> (--job-description <JOB_DESCRIPTION>) |
Parameters
Parameter | Description |
---|---|
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 find the ID of an exported dataset from LandingLens Platform under Data > Actions (horizontal ellipses) > Exported Dataset. |
JOB_NAME | The name of the job. |
(Optional) JOB_DESCRIPTION | The description of the job. |
Launch Evaluation-Only Jobs
Command
llens model eval <FOLDER> --dataset-id <DATASET_ID> --train-job-id <TRAIN_JOB_ID> --job-name <JOB_NAME> \ |
Parameters
Parameter | Description |
---|---|
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 find the ID of an exported dataset from LandingLens Platform under Data > Actions (horizontal ellipses) > Exported Dataset. |
TRAIN_JOB_ID | The ID of the train job. You can retrieve this ID from the URL of the Model Detail page. Example: https://platform.landingai.io/app/{ORG_ID/pr/{PROJ_ID}/models/view/{TRAIN_JOB_ID}. |
JOB_NAME | The name of the job. |
(Optional) JOB_DESCRIPTION | The description of the job. |