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
The CTrainNodeCvRF::save() / CTrainNodeCvRF::load() seems to not working.
When loading the training data (saved before with CTrainNodeCvRF::save() function) with the CTrainNodeCvRF::load() function, the random forest appears to be empty and the first call of the CTrainNodeCvRF::getNodePotentials() function causes an exception.
However, it is possible to successfully load the training data, which was saved by the DGM v.1.5.0.
In order to reproduce, please insert into the Demo Train the code: nodeTrainer->save("D:\\"); nodeTrainer->reset(); nodeTrainer->load("D:\\");
after the line nodeTrainer->train();
The text was updated successfully, but these errors were encountered:
After a short investigaton, it is appeared that this bug is related to OpenCV library, which is responsible for serialization. The DGM v.1.5.1 and DGM v.1.5.2 uses OpenCV v.3.2.0, while the DGM v.1.5.0 used OpenCV v.3.1.0. The data files, serialized with the OpenCV v.3.1.0 are still possible to read, using the latest version. The only difference with the data files, serialized with the OpenCV v.3.2.0 is in the file header:
The CTrainNodeCvRF::save() / CTrainNodeCvRF::load() seems to not working.
When loading the training data (saved before with CTrainNodeCvRF::save() function) with the CTrainNodeCvRF::load() function, the random forest appears to be empty and the first call of the CTrainNodeCvRF::getNodePotentials() function causes an exception.
However, it is possible to successfully load the training data, which was saved by the DGM v.1.5.0.
In order to reproduce, please insert into the Demo Train the code:
nodeTrainer->save("D:\\");
nodeTrainer->reset();
nodeTrainer->load("D:\\");
after the line
nodeTrainer->train();
The text was updated successfully, but these errors were encountered: