Lavender105 / DFF

Code for Dynamic Feature Fusion for Semantic Edge Detection https://arxiv.org/abs/1902.09104

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Backward issues.

YutingLin opened this issue · comments

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'

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