gWOLF3 / rscnn

A cnn framework on Android platform, implemented with RenderScript and java, support MobileNet-SSD and faster-rcnn. No JNI/C++ or thirdparty dependencies.
MIT License
0 stars 1 forks source link

Cookies output does not match test case #5

Closed gWOLF3 closed 4 years ago

gWOLF3 commented 4 years ago

Expected Output:

Actual Output : Confidence Threshold: .3

Confidence Threshold: none

gWOLF3 commented 4 years ago

Model view (w/ Netron):

Screen Shot 2019-09-19 at 1 33 40 PM

model.tar.gz: out.tar.gz

gWOLF3 commented 4 years ago

BGR & scale values seem to be set correctly.

Expected:

BGR: {127.5f, 127.5f, 127.5f}
scale: 0.007843f

new MobileNetSSD passes expected on instantiation:

MobileNetSSD.java

   public MobileNetSSD(RenderScript renderScript, AssetManager assetManager, String modelDir) throws IOException {
        float[] meanValue = new float[]{127.5f,127.5f,127.5f};
        PreProcess preProcess = new PreProcess(meanValue, 0.007843f);
        PostProcess postProcess = new SSDPostProcess();
        this.convNet = new ConvNet(renderScript, assetManager, modelDir, preProcess, postProcess);
    }
}

default values are found in PreProcess.java:

