|
@@ -16,6 +16,8 @@ import os
|
|
|
import cv2
|
|
import cv2
|
|
|
import colorsys
|
|
import colorsys
|
|
|
import numpy as np
|
|
import numpy as np
|
|
|
|
|
+import matplotlib
|
|
|
|
|
+matplotlib.use('Agg')
|
|
|
import matplotlib as mpl
|
|
import matplotlib as mpl
|
|
|
import matplotlib.pyplot as plt
|
|
import matplotlib.pyplot as plt
|
|
|
import matplotlib.figure as mplfigure
|
|
import matplotlib.figure as mplfigure
|
|
@@ -333,7 +335,6 @@ def draw_pr_curve(eval_details_file=None,
|
|
|
return mean_s
|
|
return mean_s
|
|
|
|
|
|
|
|
def cal_pr(coco_gt, coco_dt, iou_thresh, save_dir, style='bbox'):
|
|
def cal_pr(coco_gt, coco_dt, iou_thresh, save_dir, style='bbox'):
|
|
|
- import matplotlib.pyplot as plt
|
|
|
|
|
from pycocotools.cocoeval import COCOeval
|
|
from pycocotools.cocoeval import COCOeval
|
|
|
coco_dt = loadRes(coco_gt, coco_dt)
|
|
coco_dt = loadRes(coco_gt, coco_dt)
|
|
|
np.linspace = fixed_linspace
|
|
np.linspace = fixed_linspace
|