Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x, losses = self.module_list[i][0](x, targets) #47

Open
ZhaoMonica opened this issue Nov 28, 2019 · 1 comment
Open

x, losses = self.module_list[i][0](x, targets) #47

ZhaoMonica opened this issue Nov 28, 2019 · 1 comment

Comments

@ZhaoMonica
Copy link

x, losses = self.module_list[i][0](x, targets)
ValueError: too many values to unpack (expected 2)

How to solve this problem?

@liwenjia41
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants