Forums - How to config the json file of UDO upsample

1 post / 0 new
How to config the json file of UDO upsample
jing.chen
Join Date: 10 May 20
Posts: 9
Posted: Wed, 2020-10-28 02:23
How to config the json file of UDO upsample? The model is only one layer of Upsample to resize a image of 1*3*320*512 to 1*3*640*1024
 
 When I config as follows and run whit "snpe-onnx-to-dlc", it will  print"Segmentatin fault"
 
{
    "UdoPackage_0":
    {
        "Operators": [
            {
            "type": "Upsample",
                "inputs":[
                    {"name":"input", "data_type": "FLOAT_32"},
{"name":"resize_0", "data_type": "FLOAT_32"} 
                ],
                "outputs":[
                    {"name":"2","data_type": "FLOAT_32"}
                ],
                "core_types": ["CPU","GPU", "DSP"]
            }
        ],
        "UDO_PACKAGE_NAME": "UpsampleUdoPackage"
    }
 
when I config the json file as follows, it will print"File "/home/chenjing/SNPE/snpe-1.39.0/lib/python/qti/aisw/converters/common/udo/udo_factory.py", line 144, in __create_onnx_udo_op
    UDOFactory.update_tensor_infos_with_src_op_names(input_tensor_info, src_op.input)
  File "/home/chenjing/SNPE/snpe-1.39.0/lib/python/qti/aisw/converters/common/udo/udo_factory.py", line 111, in update_tensor_infos_with_src_op_names
    tensor_info[i].name = name
IndexError: list index out of range"
 
{
    "UdoPackage_0":
    {
        "Operators": [
            {
            "type": "Upsample",
                "inputs":[
                    {"name":"input", "data_type": "FLOAT_32"} 
                ],
                "outputs":[
                    {"name":"2","data_type": "FLOAT_32"}
                ],
                "core_types": ["CPU","GPU", "DSP"]
            }
        ],
        "UDO_PACKAGE_NAME": "UpsampleUdoPackage"
    }
}
 
  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.