Skip to content

[Feat] Allow label type annotations for multiple selected boxes & Disallow zooming while in drawing mode#10

Merged
felixdittrich92 merged 4 commits intomainfrom
bugfix/limit-list-size-deselect-before-save
Apr 22, 2025
Merged

[Feat] Allow label type annotations for multiple selected boxes & Disallow zooming while in drawing mode#10
felixdittrich92 merged 4 commits intomainfrom
bugfix/limit-list-size-deselect-before-save

Conversation

@t2k-list
Copy link
Copy Markdown
Contributor

@t2k-list t2k-list commented Apr 11, 2025

This PR:

  • Switch to combobox for label type annotations
  • Disallow zooming while drawing
  • set default onnxruntime log level
  • Allow label type annotations via multi selected boxes

Closes: #8 #11

Deselect all annotations before saving
@t2k-list t2k-list requested a review from felixT2K April 11, 2025 13:44
Copy link
Copy Markdown
Collaborator

@felixdittrich92 felixdittrich92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the failing tests - the deselect_all before saving breaks the current tests

Added monkeypatch to test_saver to mock deselect_all method.
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 14, 2025

Codecov Report

Attention: Patch coverage is 71.42857% with 4 lines in your changes missing coverage. Please review.

Project coverage is 80.34%. Comparing base (b15639f) to head (619aa81).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
labeler/views/canvas.py 0.00% 3 Missing ⚠️
labeler/views/gui.py 88.88% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #10      +/-   ##
==========================================
- Coverage   80.60%   80.34%   -0.26%     
==========================================
  Files           9        9              
  Lines         861      870       +9     
==========================================
+ Hits          694      699       +5     
- Misses        167      171       +4     
Flag Coverage Δ
unittests 80.34% <71.42%> (-0.26%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@felixT2K felixT2K changed the title Switch from OptionMenu to Combobox for label type selection [Feat] Allow label type annotations for multiple selected boxes & Disallow zooming while in drawing mode Apr 17, 2025
@felixT2K
Copy link
Copy Markdown
Contributor

felixT2K commented Apr 17, 2025

@t2k-list

  • test again
  • (Optional): It should not be possible to write in the combobox

with self.img_cnv.polygons_mutex:
new_type = self.type_variable.get().strip()
last_selected_polygon.poly_type = new_type
# skip if it's the default type
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@t2k-list otherwise we override prev selected with the default

Set label_type widget state to readonly
```
@t2k-list t2k-list force-pushed the bugfix/limit-list-size-deselect-before-save branch from a7b9d4b to 619aa81 Compare April 22, 2025 09:30
@felixdittrich92 felixdittrich92 merged commit 8305d07 into main Apr 22, 2025
21 of 23 checks passed
@felixdittrich92 felixdittrich92 deleted the bugfix/limit-list-size-deselect-before-save branch April 22, 2025 09:35
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

Successfully merging this pull request may close these issues.

[Bug] Draw combined with zoom shifts point

4 participants