Class OrcaSpotParams2
java.lang.Object
rawDeepLearningClassifier.dlClassification.orcaSpot.OrcaSpotParams2
- All Implemented Interfaces:
Serializable
,Cloneable
Stored settings for the OrcaSpot module.
- Author:
- Jamie Macaulay
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionNon user changeableThe location of .exe file that runs the Deep Learning classifier.boolean
Use the graphics card.The hop size to use in seconds (This should be set the same as length of input file and is not use changeable)The classification mode.Number of workers?The sample rate in samples per secondThe master path to the segmentor python folder.The length of audio to analyse in seconds (This should be set the same as length of input file and is not user changeable);static final long
The threshold to apply to the initial prediction stageThe threshold to apply to the later classification stage.boolean
Use the classifierboolean
True to use the detector -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
getcuda()
Detection and Classification ModelsPath to the log for OrcaSpot.getMode()
Get the current classification mode.Get the main prediction script for running the detector and classifier.Get the path to the PythonExe file in the correct virtual environment.Get the sample rate in samples per secondAudio Paramsvoid
setcuda
(boolean cuda) void
setHop_size
(String hop_size) void
setSeq_len
(String seq_len) void
setThreshold
(String threshold) void
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
segmenterMasterPath
The master path to the segmentor python folder. -
useDetector
public boolean useDetectorTrue to use the detector -
useClassifier
public boolean useClassifierUse the classifier -
threshold
The threshold to apply to the initial prediction stage -
threshold2
The threshold to apply to the later classification stage. -
cuda
public boolean cudaUse the graphics card. -
num_workers
Number of workers? -
audio_file
Non user changeable -
seq_len
The length of audio to analyse in seconds (This should be set the same as length of input file and is not user changeable); -
hop_size
The hop size to use in seconds (This should be set the same as length of input file and is not use changeable) -
classiferFile
The location of .exe file that runs the Deep Learning classifier. -
mode
The classification mode. 0 means only segmentation Orca no Orca 1 means segmentation and classification Orca; Type n something, 2 means only Classification Type n something. -
sampleRate
The sample rate in samples per second
-
-
Constructor Details
-
OrcaSpotParams2
public OrcaSpotParams2()
-
-
Method Details
-
getMode
Get the current classification mode. 0 means only segmentation Orca no Orca 1 means segmentation and classification Orca; Type n something, 2 means only Classification Type n something. return the classification mode -
getSample_rate
Get the sample rate in samples per second- Returns:
- the sample rate.
-
getThreshold
-
getThreshold2
-
setThreshold
-
getPythonExe
Get the path to the PythonExe file in the correct virtual environment.- Returns:
- the Python exe file path.
-
getPredict_script
Get the main prediction script for running the detector and classifier.- Returns:
- the prediction script file path.
-
getClass_script
-
getSegmenter_script
-
getLog_Path
Path to the log for OrcaSpot.- Returns:
-
getDetectorModel
Detection and Classification Models -
getClassifierModel
-
getSeq_len
Audio Params -
setSeq_len
-
getHop_size
-
setHop_size
-
getcuda
-
setcuda
public void setcuda(boolean cuda) -
getNum_workers
-
clone
-
updateAllPaths
public void updateAllPaths()
-