Skip to content

Commit

Permalink
use train.json as default
Browse files Browse the repository at this point in the history
  • Loading branch information
awni committed Mar 31, 2017
1 parent a7e8d5e commit 7ea2d28
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def run_epoch(model, data_loader, session, summarizer):
if it == 50:
model.set_momentum(session)
logger.debug("Setting initial momentum in iteration " + str(it))

msg = "Iter {}: AvgLoss {:.3f}, AvgAcc {:.3f}"
logger.debug(msg.format(it, loss, acc))
if it % 100 == 0:
Expand Down Expand Up @@ -59,7 +59,7 @@ def main(argv=None):
parser.add_argument("-v", "--verbose",
default=False, action="store_true")
parser.add_argument("-c", "--config_file",
default="configs/test.json")
default="configs/train.json")

parsed_arguments = parser.parse_args()
arguments = vars(parsed_arguments)
Expand All @@ -71,8 +71,8 @@ def main(argv=None):
logging.basicConfig(level=logging.DEBUG)
else:
logging.basicConfig(level=logging.INFO)


with open(config_file) as fid:
config = json.load(fid)

Expand Down

0 comments on commit 7ea2d28

Please sign in to comment.