facebookresearch / maskrcnn-benchmark

Fast, modular reference implementation of Instance Segmentation and Object Detection algorithms in PyTorch.
MIT License
9.31k stars 2.49k forks source link

AttributeError: 'tuple' object has no attribute 'values' #1339

Open chenfangchenf opened 2 years ago

chenfangchenf commented 2 years ago

🐛 Bug

File "/home/chenfang/maskrcnn-benchmark/maskrcnn_benchmark/engine/trainer.py", line 74, in do_train losses = sum(loss for loss in loss_dict.values()) AttributeError: 'tuple' object has no attribute 'values'