Jagadeesh
Jagadeesh

Reputation: 418

Deploying Tensorflow models as Windows exe

I want to use Tensorflow 1.4 for my ML modeling needs. My use case requires:

Can somebody tell me if TF 1.4 supports this and if so, point me to a guide or explain how its done ?

Upvotes: 4

Views: 8553

Answers (1)

Ray Hoang
Ray Hoang

Reputation: 31

This is a little late but this video on youtube covers it pretty well.

He uses pyinstaller which grabs everything needed and puts it all either into one executable without anything else, or a folder with the exe in there and other stuff.

I've tried this myself and it works pretty well, although since pyinstaller smashes everything needed into one folder which gets really huge, it includes the entire tensorflow library, the python interpreter and if you use tensorflow-gpu, it also includes the cudnn files as well which are like 600mb, effectively leaving you with over a 1gb worth of files in the end. That can be reduced by excluding modules that you don't need, I recommend creating a virtual environment and start with a clean installation of python.

Hope this helps in anyway.

Upvotes: 3

Related Questions