-
Notifications
You must be signed in to change notification settings - Fork 757
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
Add micro-batching support to ImageHandler #717
Conversation
Hello @bojiang, Thanks for updating this PR. There are currently no PEP 8 issues detected in this PR. Cheers! 🍻 Comment last updated at 2020-05-27 09:32:20 UTC |
6c86252
to
0732698
Compare
b6a5b65
to
cde08cc
Compare
Codecov Report
@@ Coverage Diff @@
## master #717 +/- ##
==========================================
+ Coverage 53.84% 54.41% +0.57%
==========================================
Files 104 105 +1
Lines 8277 8385 +108
==========================================
+ Hits 4457 4563 +106
- Misses 3820 3822 +2
Continue to review full report at Codecov.
|
return ['imageio'] | ||
return ["imageio"] | ||
|
||
def _load_image_data(self, request: Request): |
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.
👍
@@ -19,6 +19,10 @@ ImageHandler | |||
++++++++++++ | |||
.. autoclass:: bentoml.handlers.ImageHandler | |||
|
|||
LegacyImageHandler |
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.
👍
|
||
|
||
class LegacyImageHandler(BentoHandler): | ||
"""Transform incoming image data from http request, cli or lambda event into numpy |
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.
let's add a deprecation note here?
This LegacyImageHandler is identical to the ImageHandler prior to BentoML version 0.8.0, it was
kept here to make it easier for users to upgrade. If you are starting a new model serving project,
use the ImageHandler instead. LegacyImageHandler will be deprecated in release 1.0.0.
LGTM and merging now! There's one minor comment, feel free to address in future PRs since you are actively working on this code path. |
* [Batching] implement batching for image_handler * Clean code & tests
Description
Motivation and Context
How Has This Been Tested?
Types of changes
Components (if applicable)
Checklist:
./dev/format.sh
and./dev/lint.sh
script have passed(instructions).