CharlesShang / TFFRCNN

FastER RCNN built on tensorflow
MIT License
874 stars 418 forks source link

Why test map almost -1? Why? #101

Open ChiefGodMan opened 7 years ago

ChiefGodMan commented 7 years ago

Writing tvmonitor VOC results file VOC07 metric? Yes AP for aeroplane = -1.0000 AP for bicycle = -1.0000 AP for bird = -1.0000 AP for boat = -1.0000 AP for bottle = -1.0000 AP for bus = -1.0000 AP for car = -1.0000 AP for cat = -1.0000 AP for chair = -1.0000 AP for cow = -1.0000 AP for diningtable = -1.0000 AP for dog = -1.0000 AP for horse = -1.0000 AP for motorbike = -1.0000 AP for person = 0.0131 AP for pottedplant = -1.0000 AP for sheep = -1.0000 AP for sofa = -1.0000 AP for train = -1.0000 AP for tvmonitor = -1.0000 Mean AP = -0.9493

Results:
-1.000
-1.000
-1.000
-1.000
-1.000
-1.000
-1.000
-1.000
-1.000
-1.000
-1.000
-1.000
-1.000
-1.000
0.013
-1.000
-1.000
-1.000
-1.000
-1.000
-0.949

The next is my cfg params. 24 def parse_args(): 25 """ 26 Parse input arguments 27 """ 28 parser = argparse.ArgumentParser(description='Test a Fast R-CNN network') 29 parser.add_argument('--gpu', dest='gpu_id', help='GPU id to use', 30 default=0, type=int) 31 parser.add_argument('--def', dest='prototxt', 32 help='prototxt file defining the network', 33 default=None, type=str) 34 parser.add_argument('--weights', dest='model', 35 help='model to test', 36 default='output/faster_rcnn_voc_vgg/voc_2007_trainval', type=str) 37 parser.add_argument('--cfg', dest='cfg_file', 38 help='optional config file', default='experiments/cfgs/faster_rcnn_end2end.yml', type=str) 39 parser.add_argument('--wait', dest='wait', 40 help='wait until net file exists', 41 default=True, type=bool) 42 parser.add_argument('--imdb', dest='imdb_name', 43 help='dataset to test', 44 default='voc_2007_test', type=str) 45 parser.add_argument('--comp', dest='comp_mode', help='competition mode', 46 action='store_true') 47 parser.add_argument('--network', dest='network_name', 48 help='name of the network', 49 default='VGGnet_test', type=str) 50 51 if len(sys.argv) == 0: 52 parser.print_help() 53 sys.exit(1)

hxf930620 commented 6 years ago

@ailias have you solved this problem?

1992039674 commented 6 years ago

How can I get the value of AP and mAP?