When I tried to train on my own dataset, I met the flowing error messages.
Does anyone have a solution to this error? Thank you.
Traceback (most recent call last):
File "train.py", line 211, in
trainer.training(epoch)
File "train.py", line 149, in training
loss.backward()
AttributeError: 'tuple' object has no attribute 'backward'
When I tried to train on my own dataset, I met the flowing error messages. Does anyone have a solution to this error? Thank you.
Traceback (most recent call last): File "train.py", line 211, in
trainer.training(epoch)
File "train.py", line 149, in training
loss.backward()
AttributeError: 'tuple' object has no attribute 'backward'