提交 6b92e294 编写于 作者: B baiyfbupt

code clean

上级 e053c8c9
...@@ -3,7 +3,6 @@ import time ...@@ -3,7 +3,6 @@ import time
import numpy as np import numpy as np
import argparse import argparse
import functools import functools
import cv2
from PIL import Image from PIL import Image
from PIL import ImageDraw from PIL import ImageDraw
...@@ -281,7 +280,7 @@ def infer(args, batch_size, data_args): ...@@ -281,7 +280,7 @@ def infer(args, batch_size, data_args):
f = open('./infer_results/' + image_class.encode('utf-8') + '/' + f = open('./infer_results/' + image_class.encode('utf-8') + '/' +
image_name.encode('utf-8')[:-4] + '.txt', 'w') image_name.encode('utf-8')[:-4] + '.txt', 'w')
# write_to_txt(image_path, f, dets) write_to_txt(image_path, f, dets)
# draw_bounding_box_on_image(image_path, dets, args.confs_threshold) # draw_bounding_box_on_image(image_path, dets, args.confs_threshold)
print "Done" print "Done"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册