Ask Your Question
0

big model xml file,trained by CvRTrees, load fails!

asked Dec 4 '12

genliu777 gravatar image

updated Dec 4 '12

i train a CvRTrees, and get the conreponding model writen in xml format, which is too big over 1.6G, but is very good for my project.

now, when i reload the model to predict new data, it fails: runtime error!

early i tried the adaboost. in which condition model file was more than 700M and same thing happened: model loading by load() function failed!

so, it is again and again to retrain the model as long as i need to deal with new data!

is it a bug about load() function of ML algrithms in OpenCV, which can not deal with too big xml file containing model data???

does anybody has any solution!?

Preview: (hide)

1 answer

Sort by » oldest newest most voted
0

answered Jul 26 '13

I have similar problem. I have trained real boost with huge DS (around 33.000 samples, took 9h) and now when I try to load the XML file it crashes. Any idea ?

Preview: (hide)

Comments

can you tell me how exactly did you load the trained model (.xml file) ? I am also using CvRTrees and I have saved the trained model correctly. What's the exact command to load the model?

GAGAN gravatar imageGAGAN (Feb 19 '17)edit

Question Tools

Stats

Asked: Dec 4 '12

Seen: 447 times

Last updated: Jul 26 '13