Skip to content

Commit

Permalink
[Fix] Fix a makedirs bug (#2066)
Browse files Browse the repository at this point in the history
  • Loading branch information
aigcliu authored Apr 29, 2022
1 parent 1baf96e commit 01ed9c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddleseg/core/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def train(model,
if not os.path.isdir(save_dir):
if os.path.exists(save_dir):
os.remove(save_dir)
os.makedirs(save_dir)
os.makedirs(save_dir, exist_ok=True)

# use amp
if precision == 'fp16':
Expand Down

0 comments on commit 01ed9c3

Please sign in to comment.