-
Notifications
You must be signed in to change notification settings - Fork 2.2k
refactor: split segmenter into its own base class #1632
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
Conversation
Latency summaryCurrent PR yields:
Breakdown
Backed by latency-tracking. Further commits will update this comment. |
part of issue #1618 |
Codecov Report
@@ Coverage Diff @@
## master #1632 +/- ##
==========================================
+ Coverage 84.66% 84.78% +0.11%
==========================================
Files 128 130 +2
Lines 6730 6749 +19
==========================================
+ Hits 5698 5722 +24
+ Misses 1032 1027 -5
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
76517b4
to
0b1f7c2
Compare
@@ -25,7 +25,7 @@ def __init__(self, | |||
self.target_size = target_size | |||
self.channel_axis = channel_axis | |||
|
|||
def craft(self, blob: 'np.ndarray', *args, **kwargs) -> List[Dict]: | |||
def segment(self, blob: 'np.ndarray', *args, **kwargs) -> List[Dict]: |
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.
i dont see the need of changing github_1546
test case, but changing also does no harm
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.
it was failing the test, I think is because Segmenter does not have craft anymore as method
Breaking Change #1606
Linked Hub PR jina-ai/jina-hub#2033