computervision-recipes icon indicating copy to clipboard operation
computervision-recipes copied to clipboard

[FEATURE_REQUEST] in evalution, add how many images are correctly identified

Open jiata opened this issue 6 years ago • 1 comments

Description

Add evaluation how many images are correct:

GetImage (3)

jiata avatar Sep 26 '19 19:09 jiata

Notes:

import numpy as np
e.eval_imgs["bbox"][3, 0, 0]
def eval_im():
    bbox = e.eval_imgs["bbox"]
    for i in range(len(bbox[0, 0, :])):
        im = []
        for j in range(len(bbox[:, 0, 0])):
            if bbox[j, 0, i]:
                dt_matches = bbox[j, 0, i]["dtMatches"]
                scores = bbox[j, 0, i]["dtScores"]
                for dt, score in zip(list(dt_matches[0]), scores):
                    im.append([dt, score])
        yield im
gen = eval_im()
next(gen)

jiata avatar Nov 01 '19 19:11 jiata