public class PreProcess {
    protected ROI roi = null;
    protected float[] meanValueBGR = new float[]{127.5f, 127.5f, 127.5f};
    protected float scale1 = 0.007843f;
    protected float scale = 0.007843f;

This get called in MainActivity.java onCreate():

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        rs = RenderScript.create(this);
        try {
            AssetManager assetManager = getAssets();
            String[] fileList = assetManager.list(modelPath);
            if (fileList.length != 0){
                detector = new MobileNetSSD(rs, assetManager, modelPath);
            }
            else {
                String modelDir = Environment.getExternalStorageDirectory().getPath() + "/" + modelPath;
                detector = new MobileNetSSD(rs, null, modelDir);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
        setContentView(R.layout.activity_main);
    }
gWOLF3 commented 4 years ago

What:

Problem exists in Chuanqi's NMS implementation. -> see NMS.java

We can validate by removing NMS entirely:

Next steps:

gWOLF3 commented 4 years ago

NMS params: TopK: 100 Thresh: 20.45 (DectectionOutput.java)

Let's break down what's happening here:

List<float[]> boxAndScore = new ArrayList<>();
        for(int i=1;i<numClasses;i++){//skip the background class
            float[][] box1 = boxes[0].clone();
            NMS.sortScores(box1,scores[i]);
            int[] index = NMS.nmsScoreFilter(box1, scores[i], nmsParamTopK, nmsParamNmsThreshold);
            Log.d("NMS Params: ","TopK: "+nmsParamTopK+" Thresh: "+nmsParamNmsThreshold);
            if(index.length>0){
                for(int id:index){
                    if(scores[i][id] < confidenceThreshold) {
                        Log.d("scores","="+" in class: "+i+" the score: "+scores[i][id]+" is less than conf-thresh: "+confidenceThreshold);
                        Log.d("conf-break", "hit!");
                        break;
                    }
                    if(Float.isNaN(scores[i][id])){//skip the NaN score, maybe not correct
                        continue;
                    }
                    float[] boxScore = new float[6];
                    for(int j=0;j<4;j++)
                        boxScore[j] = box1[id][j];//x1,y1,x2,y2
                    boxScore[4] = i;              //class index
                    boxScore[5] = scores[i][id];  //possibility
                    boxAndScore.add(boxScore);
                }
            }
        }
  1. NMS.sortScores(box1,scores[i]); first, we sort the NMS scores

  2. NMS.nmsScoreFilter(box1, scores[i], nmsParamTopK, nmsParamNmsThreshold); next, we run a filter based on that threshold - i believe this is where most of the boxes we see get filtered out.

  3. if(scores[i][id] < confidenceThreshold) finally, we also filter if the scores are less than the confidence threshold... at least 3:

    2019-09-20 17:28:03.055 21338-21338/com.rscnn.example D/scores: = in class: 1 the score: 0.24996498 is less than conf-thresh: 0.25
    2019-09-20 17:28:03.060 21338-21338/com.rscnn.example D/scores: = in class: 2 the score: 0.17191516 is less than conf-thresh: 0.25
    2019-09-20 17:28:03.066 21338-21338/com.rscnn.example D/scores: = in class: 3 the score: 0.20076478 is less than conf-thresh: 0.25
gWOLF3 commented 4 years ago

Dive in deeper in our NMS class: NMS.java

  1. Let's analyze NMS.sortScores(box1,scores[i]);:
public static void sortScores(float[][] anchors, float[] scores){
        quickSortScore(anchors, scores, 0, scores.length - 1);
    }

goes to Chuanqi custom quick sort! 😸 ->

private static void quickSortScore(float[][] anchors, float[] scores, int left, int right) {
        int dp;
        if (left < right) {
            dp = partitionScore(anchors, scores, left, right);
            quickSortScore(anchors, scores, left, dp - 1);
            quickSortScore(anchors, scores, dp + 1, right);
        }
    }
  1. NMS.nmsScoreFilter(box1, scores[i], nmsParamTopK, nmsParamNmsThreshold);
public static int[] nmsScoreFilter(float[][] anchors, float[] score, int topN, float thresh){
        int length = anchors.length;
        int count = 0;

        for(int i=0;i<length;i++){
            if(score[i]==INVALID_ANCHOR){
                continue;
            }
            if (++count >= topN) {
                break;
            }
            for(int j=i+1;j<length;j++){
                if(score[j]!=INVALID_ANCHOR) {
                    if (computeOverlapAreaRate(anchors[i], anchors[j]) > thresh) {
                        score[j] = INVALID_ANCHOR;
                    }
                }
            }
        }
        int outputIndex[] = new int[count];
        int j = 0;
        for(int i=0;i<length && count>0;i++){
            if(score[i]!=INVALID_ANCHOR){
                outputIndex[j++] = i;
                count--;
            }
        }
        return outputIndex;
    }
gWOLF3 commented 4 years ago

NMS thresh .52 gives ~desired output:

.5f:

.45f:

next steps:

log anchor ids on .52f nms thresh run. compare to anchor id's on .45 run.

insert conditional log statement on filter to find where these anchor ids are being suppressed.

matt-ny commented 4 years ago

These are the class ids: "class_to_vector": [ { "class": "background" }, { "class": "Cookie" }, { "class": "BurntCookie" }, { "class": "CrackedCookie" } ],

gWOLF3 commented 4 years ago

classes loop-> (1,2,3)

NMS-THRESH=.52

all scores:

2019-09-27 17:32:16.388 31050-31050/com.rscnn.example D/all-scores-return: [0.9921379, 0.9882022, 0.9692725, 0.9653902, 0.95097107, 0.9478194, 0.9455961, 0.89910007, 0.86257595, 0.82782936, 0.63576835, 0.59175444, 0.5871006, 0.51704973, 0.49263686, 0.48147893, 0.4704813, 0.45749563, 0.45316035, 0.4424974, 0.4280675, 0.40365213, 0.3989556, 0.39866418, 0.39427352, 0.3917854, 0.37708008, 0.3673867, 0.3627794, 0.3249483, 0.3174942, 0.31424868, 0.30415773, 0.2973146, 0.28075746, 0.2801783, 0.27268383, 0.24996498, 0.24845287, 0.2421967, 0.23771863, 0.22285648, 0.21254358, 0.19916539, 0.18236245, 0.18028283, 0.17488472, 0.16996738, 0.16243026, 0.16121422, 0.15505186, 0.1490905, 0.14424005, 0.118649654, 0.11144858, 0.11082382, 0.10769715, 0.10441798, 0.09671778, 0.09168404, 0.08668481, 0.07548362, 0.07232217, 0.071041085, 0.07103546, 0.070744306, 0.068617314, 0.060484167, 0.055636417, 0.055167273, 0.05460931, 0.05238351, 0.0514176, 0.04893457, 0.04718397, 0.04618959, 0.04518033, 0.044764824, 0.04404951, 0.042002283, 0.04127494, 0.038735647, 0.03346979, 0.032090895, 0.026300639, 0.025949014, 0.025557313, 0.025465557, 0.025004547, 0.024690162, 0.024461325, 0.024215601, 0.024208257, 0.023579536, 0.023567824, 0.023426253, 0.023377841, 0.022565091, 0.0208805, 0.020781944, 0.019582376, 0.01899754, 0.018408017, 0.01826559, 0.017902063, 0.017854488, 0.017580885, 0.017367957, 0.017279342, 0.017176205, 0.016858699, 0.016795322, 0.016559098, 0.016507946, 0.01641245, 0.016208854, 0.016196622, 0.016111635, 0.015806688, 0.014598017, 0.014569837, 0.0144066885, 0.014310679, 0.014208163, 0.014013717, 0.0136156455, 0.013472294, 0.01341769, 0.0134056425, 0.013378509, 0.013373954, 0.013246076, 0.012890986, 0.012744603, 0.012688231, 0.012577777, 0.012510576, 0.012376618, 0.012134384, 0.0120332055, 0.011934768, 0.011899564, 0.011631892, 0.011469765, 0.0113175, 0.011259124, 0.011099396, 0.011091305, 0.011022442, 0.010607276, 0.010578758, 0.010501049, 0.010481291, 0.010364949, 0.010278584, 0.010274468, 0.010236361, 0.010058429, 0.010024577, 0.009975195, 0.009857031, 0.009842001, 0.009754656, 0.009676639, 0.00955536, 0.009338006, 0.009193493, 0.0091599235, 0.009159581, 0.009134919, 0.009126609, 0.009002664, 0.008952477, 0.008926979, 0.008878941, 0.008798529, 0.008789088, 0.008717506, 0.008668625, 0.00861738, 0.008614585, 0.00859492, 0.008587858, 0.00853996, 0.008530464, 0.008463997, 0.008442862, 0.008253807, 0.008174792, 0.008072551, 0.008065715, 0.008021001, 0.007956303, 0.007904931, 0.007887732, 0.007884934, 0.0078401035, 0.0077955015, 0.007792521, 0.007761261, 0.0077408263, 0.0077297026, 0.007729347, 0.007705859, 0.007621307, 0.0076015336, 0.0075934865, 0.0075674527, 0.0075625204, 0.0075333132, 0.0074996534, 0.0073872833, 0.0073560732, 0.0073528686, 0.007350577, 0.007350082, 0.0073372535, 0.0073362496, 0.007280593, 0.007105456, 0.007059295, 0.007038118, 0.0070162634, 0.006969866, 0.0069566946, 0.006954197, 0.0069071623, 0.006827317, 0.0068249325, 0.0067780493, 0.006718113, 0.0067085223, 0.006601923, 0.006520664, 0.006497094, 0.006486299, 0.0063843676, 0.0063201035, 0.006257854, 0.0062323064, 0.006206692, 0.0061959773, 0.0061592655, 0.0061331396, 0.0061092423, 0.0060351253, 0.005995731, 0.00598195, 0.005981075, 0.0059633246, 0.0059441715, 0.005821321, 0.0057747536, 0.005768966, 0.0057531153, 0.005701309, 0.005687741, 0.005680228, 0.005672272, 0.005655182, 0.0056014042, 0.005599587, 0.0055993665, 0.0055985013, 0.0055945916, 0.005586303, 0.005576456, 0.00551992, 0.0054850397, 0.0054781893, 0.00543432, 0.0053753764, 0.005373958, 0.005340666, 0.0053308457, 0.0053296713, 0.005307099, 0.0053034946, 0.005224015, 0.005186325, 0.0051179347, 0.0050944444, 0.005082333, 0.005073789, 0.005070257, 0.0050287424, 0.005017155, 0.005016229, 0.005009633, 0.005009205, 0.0049947426, 0.0049768696, 0.00494409, 0.0049356315, 0.0049014804, 0.004879949, 0.004861225, 0.0048551415, 0.0048419386, 0.0048360243, 0.004795187, 0.004780251, 0.004754379, 0.004740082, 0.004735958, 0.004727382, 0.004701285, 0.004683773, 0.0046734563, 0.004608428, 0.0046037203, 0.004603654, 0.0045809355, 0.004546752, 0.0045258277, 
2019-09-27 17:32:16.392 31050-31050/com.rscnn.example D/scores: = in class: 1 the score: 0.025465557 is less than conf-thresh: 0.25
2019-09-27 17:32:16.394 31050-31050/com.rscnn.example D/all-scores-return: [0.9958949, 0.9957687, 0.9916886, 0.9873322, 0.98384035, 0.9773979, 0.96657753, 0.9334102, 0.9262339, 0.9088533, 0.9000841, 0.8947375, 0.85552466, 0.8510183, 0.81527627, 0.7974898, 0.79718935, 0.6956615, 0.62939686, 0.42023847, 0.35518417, 0.26296756, 0.17191516, 0.11100816, 0.057420783, 0.045133073, 0.042924654, 0.042778496, 0.042068, 0.04062021, 0.037717488, 0.031916793, 0.030176355, 0.02858035, 0.025887046, 0.023492068, 0.017598089, 0.017577404, 0.015204241, 0.014905668, 0.014238418, 0.013638443, 0.013014796, 0.012959475, 0.011860298, 0.011830981, 0.010974415, 0.010563013, 0.010285663, 0.010125785, 0.008500684, 0.0075058015, 0.007332701, 0.0070900586, 0.0068948637, 0.0068082493, 0.006726833, 0.0065865936, 0.006312486, 0.006170887, 0.0059871534, 0.005970449, 0.0059521375, 0.0058448254, 0.005808204, 0.0054488946, 0.0051254453, 0.005119734, 0.005037748, 0.004644105, 0.004582513, 0.0045254016, 0.00441719, 0.004335351, 0.004333858, 0.0042741457, 0.004187479, 0.004101693, 0.004053845, 0.004042193, 0.004021952, 0.0040112156, 0.003973526, 0.0039230078, 0.003906922, 0.0038561742, 0.0038334664, 0.003807301, 0.0037259995, 0.0037251895, 0.0037029355, 0.0036979932, 0.0035881733, 0.0035785718, 0.003543194, 0.0035408, 0.0035396058, 0.003515878, 0.0035013652, 0.0034300343, 0.003418575, 0.003353108, 0.0032659094, 0.0032346863, 0.00321461, 0.00319825, 0.003186106, 0.0031835018, 0.0031418847, 0.0031271218, 0.0030917816, 0.0030825394, 0.003067525, 0.003061277, 0.0030371696, 0.0029983518, 0.0029744536, 0.0029499778, 0.002919738, 0.0028981043, 0.0028891824, 0.0028703515, 0.0028623298, 0.0028465367, 0.002843395, 0.0028343147, 0.0028063343, 0.002790731, 0.0027847046, 0.0027811367, 0.0027395496, 0.0027079799, 0.002703486, 0.0026674992, 0.0026646047, 0.002664068, 0.0026545338, 0.0026484472, 0.0026431489, 0.0026239573, 0.002597185, 0.002528536, 0.0025189114, 0.0025113253, 0.0024864103, 0.0024737285, 0.002469595, 0.0024551416, 0.0024389601, 0.0024360544, 0.0024178037, 0.0024143192, 0.0023998923, 0.002393678, 0.0023905039, 0.0023899868, 0.0023870592, 0.0023835197, 0.0023824, 0.0023695051, 0.0023655926, 0.002332031, 0.0023239586, 0.002304878, 0.002301845, 0.0023008364, 0.0022950135, 0.0022902568, 0.0022901716, 0.0022867408, 0.0022851492, 0.0022775664, 0.0022765414, 0.0022625176, 0.0022495002, 0.0022419977, 0.0022356047, 0.0022264693, 0.0022211592, 0.002197499, 0.0021913936, 0.0021771162, 0.0021663562, 0.0021619785, 0.0021455134, 0.0021327934, 0.002125762, 0.0020999468, 0.0020769513, 0.0020707378, 0.0020597083, 0.0020588199, 0.0020572313, 0.0020510629, 0.0020451182, 0.0020366819, 0.0020299982, 0.0020100023, 0.0020083555, 0.0020052572, 0.0019983163, 0.0019953682, 0.0019916864, 0.0019895532, 0.0019819147, 0.0019804835, 0.001969943, 0.0019576587, 0.0019406425, 0.0019340765, 0.0019330924, 0.0019311602, 0.0019271572, 0.0019260241, 0.0019045991, 0.0019030147, 0.0018871728, 0.0018757199, 0.0018638397, 0.0018603624, 0.0018574828, 0.0018490126, 0.0018399442, 0.0018312806, 0.001829102, 0.0018285037, 0.0018267344, 0.0018166362, 0.0018063588, 0.0018040494, 0.0017801061, 0.0017758373, 0.0017633707, 0.0017624471, 0.0017612259, 0.0017577042, 0.0017576094, 0.0017545365, 0.0017545081, 0.0017513937, 0.0017461253, 0.0017395847, 0.0017360921, 0.0017281849, 0.0017231737, 0.0017215016, 0.0017202492, 0.0017145013, 0.0017127432, 0.0017075881, 0.0016940305, 0.0016902516, 0.0016838032, 0.0016836061, 0.0016735704, 0.0016682994, 0.0016645559, 0.0016582585, 0.0016508675, 0.001643752, 0.0016387376, 0.0016342336, 0.001634168, 0.0016324054, 0.0016297767, 0.0016276888, 0.0016252967, 0.0016226725, 0.001621604, 0.0016171105, 0.0016153153, 0.0016069956, 0.0016018354, 0.0016008561, 0.0015862129, 0.0015847821, 0.0015836629, 0.0015761593, 0.0015567095, 0.0015525904, 0.0015523371, 0.0015522816, 0.0015443952, 0.0015430488, 0.001542108, 0.00153707, 0.0015291842, 0.0015268347, 0.0015234146, 0.0015233629, 0.0015214406, 0.0015141573, 0.0015139243, 0.0015097674, 0.0015092234, 0.0015068818, 0.0015027047, 0.0015003225, 0.0014926803, 0.0014919173, 0
2019-09-27 17:32:16.395 31050-31050/com.rscnn.example D/scores: = in class: 2 the score: 0.042924654 is less than conf-thresh: 0.25
2019-09-27 17:32:16.397 31050-31050/com.rscnn.example D/all-scores-return: [0.7494087, 0.55584806, 0.5226919, 0.4988744, 0.49015427, 0.48562247, 0.41905126, 0.3432142, 0.32743296, 0.31425327, 0.31411707, 0.31375015, 0.297462, 0.2762758, 0.2694861, 0.26576626, 0.2633074, 0.26083136, 0.25921732, 0.20076478, 0.19186692, 0.18076456, 0.17369446, 0.14837527, 0.14635153, 0.14512931, 0.14398915, 0.14359067, 0.1379949, 0.11334435, 0.112406224, 0.1099912, 0.103563644, 0.09487915, 0.08556694, 0.08512025, 0.07667999, 0.058270074, 0.050558276, 0.05050065, 0.050130635, 0.050045535, 0.049849533, 0.0477814, 0.047683828, 0.04692776, 0.046770185, 0.04573226, 0.04507315, 0.04406263, 0.043552175, 0.04334038, 0.037829604, 0.035937056, 0.032961596, 0.030140206, 0.027841367, 0.02768536, 0.027398264, 0.026444655, 0.026040632, 0.023839034, 0.023797495, 0.021654096, 0.017709918, 0.016288651, 0.015773037, 0.015436583, 0.014340063, 0.014339039, 0.014061014, 0.013811237, 0.013796884, 0.013235726, 0.012574818, 0.01218778, 0.012066439, 0.012039117, 0.011977208, 0.011832619, 0.011825627, 0.011603599, 0.01159653, 0.011175792, 0.010791887, 0.0105860885, 0.010540448, 0.010392993, 0.010387753, 0.010313846, 0.010256484, 0.010142175, 0.009955154, 0.00972899, 0.009661931, 0.009652625, 0.009417006, 0.009164763, 0.009045632, 0.008799179, 0.008684393, 0.008417488, 0.0083150305, 0.008185622, 0.008175325, 0.008039719, 0.007877343, 0.007755863, 0.007734673, 0.0077056447, 0.0076210666, 0.007591547, 0.0075458405, 0.007500726, 0.007388286, 0.007147544, 0.0071025295, 0.0069846697, 0.0068775024, 0.00673865, 0.0066405716, 0.006520986, 0.0065207197, 0.006451261, 0.0063833566, 0.006193333, 0.006169538, 0.0061269994, 0.005934909, 0.005921329, 0.0058580483, 0.0058502927, 0.0058287717, 0.0057634288, 0.0056199264, 0.0055743684, 0.0055654794, 0.0054833544, 0.005452377, 0.005417, 0.0053745774, 0.0053659747, 0.0053236247, 0.0053027766, 0.00526512, 0.0052376683, 0.0052002193, 0.0050129737, 0.0049567795, 0.0049408525, 0.0049001873, 0.0048148353, 0.004744891, 0.0046121553, 0.0045721233, 0.0045479094, 0.0044834, 0.004467066, 0.004389237, 0.0043730983, 0.004198744, 0.004156187, 0.0041499566, 0.004138831, 0.004129417, 0.0041092387, 0.0040864954, 0.004082575, 0.0040443437, 0.004031444, 0.0040300977, 0.004006264, 0.0039947396, 0.0038251523, 0.0037719614, 0.0037679798, 0.003752231, 0.0037251024, 0.0036394114, 0.0035953273, 0.00351695, 0.0034670206, 0.003449207, 0.0034322378, 0.0034046143, 0.0033779172, 0.0033771065, 0.00336797, 0.0033517373, 0.0033279331, 0.003293857, 0.0032891498, 0.0032835337, 0.003269219, 0.0032621024, 0.0032377928, 0.0032024684, 0.0031991077, 0.003197981, 0.0031178403, 0.0030850794, 0.0030581576, 0.0030533937, 0.0030242496, 0.0030145417, 0.0030032597, 0.0029981658, 0.0029736725, 0.0029555429, 0.002953968, 0.0029526942, 0.002921781, 0.0029110222, 0.0029064154, 0.002870062, 0.0028329839, 0.0028111683, 0.0027786137, 0.0027308234, 0.0027209246, 0.002697508, 0.002676217, 0.00265877, 0.0026510076, 0.0026498744, 0.0026420103, 0.0026414844, 0.0026384995, 0.002630711, 0.0026245678, 0.0026201247, 0.0026048915, 0.0025883506, 0.0025810653, 0.0025660517, 0.0025347907, 0.0025320635, 0.0025063942, 0.0024520578, 0.0024063373, 0.002395685, 0.002389197, 0.0023887595, 0.002379616, 0.0023783436, 0.002364181, 0.0023440255, 0.0023359961, 0.002309348, 0.002306812, 0.0022883376, 0.0022800502, 0.00227135, 0.0022644696, 0.0022585972, 0.002251059, 0.0022492302, 0.0022319695, 0.0022276249, 0.0022243424, 0.0022232453, 0.0022190015, 0.0022068133, 0.0021998012, 0.0021876644, 0.0021853975, 0.002177506, 0.0021732042, 0.0021621012, 0.0021588788, 0.00215832, 0.0021527016, 0.0021488864, 0.0021408873, 0.0021359634, 0.0021272255, 0.0021253815, 0.0021142208, 0.0021082775, 0.0020872676, 0.0020668153, 0.0020529751, 0.0020410777, 0.0020353675, 0.002025471, 0.001968812, 0.0019607432, 0.001954158, 0.0019514278, 0.0019407803, 0.001935841, 0.0019322591, 0.001931503, 0.0019305603, 0.001917406, 0.0019145336, 0.0019104833, 0.0019097576, 0.0018882691, 0.0018874613, 0.0018731562, 0.0018701934, 0.0018616434, 0.0018588343, 0.0018547911, 0.0018480
2019-09-27 17:32:16.397 31050-31050/com.rscnn.example D/scores: = in class: 3 the score: 0.14359067 is less than conf-thresh: 0.25

nms-survival-index (.52):

2019-09-27 17:32:16.392 31050-31050/com.rscnn.example D/survival-index: [0, 4, 10, 21, 24, 87, 156, 233, 607, 792, 955, 1871, 1909]
2019-09-27 17:32:16.395 31050-31050/com.rscnn.example D/survival-index: [0, 2, 26, 35, 48, 69, 196, 202, 216, 336, 452, 1577, 1665]
2019-09-27 17:32:16.397 31050-31050/com.rscnn.example D/survival-index: [0, 2, 9, 27, 58, 68, 234, 288, 338, 414, 840, 1388, 1880]

box[0]:

2019-09-27 17:32:16.383 31050-31050/com.rscnn.example D/box[0]:: [[0.0077227354, 0.024410179, 0.062107697, 0.07985686], [0.03595782, -8.5243955E-4, 0.10251018, 0.0493263], [-0.0010462739, 0.0666271, 0.042666424, 0.13266693], [0.06310173, 0.029934336, 0.124461986, 0.079972476], [0.08376785, 9.83825E-4, 0.16601914, 0.04766933], [0.040642984, 0.07187332, 0.09404119, 0.12464999], [0.12523349, 0.028358106, 0.19372444, 0.07393406], [0.12727349, 0.00866521, 0.23928906, 0.05615729], [0.11525061, 0.068370074, 0.15059528, 0.10449304], [0.2027533, 0.017761296, 0.25441748, 0.052887402], [0.1903672, 0.006292613, 0.28941298, 0.046034537], [0.18258162, 0.046936035, 0.20223956, 0.07296875], [0.24224599, 0.0098138135, 0.28981444, 0.04021226], [0.22385946, 8.433908E-4, 0.3038713, 0.032792076], [0.2294659, 0.032791372, 0.25661665, 0.062963195], [0.27997535, 0.013987884, 0.34967744, 0.04796701], [0.24989447, -0.0017348956, 0.3874744, 0.035474665], [0.28670126, 0.049333572, 0.31297362, 0.07273757], [0.34718427, 0.022365477, 0.40187243, 0.056728575], [0.3056404, 2.6068836E-4, 0.46079433, 0.041521177], [0.3420854, 0.056300025, 0.37463972, 0.08616341], [0.39292175, 0.024418192, 0.44276923, 0.06095761], [0.3787976, 0.0032314416, 0.5022669, 0.043360896], [0.37418684, 0.049378768, 0.40819612, 0.08247018], [0.46429297, 0.021517131, 0.5103846, 0.05769867], [0.45914537, 0.00465711, 0.57606524, 0.043100975], [0.4384139, 0.042899996, 0.47096124, 0.07760009], [0.5190468, 0.0028058272, 0.5700159, 0.0421353], [0.5173801, -1.7643534E-4, 0.6321701, 0.039168432], [0.49517405, 0.020020502, 0.526821, 0.0573678], [0.55570054, -0.014133515, 0.61863995, 0.030954896], [0.54178226, -0.0062104445, 0.68019664, 0.03569565], [0.5384138, 0.005632894, 0.5765938, 0.052832685], [0.5918686, -0.020976525, 0.6619932, 0.032334402], [0.5704309, -0.008291194, 0.7273847, 0.038425952], [0.5854482, -0.0047676675, 0.6315929, 0.056713957], [0.6636919, -0.008574435, 0.7179885, 0.039151587], [0.6352408, -0.007925643, 0.7729776, 0.037988156], [0.6521404, 0.0123149045, 0.6910105, 0.065092], [0.7073159, -0.0064269323, 0.7657188, 0.03946154], [0.6819115, -0.009368466, 0.8308105, 0.03617525], [0.69298744, 0.017410543, 0.7237599, 0.059592504], [0.75517356, -0.0067864023, 0.8194567, 0.039473902], [0.72680634, -0.01214973, 0.8747148, 0.035699986], [0.74556303, 0.0196769, 0.76940465, 0.05440498], [0.809173, -8.6285174E-4, 0.86416125, 0.031374328], [0.75195765, -0.011711504, 0.878284, 0.028650358], [0.8079705, 0.024042698, 0.83389413, 0.054742992], [0.8531573, -0.008475814, 0.9076644, 0.029767085], [0.8170582, -0.014261657, 0.91658485, 0.028873952], [0.85171074, 0.027194407, 0.87744373, 0.061960597], [0.8853555, -0.03219722, 0.94538295, 0.02438977], [0.85607874, -0.02362072, 0.9571264, 0.030853393], [0.87918913, -0.039861567, 0.9563608, 0.06837191], [0.9117974, -0.045810778, 1.0012645, 0.0793733], [0.9306711, -0.01685808, 1.0319456, 0.060938157], [0.93561435, -0.06852273, 1.0020466, 0.14341149], [0.020356592, 0.08559213, 0.09607844, 0.15090528], [0.0216202, 0.066951826, 0.123393774, 0.13130756], [0.005247617, 0.117335305, 0.057939142, 0.18892045], [0.056683194, 0.09686762, 0.14067715, 0.18017298], [0.06279507, 0.06265853, 0.1735139, 0.13626227], [0.032763332, 0.11766088, 0.12622005, 0.2279247], [0.10955073, 0.08474845, 0.18472044, 0.15840103], [0.10568232, 0.055292442, 0.24057692, 0.1349655], [0.0950619, 0.12781826, 0.14090465, 0.19373], [0.1750487, 0.08259806, 0.23912032, 0.15194571], [0.17086594, 0.060598213, 0.285759, 0.13078134], [0.16264004, 0.1299228, 0.18730086, 0.1803726], [0.22804166, 0.08393228, 0.2811357, 0.14694509], [0.22391547, 0.064711064, 0.30088443, 0.122244984], [0.22700483, 0.11350444, 0.264066, 0.18420807], [0.28179216, 0.08912535, 0.34364933, 0.15218918], [0.27798072, 0.06671324, 0.3824164, 0.12782314], [0.29095307, 0.14062755, 0.31768075, 0.18899669], [0.34934747, 0.10603493, 0.39736527, 0.15968618], [0.3461715, 0.07620047, 0.45631492, 0.13366812], [0.34724402, 0.14743972, 0.3785535, 0.19887918], [0.38045338, 0.111012265, 0.42771628, 0.16573347], [0.3893883, 0.07691798, 0.4869738, 0.13574699], [0.37
gWOLF3 commented 4 years ago

NMS-THRESH .45

survival-index:

2019-09-27 17:36:38.957 31601-31601/com.rscnn.example D/survival-index: [0, 4, 10, 112, 137, 607, 1241, 1909]
2019-09-27 17:36:38.959 31601-31601/com.rscnn.example D/survival-index: [0, 2, 35, 70, 130, 202, 479, 974, 1257, 1906]
2019-09-27 17:36:38.962 31601-31601/com.rscnn.example D/survival-index: [0, 9, 67, 124, 373, 1333, 1860]

scores:

2019-09-27 17:36:38.953 31601-31601/com.rscnn.example D/all-scores-return: [0.9921379, 0.9882022, 0.9692725, 0.9653902, 0.95097107, 0.9478194, 0.9455961, 0.89910007, 0.86257595, 0.82782936, 0.63576835, 0.59175444, 0.5871006, 0.51704973, 0.49263686, 0.48147893, 0.4704813, 0.45749563, 0.45316035, 0.4424974, 0.4280675, 0.40365213, 0.3989556, 0.39866418, 0.39427352, 0.3917854, 0.37708008, 0.3673867, 0.3627794, 0.3249483, 0.3174942, 0.31424868, 0.30415773, 0.2973146, 0.28075746, 0.2801783, 0.27268383, 0.24996498, 0.24845287, 0.2421967, 0.23771863, 0.22285648, 0.21254358, 0.19916539, 0.18236245, 0.18028283, 0.17488472, 0.16996738, 0.16243026, 0.16121422, 0.15505186, 0.1490905, 0.14424005, 0.118649654, 0.11144858, 0.11082382, 0.10769715, 0.10441798, 0.09671778, 0.09168404, 0.08668481, 0.07548362, 0.07232217, 0.071041085, 0.07103546, 0.070744306, 0.068617314, 0.060484167, 0.055636417, 0.055167273, 0.05460931, 0.05238351, 0.0514176, 0.04893457, 0.04718397, 0.04618959, 0.04518033, 0.044764824, 0.04404951, 0.042002283, 0.04127494, 0.038735647, 0.03346979, 0.032090895, 0.026300639, 0.025949014, 0.025557313, 0.025465557, 0.025004547, 0.024690162, 0.024461325, 0.024215601, 0.024208257, 0.023579536, 0.023567824, 0.023426253, 0.023377841, 0.022565091, 0.0208805, 0.020781944, 0.019582376, 0.01899754, 0.018408017, 0.01826559, 0.017902063, 0.017854488, 0.017580885, 0.017367957, 0.017279342, 0.017176205, 0.016858699, 0.016795322, 0.016559098, 0.016507946, 0.01641245, 0.016208854, 0.016196622, 0.016111635, 0.015806688, 0.014598017, 0.014569837, 0.0144066885, 0.014310679, 0.014208163, 0.014013717, 0.0136156455, 0.013472294, 0.01341769, 0.0134056425, 0.013378509, 0.013373954, 0.013246076, 0.012890986, 0.012744603, 0.012688231, 0.012577777, 0.012510576, 0.012376618, 0.012134384, 0.0120332055, 0.011934768, 0.011899564, 0.011631892, 0.011469765, 0.0113175, 0.011259124, 0.011099396, 0.011091305, 0.011022442, 0.010607276, 0.010578758, 0.010501049, 0.010481291, 0.010364949, 0.010278584, 0.010274468, 0.010236361, 0.010058429, 0.010024577, 0.009975195, 0.009857031, 0.009842001, 0.009754656, 0.009676639, 0.00955536, 0.009338006, 0.009193493, 0.0091599235, 0.009159581, 0.009134919, 0.009126609, 0.009002664, 0.008952477, 0.008926979, 0.008878941, 0.008798529, 0.008789088, 0.008717506, 0.008668625, 0.00861738, 0.008614585, 0.00859492, 0.008587858, 0.00853996, 0.008530464, 0.008463997, 0.008442862, 0.008253807, 0.008174792, 0.008072551, 0.008065715, 0.008021001, 0.007956303, 0.007904931, 0.007887732, 0.007884934, 0.0078401035, 0.0077955015, 0.007792521, 0.007761261, 0.0077408263, 0.0077297026, 0.007729347, 0.007705859, 0.007621307, 0.0076015336, 0.0075934865, 0.0075674527, 0.0075625204, 0.0075333132, 0.0074996534, 0.0073872833, 0.0073560732, 0.0073528686, 0.007350577, 0.007350082, 0.0073372535, 0.0073362496, 0.007280593, 0.007105456, 0.007059295, 0.007038118, 0.0070162634, 0.006969866, 0.0069566946, 0.006954197, 0.0069071623, 0.006827317, 0.0068249325, 0.0067780493, 0.006718113, 0.0067085223, 0.006601923, 0.006520664, 0.006497094, 0.006486299, 0.0063843676, 0.0063201035, 0.006257854, 0.0062323064, 0.006206692, 0.0061959773, 0.0061592655, 0.0061331396, 0.0061092423, 0.0060351253, 0.005995731, 0.00598195, 0.005981075, 0.0059633246, 0.0059441715, 0.005821321, 0.0057747536, 0.005768966, 0.0057531153, 0.005701309, 0.005687741, 0.005680228, 0.005672272, 0.005655182, 0.0056014042, 0.005599587, 0.0055993665, 0.0055985013, 0.0055945916, 0.005586303, 0.005576456, 0.00551992, 0.0054850397, 0.0054781893, 0.00543432, 0.0053753764, 0.005373958, 0.005340666, 0.0053308457, 0.0053296713, 0.005307099, 0.0053034946, 0.005224015, 0.005186325, 0.0051179347, 0.0050944444, 0.005082333, 0.005073789, 0.005070257, 0.0050287424, 0.005017155, 0.005016229, 0.005009633, 0.005009205, 0.0049947426, 0.0049768696, 0.00494409, 0.0049356315, 0.0049014804, 0.004879949, 0.004861225, 0.0048551415, 0.0048419386, 0.0048360243, 0.004795187, 0.004780251, 0.004754379, 0.004740082, 0.004735958, 0.004727382, 0.004701285, 0.004683773, 0.0046734563, 0.004608428, 0.0046037203, 0.004603654, 0.0045809355, 0.004546752, 0.0045258277, 
2019-09-27 17:36:38.957 31601-31601/com.rscnn.example D/scores: = in class: 1 the score: 0.016559098 is less than conf-thresh: 0.25
2019-09-27 17:36:38.959 31601-31601/com.rscnn.example D/all-scores-return: [0.9958949, 0.9957687, 0.9916886, 0.9873322, 0.98384035, 0.9773979, 0.96657753, 0.9334102, 0.9262339, 0.9088533, 0.9000841, 0.8947375, 0.85552466, 0.8510183, 0.81527627, 0.7974898, 0.79718935, 0.6956615, 0.62939686, 0.42023847, 0.35518417, 0.26296756, 0.17191516, 0.11100816, 0.057420783, 0.045133073, 0.042924654, 0.042778496, 0.042068, 0.04062021, 0.037717488, 0.031916793, 0.030176355, 0.02858035, 0.025887046, 0.023492068, 0.017598089, 0.017577404, 0.015204241, 0.014905668, 0.014238418, 0.013638443, 0.013014796, 0.012959475, 0.011860298, 0.011830981, 0.010974415, 0.010563013, 0.010285663, 0.010125785, 0.008500684, 0.0075058015, 0.007332701, 0.0070900586, 0.0068948637, 0.0068082493, 0.006726833, 0.0065865936, 0.006312486, 0.006170887, 0.0059871534, 0.005970449, 0.0059521375, 0.0058448254, 0.005808204, 0.0054488946, 0.0051254453, 0.005119734, 0.005037748, 0.004644105, 0.004582513, 0.0045254016, 0.00441719, 0.004335351, 0.004333858, 0.0042741457, 0.004187479, 0.004101693, 0.004053845, 0.004042193, 0.004021952, 0.0040112156, 0.003973526, 0.0039230078, 0.003906922, 0.0038561742, 0.0038334664, 0.003807301, 0.0037259995, 0.0037251895, 0.0037029355, 0.0036979932, 0.0035881733, 0.0035785718, 0.003543194, 0.0035408, 0.0035396058, 0.003515878, 0.0035013652, 0.0034300343, 0.003418575, 0.003353108, 0.0032659094, 0.0032346863, 0.00321461, 0.00319825, 0.003186106, 0.0031835018, 0.0031418847, 0.0031271218, 0.0030917816, 0.0030825394, 0.003067525, 0.003061277, 0.0030371696, 0.0029983518, 0.0029744536, 0.0029499778, 0.002919738, 0.0028981043, 0.0028891824, 0.0028703515, 0.0028623298, 0.0028465367, 0.002843395, 0.0028343147, 0.0028063343, 0.002790731, 0.0027847046, 0.0027811367, 0.0027395496, 0.0027079799, 0.002703486, 0.0026674992, 0.0026646047, 0.002664068, 0.0026545338, 0.0026484472, 0.0026431489, 0.0026239573, 0.002597185, 0.002528536, 0.0025189114, 0.0025113253, 0.0024864103, 0.0024737285, 0.002469595, 0.0024551416, 0.0024389601, 0.0024360544, 0.0024178037, 0.0024143192, 0.0023998923, 0.002393678, 0.0023905039, 0.0023899868, 0.0023870592, 0.0023835197, 0.0023824, 0.0023695051, 0.0023655926, 0.002332031, 0.0023239586, 0.002304878, 0.002301845, 0.0023008364, 0.0022950135, 0.0022902568, 0.0022901716, 0.0022867408, 0.0022851492, 0.0022775664, 0.0022765414, 0.0022625176, 0.0022495002, 0.0022419977, 0.0022356047, 0.0022264693, 0.0022211592, 0.002197499, 0.0021913936, 0.0021771162, 0.0021663562, 0.0021619785, 0.0021455134, 0.0021327934, 0.002125762, 0.0020999468, 0.0020769513, 0.0020707378, 0.0020597083, 0.0020588199, 0.0020572313, 0.0020510629, 0.0020451182, 0.0020366819, 0.0020299982, 0.0020100023, 0.0020083555, 0.0020052572, 0.0019983163, 0.0019953682, 0.0019916864, 0.0019895532, 0.0019819147, 0.0019804835, 0.001969943, 0.0019576587, 0.0019406425, 0.0019340765, 0.0019330924, 0.0019311602, 0.0019271572, 0.0019260241, 0.0019045991, 0.0019030147, 0.0018871728, 0.0018757199, 0.0018638397, 0.0018603624, 0.0018574828, 0.0018490126, 0.0018399442, 0.0018312806, 0.001829102, 0.0018285037, 0.0018267344, 0.0018166362, 0.0018063588, 0.0018040494, 0.0017801061, 0.0017758373, 0.0017633707, 0.0017624471, 0.0017612259, 0.0017577042, 0.0017576094, 0.0017545365, 0.0017545081, 0.0017513937, 0.0017461253, 0.0017395847, 0.0017360921, 0.0017281849, 0.0017231737, 0.0017215016, 0.0017202492, 0.0017145013, 0.0017127432, 0.0017075881, 0.0016940305, 0.0016902516, 0.0016838032, 0.0016836061, 0.0016735704, 0.0016682994, 0.0016645559, 0.0016582585, 0.0016508675, 0.001643752, 0.0016387376, 0.0016342336, 0.001634168, 0.0016324054, 0.0016297767, 0.0016276888, 0.0016252967, 0.0016226725, 0.001621604, 0.0016171105, 0.0016153153, 0.0016069956, 0.0016018354, 0.0016008561, 0.0015862129, 0.0015847821, 0.0015836629, 0.0015761593, 0.0015567095, 0.0015525904, 0.0015523371, 0.0015522816, 0.0015443952, 0.0015430488, 0.001542108, 0.00153707, 0.0015291842, 0.0015268347, 0.0015234146, 0.0015233629, 0.0015214406, 0.0015141573, 0.0015139243, 0.0015097674, 0.0015092234, 0.0015068818, 0.0015027047, 0.0015003225, 0.0014926803, 0.0014919173, 0
2019-09-27 17:36:38.960 31601-31601/com.rscnn.example D/scores: = in class: 2 the score: 0.023492068 is less than conf-thresh: 0.25
2019-09-27 17:36:38.961 31601-31601/com.rscnn.example D/all-scores-return: [0.7494087, 0.55584806, 0.5226919, 0.4988744, 0.49015427, 0.48562247, 0.41905126, 0.3432142, 0.32743296, 0.31425327, 0.31411707, 0.31375015, 0.297462, 0.2762758, 0.2694861, 0.26576626, 0.2633074, 0.26083136, 0.25921732, 0.20076478, 0.19186692, 0.18076456, 0.17369446, 0.14837527, 0.14635153, 0.14512931, 0.14398915, 0.14359067, 0.1379949, 0.11334435, 0.112406224, 0.1099912, 0.103563644, 0.09487915, 0.08556694, 0.08512025, 0.07667999, 0.058270074, 0.050558276, 0.05050065, 0.050130635, 0.050045535, 0.049849533, 0.0477814, 0.047683828, 0.04692776, 0.046770185, 0.04573226, 0.04507315, 0.04406263, 0.043552175, 0.04334038, 0.037829604, 0.035937056, 0.032961596, 0.030140206, 0.027841367, 0.02768536, 0.027398264, 0.026444655, 0.026040632, 0.023839034, 0.023797495, 0.021654096, 0.017709918, 0.016288651, 0.015773037, 0.015436583, 0.014340063, 0.014339039, 0.014061014, 0.013811237, 0.013796884, 0.013235726, 0.012574818, 0.01218778, 0.012066439, 0.012039117, 0.011977208, 0.011832619, 0.011825627, 0.011603599, 0.01159653, 0.011175792, 0.010791887, 0.0105860885, 0.010540448, 0.010392993, 0.010387753, 0.010313846, 0.010256484, 0.010142175, 0.009955154, 0.00972899, 0.009661931, 0.009652625, 0.009417006, 0.009164763, 0.009045632, 0.008799179, 0.008684393, 0.008417488, 0.0083150305, 0.008185622, 0.008175325, 0.008039719, 0.007877343, 0.007755863, 0.007734673, 0.0077056447, 0.0076210666, 0.007591547, 0.0075458405, 0.007500726, 0.007388286, 0.007147544, 0.0071025295, 0.0069846697, 0.0068775024, 0.00673865, 0.0066405716, 0.006520986, 0.0065207197, 0.006451261, 0.0063833566, 0.006193333, 0.006169538, 0.0061269994, 0.005934909, 0.005921329, 0.0058580483, 0.0058502927, 0.0058287717, 0.0057634288, 0.0056199264, 0.0055743684, 0.0055654794, 0.0054833544, 0.005452377, 0.005417, 0.0053745774, 0.0053659747, 0.0053236247, 0.0053027766, 0.00526512, 0.0052376683, 0.0052002193, 0.0050129737, 0.0049567795, 0.0049408525, 0.0049001873, 0.0048148353, 0.004744891, 0.0046121553, 0.0045721233, 0.0045479094, 0.0044834, 0.004467066, 0.004389237, 0.0043730983, 0.004198744, 0.004156187, 0.0041499566, 0.004138831, 0.004129417, 0.0041092387, 0.0040864954, 0.004082575, 0.0040443437, 0.004031444, 0.0040300977, 0.004006264, 0.0039947396, 0.0038251523, 0.0037719614, 0.0037679798, 0.003752231, 0.0037251024, 0.0036394114, 0.0035953273, 0.00351695, 0.0034670206, 0.003449207, 0.0034322378, 0.0034046143, 0.0033779172, 0.0033771065, 0.00336797, 0.0033517373, 0.0033279331, 0.003293857, 0.0032891498, 0.0032835337, 0.003269219, 0.0032621024, 0.0032377928, 0.0032024684, 0.0031991077, 0.003197981, 0.0031178403, 0.0030850794, 0.0030581576, 0.0030533937, 0.0030242496, 0.0030145417, 0.0030032597, 0.0029981658, 0.0029736725, 0.0029555429, 0.002953968, 0.0029526942, 0.002921781, 0.0029110222, 0.0029064154, 0.002870062, 0.0028329839, 0.0028111683, 0.0027786137, 0.0027308234, 0.0027209246, 0.002697508, 0.002676217, 0.00265877, 0.0026510076, 0.0026498744, 0.0026420103, 0.0026414844, 0.0026384995, 0.002630711, 0.0026245678, 0.0026201247, 0.0026048915, 0.0025883506, 0.0025810653, 0.0025660517, 0.0025347907, 0.0025320635, 0.0025063942, 0.0024520578, 0.0024063373, 0.002395685, 0.002389197, 0.0023887595, 0.002379616, 0.0023783436, 0.002364181, 0.0023440255, 0.0023359961, 0.002309348, 0.002306812, 0.0022883376, 0.0022800502, 0.00227135, 0.0022644696, 0.0022585972, 0.002251059, 0.0022492302, 0.0022319695, 0.0022276249, 0.0022243424, 0.0022232453, 0.0022190015, 0.0022068133, 0.0021998012, 0.0021876644, 0.0021853975, 0.002177506, 0.0021732042, 0.0021621012, 0.0021588788, 0.00215832, 0.0021527016, 0.0021488864, 0.0021408873, 0.0021359634, 0.0021272255, 0.0021253815, 0.0021142208, 0.0021082775, 0.0020872676, 0.0020668153, 0.0020529751, 0.0020410777, 0.0020353675, 0.002025471, 0.001968812, 0.0019607432, 0.001954158, 0.0019514278, 0.0019407803, 0.001935841, 0.0019322591, 0.001931503, 0.0019305603, 0.001917406, 0.0019145336, 0.0019104833, 0.0019097576, 0.0018882691, 0.0018874613, 0.0018731562, 0.0018701934, 0.0018616434, 0.0018588343, 0.0018547911, 0.0018480
2019-09-27 17:36:38.962 31601-31601/com.rscnn.example D/scores: = in class: 3 the score: 0.015436583 is less than conf-thresh: 0.25
gWOLF3 commented 4 years ago

sorted box1 scores: (same for all NMS thresh levels)

2019-09-28 14:09:12.060 9818-9818/com.rscnn.example D/box1:: [[0.092240125, 0.7343251, 0.2862804, 0.94305044], [0.093820326, 0.72472066, 0.28812453, 0.92764956], [0.09419963, 0.73766667, 0.28128058, 0.93320197], [0.09689244, 0.7236737, 0.2816779, 0.914256], [0.5987658, 0.13548166, 0.7834572, 0.33021086], [0.60219765, 0.13208067, 0.7811928, 0.3405099], [0.59977317, 0.13747221, 0.7849288, 0.330979], [0.60341763, 0.13497758, 0.78562737, 0.3338985], [0.08463087, 0.73282975, 0.2862969, 0.9476747], [0.5936404, 0.13630837, 0.78585166, 0.3308975], [-0.0012967288, 0.09652517, 0.13453825, 0.28585553], [0.077770464, 0.7388907, 0.2830458, 0.9393869], [0.0625352, 0.41444254, 0.27880836, 0.6199976], [-0.0034458935, 0.09249543, 0.13439685, 0.28782105], [0.0653981, 0.41332403, 0.28278896, 0.62794787], [0.44769233, 0.7621513, 0.6441588, 0.97443336], [-3.2981485E-4, 0.093328886, 0.13627368, 0.27311683], [0.44713578, 0.39128003, 0.6584101, 0.604272], [0.054129228, 0.4062972, 0.28707528, 0.6345116], [0.07160279, 0.4122298, 0.27618912, 0.6222979], [0.4475054, 0.7625369, 0.63836414, 0.9685073], [0.44886315, 0.76530915, 0.64534724, 0.97467893], [0.44276008, 0.37820855, 0.64878386, 0.6073124], [0.59808964, 0.14001521, 0.7905099, 0.33022496], [0.8878913, 0.35680246, 0.9978708, 0.5512154], [0.054096736, 0.40793216, 0.2826816, 0.63019514], [0.06382787, 0.4086852, 0.28691337, 0.6276351], [0.08023788, 0.7345072, 0.27933055, 0.9466828], [0.08272136, 0.7286935, 0.2868087, 0.93505526], [0.5982642, 0.14371201, 0.78919387, 0.32927075], [0.057191603, 0.41174722, 0.2850572, 0.6287199], [0.8817166, 0.3667506, 0.9932852, 0.5524937], [0.44231498, 0.76391464, 0.6529143, 0.9735512], [0.07065511, 0.41407317, 0.2796381, 0.62205], [0.5929138, 0.136955, 0.7905331, 0.3082861], [0.44347715, 0.75693685, 0.6446506, 0.96248513], [0.45063102, 0.7641966, 0.64181733, 0.96984416], [0.4546597, 0.76216626, 0.6453291, 0.9751409], [0.59072983, 0.13536778, 0.79181683, 0.33368954], [0.4517638, 0.39069498, 0.6534881, 0.59916866], [0.058636986, 0.401785, 0.28804448, 0.63260955], [0.4534219, 0.39655876, 0.6608946, 0.5952261], [0.45219895, 0.3918695, 0.64177066, 0.59071714], [0.44794986, 0.3911736, 0.65772545, 0.5932938], [0.100724645, 0.7350891, 0.28507692, 0.941964], [0.050199844, 0.4037286, 0.27850965, 0.6311772], [0.4493681, 0.39000297, 0.6594248, 0.59721303], [-0.0021982566, 0.087302916, 0.14042744, 0.29257149], [0.093759924, 0.73665893, 0.27897027, 0.9359894], [0.014819302, 0.08913236, 0.15234885, 0.290443], [0.45260397, 0.39358008, 0.6499096, 0.6005662], [0.4599619, 0.38805217, 0.6498444, 0.59019685], [0.8784117, 0.356786, 0.99400705, 0.541437], [0.0047482327, 0.098243885, 0.14800072, 0.2817087], [0.4489626, 0.75959337, 0.64715004, 0.9798771], [0.06694808, 0.40985605, 0.27656445, 0.61831564], [0.084968664, 0.73227197, 0.27973345, 0.9423588], [0.4414653, 0.7566385, 0.6446954, 0.96838915], [0.10686961, 0.7393669, 0.2642231, 0.9350437], [0.44441545, 0.37631494, 0.66021764, 0.61632985], [0.5948087, 0.1374594, 0.78716385, 0.3159641], [0.06228093, 0.41649118, 0.28724056, 0.64042467], [0.44432935, 0.7514897, 0.64769894, 0.95962876], [-0.028938536, 0.10515222, 0.14879502, 0.2856735], [0.8696512, 0.35241044, 0.99418974, 0.54714304], [0.8702045, 0.3618891, 0.9972046, 0.5517949], [0.44211143, 0.77329636, 0.6571056, 0.9843404], [-0.0032136515, 0.09349639, 0.1356098, 0.28557295], [0.10189463, 0.7424217, 0.2858274, 0.9427729], [0.46379414, 0.39443836, 0.6481286, 0.5757866], [0.59305584, 0.13646308, 0.78239477, 0.32507676], [0.06517584, 0.42361242, 0.2723761, 0.614376], [0.5839025, 0.13704512, 0.7919247, 0.31392452], [0.45809782, 0.397103, 0.653353, 0.58264065], [0.11315405, 0.44946212, 0.24797446, 0.6123188], [0.09121622, 0.73114127, 0.27296293, 0.9462636], [0.45726424, 0.75564635, 0.6113643, 0.9274062], [0.59441984, 0.14111327, 0.7817825, 0.3382129], [0.46932465, 0.7610742, 0.62348074, 0.9077765], [0.06160178, 0.43007344, 0.27899668, 0.6386054], [0.8620309, 0.36411387, 1.0012661, 0.53699523], [0.063169576, 0.4212984, 0.27301958, 0.62114173], [0.45155185, 0.76057124, 0.6458306, 0.9716898], [0.5916798, 0.13200143, 
2019-09-28 14:09:12.072 9818-9818/com.rscnn.example D/box1:: [[0.6804796, 0.6528577, 0.8852168, 0.86808306], [0.6866795, 0.6540524, 0.8855314, 0.86962867], [0.26171672, 0.11041716, 0.47772294, 0.31937295], [0.26494828, 0.11022119, 0.4793487, 0.32074142], [0.26836082, 0.110771246, 0.47715202, 0.3195027], [0.26831654, 0.11095494, 0.47064236, 0.31913492], [0.6812867, 0.65338486, 0.8951677, 0.8713959], [0.6755881, 0.6568673, 0.88818985, 0.8719267], [0.26326108, 0.11444151, 0.47583854, 0.3258801], [0.2743021, 0.100827, 0.478155, 0.32134536], [0.26858342, 0.11220675, 0.48189217, 0.3279272], [0.6909497, 0.6479288, 0.88656616, 0.877629], [0.68829024, 0.64767647, 0.88992155, 0.8746623], [0.27674925, 0.10137066, 0.47578847, 0.32127532], [0.27154365, 0.10591003, 0.48014888, 0.3283173], [0.6859853, 0.6594466, 0.8811563, 0.8654636], [0.27429146, 0.1079428, 0.47021788, 0.3251988], [0.26744843, 0.11190255, 0.47945988, 0.32053834], [0.26777974, 0.108237885, 0.47975048, 0.32028967], [0.68138915, 0.65971804, 0.8916655, 0.8605528], [0.6862055, 0.6554202, 0.89273167, 0.8678962], [0.6928218, 0.66368175, 0.8923107, 0.865098], [0.67871433, 0.6717713, 0.8907259, 0.8647914], [0.68414956, 0.64933074, 0.8815561, 0.8730645], [0.68100077, 0.6548668, 0.88241774, 0.85808766], [0.67638266, 0.6431439, 0.90184, 0.8745136], [0.8878913, 0.35680246, 0.9978708, 0.5512154], [0.8817166, 0.3667506, 0.9932852, 0.5524937], [-0.0012967288, 0.09652517, 0.13453825, 0.28585553], [-3.2981485E-4, 0.093328886, 0.13627368, 0.27311683], [0.69139814, 0.66637576, 0.89861774, 0.8659276], [-0.0021982566, 0.087302916, 0.14042744, 0.29257149], [0.8784117, 0.356786, 0.99400705, 0.541437], [0.27917606, 0.11962206, 0.48355162, 0.31705624], [0.696951, 0.6586132, 0.8873517, 0.8542876], [0.100724645, 0.7350891, 0.28507692, 0.941964], [0.08023788, 0.7345072, 0.27933055, 0.9466828], [-0.0034458935, 0.09249543, 0.13439685, 0.28782105], [0.8702045, 0.3618891, 0.9972046, 0.5517949], [0.5982642, 0.14371201, 0.78919387, 0.32927075], [0.014819302, 0.08913236, 0.15234885, 0.290443], [0.68888694, 0.6511847, 0.9019546, 0.8626957], [0.31041342, 0.12190505, 0.487018, 0.2963294], [0.09689244, 0.7236737, 0.2816779, 0.914256], [0.20468852, 0.119762234, 0.6173501, 0.33191812], [0.28449, 0.117158175, 0.44276, 0.2892967], [0.26975697, 0.12155348, 0.4657907, 0.318772], [0.6919154, 0.6492549, 0.8725723, 0.8622227], [0.113596335, 0.45563254, 0.16665103, 0.5596309], [0.69654304, 0.66331714, 0.8962787, 0.8598483], [0.24344093, 0.09643151, 0.5643679, 0.3561774], [-0.01789397, -0.032471746, 0.43474054, 0.29829383], [0.09905711, 0.4237892, 0.58481264, 0.61656743], [0.054096736, 0.40793216, 0.2826816, 0.63019514], [0.093759924, 0.73665893, 0.27897027, 0.9359894], [0.28711376, 0.12837452, 0.47381344, 0.3017379], [0.30500388, 0.06940265, 0.5569066, 0.39180034], [-0.025084436, 0.009765416, 0.626262, 0.15779516], [0.11557059, 0.43286732, 0.22385766, 0.56883967], [0.23933482, 0.09455535, 0.48725396, 0.35166663], [0.27489895, 0.073322326, 0.55403423, 0.37557185], [0.10189463, 0.7424217, 0.2858274, 0.9427729], [0.10686961, 0.7393669, 0.2642231, 0.9350437], [0.0047482327, 0.098243885, 0.14800072, 0.2817087], [0.8696512, 0.35241044, 0.99418974, 0.54714304], [0.24858421, 0.08833699, 0.47211385, 0.36250228], [0.10057697, 0.49580523, 0.1514982, 0.5863461], [0.7175412, 0.658611, 0.8641995, 0.8090449], [0.077770464, 0.7388907, 0.2830458, 0.9393869], [0.4599619, 0.38805217, 0.6498444, 0.59019685], [0.106015705, 0.4242206, 0.14993894, 0.49062994], [0.6227835, 0.1461812, 0.6719374, 0.20458746], [0.3251376, 0.059146777, 0.5458471, 0.41084403], [0.45219895, 0.3918695, 0.64177066, 0.59071714], [0.24105908, 0.42861107, 0.70216, 0.6045052], [0.46379414, 0.39443836, 0.6481286, 0.5757866], [0.26743358, 0.108180985, 0.4489963, 0.3209983], [0.5481304, 0.15305454, 0.5920893, 0.21178257], [0.498638, 0.7584906, 0.58562636, 0.8507541], [0.2696384, 0.12476464, 0.46083108, 0.3065233], [0.4493681, 0.39000297, 0.6594248, 0.59721303], [0.08463087, 0.73282975, 0.2862969, 0.9476747], [0.5929138, 0.136955, 0.7905331, 0.3082861], [0.27796668, 0.14628029, 0.35610366, 0.2893
2019-09-28 14:09:12.080 9818-9818/com.rscnn.example D/box1:: [[0.4517638, 0.39069498, 0.6534881, 0.59916866], [0.45260397, 0.39358008, 0.6499096, 0.6005662], [0.06382787, 0.4086852, 0.28691337, 0.6276351], [0.44769233, 0.7621513, 0.6441588, 0.97443336], [0.4534219, 0.39655876, 0.6608946, 0.5952261], [0.0653981, 0.41332403, 0.28278896, 0.62794787], [0.4475054, 0.7625369, 0.63836414, 0.9685073], [0.44276008, 0.37820855, 0.64878386, 0.6073124], [0.44713578, 0.39128003, 0.6584101, 0.604272], [-0.0034458935, 0.09249543, 0.13439685, 0.28782105], [0.45219895, 0.3918695, 0.64177066, 0.59071714], [0.0625352, 0.41444254, 0.27880836, 0.6199976], [0.057191603, 0.41174722, 0.2850572, 0.6287199], [0.44347715, 0.75693685, 0.6446506, 0.96248513], [0.4546597, 0.76216626, 0.6453291, 0.9751409], [0.054096736, 0.40793216, 0.2826816, 0.63019514], [0.07160279, 0.4122298, 0.27618912, 0.6222979], [0.07065511, 0.41407317, 0.2796381, 0.62205], [0.054129228, 0.4062972, 0.28707528, 0.6345116], [0.44886315, 0.76530915, 0.64534724, 0.97467893], [0.4493681, 0.39000297, 0.6594248, 0.59721303], [0.058636986, 0.401785, 0.28804448, 0.63260955], [-0.0012967288, 0.09652517, 0.13453825, 0.28585553], [0.44794986, 0.3911736, 0.65772545, 0.5932938], [-3.2981485E-4, 0.093328886, 0.13627368, 0.27311683], [0.4599619, 0.38805217, 0.6498444, 0.59019685], [0.014819302, 0.08913236, 0.15234885, 0.290443], [0.8878913, 0.35680246, 0.9978708, 0.5512154], [0.050199844, 0.4037286, 0.27850965, 0.6311772], [0.06228093, 0.41649118, 0.28724056, 0.64042467], [0.44231498, 0.76391464, 0.6529143, 0.9735512], [0.4414653, 0.7566385, 0.6446954, 0.96838915], [0.45063102, 0.7641966, 0.64181733, 0.96984416], [0.8817166, 0.3667506, 0.9932852, 0.5524937], [0.4489626, 0.75959337, 0.64715004, 0.9798771], [0.45809782, 0.397103, 0.653353, 0.58264065], [0.06694808, 0.40985605, 0.27656445, 0.61831564], [-0.0021982566, 0.087302916, 0.14042744, 0.29257149], [0.46379414, 0.39443836, 0.6481286, 0.5757866], [0.59977317, 0.13747221, 0.7849288, 0.330979], [0.8696512, 0.35241044, 0.99418974, 0.54714304], [0.44441545, 0.37631494, 0.66021764, 0.61632985], [0.5936404, 0.13630837, 0.78585166, 0.3308975], [0.44432935, 0.7514897, 0.64769894, 0.95962876], [0.5987658, 0.13548166, 0.7834572, 0.33021086], [0.11315405, 0.44946212, 0.24797446, 0.6123188], [0.45155185, 0.76057124, 0.6458306, 0.9716898], [0.06160178, 0.43007344, 0.27899668, 0.6386054], [0.46629897, 0.39330173, 0.65889466, 0.60190976], [0.0047482327, 0.098243885, 0.14800072, 0.2817087], [0.8784117, 0.356786, 0.99400705, 0.541437], [-0.0032136515, 0.09349639, 0.1356098, 0.28557295], [0.5982642, 0.14371201, 0.78919387, 0.32927075], [0.06517584, 0.42361242, 0.2723761, 0.614376], [0.59808964, 0.14001521, 0.7905099, 0.33022496], [0.45726424, 0.75564635, 0.6113643, 0.9274062], [0.8702045, 0.3618891, 0.9972046, 0.5517949], [0.45149517, 0.39611998, 0.63202107, 0.5980831], [0.5929138, 0.136955, 0.7905331, 0.3082861], [0.46932465, 0.7610742, 0.62348074, 0.9077765], [0.47614503, 0.3907075, 0.6623453, 0.5910249], [0.8620309, 0.36411387, 1.0012661, 0.53699523], [0.5948087, 0.1374594, 0.78716385, 0.3159641], [0.06463455, 0.41832876, 0.2872641, 0.5920248], [0.063169576, 0.4212984, 0.27301958, 0.62114173], [0.59072983, 0.13536778, 0.79181683, 0.33368954], [0.08796548, 0.42695794, 0.27395165, 0.64230347], [0.100724645, 0.7350891, 0.28507692, 0.941964], [0.44211143, 0.77329636, 0.6571056, 0.9843404], [0.46080485, 0.7768754, 0.640974, 0.9661889], [0.60219765, 0.13208067, 0.7811928, 0.3405099], [0.44852906, 0.77049774, 0.635891, 0.9741594], [0.59305584, 0.13646308, 0.78239477, 0.32507676], [-0.0020126253, -0.03562735, 0.41289705, 0.40277898], [0.09689244, 0.7236737, 0.2816779, 0.914256], [0.08023788, 0.7345072, 0.27933055, 0.9466828], [0.09419963, 0.73766667, 0.28128058, 0.93320197], [-0.01789397, -0.032471746, 0.43474054, 0.29829383], [0.48123705, 0.38876772, 0.6631731, 0.58507127], [0.49660754, 0.40518612, 0.659158, 0.5921731], [0.60341763, 0.13497758, 0.78562737, 0.3338985], [0.008551076, 0.10388264, 0.13957573, 0.2901031], [0.58697635, 0.13729641, 0.7845929, 0.31665254], [0.09206915, 0.4220
gWOLF3 commented 4 years ago

merged overlap fix, see here:

regular nms thresholds now exhibiting more expected behavior. we still see multiple object predictions for some cookies; may want to improve this further.

@ nmsthresh = .45

result is same for nmsthresh = .35