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

demo issue #9

Open
buptzqr opened this issue May 6, 2019 · 2 comments
Open

demo issue #9

buptzqr opened this issue May 6, 2019 · 2 comments

Comments

@buptzqr
Copy link

buptzqr commented May 6, 2019

when I run the demo, I got a error,please help me,thank you.

the error information as following:
y = net(xx)
File "/home/bupt-sse3/anaconda3/lib/python3.5/site-packages/torch/nn/modules/module.py", line 489, in call
result = self.forward(*input, **kwargs)
File "/home/bupt-sse3/repulsion_loss_ssd-master/ssd.py", line 103, in forward
self.priors.type(type(x.data)) # default boxes
File "/home/bupt-sse3/repulsion_loss_ssd-master/layers/functions/detection.py", line 54, in forward
ids, count = nms(boxes, scores, self.nms_thresh, self.top_k)
ValueError: not enough values to unpack (expected 2, got 0)

@ghost
Copy link

ghost commented Jul 9, 2019

i got the same result.

@ghost
Copy link

ghost commented Jul 9, 2019

I changed the code as follows and worked for me.
In detection.py of line 49
from

if scores.dim() == 0:
continue
to

if scores.size(0) == 0:
continue

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

1 participant