Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Mar 20, 2019
1 parent 9885903 commit 327aaeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def train(

# Get dataloader
dataloader = LoadImagesAndLabels(train_path, batch_size, img_size, augment=True)
# dataloader = torch.utils.data.DataLoader(dataloader, batch_size=batch_size, num_workers=0)

lr0 = 0.001 # initial learning rate
cutoff = -1 # backbone reaches to cutoff layer
Expand Down Expand Up @@ -81,7 +82,7 @@ def train(
# Start training
t0 = time.time()
model_info(model)
n_burnin = min(round(dataloader.nB / 5 + 1), 1000) # number of burn-in batches
n_burnin = min(round(len(dataloader) / 5 + 1), 1000) # burn-in batches
for epoch in range(epochs):
model.train()
epoch += start_epoch
Expand Down

0 comments on commit 327aaeb

Please sign in to comment.