ANN_MLP GetParams returns default values (Bug #4094)
Description
ANN_MLP::Params params = m_classifier->getParams();
returns default params, even m_classifier is already loaded
Associated revisions
Merge pull request #4094 from kashefy:Mat_push_back_MatExpr_bug_4340
History
Updated by Bruno Nascimento about 10 years ago
layers size is not being retrived correctly you should consider to add on "ann_mlp.cpp" function "void read( const FileNode& fn )" something like:
params.layerSizes = Mat_<int>(_layer_sizes, true);
after read_params(fn);
- Status changed from New to Incomplete
Updated by Maksim Shabunin almost 10 years ago
- Target version changed from 3.0-beta to 3.0
Updated by Maksim Shabunin almost 10 years ago
Can not reproduce with the latest master branch:
Ptr<ANN_MLP> ann = ANN_MLP::create(); ann->setLayerSizes(layer_sizes); ann->save(fname); cout << "Set " << ann->getLayerSizes() << endl; Ptr<ANN_MLP> new_ann = Algorithm::load<ANN_MLP>(fname); cout << "Get " << new_ann->getLayerSizes() << endl;
Layer sizes are read correctly.
Can you, please, check it again?
- Priority changed from Normal to Low
- Assignee set to Maksim Shabunin
- Category set to ml
- Target version changed from 3.0 to 3.1
Updated by Maksim Shabunin over 9 years ago
Issue has been transferred to GitHub: https://github.com/Itseez/opencv/issues/4896