Class DeepAcousticsWorker
java.lang.Object
rawDeepLearningClassifier.dlClassification.genericModel.DLModelWorker<StandardPrediction>
rawDeepLearningClassifier.dlClassification.genericModel.GenericModelWorker
rawDeepLearningClassifier.dlClassification.archiveModel.ArchiveModelWorker
rawDeepLearningClassifier.dlClassification.deepAcoustics.DeepAcousticsWorker
The DeepAcousticsWorker class extends ArchiveModelWorker to handle the
execution of the Deep Acoustics model. It processes audio data units, runs
the model by converting the usual 3D tranformed data into a 4D array (because
a colourised image is required), and converts the results into a list of
StandardPrediction objects.
- Author:
- Jamie Macaulay
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatThe minimum overlap threshold for combining bounding boxes.Fields inherited from class rawDeepLearningClassifier.dlClassification.genericModel.DLModelWorker
MAX_QUEUE_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatGet the minimum overlap threshold for combining bounding boxes.org.jamdev.jdl4pam.ArchiveModelLoad a model from a filerunModel(ArrayList<? extends PamDataUnit> dataUnits, float sampleRate, int iChan) Run the initial data feature extraction and the modelvoidsetMinOverlapThreshold(float minOverlapThreshold) Set the minimum overlap threshold for combining bounding boxes.Methods inherited from class rawDeepLearningClassifier.dlClassification.archiveModel.ArchiveModelWorker
closeModel, getModel, isModelNull, makeModelParams, makeModelResult, prepModel, setModelMethods inherited from class rawDeepLearningClassifier.dlClassification.genericModel.GenericModelWorker
runModel, setWaveFreqModelMethods inherited from class rawDeepLearningClassifier.dlClassification.genericModel.DLModelWorker
dataUnits2ModelInput, getModelTransforms, isEnableSoftMax, model2DLTransforms, setEnableSoftMax, setModelTransforms
-
Field Details
-
minOverlapThreshold
public float minOverlapThresholdThe minimum overlap threshold for combining bounding boxes.
-
-
Constructor Details
-
DeepAcousticsWorker
public DeepAcousticsWorker()
-
-
Method Details
-
runModel
public ArrayList<StandardPrediction> runModel(ArrayList<? extends PamDataUnit> dataUnits, float sampleRate, int iChan) Description copied from class:DLModelWorkerRun the initial data feature extraction and the model- Overrides:
runModelin classDLModelWorker<StandardPrediction>- Parameters:
iChan- - the channel to run the data on.- Returns:
- the model to run.
-
loadModel
public org.jamdev.jdl4pam.ArchiveModel loadModel(String currentPath2) throws ai.djl.MalformedModelException, IOException, ai.djl.engine.EngineException Description copied from class:ArchiveModelWorkerLoad a model from a file- Overrides:
loadModelin classArchiveModelWorker- Throws:
ai.djl.MalformedModelExceptionIOExceptionai.djl.engine.EngineException
-
getMinOverlapThreshold
public float getMinOverlapThreshold()Get the minimum overlap threshold for combining bounding boxes.- Returns:
- The minimum overlap threshold.
-
setMinOverlapThreshold
public void setMinOverlapThreshold(float minOverlapThreshold) Set the minimum overlap threshold for combining bounding boxes.- Parameters:
minOverlapThreshold- The minimum overlap threshold to set.
-