Thank you very much for your suggestion. This is just a demo code. I developed these in a product, which used python socket for loading models and having these models available on listening requests. Sent from Mail for Windows From: David AusarSent: Sunday, July 3, 2022 10:56 PMTo: hoang98long/VN_Bike_License_Plate_recoginitionCc: SubscribedSubject: [hoang98long/VN_Bike_License_Plate_recoginition] Prevent reloading model (Issue #1) You can use the Singleton pattern to prevent reloading the models. Here is my suggestion https://python-patterns.guide/gang-of-four/singleton/—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
You can use the Singleton pattern to prevent reloading the models. Here is my suggestion https://python-patterns.guide/gang-of-four/singleton/