When are my models loaded ? #161
-
I am using Node demo file to learn and explore this library. It looks like every time i upload an image , all models gets loaded and perform operations. Are models loading on each api call in node demo ?Can I load models on Server start only ?Will loading models only once work ?How much performance improvement it will bring ? |
Beta Was this translation helpful? Give feedback.
Answered by
vladmandic
Sep 5, 2021
Replies: 1 comment 1 reply
-
models are always loaded only once for the entire lifespan of the few more notes:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
vladmandic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
models are always loaded only once for the entire lifespan of the
human
objectonly way that models get loaded again and again is if you're creating human object again and again
(e.g.,
const human = new Human();
)few more notes:
await human.load()
or they will be loaded automatically during first usage