Created
July 7, 2020 01:41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
true_box_conf_IOU = calc_IOU_pred_true_assigned( | |
true_box_conf, | |
true_box_xy, true_box_wh, | |
pred_box_xy, pred_box_wh) | |
print("*"*30 + "\ninput\n" + "*"*30) | |
print("true_box_conf = {}".format(true_box_conf)) | |
print("true_box_xy = {}".format(true_box_xy)) | |
print("true_box_wh = {}".format(true_box_wh)) | |
print("pred_box_xy = {}".format(pred_box_xy)) | |
print("pred_box_wh = {}".format(pred_box_wh)) | |
print("*"*30 + "\nouput\n" + "*"*30) | |
print("true_box_conf_IOU.shape = {}".format(true_box_conf_IOU.shape)) | |
vec = true_box_conf_IOU | |
pick = vec!=0 | |
vec = vec[pick] | |
plt.hist(vec) | |
plt.title("Histogram\nN (%) nonzero true_box_conf_IOU = {} ({:5.2f}%)".format(np.sum(pick), | |
100*np.mean(pick))) | |
plt.xlabel("nonzero true_box_conf_IOU") | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment