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
When using HISE to load and test a TensorFlow model, everything works correctly in the editor. However, when packaging the app for distribution, it crashes during the JSON parsing process. This issue occurs even with the official NeuralNetworkExample from the HISE tutorial repository.
Steps to Reproduce:
Load a TensorFlow model in HISE using the NeuralNetworkExample.
Test the model in the HISE editor (works as expected).
Attempt to package the project for distribution.
Observe the crash during the execution process.
Observed Behavior:
The application crashes during packaging with the following error trace in the json.hpp file (line 21107):
// at only works for objects
if (JSON_HEDLEY_UNLIKELY(!is_object()))
{
JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this)); -----> HERE
}
Call Stack:
Line 608, model_loader.h:
/** Creates a neural network model from a json stream. */
template <typename T>
std::unique_ptr<Model<T>> parseJson(const nlohmann::json& parent, const bool debug = false)
{
auto shape = parent.at("in_shape"); ----> HERE
...}
Line 326, hi_neural.cpp:
TensorFlowModel(const var& obj)
{
auto s = JSON::toString(obj, false).toStdString();
modelData = nlohmann::json::parse(s);
model = RTNeural::json_parser::parseJson<float>(modelData); -----> HERE
numInputs = model->getInSize();
numOutputs = model->getOutSize();
model->reset();
}
Expected Behavior:
The app should successfully package and run the TensorFlow model without issues, as it does in the HISE editor.
Description:
When using HISE to load and test a TensorFlow model, everything works correctly in the editor. However, when packaging the app for distribution, it crashes during the JSON parsing process. This issue occurs even with the official NeuralNetworkExample from the HISE tutorial repository.
Steps to Reproduce:
Observed Behavior:
The application crashes during packaging with the following error trace in the
json.hpp
file (line 21107):Call Stack:
Line 608,
model_loader.h
:Line 326,
hi_neural.cpp
:Expected Behavior:
The app should successfully package and run the TensorFlow model without issues, as it does in the HISE editor.
Environment:
HISE Version: 4.1.0
Operating System: [Windows 11/macOS Sequoia]
Please let me know if any additional details or files are required to assist in reproducing the issue.
The text was updated successfully, but these errors were encountered: