Ask Your Question
0

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

asked 2012-12-04 09:59:22 -0500

genliu777 gravatar image

updated 2012-12-04 10:04:16 -0500

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!?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-07-26 05:49:05 -0500

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 ?

edit flag offensive delete link more

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 ( 2017-02-19 00:39:12 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2012-12-04 09:59:22 -0500

Seen: 182 times

Last updated: Jul 26 '13