Ask Your Question

Can I pause traincascade? How?

asked 2014-11-02 15:02:40 -0500

Phinatic gravatar image

updated 2014-11-02 15:03:03 -0500

Hello all,

I am currently using the opencv_traincascade application to train a cascade classifier. I have read that it is possible to pause the program (and even use the intermediate result). How should I go about doing this? Can I just kill the program (ctrl+c)? And how do I continue where I left off later?

I just want to make sure I don't lose all of my data- it has been training for well over a day so far.

Thanks in advance.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-11-02 16:40:21 -0500

_chris gravatar image

If you ctrl-c the program it will stop, leaving behind the partial xml files in the directory you specified. To continue with the training later, just run the traincascade with IDENTICAL parameters (don't change pictures either). It will continue on from the latest xml file. Partial stages will be re-evaluated.

edit flag offensive delete link more



As mentioned the only downside to this is loosing the last stage that was calculating, and since time increases exponentially, this will be a big chunk of the training time.

StevenPuttemans gravatar imageStevenPuttemans ( 2014-11-03 03:35:23 -0500 )edit

Question Tools


Asked: 2014-11-02 15:02:40 -0500

Seen: 1,088 times

Last updated: Nov 02 '14