-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run NN on left/right mono cameras #94
Conversation
Rebuild libs, TODO RPi
Changes in the above FW update:
|
Just tested this on macOS. I do still see some failure to init -sometimes- (maybe 1 in 5?) when running Below is an example of the output when this occurs:
Note that the watchdog does recover and it does run eventually. It's worth noting that the probability of this occuring seems to go up when the Myriad X is cold booted (i.e. unplugging only 5V power, plugging it back in, and then running (Ignore the macOS segfault at the end, this is a known issue for which Szabi has a workaround.) On to testing w/out RGB camera. |
Just tested w/out the color camera and it works great: So I'd say this functionality is ready to go. I'm guessing the Mac initialization is still a bit too slow for the watchdog... not sure if there's some setting in the code or otherwise that could speed up the macOS initialization. |
I can reproduce this issue on master. Looks like one of the Mono camera doesn't work. The NN metadata + xyz will be missing too (I think this issue was encountered before). |
Ah, very interesting, thanks. So to make sure I'm understanding properly, sometimes on boot up one of the mono cameras just fails to initialize. Is that right? |
Yes, one of the mono cameras will fail to initialize. I tested by keeping the python script opened, and resetting or power-cycling the board. Sometimes one of the mono cam windows got frozen, and recovered after one more restart. |
Ah, got it. Thanks. |
…oding, not when displaying (for a slight improvement in performance)
…on bindings, previously there were crashes and wrong BB association to previewout frames, with the option `-cam left_right`
face-detection-retail-0004.json
(even if unused for now, used only with decode_mobilenet_ssd)
up to 60fps for H:720 or H:800, up to 120fps for H:400.
max 42 fps for 4K, max 118 fps 1080p. Higher is possible by tweaking the configs.
Known issues for now:
|
Just tried building this on Mac to test it and I'm running into the following:
Commands prior to this:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested the face detection with emotion and face detection with landmarks. Both looks great.
Free up another shave for NN; max shaves : 14/1080p, 11/4k
ca19819
to
d53f034
Compare
Run NN on left/right mono cameras; add support for second stage NN
Fix NN bounding-box lag with depth enabled, for fast NN models like
face-detection-retail-0004
. TODO: for slower networks, this lowers the FPS of left/right/depth streams, will fix it.Apply default board-config values for older EEPROM versions (fix depth calc with V1, where RGB FOV was missing).
Usage example (custom model, run NN on Right, show depth map, overlay the bounding box on depth):