Skip to content

Commit

Permalink
Merge pull request #28 from wk910930/dev
Browse files Browse the repository at this point in the history
Change os.mkdir() -> os.mkdirs()
  • Loading branch information
longcw committed Jul 10, 2017
2 parents 3418777 + 83c90f4 commit be9de01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def log_print(text, color=None, on_color=None, attrs=None):
optimizer = torch.optim.SGD(params[8:], lr=lr, momentum=momentum, weight_decay=weight_decay)

if not os.path.exists(output_dir):
os.mkdir(output_dir)
os.makedirs(output_dir)

# tensorboad
use_tensorboard = use_tensorboard and CrayonClient is not None
Expand Down

0 comments on commit be9de01

Please sign in to comment.