Skip to content

Commit

Permalink
Change os.mkdir() -> os.mkdirs()
Browse files Browse the repository at this point in the history
* We might need to create directories recursively
  • Loading branch information
wangkun committed Jun 19, 2017
1 parent 3418777 commit 83c90f4
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 83c90f4

Please sign in to comment.