From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Running a Tensorflow model in NI Vision Dev. Module 2018

Solved!
Go to solution

I am trying to test a signal processing model trained with Tensorflow using the Deep Learning from NI Vision Development Module 2018. I loaded the model with IMAQ DL Model Create function and now I want to use it with an array dataset with IMAQ DL Model Run, but I do not succeed to find the “Output Model Names” of the model required by the function. I tried to find it with model,input in Tensorflow, but the item it returns does not fit the Labview function. Can anybody help me? Thank you.

0 Kudos
Message 1 of 4
(1,121 Views)
Solution
Accepted by topic author cfosalau

Firstly, you need to to freeze your model weights in .pb format as described here

 

To get the model input output names, run the following commands after you define the model:

 

print('inputs: ', [input.op.name for input in model.inputs])
print('outputs: ', [output.op.name for output in model.outputs])
 
PS. I use above commands when defining my model in Keras.
Message 2 of 4
(1,095 Views)

great! It works! Thank you very much, BeeRio.

0 Kudos
Message 3 of 4
(1,071 Views)

Glad it worked. You can mark that as solution.

Thanks.

0 Kudos
Message 4 of 4
(1,058 Views)