pipeless-ai / pipeless

An open-source computer vision framework to build and deploy apps in minutes
https://pipeless.ai
Apache License 2.0
707 stars 32 forks source link

feat(plugins): Change plugins hooks for higher flexibility #41

Closed miguelaeh closed 1 year ago

miguelaeh commented 1 year ago

Description of the change

This PR creates a more flexible PipelessPlugin class, by allowing to implement code before and after each app hook. In this way, plugins can better adapt to a higher number of use cases. For exmaple, previously plugins implementing post-process did not work properly with ONNX inference, now those plugins can implement isntead after_post_process and they will work always.

Benefits

Possible drawbacks

Applicable issues

Additional information