Class DelphinIDWorker
java.lang.Object
rawDeepLearningClassifier.dlClassification.genericModel.DLModelWorker<StandardPrediction>
rawDeepLearningClassifier.dlClassification.genericModel.GenericModelWorker
rawDeepLearningClassifier.dlClassification.archiveModel.ArchiveModelWorker
rawDeepLearningClassifier.dlClassification.delphinID.DelphinIDWorker
- Direct Known Subclasses:
DelphinIDTest.DelphinIDWorkerTest
- Author:
- Jamie Macaulay
-
Field Summary
Fields inherited from class rawDeepLearningClassifier.dlClassification.genericModel.DLModelWorker
MAX_QUEUE_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat[][][]
dataUnits2ModelInput
(ArrayList<? extends PamDataUnit> dataUnits, float sampleRate, int iChan) Convert a list of data units to a stack if images.Get the whislte to image parameters.void
prepModel
(StandardModelParams dlParams, DLControl dlControl) Prepare the model.Methods inherited from class rawDeepLearningClassifier.dlClassification.archiveModel.ArchiveModelWorker
closeModel, getModel, isModelNull, loadModel, makeModelParams, makeModelResult
Methods inherited from class rawDeepLearningClassifier.dlClassification.genericModel.GenericModelWorker
runModel
Methods inherited from class rawDeepLearningClassifier.dlClassification.genericModel.DLModelWorker
getModelTransforms, isEnableSoftMax, model2DLTransforms, runModel, setEnableSoftMax, setModelTransforms
-
Constructor Details
-
DelphinIDWorker
public DelphinIDWorker()
-
-
Method Details
-
getWhistleImageParams
Get the whislte to image parameters.- Returns:
-
prepModel
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 classArchiveModelWorker
-
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 classDLModelWorker<StandardPrediction>
- Parameters:
dataUnits
- - the data units.sampleRate
- - the sample rateiChan
- - the channels- Returns:
- a stack of images for input into a deep learning model.
-