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

can we implement Yolov 5 and 6 with custom data weights #18

Open
synersignart opened this issue Jan 24, 2023 · 1 comment
Open

can we implement Yolov 5 and 6 with custom data weights #18

synersignart opened this issue Jan 24, 2023 · 1 comment
Labels
question Further information is requested

Comments

@synersignart
Copy link

synersignart commented Jan 24, 2023

can we implement Yolov 5 and 6 custom on this too , and possibly allowing users to add their own custom trained data weights in the form if .pt file and .yaml files , id be also interested as the current deep vision processing I cant find any information of implementing custom datasets

thanks

@cansik cansik added the question Further information is requested label Jan 24, 2023
@cansik
Copy link
Owner

cansik commented Jan 24, 2023

It is already implemented to use YoloV5 with custom weights and models. Just export the trained model & weights to an onnx file (ultralytics/yolov5#251) and load it:

YOLONetwork network = new YOLONetwork(
        null,
        new Path("path-to-your-onnx"),
        640, 640,
        true
);

network.loadLabels(new Path("path to a text file with labels"));
network.setTopK(100);

YoloV6 is not supported at the moment.

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

No branches or pull requests

2 participants