Skip to content

Commit

Permalink
Display pbar before starting training
Browse files Browse the repository at this point in the history
  • Loading branch information
odulcy-mindee committed Mar 4, 2024
1 parent 202caab commit a72240e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions references/detection/train_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ def fit_one_epoch(model, train_loader, batch_transforms, optimizer, scheduler, a
last_progress = 0
interval_progress = 5
pbar = tqdm(train_loader, position=1)
send_on_slack(str(pbar))
for images, targets in pbar:
if torch.cuda.is_available():
images = images.cuda()
Expand Down
1 change: 1 addition & 0 deletions references/detection/train_tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def fit_one_epoch(model, train_loader, batch_transforms, optimizer, amp=False):
last_progress = 0
interval_progress = 5
pbar = tqdm(train_iter, position=1)
send_on_slack(str(pbar))
for images, targets in pbar:
images = batch_transforms(images)

Expand Down

0 comments on commit a72240e

Please sign in to comment.