import process.Conf;
import process.training.Classifier;


public class Main {
    public static void main(String[] args) {

        // TODO : TO CONSTANTS
        float overallTargetDetectionRate = 0.80f;
        float overallTargetFalsePositiveRate = 0.000001f;
        float targetDetectionRate = 0.995f;
        float targetFalsePositiveRate = 0.5f;

        if (Conf.USE_CUDA)
            Conf.haarExtractor.setUp(19, 19);

        if (Conf.haarExtractor != null)
            Conf.haarExtractor.freeCuda();

        Classifier classifier = new Classifier("data/trainset", "data/testset", 19, 19);
        classifier.train(overallTargetDetectionRate, overallTargetFalsePositiveRate, targetDetectionRate, targetFalsePositiveRate);
    }
}

@@ -426,92 +426,8 @@
 );%0A%0A
-        if (Conf.haarExtractor != null)%0A            Conf.haarExtractor.freeCuda();%0A%0A
     
@@ -643,16 +643,101 @@
 eRate);%0A
+%0A        if (Conf.haarExtractor != null)%0A            Conf.haarExtractor.freeCuda();%0A%0A
     %7D%0A%7D%0A

FIX free cuda after we use it and not before