Lavender105 / DFF

Code for Dynamic Feature Fusion for Semantic Edge Detection https://arxiv.org/abs/1902.09104
MIT License
220 stars 51 forks source link

Backward issues. #10

Closed YutingLin closed 4 years ago

YutingLin commented 4 years ago

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'

YutingLin commented 4 years ago

Change the Reduce function in pytorch-encoding/encoding/parallel.py to original code fix the error for me.