Skip to content

Commit

Permalink
Fix typo for feature pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
triple-Mu committed Jun 22, 2022
1 parent f8c5cae commit 28a7093
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yolov6/core/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def train(self):
for self.epoch in range(self.start_epoch, self.max_epoch):
self.train_in_loop()

except Exception:
except Exception as _:
LOGGER.error('ERROR in training loop or eval/save model.')
raise
finally:
Expand All @@ -74,12 +74,12 @@ def train_in_loop(self):
for self.step, self.batch_data in self.pbar:
self.train_in_steps()
self.print_details()
except Exception:
except Exception as _:
LOGGER.error('ERROR in training steps.')
raise
try:
self.eval_and_save()
except Exception:
except Exception as _:
LOGGER.error('ERROR in evaluate and save model.')
raise

Expand Down

0 comments on commit 28a7093

Please sign in to comment.