Forums - Uninformative error in snpe_bench.py

3 posts / 0 new
Last post
Uninformative error in snpe_bench.py
manuel.k
Join Date: 27 Feb 23
Posts: 15
Posted: Thu, 2023-03-16 03:05

Hi everyone!

When running the snpe_bench.py script I get and uninformative error of "name 'artifact' is not defined", without any stack trace. Would you have a recommendation how to debug? Any help is appreciated!

Full output:

(snpe-benchmark) mako443@mako443:~/workspace/MobileNN$ python /home/mako443/lib/snpe-2.5.0.4052/benchmarks/snpe_bench.py -c scripts/benchmark/config.json -a
2023-03-16 11:02:59,386 - INFO - snpe_bench: Running snpe_bench with {'config_file': 'scripts/benchmark/config.json', 'output_base_dir_override': None, 'device_id_override': None, 'host_name': None, 'run_on_all_connected_devices_override': True, 'device_os_type_override': 'android', 'debug': False, 'sleep': 0, 'userbuffer_mode': '', 'perfprofile': '', 'profilinglevel': '', 'generate_json': False, 'profile_mode': False, 'enable_init_cache': False}
2023-03-16 11:02:59,390 - INFO - snpebm.snpebm_config: Overriding device id to ['004401230933026'], instead of ['004401230933026'] from config file
2023-03-16 11:02:59,390 - INFO - snpebm.snpebm_config: Overriding host name to localhost
name 'artifact' is not defined

Listing connected devices with adb:

mako443@mako443:~/workspace/MobileNN$ adb devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached
004401230933026 device

Full config:

{
    "Name": "ConvNet",
    "HostRootPath": "./",
    "HostResultsDir": "./data",
    "DevicePath": "/data/local/tmp/snpebenchmark",
    "Devices": [
        "004401230933026"
    ],
    "HostName": "localhost",
    "Runs": 3,
    "Model": {
        "Name": "/data/local/tmp/snpebenchmark",
        "Dlc": "./checkpoints/ConvNet.dlc",
        "Data": [
            "./data"
        ],
        "InputList": "./data/inputs.txt"
    },
    "Runtimes": [
        "GPU"
    ],
    "Measurements": [
        "timing"
    ],
    "CpuFallback": false,
    "UBFloatOutput": false,
    "PerfProfile": "default",
    "ProfilingLevel": "basic"
}

Thank you and best regards,

Manuel

  • Up0
  • Down0
weihuan
Join Date: 12 Apr 20
Posts: 270
Posted: Sun, 2023-03-19 06:21

Dear developer,

We're instresting about the device no you shared. You can run your model standalone rather than inside snpe_bench.py to check if work or not.

 

BR.

Wei

  • Up0
  • Down0
manuel.k
Join Date: 27 Feb 23
Posts: 15
Posted: Mon, 2023-03-20 11:35

Hi Wei,

Thank you for getting back to us!

The device is a "Sharp P7" smartphone, so a fairly recent model.

And yes, the model ran with that exact same .dlc file using the SNPE SDK without any problems.

Best regards,

Manuel

  • Up0
  • Down0
or Register

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.