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

A question about the Code of demo.py#L112 #4

Closed
lc4321 opened this issue Apr 9, 2018 · 3 comments
Closed

A question about the Code of demo.py#L112 #4

lc4321 opened this issue Apr 9, 2018 · 3 comments

Comments

@lc4321
Copy link

lc4321 commented Apr 9, 2018

Hi, when I debug the code of demo.py #L112 , the contens of scores_noNMS #L122 is changed automatically. Finally, scores stored in scores_noNMS of each group is the same as that of the last group. Is it right?

@Fang-Haoshu
Copy link
Owner

Oh, that's pretty weird. scores_noNMS should store each score_noNMS. Because I am using a append() function. Can you paste the debug log or any related information?

@lc4321
Copy link
Author

lc4321 commented Apr 10, 2018

When I adjusted the code, contents of scores_noNMS turned to normal.
for i in range(0,16):
real_loc = transformBoxInvert([predictions[0,0,:,3i+0],predictions[0,0,:,3i+1]],xmin,ymin,xmax,ymax,64)
pred_noNMS.append(real_loc)
aa=np.array([predictions[0,0,0,3*i+2]])
score_noNMS.append(aa)
preds_noNMS.append(pred_noNMS)
scores_noNMS.append(score_noNMS)

@Fang-Haoshu
Copy link
Owner

Thanks! I updated the code

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