LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How I get nodes names for input and output in Keras frozen model (.PB)

Hello everybody,

I'm using a labview 2018 x64, and I trained a model with keras and tensorflow 1.4. I'm using IMAQ DL Model Run block, but the name of outout node that I put in this not work. One error appears talking that node name not included in graph. In my python code, the keras return predictions/Softmax with output node name but is not work in that block.

 

P.S. I'm using th aplication for image classification.

 

Thanks for yours help

 

 

Message 1 of 12
(3,491 Views)

I have the same problem! More specifically with YOLOv4 model. If anyone knows the solution, I would highly appreciate it.

0 Kudos
Message 2 of 12
(2,855 Views)

Hi, How are you?

 

My solition was use a python node block calling the python code. There is the possibility of frozen model but I think that spend more time.

0 Kudos
Message 3 of 12
(2,847 Views)

I can help you my email is viniciusdarochamotta@gmail.com.

0 Kudos
Message 4 of 12
(2,846 Views)

Hey, thanks for your reply. I have managed to list the output node names using the following script. Feel free to use it 🙂

 

The original script I modified is available on this link: https://stackoverflow.com/questions/47267636/tensorflow-how-do-i-find-my-output-node-in-my-tensorflo...

0 Kudos
Message 5 of 12
(2,828 Views)

I had a similar code, but my problem was a little bit different. I was using keras and I don't obtained success for to get a node by your names.

0 Kudos
Message 6 of 12
(2,823 Views)

In the end I didn't manage to do it either. The names printed are not the node names, but operation tensor names which cannot be found using LabVIEW.

0 Kudos
Message 7 of 12
(2,781 Views)

I advise you to use the python node block to do this integration with that you create your code in python, taking the data from labview and passing it to your model to execute and then returning the processed data to labview, I got it like this.

Message 8 of 12
(2,775 Views)

Does it mean to execute the deep learning inference in a python script instead of the DL VI?

0 Kudos
Message 9 of 12
(2,772 Views)

Yes, if you want I can help you with that.

0 Kudos
Message 10 of 12
(2,765 Views)