-
Notifications
You must be signed in to change notification settings - Fork 187
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
Add OpenCV DNN pipeline #928
base: master
Are you sure you want to change the base?
Conversation
this.net = | ||
Dnn.readNetFromDarknet( | ||
"/home/matt/Downloads/yolov4-csp-swish.cfg", | ||
"/home/matt/Downloads/yolov4-csp-swish.weights"); |
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.
For these, you're either going to need to make these configurable or ship them as assets in the jar.
If you choose to go the jar route you should be able to drop the files in photo-core/src/main/resources/
and then access them with this.getClass().getResourceAsStream("yolov4-csp-swish.cfg"))
and this.getClass().getResourceAsStream("yolov4-csp=swish.weights"))
Edit: I have not investigated the legal side of shipping weights like 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.
Yeah, these are just some random Yolov4 weights someone trained on the coco dataset. For FRC stuff you'd wanna train your own off of a dataset like 900's or something I imagine?
There seems to be an issue with the dependency version bumps, specifically in google test. Check CI |
a8f4e87
to
d509056
Compare
Update OpencvDnnPipe.java Run lint and refactor Add dnn tab and start poking at backend Run lint Fix draw 2d for dnn Update OpencvDnnPipe.java
Claims to be able to support CUDA. I think this means OpenCV itself would need to have been compiled with cuda support tho