Class ArchiveModelClassifier
java.lang.Object
rawDeepLearningClassifier.dlClassification.StandardClassifierModel
rawDeepLearningClassifier.dlClassification.archiveModel.ArchiveModelClassifier
- All Implemented Interfaces:
 PamSettings,SettingsNameProvider,DLClassiferModel
- Direct Known Subclasses:
 KetosClassifier2,KooguClassifier,PamZipModelClassifier
A Tensorflow or PyTorch model zipped with a PAMGuard settings file. This
 allows anyone to create a model that can be loaded with one click if and only
 if they have already set up the json metadata properly.
- Author:
 - Jamie Macaulay
 
- 
Nested Class Summary
Nested classes/interfaces inherited from class rawDeepLearningClassifier.dlClassification.StandardClassifierModel
StandardClassifierModel.TaskThread - 
Field Summary
Fields inherited from class rawDeepLearningClassifier.dlClassification.StandardClassifierModel
dlControl - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionA settings object that can be saved.Get the sound spot worker.Get the sound spot worker.String[]Get the file extensions for the model type.Get the parameters for the Ketos classifier.Get any UI components for the model.Get the KetosWorker.getName()Get the name of the model.longbooleanisModelType(URI uri) Check whether a URI is compatible with a classification frameworkCreate the parameters class for the model.booleanrestoreSettings(PamControlledUnitSettings pamControlledUnitSettings) voidsetDLParams(StandardModelParams ketosParams) Methods inherited from class rawDeepLearningClassifier.dlClassification.StandardClassifierModel
checkSettingsOK, closeModel, getAllowedDataTypes, getClassNameIDs, getClassNames, getDLControl, getModelStatus, getNumClasses, getRawSettingsPane, isDecision, isModelExtensions, millis2Samples, newResult, prepModel, runModel, setModel 
- 
Constructor Details
- 
ArchiveModelClassifier
 
 - 
 - 
Method Details
- 
setDLParams
 - 
getName
Description copied from interface:DLClassiferModelGet the name of the model.- Returns:
 - the name of the model.
 
 - 
getModelUI
Description copied from interface:DLClassiferModelGet any UI components for the model. Can be null.- Returns:
 - UI components for the model.
 
 - 
getDLWorker
Description copied from class:StandardClassifierModelGet the sound spot worker.- Specified by:
 getDLWorkerin classStandardClassifierModel- Returns:
 - the sound spot worker.
 
 - 
getDLParams
Description copied from class:StandardClassifierModelGet the sound spot worker.- Specified by:
 getDLParamsin classStandardClassifierModel- Returns:
 - the sound spot worker.
 
 - 
getKetosParams
Get the parameters for the Ketos classifier.- Parameters:
 standardDLParams- - the Ketos parameters.
 - 
getDLModelSettings
Description copied from interface:DLClassiferModelA settings object that can be saved.- Returns:
 - the settings object.
 
 - 
getModelWorker
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
- Parameters:
 pamControlledUnitSettings-- 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
 
 - 
makeParams
Create the parameters class for the model. This can be overridden for bespoke parameters. classes.- Returns:
 - a new parameters class object.
 
 - 
isModelType
Description copied from interface:DLClassiferModelCheck whether a URI is compatible with a classification framework- Parameters:
 uri- - the URI to the model- Returns:
 - true if the model is compatible.
 
 - 
getFileExtensions
Get the file extensions for the model type.- Returns:
 - the file extension.
 
 
 -