Skip to content

Commit

Permalink
fix log bug
Browse files Browse the repository at this point in the history
  • Loading branch information
saleml committed Oct 12, 2018
1 parent c820f28 commit 8438157
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions babyai/imitation.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(self, args, ):
train_demos = utils.load_demos(demos_path)
logger.info('loaded demos')
if episodes > len(train_demos):
raise ValueError("there are only {} train demos in {}".format(len(self.train_demos), demos))
raise ValueError("there are only {} train demos in {}".format(len(train_demos), demos))
self.train_demos.extend(train_demos[:episodes])
logger.info('So far, {} demos loaded'.format(len(self.train_demos)))

Expand All @@ -46,7 +46,7 @@ def __init__(self, args, ):
valid_demos = utils.load_demos(demos_path_valid)
logger.info('loaded demos')
if episodes > len(valid_demos):
raise ValueError("there are only {} valid demos in {}".format(len(self.train_demos), demos))
raise ValueError("there are only {} valid demos in {}".format(len(valid_demos), demos))
self.val_demos.extend(valid_demos[:episodes])
logger.info('So far, {} valid demos loaded'.format(len(self.val_demos)))

Expand Down

0 comments on commit 8438157

Please sign in to comment.