Skip to content

Commit

Permalink
edit the make cache dir function
Browse files Browse the repository at this point in the history
  • Loading branch information
Asiapenolove committed Feb 18, 2017
1 parent 1dc2f9c commit 23551de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/datasets/Faces_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,14 @@ def _do_python_eval(self, output_dir = 'output'):
'Main',
self._image_set + '.txt')
cachedir = os.path.join(self._devkit_path, 'annotations_cache',self._DB_name)
if not os.path.isdir(cachedir):
os.makedirs(cachedir)
aps = []
# The PASCAL VOC metric changed in 2010
use_07_metric = True if int(self._year) < 2017 else False
print self._DB_name+' metric? ' + ('Yes' if use_07_metric else 'No')
if not os.path.isdir(output_dir):
os.mkdirs(output_dir)
os.makedirs(output_dir)
for i, cls in enumerate(self._classes):
if cls == '__background__':
continue
Expand Down

0 comments on commit 23551de

Please sign in to comment.