Skip to content

Commit

Permalink
Issue google/gin-config#96 seems to be resolved for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
mashrurmorshed committed Nov 26, 2020
1 parent 65346dc commit f4b24c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,9 @@ def train(opt, AMP, WdB, train_data_path, train_data_list, test_data_path, test_
if DEBUG:
print(f'[!!!] Iteration check. Value of i: {i} | Value of num_iter: {num_iter}')

# Change i == num_iter to i >= num_iter?

if i >= num_iter:
# Change i == num_iter to i >= num_iter
# Add num_iter > 0 condition
if num_iter > 0 and i >= num_iter:
print('end the training')
sys.exit()

Expand Down

0 comments on commit f4b24c9

Please sign in to comment.