Class KetosClassifier
java.lang.Object
rawDeepLearningClassifier.dlClassification.StandardClassifierModel
rawDeepLearningClassifier.dlClassification.ketos.KetosClassifier
- All Implemented Interfaces:
PamSettings
,SettingsNameProvider
,DLClassiferModel
Classifier which uses deep learning models from Meridian's Ketos framework.
Ketos uses TensorFlow models and packages them inside a zipped .ktpb file which contains a JSON file for the transforms and a .pb model. Users can select a .ktpb file - PAMGaurd will decompress it, find the JSON file, set up the transforms and load the model.
Details on Meridians framework can be found at https://meridian.cs.dal.ca/2015/04/12/ketos/
- Author:
- Jamie Macaulay
-
Nested Class Summary
Nested classes/interfaces inherited from class rawDeepLearningClassifier.dlClassification.StandardClassifierModel
StandardClassifierModel.TaskThread
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionA settings object that can be saved.Get the sound spot worker.Get the sound spot worker.Get the parameters for the Ketos classifier.Get the KetosWorker.Get any UI components for the model.getName()
Get the name of the model.long
boolean
isModelType
(URI uri) Check whether a URI is compatible with a classification frameworkboolean
restoreSettings
(PamControlledUnitSettings pamControlledUnitSettings) void
setKetosParams
(KetosDLParams ketosDLParams) Set the Ketos parameters.Methods inherited from class rawDeepLearningClassifier.dlClassification.StandardClassifierModel
checkSettingsOK, closeModel, getClassNameIDs, getClassNames, getDLControl, getModelStatus, getNumClasses, getRawSettingsPane, isDecision, isModelExtensions, millis2Samples, prepModel, runModel, setModel
-
Field Details
-
MODEL_NAME
-
-
Constructor Details
-
KetosClassifier
The ketos classifier.
-
-
Method Details
-
getName
Description copied from interface:DLClassiferModel
Get the name of the model.- Returns:
- the name of the model.
-
getModelUI
Description copied from interface:DLClassiferModel
Get any UI components for the model. Can be null.- Returns:
- UI components for the model.
-
getDLWorker
Description copied from class:StandardClassifierModel
Get the sound spot worker.- Specified by:
getDLWorker
in classStandardClassifierModel
- Returns:
- the sound spot worker.
-
getDLParams
Description copied from class:StandardClassifierModel
Get the sound spot worker.- Specified by:
getDLParams
in classStandardClassifierModel
- Returns:
- the sound spot worker.
-
getKetosParams
Get the parameters for the Ketos classifier.- Parameters:
ketosDLParams
- - the Ketos parameters.
-
setKetosParams
Set the Ketos parameters.- Parameters:
ketosDLParams
- - the parameters to set.
-
getDLModelSettings
Description copied from interface:DLClassiferModel
A settings object that can be saved.- Returns:
- the settings object.
-
getKetosWorker
Get the KetosWorker. this handles loading and running the Ketos model.- Returns:
- the Ketos worker.
-
getUnitName
- Returns:
- A Name specific to this instance of the particular class, e.g. Sperm whale detector, Beaked whale detector, etc.
-
getUnitType
- Returns:
- A Name specific to the type, e.g. Click detector
-
getSettingsReference
- Returns:
- The serialisable object that will be stored
-
getSettingsVersion
public long getSettingsVersion()- Returns:
- An integer version number for the settings
-
restoreSettings
- Returns:
- true if successful The object performs final checks (if needed) and then casts the settings data pamcontrolledunitSettings.settings into the correct type and uses as required
-
isModelType
Description copied from interface:DLClassiferModel
Check whether a URI is compatible with a classification framework- Parameters:
uri
- - the URI to the model- Returns:
- true if the model is compatible.
-