Skip to content
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

Make it easy to record events from hardware #184

Open
ssinhaleite opened this issue Dec 5, 2023 · 2 comments
Open

Make it easy to record events from hardware #184

ssinhaleite opened this issue Dec 5, 2023 · 2 comments

Comments

@ssinhaleite
Copy link
Member

Currently it is not straightforward to record data from hardware (either from the vision sensor or layer outputs) without providing any input.

For example, if I just want to record data from the speck sensor for a given duration, I would not know how to do this with sinabs-dynapcnn (without writing lower-level samna code).

@bauerfe
Copy link
Contributor

bauerfe commented Nov 12, 2024

There is a way that is probably not documented, nor tested:

  1. Instantiate a DynapcnnNetwork with a sequential that only contains a DVSLayer.
  2. Deploy that network onto chip with the to method, passing monitor_layers = ["dvs"]
  3. To record, call the forward method of the DynapcnnNetwork instance. As argument pass a list with one single dummy event that has as timestamp the desired recording duration (in microseconds).
  4. The return value will be a list of all events recorded from the DVS within the specified duration.

This issue could probably be solved by adding proper documentation to the procedure above and a unit test that ensures it works.

@bauerfe
Copy link
Contributor

bauerfe commented Nov 14, 2024

Good place to add to the docs: https://sinabs.readthedocs.io/en/v2.0.0/speck/the_basics.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants