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
x, losses = self.module_list[i][0](x, targets)
ValueError: too many values to unpack (expected 2)
How to solve this problem?
change losses --> *losses
DetectionLayer return type is tuple: (loss, loss_x.item(), loss_y.item(), loss_w.item(), loss_h.item(), loss_conf.item(), loss_cls.item(), recall, precision,)
So x = loss and *losses = (other parameters)
x, losses = self.module_list[i][0](x, targets)
ValueError: too many values to unpack (expected 2)
How to solve this problem?
The text was updated successfully, but these errors were encountered: