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.

DRA756: TI Deep Learning sample application on Jacinto 6

Part Number: DRA756

Hello,

I am interested in running TI Deep Learning Sample application present in Vision SDK at location ti_components\algorithms\REL.TIDLOBJ.00.07.00.00\REL.TIDLOBJ.00.07.00.00\modules\ti_dl\test on Jacinto 6 EVM. The TDA2x processor and DRA756 processor are similar and hence I expect it to run on Jacinto 6 EVM. Can someone help me understand how I can get the DSP version of TIDL running on J6 EVM quickly? Is there a quick way to port the sample application to J6 EVM and run?

Regards,

Pavan D

  • Hi Pavan,

    I have forwarded your question to TIDL experts.

    Regards,
    Yordan
  • Hi Pavan,

    The "ti_components\algorithms\REL.TIDLOBJ.00.07.00.00\REL.TIDLOBJ.00.07.00.00\modules\ti_dl\test" has pre-build out files for both DSP and EVE. These executable bin files are standalone applications. If you have a GEL files for J6 EVM to comments and reset DSP, then the pre-build out file for DSP can be executed on the J6 EVM also.

    Please let us know if you find issues in running this out file.

    Thanks and Rgerads,

    Kumar.D

  • Hello Kumar,

    Thanks for your response. I will try this out. 

    A couple more questions: 

    1. I also would like to run this TIDL application using ARM side executable. Is there a ready application or procedure using which I can do this?

    2. Also, I am interested to run the TIDL executable for EVE. How do you suggest I run this? Again I would like to see if there is a direct way like DSP and also an ARM side executable.

    3. How can I get access to the gel file that you have mentioned about? Will I be able to find it in the PSDK package for DRA756?

    Regards,

    Pavan D

  • Hi Pavan,

    The example Vision SDK has use case to run Either DSP or EVE TIDL library. Please refer this use case for more information.

    Hi Yordan,
    Could you pleas answer the question related to GEL files

    Thanks and Rgerads,
    Kumar.D
  • Hello Kumar,

    I assume the use case that you are talking about is what is present in vision_sdk\apps\src\rtos\usecases\tidl\UsecaseDsp folder. I dont see any document as to how to build and run this use case. Can you please point me to the right documentation to help me run this usecase? Also, If I need to run this on DRA756, what all changes are needed to be taken care of?

    Regards,
    Pavan D
  • Hello Kumar,

    Also, I was able to run the DSP executable of TIDL using CCS. However, I am not able to understand the input as well as output. How can I understand the input file (000100_1024x512_bgr.y) & output file (seg_out.bin)? Are these files having RGB frames of size 1024x512? How to open these files and check the segmentation of road, pedestrian, traffic light and vehicle? How can I compare the output file with the reference file? Any tool to use?

    Regards,
    Pavan D
  • Input is planar BGR file and output is segmented pixel type (0 to 4) for every input pixel.
    0 // None
    1 // ROAD
    2 //pedestrian
    3 //Traffic /Raod sign
    4 //Vehicle
  • Hello Kumar,

    What tool can I use to check both input image file and output file?

    Regards,
    Pavan D
  • Pavan Divakar72 said:
    3. How can I get access to the gel file that you have mentioned about? Will I be able to find it in the PSDK package for DRA756?

    In CCS make sure you have the device support package installed which provides the gel scripts alongside. In CCS go to help-> install new software. Select the "CCS update site" from the drop down menu. Then check the "auto device support" option and follow the instructions to install. After CCS restart and when you have connected to target you should see up top a menu with Scripts and various command options to execute on the target.

    Thanks,

    Alex

  • Thanks Alex.

    Hello Kumar,

    I was able to test the output generated for TIDL DSP executable. It works fine. Now I would like to run the TIDL usecase present in usecases folder (PSDK-Vision-3.0\vision_sdk\apps\src\rtos\usecases\tidl). I have the following questions. Request you to please provide me the answers or pointers to help me achieve my goal.
    1. How do I build and run the TIDL usecase for a different platform say J6?
    2. What all modules need to be cross compiled to enable this? Is there a document which I can refer to understand the hierarchy and the build procedure to build module by module? I am confused with every document talking about build instructions but not complete list to help me re-build Vision SDK itself.
    3. If there is a different but simple and easy way to build and run TIDL ARM based executable on other processors (J6), please do let me know.

    Regards,
    Pavan D
  • Pavan,

    Forwarded these  question to SDK team.

    Thanks and Regards,

    Kumar.D

  • Hello Kumar,

    I am able to run the DSP pre-buit sample applications of TIDL using CCS. However, I am not able to do the same with EVE pre-built binaries using CCS. Is there any different mechanism to run EVE pre-built binaries of TIDL using CCS? When I run the EVE binary, though the EVE core says running on CCS, no prints are seen on console and no output file is generated. Can you please let me know what is wrong here?

    Also, another question regarding the TIDL model import tool (tfImport & caffeImport). I am using the prebuilt binaries of these model import tools with corresponding model files (.pb for tensorflow). I am getting errors when I run the tool. Some errors and models that are used are listed below. Can you please let me know how to resolve these errors?

    1. File name: ssd_inception_v2_coco_11_06_2017\frozen_inference_graph.pb,

    Error: Could not find the requested input Data : Preprocessor/map/TensorArrayUnstack/range/start !!

    2. File name: tensorflow_inception_graph.pb

    Error: Debug Error - R6010 - abort() has been called

    3. File name: inception_v3_2016_08_28_frozen.pb

    Error: Run time Check Failure #3 - The variable 'params' is being used without being initialized


    Regards,
    Pavan D

  • Pavan,

    We have tested the inceptionNet v1 only.

    We converted the below checkpoint to pb file and ran inference using TIDL

    Regards,

    Kumar.D

  • Pavan

    Pls refer the Usecase \vision_sdk\apps\src\rtos\usecases\tidl\UsecaseDsp\ this use the DSP version of TIDL

    regards, Shiju

  • Use VISION sdk 3.0 release