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

error code #6

Open
diut-hua opened this issue Apr 5, 2023 · 3 comments
Open

error code #6

diut-hua opened this issue Apr 5, 2023 · 3 comments

Comments

@diut-hua
Copy link

diut-hua commented Apr 5, 2023

Thanks for you code, when i eval the model, this error appears:
Traceback (most recent call last):
File "main.py", line 65, in
ctrbox_obj.evaluation(args, down_ratio=down_ratio)
File "E:\Polar-master\eval.py", line 40, in evaluation

File "E:\Polar-master\func_utils.py", line 97, in write_results
pts0, scores0 = decode_prediction(predictions, dsets, args, img_id, down_ratio)
ValueError: too many values to unpack (expected 2)

This happens in the evaluation process too, can you give some suggestions?

@flyingshan
Copy link
Owner

flyingshan commented Apr 6, 2023

Sorry, to visualize the bounding points, I made the function return them at here, but I made some mistakes in cleaning the code. I don't really have time testing and correcting it now, you may just try deleting 'bd_pts0' here.

@diut-hua
Copy link
Author

thank you for your reply!
but after i delete 'bd_pts0', there is another error appears:

Traceback (most recent call last):
File "main.py", line 65, in
ctrbox_obj.evaluation(args, down_ratio=down_ratio)
File "E:\Polar-master\eval.py", line 40, in evaluation
func_utils.write_results(args,
File "E:\Polar-master\func_utils.py", line 113, in write_results
nms_results = non_maximum_suppression(pts_cat, scores_cat)
TypeError: non_maximum_suppression() missing 1 required positional argument: 'bd_pts'

Thansk a lot!

@kobezy
Copy link

kobezy commented Oct 24, 2023

I also encountered the same problem: ValueError: too many values to unpack (expected 2) How did you ultimately solve it?

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

3 participants