Skip to content

Commit

Permalink
Added a warning when starting training object detection model without…
Browse files Browse the repository at this point in the history
… provided weights
  • Loading branch information
nikita-savelyevv committed Aug 16, 2023
1 parent ac6d9af commit 4ea3e9e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/tensorflow/object_detection/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,8 @@ def run(config):
test_step = create_test_step_fn(strategy, compress_model, predict_post_process_fn)

if "train" in config.mode:
if config.weights is None:
logger.warning('Pretrained checkpoint is not provided. This may lead to poor training results!')
if is_accuracy_aware_training(config):
train_summary_writer = SummaryWriter(config.log_dir, "train")
timer = Timer()
Expand Down

0 comments on commit 4ea3e9e

Please sign in to comment.