Skip To Content

Fine-tune the model

You can fine-tune the High Resolution Land Cover Classification - USA model to suit your geographic area, imagery, or features of interest. Fine-tuning a model requires less training data, computational resources, and time compared to training a new model.

Fine-tuning the model is recommended if you do not get satisfactory results from the available ArcGIS pretrained deep learning models. This can happen when your area of interest falls outside the applicable geographies for the models, or if your imagery properties such as resolution, scale, and seasonality are different.

You can use the Export Training Data For Deep Learning tool to prepare training data. Next, you can fine-tune this model on your data using the Train Deep Learning Model tool in ArcGIS Pro. Follow the steps below to fine-tune the model.

Prepare training data

This model is trained on the high-resolution (80-120 centimeters) imagery and classified raster with the class value and same classes as in the Chesapeake Bay Land Cover 2013/2014 dataset.

The pretrained model can be finetuned for both Level-1 and Level-2 land cover classes. The Level-1 land cover model consists of the following classes:

Land Cover Level 1 classes

ClassValue

ClassName

1

Water

2

Tree Canopy and Shrubs

3

Low Vegetation

4

Barren

5

Impervious Surfaces

6

Impervious Roads

Level-2 land cover model consists of the following classes:

Land Cover Level 2 classes

ClassValue

ClassName

1

Water

2

Wetlands

3

Tree Canopy

4

Shrubland

5

Low Vegetation

6

Barren

7

Structures

8

Impervious Surfaces

9

Impervious Roads

    Use the Export Training Data For Deep Learning tool to prepare training data for fine-tuning the model.
  1. Browse to Tools under the Analysis tab.
    Tools icon
  2. Click the Toolboxes tab in the Geoprocessing pane, select Image Analyst Tools and browse to the Export Training Data For Deep Learning tool in the Deep Learning toolset.
    Export Training Data For Deep Learning tool
  3. Set the variables under the Parameters tab as follows:
    1. For Input Raster, select the imagery.
    2. For Output Folder, select a directory in your machine.
    3. For Input Feature Class Or Classified Raster Or Table, ensure that if you're using a classified raster, its pixel values match those of the Chesapeake Bay Land cover dataset (2013/2014).

      In the case of a feature class, it must include a text field named ClassName containing the names of land cover classes and another field named ClassValue with values corresponding to those in the Chesapeake Bay Land cover dataset (2013/2014). Use the relevant land cover classes listed above for Level-1 and Level-2 categories, based on the objectives of your study.

      If you use a feature layer, the Class Value Field option appears.

    4. Optionally, add the ClassValue field referencing the class values within the Chesapeake Bay Land cover dataset (2013/2014).
    5. For Image Format, select TIFF format.
    6. For Tile Size X, type 512
    7. For Tile Size Y, type 512
    8. For Stride X, type 0
    9. For Stride Y, type 0
    10. For Metadata Format, select Classified Tiles
      Export Training Data For Deep Learning tool parameters
  4. Set the variables under the Environments tab.
    1. For Processing Extent, select Current Display Extent or any other option from the drop-down menu as needed.
    2. For Cell Size, set the value to the desired cell size.
      Export Training Data For Deep Learning tool parameters
  5. Click Run.

    Once processing is complete, the exported training data is saved in the specified directory. Below is an example of an image chip used for model training. You can use it to confirm that the correct cell size was applied while exporting training data.

    Exported Sample Training Chip

Fine-tune the High Resolution Land Cover Classification - USA model

Complete the following steps to fine-tune the model:

  1. Browse to Tools under the Analysis tab.
    Tools button
  2. In the Geoprocessing pane, click the Toolboxes tab and expand Image Analyst Tools. Select the Train Deep Learning Model tool under Deep Learning.
    Train Deep Learning Model tool
  3. If you are using Level-2 Land Cover Classification (9 classes), set the variables under the Parameters tab as follows:
    1. For Input Training Data, use the path to your exported training data from the previous step.
    2. For Output Folder, select a directory on your machine.
    3. Optionally, for Max Epochs, type 100 or the number of iterations you want to fine-tune the model for.

      Epoch is the number of iterations the tool will take to go over the data.

    4. For Pre-trained Model, input the High Resolution Land Cover Classification - USA (.dlpk) file downloaded from ArcGIS Living Atlas of the World.
    5. For Batch Size, type 8, or increase or decrease this number according to your GPU capacity.

      It is recommended to choose a batch size that is a square number for optimal performance.

    6. Check the Stop when model stops improving box.
    7. Check the Freeze Model box.
      Train Deep Learning Model tool parameters
    • If you are using Level-1 Land Cover Classification (6 classes), set the variables under the Parameters tab as follows:

    1. For Input Training Data, use the path to your exported training data from the previous step.
    2. For Output Folder, select a directory on your machine.
    3. Optionally, for Max Epochs, type 100 or the number of iterations you want to fine-tune the model for.

      Epoch is the number of iterations the tool will take to go over the data.

    4. For Pre-trained Model, complete the following steps:

      The .dlpk file cannot be used directly.

      1. To fine-tune the 7-class model, unzip the .dlpk file and find a folder named 7class.
        7class folder
      2. Inside the 7class folder, select the 7class.emd file, which will be used to fine-tune the pretrained model for 7-class (Level 1) classification.
        7class.emd file
    5. For Batch Size, type 8, or increase or decrease this number according to your GPU capacity.

      It is recommended to choose a batch size that is a square number for optimal performance.

    6. Check the Stop when model stops improving box.
    7. Check the Freeze Model box.
      Train Deep Learning Model tool parameters
  4. Set the variables under the Environments tab.
    1. For Processor Type, select CPU or GPU as needed.

      If GPU is available, it is recommended that you select GPU and set GPU ID to the GPU to be used.

      Train Deep Learning Model tool parameters
  5. Click Run.

    You can now use this model to run inferencing against your imagery.