Creating a pipeline with a blob file config that doesn't exist results in obscure error
See original GitHub issueI switched to a new detection network and upon doing so made a typo in the blob_file_config
which presented me with a very obscure error seen below. It would be helpful if an error was thrown if the blob or blob config file does not exist.
Using Custom Calibration File: depthai.calib
XLink initialized.
Sending device firmware "cmd_file": /home/pi/depthai/depthai.cmd
Successfully connected to device.
Loading config file
watchdog started Attempting to open stream config_d2h
3000
Successfully opened stream config_d2h with ID #0!
Closing stream config_d2h: ...
Closing stream config_d2h: DONE.
WARNING: Version (dev) does not match (c722ebde932d6627463321816a5654b5be6069e1 & 30295b558351cd030408e12a220cdd55b5fb450e)
EEPROM data: invalid / unprogrammed
watchdog triggered
Stopping threads: ...
Stopping threads: DONE 0.000s.
Closing all observer streams: ...
Closing all observer streams: DONE.
Reseting device: 0.
E: [global] [ 215801] [Scheduler00Thr] dispatcherEventSend:53 Write failed (header) (err -4) | event XLINK_RESET_REQ
E: [xLink] [ 215801] [Scheduler00Thr] sendEvents:1036 Event sending failed
Reseting: DONE.
XLink initialized.
Sending device firmware "cmd_file": /home/pi/depthai/depthai.cmd
Successfully connected to device.
Loading config file
Attempting to open stream config_d2h
Successfully opened stream config_d2h with ID #0!
Closing stream config_d2h: ...
Closing stream config_d2h: DONE.
WARNING: Version (dev) does not match (c722ebde932d6627463321816a5654b5be6069e1 & 30295b558351cd030408e12a220cdd55b5fb450e)
EEPROM data: invalid / unprogrammed
terminate called after throwing an instance of 'nlohmann::detail::parse_error'
what(): [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal
Aborted
Example code:
depthai.init_device(consts.resource_paths.device_cmd_fpath)
config = {
'streams': ['metaout', 'previewout'],
'depth':
{
'calibration_file': consts.resource_paths.custom_calib_fpath,
'padding_factor': 0.3
},
'ai':
{
'blob_file': "networks/person-2/face-detection-adas-0001.blob",
# Notice the typo here with networks-2 instead of person-2
'blob_file_config': "networks-2/person/face-detection-adas-0001_depth.json",
'calc_dist_to_bb': True
}
}
pipeline = depthai.create_pipeline(config)
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
not able to create pipeline in microsoft azure using python(2.0 ...
Forbidden generally means you don't have permission. Could you check if you have the write permission of that data factory?
Read more >Cannot include downstream pipeline with `include:file` - GitLab
Triggering a child pipeline using include:file results in a CI Lint error "include config contains unknown keys: project, ref".
Read more >Azure Data Factory Trigger Storage Event Error 404
Azure Data Factory Trigger Storage Event Error 404 - The Required Blob is Missing - Microsoft Q&A.
Read more >How to query blob storage with SQL using Azure Synapse
Reading Parquet files. Copy the following query to the new script window created and execute the query. Don't forget to change the URL...
Read more >Troubleshooting - DepthAI documentation - Luxonis
For USB OAK cameras, DepthAI can throw an error code like ... Tips on setting up proper photo conditions: ... Device(pipeline, usb2Mode=True) as...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @ConnorChristie , I did a test today by removing a JSON config under an nn folder and ran the app. The latest app has the feature to notify the user “NN JSON not found” and exit right after the warning (example shown as below). Feel free to let us know if has any thoughts.
Thanks!
Got it, thanks for checking. So this actually was just a different check that was already there… We’ll get this detected as well.
Thanks again!