Only load resources of a filter once for all subsequent filters #93
M-Dominguez
started this conversation in
Community
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, Kurento Community, I have an idea but not sure how I could implement it. I would like to through some ideas around.
I have created a custom face detection filter and I want to make sure it only loads the model once, even if I call
create.facefilter
. It originally used the haar cascade, now i am upgrading it to yolov8. There is a big performance difference and I believe its from having to load the model. What are some ways to only load the model once?Here are some of my ideas:
create.facefilter
and every subsequent call will use the global variable. I think this one is promising but not sure where to put this variable in the kurento filter code.Or maybe I'm thinking about this wrong. I dont know let me know what you think. for now I'm going to see if I can do the second option.
Beta Was this translation helpful? Give feedback.
All reactions