Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable VOC 2007 test evaluation. #44

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ def main():
parser.add_argument('--training-data',
default='pascal-voc/training-data.pkl',
help='Information about parameters used for training')
parser.add_argument('--data-source', default='pascal_voc',
help='data source')
parser.add_argument('--output-dir', default='test-output',
help='directory for the resulting images')
parser.add_argument('--annotate', type=str2bool, default='False',
Expand Down
4 changes: 2 additions & 2 deletions source_pascal_voc.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,10 @@ def load_test_data(self, data_dir):
Load the test data
:param data_dir: the directory where the dataset's file are stored
"""
root = data_dir + '/test/VOCdevkit/VOC2012'
root = data_dir + '/test/VOCdevkit/VOC2007'
annot = self.__build_annotation_list(root, 'test')
self.test_samples = self.__build_sample_list(root, annot,
'test_VOC2012')
'test_VOC2007')

if len(self.test_samples) == 0:
raise RuntimeError('No testing samples found in ' + data_dir)
Expand Down