Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yysijie committed Jun 1, 2018
1 parent ee2a247 commit 88e4148
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#custom
tmp*
work_dir/*
data/*
config_v0/*
Expand Down
5 changes: 2 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@ def get_parser():
parser.add_argument(
'--display_by_category',
type=str2bool,
default=True,
default=False,
help='if ture, the top k accuracy by category will be displayed')
parser.add_argument(
'--display_recall_precision',
type=str2bool,
default=True,
default=False,
help='if ture, recall and precision by category will be displayed')

return parser
Expand Down Expand Up @@ -341,7 +341,6 @@ def eval(self, epoch, save_score=False, loader_name=['test']):
loss_value = []
score_frag = []
for batch_idx, (data, label) in enumerate(self.data_loader[ln]):
print('{}/{}'.format(batch_idx, len(self.data_loader[ln])))
data = Variable(
data.float().cuda(self.output_device),
requires_grad=False,
Expand Down

0 comments on commit 88e4148

Please sign in to comment.