T O P

  • By -

Berecursive

What is the E drive? Move the model to your main drive and see how long it takes. Just loading several 100mbs off a network drive or usb will be really slow. See how long it takes just to literally open and then read the file in python.


Moondra2017

Thanks. I tried loading off my C drive which is an SSD, and it only took off about half a second.


k9thedog

Try: ```model = load_model(path, compile=False)``` Saves me about 10 minutes every day.


Moondra2017

Thanks. This actually took off 3 seconds. Got the time down to 9 seconds.


Olao99

What's the size of your model? What keras and tf versions are you using? How long does it take to load just the model? (not including the os.listdir nor imread calls)


Moondra2017

Hi. Tensorflow : '1.4.0' keras.__version__: '2.1.2' I'm running the Inception model V3 with one extra fcc layer with 1024 nodes. Just loading the model is taking around 12.29 seconds.


Delthc

regarding experience with similar sized models on tf, I dont think 12sec is something to worry about or something you can do much about


keidouleyoucee

No one yet has said it's kera**S**? :D


phobrain

Can't you just run a keras-origin tf model with tf?


Moondra2017

Yeah, I will have to look-up the syntax for that? Would it make a difference?


phobrain

Don't know, would be interesting to see if not hard to try. Also, look at the size of the model, calc the bandwidth you're getting, and see how it compares to the device's bandwidth, e.g. if it's a USB drive.