Skip to content

Commit

Permalink
Update evaluate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-ecm authored Aug 12, 2023
1 parent cb320e9 commit e730eef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
flags.DEFINE_string('framework', 'tf', 'select model type in (tf, tflite, trt)'
'path to weights file')
flags.DEFINE_string('model', 'yolov4', 'yolov3 or yolov4')
flags.DEFINE_string('path_to_append_filename', '/content/val/', 'yolov3 or yolov4')
flags.DEFINE_boolean('tiny', False, 'yolov3 or yolov3-tiny')
flags.DEFINE_integer('size', 416, 'resize images to')
flags.DEFINE_string('annotation_path', "/content/tensorflow-yolov4-tflite/data/dataset/test.txt", 'annotation path')
Expand Down Expand Up @@ -146,7 +147,7 @@ def main(_argv):
# cv2.imwrite(cfg.TEST.DECTECTED_IMAGE_PATH + image_name, image_result)
for i in range(valid_detections[0]):
curr_pred_row = {
'ImageID':'/content/test/'+image_name,
'ImageID':FLAGS.path_to_append_filename+image_name,
'LabelName': label_map[int(classes[0][i])],
'Conf':scores[0][i] ,
'XMin':boxes[0][i][1] ,
Expand Down

0 comments on commit e730eef

Please sign in to comment.