mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
Support loading old models in ML module
- added test for loading legacy files - added version to new written models - fixed loading of several fields in some models - added generation of new fields from old data
This commit is contained in:
@@ -898,7 +898,7 @@ public:
|
||||
|
||||
CV_Assert( m > 0 ); // if m==0, vi is an ordered variable
|
||||
const int* cmap = &catMap.at<int>(ofs[0]);
|
||||
bool fastMap = (m == cmap[m] - cmap[0]);
|
||||
bool fastMap = (m == cmap[m - 1] - cmap[0] + 1);
|
||||
|
||||
if( fastMap )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user