-
Notifications
You must be signed in to change notification settings - Fork 800
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
EasyOCR Artifact #1616
EasyOCR Artifact #1616
Conversation
Hello @gregd33, Thanks for updating this PR. There are currently no PEP 8 issues detected in this PR. Cheers! 🍻 Comment last updated at 2021-05-13 02:46:11 UTC |
Codecov Report
@@ Coverage Diff @@
## master #1616 +/- ##
==========================================
+ Coverage 65.15% 65.26% +0.11%
==========================================
Files 158 159 +1
Lines 11280 11337 +57
==========================================
+ Hits 7349 7399 +50
- Misses 3931 3938 +7
Continue to review full report at Codecov.
|
One thing I'm uncertain about is if this is valid: BentoML/bentoml/frameworks/easyocr.py Line 53 in 9943276
Since the gpu will be determined on run time essentially (i.e. not when it is packed/saved) I thought it would make sense in Another question: I'm writing some tests now and need an image to send. Where can I store this image to access it for the test? |
Right now, it is difficult to modify the load behavior for model during loading BentoService. The current practice for setting additional option is in
You can store a small test image in the same directory as the test files |
@yubozhao thanks. I've removed gpu and added the image. I think I have all the pieces in place now. I'll wait to see what the CI checks say |
Ready for review |
@gregd33 It looks great. I think you will need to update the CI configuration and related files to make sure the integration test is running You will need to update the CI, similar to the changes: BentoML/.github/workflows/ci.yml Lines 281 to 296 in f556850
You will need to add scripts that install and run the tests. Similar to these files: Make sure to give the bash script correct permissions for running |
Okay easyocr integration test now enabled and passing |
Realized that I omitted gpu completely instead of making it configurable at pack time. I've now fixed that. |
Did you push that change? I can't seem to find it |
Thought I did but guess not. Pushed now |
@gregd33 Merged Thank you for contributing! |
* added necessary boilerplate * initial comit of working artifact * added tests * tests now working * fixed formating issues * added noqa: E402 * format fix * enabled integration test * fixed test image path * fixed gpu
Description
Same code to use it would be:
and
Artifact for EasyOCR
Motivation and Context
See #1538
How Has This Been Tested?
In progress
Types of changes
Component(s) if applicable
Checklist:
To do
./dev/format.sh
and./dev/lint.sh
script have passed(instructions).