diff --git a/README.md b/README.md index 40f1d3f..7915e7e 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,3 @@ After building, the plugin will be in **build/neural_amp_modeler.lv2**. ### Optimization If you have a relatively modern x64 processor, you can pass ```-DUSE_NATIVE_ARCH=ON``` on your cmake command line to enable certain processor-specific optimizations. - -By default, NAM models are loading using the NAM Core implementation. It also supports loading NAM models using RTNeural, which generally performs better on x64 hardware. - -You can also alter the default model loading behavior with ```-DLSTM_PREFER_NAM=OFF``` (use RTNeural instead of NAM Core for NAM LSTM models) and ```-DWAVENET_PREFER_NAM=OFF``` (use RTNeural instead of NAM Core or NAM WaveNet models). diff --git a/deps/NeuralAudio b/deps/NeuralAudio index c6ac620..b04ccfc 160000 --- a/deps/NeuralAudio +++ b/deps/NeuralAudio @@ -1 +1 @@ -Subproject commit c6ac6206ca92d4fd6729f6d9bc1f8dc73509ad13 +Subproject commit b04ccfc4066d02a9f9848089c74bbd66e1849899 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 877b882..ed71304 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -48,24 +48,6 @@ if (DISABLE_DENORMALS) add_definitions(-DDISABLE_DENORMALS) endif (DISABLE_DENORMALS) -option(LSTM_PREFER_NAM "Always use NAM Core for NAM LSTM models" ON) - -if (LSTM_PREFER_NAM) - add_definitions(-DLSTM_PREFER_NAM) - message("Using NAM Core for LSTM models") -else() - message("Using RTNeural for LSTM models") -endif (LSTM_PREFER_NAM) - -option(WAVENET_PREFER_NAM "Always use NAM Core for NAM WaveNet models" ON) - -if (WAVENET_PREFER_NAM) - add_definitions(-DWAVENET_PREFER_NAM) - message("Using NAM Core for WaveNet models") -else() - message("Using RTNeural for WaveNet models") -endif (WAVENET_PREFER_NAM) - set_target_properties(neural_amp_modeler PROPERTIES CXX_VISIBILITY_PRESET hidden diff --git a/src/nam_plugin.cpp b/src/nam_plugin.cpp index 9af0d01..1c13c1b 100644 --- a/src/nam_plugin.cpp +++ b/src/nam_plugin.cpp @@ -13,21 +13,21 @@ namespace NAM { // prevent allocations on the audio thread currentModelPath.reserve(MAX_FILE_NAME + 1); - NeuralAudio::NeuralModel::SetLSTMLoadMode( -#ifdef LSTM_PREFER_NAM - NeuralAudio::PreferNAMCore -#else - NeuralAudio::PreferRTNeural -#endif - ); - - NeuralAudio::NeuralModel::SetWaveNetLoadMode( -#ifdef WAVENET_PREFER_NAM - NeuralAudio::PreferNAMCore -#else - NeuralAudio::PreferRTNeural -#endif - ); +// NeuralAudio::NeuralModel::SetLSTMLoadMode( +//#ifdef LSTM_PREFER_NAM +// NeuralAudio::PreferNAMCore +//#else +// NeuralAudio::PreferRTNeural +//#endif +// ); +// +// NeuralAudio::NeuralModel::SetWaveNetLoadMode( +//#ifdef WAVENET_PREFER_NAM +// NeuralAudio::PreferNAMCore +//#else +// NeuralAudio::PreferRTNeural +//#endif + //); } Plugin::~Plugin()