- 18 Mar 2024
- 4 Minutes to read
- Print
- DarkLight
- PDF
Train Models
- Updated on 18 Mar 2024
- 4 Minutes to read
- Print
- DarkLight
- PDF
LandingLens offers two methods for training models:
- Fast Training: This is the default option. LandingLens will automatically fine-tune its settings to optimize model training speed.
- Custom Training: Also called "Advanced Training". This is an advanced option recommended for users who are familiar with machine learning. Custom Training allows these users to have more granular control over pre-processing transforms and manual hyperparameter tuning. For more information, go to Custom Training.
Models Do Not Train on Unlabeled Images
If there are unlabeled images in your dataset, those images will not be used in the model training process. However, LandingLens will display predictions on those images after the model has completed its training. It's important to note that these predictions will not contribute to performance metrics, as metric calculations rely on comparisons with the ground truth.
Images Are Resized During Model Training
When you train your model, LandingLens resizes all images to make training faster and more effective. This resize does not affect the original images. This means that the original high-resolution images are always available in the Build tab.
When you use Fast Training (the default Train option), all images are auto-resized according to your project type:
Project Type | Dimensions for Model Training (in pixels) |
---|---|
Object Detection | Rescaled with padding to 640x640 |
Segmentation | Resized to 800x800 |
Classification | Resized to 512x512 |
Visual Prompting | Resized to 512x512 |
Train Models
To train a model:
- Open the project that has the images you want to train on.
- Click Train. (If you want to train a model based on a specific snapshot, learn how to do that here.)
This starts the Fast Training process. (If you're familiar with machine learning and would like to configure advanced settings, go to Custom Training.) - LandingLens runs the model training process and saves the model.
Model Training Process
LandingLens performs a series of steps when it trains a model. This section describes those steps at a high level.
- Preparing the snapshot of your data: LandingLens saves all the images, labels, and data currently in your dataset.
- Provisioning GPU. LandingLens warms up a virtual computer in the cloud that includes a graphics processing unit (GPU). This virtual computer is where the model training occurs.
- Training & Learning. The platform sends the model's data and details to the virtual computer. This information tells the model how to train itself. Then, the model starts training, and a learning curve displays. This graph shows how well the model is training. If the line drops when it trains, the model is making fewer errors and is learning to be more accurate. The model will test its accuracy by comparing its Predictions to your Ground Truth.
- Calculating Model Performance. LandingLens calculates the metrics for the model, which show how well the model performed. For more information about these metrics, go to Analyze Models.
Default Model Name
When you train a model, LandingLens now automatically saves and names it. This ensures that you can access all versions of your data in the snapshots dashboard. Automatically saving the models also prevents models from being accidentally overwritten.
The default model naming convention is Model-mm-dd-yyyy_n, where n is the number of models in the project trained that day. For example, let’s say you train six models in a project on December 10, 2023. The default name of the sixth model will be Model-12-10-2023_6.
You can rename a model at any time.
End Training
You can end model training before it's completed by clicking End Training Now. For example, if you click Train and then realize you need to annotate more images, you can end the training process.
If you end model training early, LandingLens completes its current round (Epoch) of training and evaluates the images in your dataset with the model it had generated up to that point. The model may not be as accurate as it would be if training had completed.
To end model training:
- Click End Training Now.
- A confirmation pop-up appears. Click End Trainingto confirm.
- The Models panel shows this message: Manually Ended Early. The results for the model generated up to that point display.
Train Multiple Models at Once
When one model is training, you can start training another model This is helpful if you want to compare performance between multiple datasets or model training settings. Training multiple models at once is sometimes called "parallel training".
Parallel training is available for both the Fast Training and Custom Training methods. Up to 10 models can be trained at a time.
Let’s say you want to build two models for the same dataset using Custom Training. You want one model to use 30 epochs and the other to use 40 epochs. You can start training the second model without waiting for the first one to complete. This capability empowers you to run experiments faster.
To see the status of a model, click the Models drop-down menu. Models that are still training have the status In Progress.