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
Such like this:
=====> epoch[161/300] iter: (526/1329) cur_lr: 0.000251 loss: 0.445 time:0.67
=====> epoch[161/300] iter: (527/1329) cur_lr: 0.000251 loss: 0.196 time:0.58
Traceback (most recent call last):
File "D:/my/torch-gpu/Efficient-Segmentation-Networks/Efficient-Segmentation-Networks/train.py", line 398, in
train_model(args)
File "D:/my/torch-gpu/Efficient-Segmentation-Networks/Efficient-Segmentation-Networks/train.py", line 215, in train_model
lossTr, lr = train(args, trainLoader, model, criteria, optimizer, epoch)
File "D:/my/torch-gpu/Efficient-Segmentation-Networks/Efficient-Segmentation-Networks/train.py", line 329, in train
loss.backward()
File "D:\deeplearning\anaconda\envs\torch-gpu\lib\site-packages\torch\tensor.py", line 107, in backward
torch.autograd.backward(self, gradient, retain_graph, create_graph)
File "D:\deeplearning\anaconda\envs\torch-gpu\lib\site-packages\torch\autograd_init_.py", line 87, in backward
grad_tensors = make_grads(tensors, grad_tensors)
File "D:\deeplearning\anaconda\envs\torch-gpu\lib\site-packages\torch\autograd_init.py", line 28, in _make_grads
raise RuntimeError("grad can be implicitly created only for scalar outputs")
RuntimeError: grad can be implicitly created only for scalar outputs
The text was updated successfully, but these errors were encountered:
Such like this:
=====> epoch[161/300] iter: (526/1329) cur_lr: 0.000251 loss: 0.445 time:0.67
=====> epoch[161/300] iter: (527/1329) cur_lr: 0.000251 loss: 0.196 time:0.58
Traceback (most recent call last):
File "D:/my/torch-gpu/Efficient-Segmentation-Networks/Efficient-Segmentation-Networks/train.py", line 398, in
train_model(args)
File "D:/my/torch-gpu/Efficient-Segmentation-Networks/Efficient-Segmentation-Networks/train.py", line 215, in train_model
lossTr, lr = train(args, trainLoader, model, criteria, optimizer, epoch)
File "D:/my/torch-gpu/Efficient-Segmentation-Networks/Efficient-Segmentation-Networks/train.py", line 329, in train
loss.backward()
File "D:\deeplearning\anaconda\envs\torch-gpu\lib\site-packages\torch\tensor.py", line 107, in backward
torch.autograd.backward(self, gradient, retain_graph, create_graph)
File "D:\deeplearning\anaconda\envs\torch-gpu\lib\site-packages\torch\autograd_init_.py", line 87, in backward
grad_tensors = make_grads(tensors, grad_tensors)
File "D:\deeplearning\anaconda\envs\torch-gpu\lib\site-packages\torch\autograd_init.py", line 28, in _make_grads
raise RuntimeError("grad can be implicitly created only for scalar outputs")
RuntimeError: grad can be implicitly created only for scalar outputs
The text was updated successfully, but these errors were encountered: