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
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
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