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.

RTOS/TDA2: Files needed for running SemSeg Semantic Segmentation usecase (Vision SDK, tidl)

Part Number: TDA2

Tool/software: TI-RTOS

Hi Ti,

I'd like to run tidl use case "Semantic Segmentation" in PROCESSOR_SDK_VISION_03_05_00_00 on tda2xevm.

I refer to VisionSDK_UserGuide_TI_DeepLearning.pdf: page6

It needs to prepare these 6 files.

Make sure the following files are present in the MMC/SD card:
o TIDLCFG.TXT (TIDL use case configuration file)
o Input file
o TIDL Semseg Network file (NET_Semseg.bin)
o TIDL Semseg Parameter file(PRM_Semseg.bin)
o TIDL Semseg Usecase input data file (inData_semSeg)
o TIDL Semseg Usecase input header file (inHeader_semSeg)

I put these 5 files to SD card except "input file".

inData and inHeader are from https://e2e.ti.com/support/processors/f/791/p/687481/2534375?keyMatch=inHeader_OD&tisearch=Search-EN-Everything

tidl_net_jsegnet21v2.bin and tidl_param_jsegnet21v2.bin are from PROCESSOR_SDK_VISION_03_05_00_00/vision_sdk/apps/tools/TIDL_files

What is "input file"? Where can I get it?

Can you also check my TIDLCFG.txt file? It was modified from TIDL_SSD_CFG.TXT.

TIDL Configuration parameters
-----------------------------

################################################################################
IMP: Make sure the size of the file names (excluding extension) is not more
than 8 characters.
################################################################################

inputWidth=768
inputHeight=320
inputFile=inData.h264
inputHDRFile=inHeader
netFileName=tidl_net_jsegnet21v2.bin
paramFileName=tidl_param_jsegnet21v2.bin

Thank you.

  • Hi Eric,

    input file refer to "IN.RGB" file present inside vision_sdk/apps/tools/TIDL_files 

    However you don't need any input file or cfg.txt file for semseg UC

    As in UC, the file names are hard coded, Please refer the UC file shared in below path -> vision_sdk\apps\src\rtos\usecases\semSeg\chains_semSeg.c

    so please rename the files accordingly

    For Semantic Segmentation UC, these below listed 4 files need to be present in the SD card 

    o TIDL Semseg Network file (NET_Semseg.bin)
    o TIDL Semseg Parameter file(PRM_Semseg.bin)
    o TIDL Semseg Usecase input data file (inData_semSeg)
    o TIDL Semseg Usecase input header file (inHeader_semSeg)

    Regards

    Surya

  • Hi Surya,
    What size of video do I prepare for "TIDL Semseg Usecase input data file (inData_semSeg)"?
  • Hi Eric,

    Ensure input video width & height should be 1024x512 as in UC, it is defined as

    #define SEMSEG_INPUT_WIDTH          (1024)

    #define SEMSEG_INPUT_HEIGHT         (512)

    PSB for details of the test video We used for testing

    Regards

    Surya