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.

PROCESSOR-SDK-J721S2: RTOS SDK 10.0 use TIDL model Import tool with FPN failed

Part Number: PROCESSOR-SDK-J721S2


Tool/software:

I use TIDL model import tool to convert a resnet model with FPN structure.

When the SDK version is 9.1. Convert process is successful but has some WARNING.

INFORMATION: [TIDL_ResizeLayer] Resize_58 Any resize ratio which is power of 2 and greater than 4 will be placed by combination of 4x4 resize layer and 2x2 resize layer. For example a 8x8 resize will be replaced by 4x4 resize followed by 2x2 resize.

When the SDK version is 10.0. Convert process failed.

[TIDL Import] ERROR: System command failed with return code : 35584 -- [tidl_import_core.cpp, 673]
[TIDL Import] ERROR: Failed to run Calibration - Failed in function: tidlRunQuantStatsTool -- [tidl_import_core.cpp, 1703]
[TIDL Import] [QUANTIZATION] ERROR: - Failed in function: TIDL_quantStatsFixedOrFloat -- [tidl_import_quantize.cpp, 3542]
[TIDL Import] [QUANTIZATION] ERROR: - Failed in function: TIDL_runIterativeCalibration -- [tidl_import_quantize.cpp, 3692]
[TIDL Import] [QUANTIZATION] ERROR: - Failed in function: TIDL_import_quantize -- [tidl_import_quantize.cpp, 4638]
[TIDL Import] ERROR: - Failed in function: TIDL_import_backend -- [tidl_import_core.cpp, 4008]
[TIDL Import] FATAL ERROR: Quantization/NC Pass/Model checker failed -- [tidl_import_main.cpp, 503]
[TIDL Import] Aborting

input size is (224, 224, 3)

attach my model and log

4645.test.zip

  • Hi Jeff;

    We will repeat what you have on the SDK 9.1 first by using your model, to see if it can pass on our side. Could you provide the exact commands for each step you have done?

    Thanks and regards

    Wen Li  

  • Download and extract ti-processor-sdk-rtos-j721s2-evm-10_00_00_05.tar.gz

    cd ${PSDKR_PATH}
    ./sdk_builder/scripts/setup_psdk_rtos.sh
    
    ./sdk_builder/scripts/setup_psdk_rtos.sh --install_tidl_deps
    ln -s pdk_<SOC>_<PDK_Version>/ pdk
    
    cd sdk_builder
    make sdk_scrub -j
    make sdk -j
    make tidl_pc_tools -j

    After that I get "tidl_model_import.out" at c7x-mma-tidl\ti_dl\utils\tidlModelImport\out

    Use tidl_model_import.out to convert model.

    tidl_model_import.out tidl_import_test.txt