Alturos.Yolo icon indicating copy to clipboard operation
Alturos.Yolo copied to clipboard

How do I do yolo wrapper for classification task?

Open nguyenanhtuan1008 opened this issue 4 years ago • 1 comments

@tinohager Thank you so much to you and your team. So sorry but I don't have much experience in C# and C++.

I try to do images classification on Alturos YOLO by command: ./darknet classifier predict cfg/imagenet1k.data cfg/darknet19.cfg darknet19.weights data/dog.jpg by this tutorial https://pjreddie.com/darknet/imagenet/

I have done load weights, .cfg files but no result shows up. Then I read YoloWrapper.cs I saw that no Classification there, just Detector only.

Now I would like to create the YoloWrapperClassification.cs like as you did: https://github.com/AlturosDestinations/Alturos.Yolo/blob/master/src/Alturos.Yolo/YoloWrapper.cs and https://github.com/AlturosDestinations/Alturos.Yolo/blob/master/src/Alturos.Yolo/YoloTracking.cs

I think the way is read from .dll files from darknet alexAB but I really don't where to get that code on the darknet.c file. Can you tell me how to do it? Thank you so much.

nguyenanhtuan1008 avatar Oct 08 '20 14:10 nguyenanhtuan1008

The same to me. I can use System.Diagnostics.Process to call command "./darknet classifier predict cfg/imagenet1k.data cfg/darknet19.cfg darknet19.weights data/dog.jpg" And read the standard output. But I think it is not the good way to do.

badpaybad avatar Jan 27 '21 03:01 badpaybad