cocoeval print per category

Edit Python3\Lib\site-packages\faster_coco_eval\core\cocoeval.py
or Python3\Lib\site-packages\pycocotools\cocoeval.py
def _summarize(
category_dimension = 1 + int(ap)
if s.shape[category_dimension] > 1:
	per_str = "    per category = {}"
	mean_axis = (0,)
	if ap == 1:
		mean_axis = (0, 1)
	per_category_mean_s = np.mean(s, axis=mean_axis).flatten()
	with np.printoptions(precision=3, suppress=True, sign=" ", floatmode="fixed"):
		print(per_str.format(per_category_mean_s))

return mean_s

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注