Blog

Learn About Our Meetup

5000+ Members

MEETUPS

LEARN, CONNECT, SHARE

Join our meetup, learn, connect, share, and get to know your Toronto AI community. 

JOB POSTINGS

INDEED POSTINGS

Browse through the latest deep learning, ai, machine learning postings from Indeed for the GTA.

CONTACT

CONNECT WITH US

Are you looking to sponsor space, be a speaker, or volunteer, feel free to give us a shout.

[D] How to use a Keras model in real-time?

Hi all,

None my previous deployments of a keras model have been time critical – waiting a few seconds for the python script to load in all the libraries (like tensorflow, numpy), load up the model, etc etc. was fine.

However, I’m now dealing with a situation where I’m going to need to query my deployed model every 1 second or so – and get a response back as quickly as possible. This means that my usual method of calling a python script via a .bat file, passing in an argument with my csv filename(using Process() in my .net app) and reading the stdout will not suffice.

I need a way to keep a python session alive somehow, with the libraries and model loaded into ram – waiting for some sort of call that points towards my csv file(s) that need to be queried against the model. Note that I must initiate this call [and get a response back into] my C# code, as this is part of a bigger system that relies on other C# libraries.

Anyone have thoughts about how to go about this?

submitted by /u/Zman420
[link] [comments]

Next Meetup

 

Days
:
Hours
:
Minutes
:
Seconds

 

Plug yourself into AI and don't miss a beat

 


Toronto AI is a social and collaborative hub to unite AI innovators of Toronto and surrounding areas. We explore AI technologies in digital art and music, healthcare, marketing, fintech, vr, robotics and more. Toronto AI was founded by Dave MacDonald and Patrick O'Mara.