Review/sanity check on a custom framework #1538
Replies: 2 comments 3 replies
-
Hey @gregd33 This is awesome. I think this would be a great addition to BentoML. I think there are couple things we can do.
Let me know what you think, happy to discuss further. |
Beta Was this translation helpful? Give feedback.
-
Started a PR here, need to clean up and add tests/docstring but I think the artifact is working. I used JSON instead of Pickle. I can use Pickle if its preferred but I tend to avoid pickling since it can be picky with versions etc. Since the stuff is easily saved as JSON I stuck to that. |
Beta Was this translation helpful? Give feedback.
-
I've created a custom framework for EasyOCR https://github.com/JaidedAI/EasyOCR .
It seems to work but I just wanted to get a second pair of eyes to make sure it works. I was not quite sure how the metadata worked and I need to use those arguments.
The key part to know about EasyOCR is that a model is instantiated like:
lang_list
,recog_network
andgpu
are potentially things a service using this artifact will customize. The first two determine what actual file artifacts are needed.model_storage_directory
is where to read weights from.So basically my Artifact takes care of those downloaded weights and wrapping the predict endpoint.
I'm happy to contribute this as a framework if it is useful.
and this is how I would use it:
Beta Was this translation helpful? Give feedback.
All reactions