-
Notifications
You must be signed in to change notification settings - Fork 193
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
Fix #961: Removed old visualization code from evaluate.py #965
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Bhavya1604 for getting to work on this PR. I expected some changes in the tests too.
@henrykironde Thanks for the feedback! I’m working on updating the tests and will push the changes soon. |
I have made the following changes:
All tests have passed on my local system. Let me know if any further changes are needed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are just a few things left. An I have commented on one. The other is running yapf to clean up the code. That is why it is failing
tests/test_evaluate.py
Outdated
@@ -113,9 +106,8 @@ def test_point_recall_image(root_dir, tmpdir): | |||
img_path = get_data("OSBS_029.png") | |||
if root_dir == "tmpdir": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still root_dir here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it's not required. I missed it thanks for catching that! I'll update it now.
I have removed the old visualization code from evaluate.py, as requested in issue #961
The changes include:
Removing root_dir from evaluate_image_boxes and evaluate_boxes.
Eliminating unnecessary visualize.plot_predictions and cv2.imwrite calls.
Ensuring all related functions remain functional without visualization dependencies.
All tests are passing, except for an unrelated JSON test.
Looking forward to your feedback!
Thanks!