Direct Known Subclasses:
DelphinIDWhistleTest.DelphinIDWorkerTest

public class DelphinIDWorker extends ArchiveModelWorker
The delphinID worker. This worker has two additional tasks compared to it's parent class.
  • Read the the JSON parameters that transform that converts a group of clicks or whistles to a transform
  • Insert the custon transform at the start of the transforms list before data are transformed
Author:
Jamie Macaulay
  • Constructor Details

    • DelphinIDWorker

      public DelphinIDWorker()
  • Method Details

    • getWhistleTransform

      public DelphinIDTransform getWhistleTransform()
      Get the whislte to image parameters.
      Returns:
    • prepModel

      public DLStatus prepModel(StandardModelParams dlParams, DLControl dlControl)
      Description copied from class: ArchiveModelWorker
      Prepare the model. Note it is important to put a synchonized here or the model loading can fail.
      Overrides:
      prepModel in class ArchiveModelWorker
      Parameters:
      dlParams - - the parameters for the sound spot model.
      dlControl - - the control object for the deep learning process.
      Returns:
      a status of the preparation of the model.
    • dataUnits2ModelInput

      public float[][][] dataUnits2ModelInput(ArrayList<? extends PamDataUnit> dataUnits, float sampleRate, int iChan)
      Description copied from class: DLModelWorker
      Convert a list of data units to a stack if images.
      Overrides:
      dataUnits2ModelInput in class DLModelWorker<StandardPrediction>
      Parameters:
      dataUnits - - the data units.
      sampleRate - - the sample rate
      iChan - - the channels
      Returns:
      a stack of images for input into a deep learning model.