在上面已经讲过如何训练了 https://blog.csdn.net/u013066730/article/details/103720215 那么需要将eval_cell.py中的加 ########################################的内容进行修改,具体请看下面的代码。 主要就是修改输入的文件夹,然后修改解析输入的代码。 from data import COCODetection, get_label_map, MEANS, COLORS from yolact import Yolact from utils.augmentations import BaseTransform, FastBaseTransform, Resize from utils.functions import MovingAverage, ProgressBar from layers.box_utils import jaccard, center_size, mask_iou from utils import timer from utils.functions import SavePath from layers.output_utils import postprocess, undo_image_transformation import