Proteus

Guitar amp and pedal capture plugin using neural networks
Log | Files | Refs | Submodules | README

commit 5aaabbf397e27af851f6e7f707c62058c4017610
parent 18504d514ebe2b1fcc4026156f6d05052bb8e6a1
Author: Keith Bloemer <32459398+GuitarML@users.noreply.github.com>
Date:   Mon,  7 Nov 2022 10:09:31 -0600

Update RTNeuralLSTM.cpp
Diffstat:
Msrc/RTNeuralLSTM.cpp | 16----------------
1 file changed, 0 insertions(+), 16 deletions(-)

diff --git a/src/RTNeuralLSTM.cpp b/src/RTNeuralLSTM.cpp @@ -55,21 +55,6 @@ void RT_LSTM::load_json(const char* filename) nlohmann::json weights_json; i2 >> weights_json; - // Check that format is correct - /*/ - int hidden_size_temp = 0; - std::string network; - try { - hidden_size_temp = weights_json["/model_data/hidden_size"_json_pointer]; - network = weights_json["/model_data/unit_type"_json_pointer]; - throw(hidden_size_temp); - } - catch (int hidden_size_temp) { - return; - } - */ - - //if (hidden_size_temp == 40 && network == "LSTM") { // Get the input size of the JSON file int input_size_json = weights_json["/model_data/input_size"_json_pointer]; input_size = input_size_json; @@ -84,7 +69,6 @@ void RT_LSTM::load_json(const char* filename) else if (input_size == 3) { set_weights(&model_cond2, filename); } - //} }