Skip to content

Commit 72b66a9

Browse files
committed
sota
1 parent 271ec0d commit 72b66a9

File tree

4 files changed

+5
-67
lines changed

4 files changed

+5
-67
lines changed

dataset/convert_tfrecords.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
import dataset_common
3131

32-
'''How to order your dataset:
32+
'''How to organize your dataset folder:
3333
VOCROOT/
3434
|->VOC2007/
3535
| |->Annotations/

eval_ssd.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def ssd_model_fn(features, labels, mode, params):
291291
with tf.device('/cpu:0'):
292292
bboxes_pred = decode_fn(location_pred)
293293
bboxes_pred = tf.concat(bboxes_pred, axis=0)
294-
selected_bboxes, selected_scores = parse_by_class(cls_pred, location_pred,
294+
selected_bboxes, selected_scores = parse_by_class(cls_pred, bboxes_pred,
295295
params['num_classes'], params['select_threshold'], params['min_size'],
296296
params['keep_topk'], params['nms_topk'], params['nms_threshold'])
297297

test_tf.py

-62
This file was deleted.

voc_eval.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ def voc_eval(detpath,
186186
# extract gt objects for this class
187187
class_recs = {}
188188
npos = 0
189+
189190
for imagename in imagenames:
190191
R = [obj for obj in recs[imagename] if obj['name'] == classname]
191192
bbox = np.array([x['bbox'] for x in R])
@@ -195,11 +196,10 @@ def voc_eval(detpath,
195196
class_recs[imagename] = {'bbox': bbox,
196197
'difficult': difficult,
197198
'det': det}
198-
199199
# read dets
200-
detfile = detpath.format(classname)
201-
with open(detfile, 'r') as f:
200+
with open(detpath, 'r') as f:
202201
lines = f.readlines()
202+
203203
if any(lines) == 1:
204204

205205
splitlines = [x.strip().split(' ') for x in lines]

0 commit comments

Comments
 (0)