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

Add OpenCV DNN pipeline #928

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

mcm001
Copy link
Contributor

@mcm001 mcm001 commented Oct 1, 2023

image

Claims to be able to support CUDA. I think this means OpenCV itself would need to have been compiled with cuda support tho

@mcm001 mcm001 requested a review from a team as a code owner October 1, 2023 19:20
Comment on lines 66 to 70
this.net =
Dnn.readNetFromDarknet(
"/home/matt/Downloads/yolov4-csp-swish.cfg",
"/home/matt/Downloads/yolov4-csp-swish.weights");
Copy link

@schreiaj schreiaj Oct 2, 2023

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.

Copy link
Contributor Author

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?

@srimanachanta
Copy link
Member

There seems to be an issue with the dependency version bumps, specifically in google test. Check CI

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
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

Successfully merging this pull request may close these issues.

None yet

3 participants