-
Notifications
You must be signed in to change notification settings - Fork 132
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
V3 Replay node in NN build methods #1214
base: v3_develop
Are you sure you want to change the base?
Conversation
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.
LGTM - let's just add a few basic tests before merging
@@ -85,6 +85,24 @@ void bind_neuralnetwork(pybind11::module& m, void* pCallstack) { | |||
py::arg("model"), | |||
py::arg("fps") = 30.0f, | |||
DOC(dai, node, NeuralNetwork, build)) | |||
.def( | |||
"build", | |||
[](NeuralNetwork& self, const std::shared_ptr<ReplayVideo>& input, const dai::NNArchive& nnArchive, float fps) { |
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.
Use py::overload_cast<const std::shared_ptr<ReplayVideo>&, const dai::NNArchive&, float>(&NeuralNetwork::build)
instead of lambda for consistency
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.
Maybe add an example (or modify an existing one) that uses the Replay node. Otherwise LGTM.
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.
The example workss cross platform, so it can be moved to "DetectionNetwork" folder IMO
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.
And for CPP to HostNodes?
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.
I think we can make the same one in DetectionNetwork (note I renamed the example a bit to be consistent with the other ones in the folder and added it to tests).
Adds new overloads for build methods in NN, Detections and SpatialDetection nodes. Also some cosmetic changes