-
Notifications
You must be signed in to change notification settings - Fork 3
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
Include plugins in docker image #138
base: preview
Are you sure you want to change the base?
Conversation
bf3ba19
to
fe44633
Compare
Uffizzi Ephemeral Environment
|
Trying to help you with this PR. I tested it and unfortunately this incarnates a golang issue.
Quick search pointed at: golang/go#51955 |
01f9525
to
bf58330
Compare
bf58330
to
c29c0f7
Compare
@rickysarraf Go is quite picky about those plugin builds - not only the code has to match, but also the build flags (used for the plugin and the binary). The latest version of this PR works and the plugin solibs are loaded correctly, but the build code is not pretty. I need to think of a way to integrate it nicely into the current build, without having to copy-paste it for everyone of the dozens of Also given Go's plugin pickiness, it's even worth considering integrating those few plugins natively into the codebase, instead of dynamically loading them at runtime. And if someone wants to develop their own plugin, at the end it might be easier to just include it in this repository, than having to recompile it with every new version. |
Thank you @kvalev I finally got it working with this current PR.
Instead of copying the shared object files, I just symlinked the folder so that it is auto-updated.
As for the plugins, they seem to be working. Though I'll wait for the final results to reflect in the WebUI, which is going to take time until the Right now, I have:
But both YoLo and Realesgran plugins are working, as per the server-side logs:
|
The |
Indeed, it can be quite memory hungry, especially if you feed it larger images. And to be honest, I was not very happy with the results that I got for my low resolution images, but given that I had already implemented it, I left it in the codebase. The yolo8 classification plugin is way more practical. |
About the objects detected by Yolo, how do those detections get fed to PP ? I couldn't find a strong debug statement there about populating the detected objects into PP.
|
There also the case, where images generated by extraction of frame from a video, is not well understood by Yolo
|
Okay! So it is the threshold the decides. |
Some more logs on this subject. I'm glad that it is able to extract an image and run classification on it.
|
@kvalev Would be nice to have this merged as well. 🙏🏽 |
related to #130, #131
closes #137