Iker commited on
Commit
56e0241
1 Parent(s): ea68187
Files changed (1) hide show
  1. translate.py +2 -2
translate.py CHANGED
@@ -61,8 +61,8 @@ def main(
61
  num_beams: int = 4,
62
  ):
63
 
64
- if not os.path.exists(os.path.dirname(output_path)):
65
- os.makedirs(os.path.dirname(output_path))
66
 
67
  accelerator = Accelerator(
68
  mixed_precision=precision if precision != "32" else "no", split_batches=True
 
61
  num_beams: int = 4,
62
  ):
63
 
64
+ if not os.path.exists(os.path.abspath(os.path.dirname(output_path))):
65
+ os.makedirs(os.path.abspath(os.path.dirname(output_path)))
66
 
67
  accelerator = Accelerator(
68
  mixed_precision=precision if precision != "32" else "no", split_batches=True