You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When performing validation for each Epoch, "out of memory" occurs after validation.
You should add "with torch.no_grad():" before "output = model(input)" in tool/train.py on line 359.
Before
model.eval()
end = time.time()
for i, (input, target) in enumerate(val_loader):
data_time.update(time.time() - end)
input = input.cuda(non_blocking=True)
target = target.cuda(non_blocking=True)
output = model(input)
Fixed
model.eval()
end = time.time()
for i, (input, target) in enumerate(val_loader):
data_time.update(time.time() - end)
input = input.cuda(non_blocking=True)
target = target.cuda(non_blocking=True)
with torch.no_grad():
output = model(input)
The text was updated successfully, but these errors were encountered:
When performing validation for each Epoch, "out of memory" occurs after validation.
You should add "with torch.no_grad():" before "output = model(input)" in tool/train.py on line 359.
Before
Fixed
The text was updated successfully, but these errors were encountered: