updates
This commit is contained in:
parent
081cd17007
commit
d777a57b9c
2
train.py
2
train.py
|
@ -236,7 +236,7 @@ def train():
|
|||
mloss = torch.zeros(5).to(device) # mean losses
|
||||
pbar = tqdm(enumerate(dataloader), total=nb) # progress bar
|
||||
for i, (imgs, targets, paths, _) in pbar: # batch -------------------------------------------------------------
|
||||
ni = (i + nb * epoch) # number integrated batches (since train start)
|
||||
ni = i + nb * epoch # number integrated batches (since train start)
|
||||
imgs = imgs.to(device)
|
||||
targets = targets.to(device)
|
||||
|
||||
|
|
Loading…
Reference in New Issue