You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (graphFilename.find("discogs-maest-20s-") != std::string::npos) {
116
-
E_INFO("TensorFlowPredictMAEST: The default `patchSize` is not suitable according to the graph filename `" << graphFilename.c_str() << "`. Setting it to 1258, which is adequate for the 20s model.");
117
-
patchSize = 1258;
116
+
E_INFO("TensorFlowPredictMAEST: The default `patchSize` is not suitable according to the graph filename `" << graphFilename.c_str() << "`. Setting it to 1256, which is adequate for the 20s model.");
E_INFO("TensorFlowPredictMAEST: The default `patchSize` is not suitable according to the graph filename `" << graphFilename.c_str() << "`. Setting it to 626, which is adequate for the 10s model.");
Copy file name to clipboardExpand all lines: src/algorithms/machinelearning/tensorflowpredictmaest.h
+4-4
Original file line number
Diff line number
Diff line change
@@ -63,8 +63,8 @@ class TensorflowPredictMAEST : public AlgorithmComposite {
63
63
voiddeclareParameters() {
64
64
declareParameter("graphFilename", "the name of the file from which to load the TensorFlow graph", "", "");
65
65
declareParameter("savedModel", "the name of the TensorFlow SavedModel. Overrides parameter `graphFilename`", "", "");
66
-
declareParameter("input", "the name of the input node in the TensorFlow graph", "", "serving_default_melspectrogram");
67
-
declareParameter("output", "the name of the node from which to retrieve the output tensors", "", "StatefulPartitionedCall");
66
+
declareParameter("input", "the name of the input node in the TensorFlow graph", "", "melspectrogram");
67
+
declareParameter("output", "the name of the node from which to retrieve the output tensors", "", "Identity");
68
68
declareParameter("isTrainingName", "the name of an additional input node to indicate the model if it is in training mode or not. Leave it empty when the model does not need such input", "", "");
69
69
declareParameter("patchHopSize", "the number of frames between the beginnings of adjacent patches. 0 to avoid overlap", "[0,inf)", 1875);
70
70
declareParameter("lastPatchMode", "what to do with the last frames: `repeat` them to fill the last patch or `discard` them", "{discard,repeat}", "discard");
@@ -116,8 +116,8 @@ class TensorflowPredictMAEST : public Algorithm {
116
116
voiddeclareParameters() {
117
117
declareParameter("graphFilename", "the name of the file from which to load the TensorFlow graph", "", "");
118
118
declareParameter("savedModel", "the name of the TensorFlow SavedModel. Overrides parameter `graphFilename`", "", "");
119
-
declareParameter("input", "the name of the input nodes in the Tensorflow graph", "", "serving_default_melspectrogram");
120
-
declareParameter("output", "the name of the node from which to retrieve the output tensors", "", "StatefulPartitionedCall");
119
+
declareParameter("input", "the name of the input nodes in the Tensorflow graph", "", "melspectrogram");
120
+
declareParameter("output", "the name of the node from which to retrieve the output tensors", "", "Identity");
121
121
declareParameter("isTrainingName", "the name of an additional input node indicating whether the model is to be run in a training mode (for models with a training mode, leave it empty otherwise)", "", "");
122
122
declareParameter("patchHopSize", "number of frames between the beginnings of adjacent patches. 0 to avoid overlap", "[0,inf)", 1875);
123
123
declareParameter("lastPatchMode", "what to do with the last frames: `repeat` them to fill the last patch or `discard` them", "{discard,repeat}", "discard");
0 commit comments