Skip to content

Commit

Permalink
Anomaly Detection Reenabled
Browse files Browse the repository at this point in the history
  • Loading branch information
manole-alexandru committed Apr 10, 2023
1 parent dcd4227 commit 2975086
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ def train(hyp, opt, device, callbacks): # hyp is path/to/hyp.yaml or hyp dictio
f"Logging results to {colorstr('bold', save_dir)}\n"
f'Starting training for {epochs} epochs...')

torch.autograd.set_detect_anomaly(True)
for epoch in range(start_epoch, epochs): # epoch ------------------------------------------------------------------
callbacks.run('on_train_epoch_start')
model.train()
Expand Down

0 comments on commit 2975086

Please sign in to comment.