Checks are made before deleting any folder.
Fixed creation of data folders when creating model.
Fixed a bug for computing the initial scale.
Added a function for applying the detector to a set of images (in a folder)
with different thresholds.