This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA2EVM5777: TIDL Import with Tensorflow MobileNet v1 and MobileNet v2

Part Number: TDA2EVM5777


Hi,

I am using TIDL 01.01.00.00 for importing tensorflow model as per mentioned in the TIDL User guide.

I have downloaded MobileNet v1 and MobileNet v2 (.tgz file containing checkpoints as well as frozen pb graph) from the given link : https://github.com/tensorflow/models/tree/master/research/slim 

As graph is already frozen, I just ran "tensorflow\python\tools\optimize_for_inference.py" and got the final pb file. 

From TIDL User Guide , I understood that MobileNet v1 is validated and I also want to check whether I am able to import MobileNet v1 and generate NET.BIN and PARAM.BIN.

But, Import Tool is giving some error 

> Could not find the requested input Data : MobilenetV1/MobilenetV1/Conv2d_0/Relu6 !!

I came across the same query in e2e forum . and solution for this is to modify TIDL Import Tool / tidl_tfImport.cpp file. But, I do not know the exact changes ? Which function to add or modify ? It will be helpful for me if you tell exactly which file to modify and location? 

Also after above changes , If i am able to import MobileNet v1, Can i assume MobileNet v2 will also be able to import ?

Have you validated MobileNet v2 on any TILD Version ?

Regards,

Sagar

  • Hi Sagar,

    This error is because you may be using latest tensor flow, we validated mobileNet V1 with tensor flow 1.1, and our tool is not up to date with latest tensor flow.

    So, please use tensor flow 1.1 to optimise the graph and use the model in it.

    No, MobileNet V2 can not be imported as all the layers in it are not supported in the import tool.

    Thanks,
    Praveen