Ask Your Question
1

Can I pause traincascade? How?

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

Phinatic gravatar image

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

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
3

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

_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

Comments

1

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 -0600 )edit

Question Tools

Stats

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

Seen: 1,319 times

Last updated: Nov 02 '14