Esempio n. 1
0
        public static void RunDetection()
        {
            var net      = YOLOV3.YOLO3_Darknet53_VOC(pretrained: true);
            var im_fname = Utils.Download("https://raw.githubusercontent.com/zhreshold/mxnet-ssd/master/data/demo/dog.jpg", "objdet.jpg");

            var(x, img) = Yolo.LoadTest(im_fname, @short: 512);
            Img.ImShow(x);
            Console.WriteLine("Shape of pre-processed image:" + x.Shape);
            var(class_IDs, scores, bounding_boxs) = net.Call(x.AsType(DType.Float32));
            img = Viz.PlotBBox(img, bounding_boxs[0], scores[0], class_IDs[0], class_names: net.Classes);
            Img.ImShow(img);
        }
Esempio n. 2
0
 public static void RunDetection()
 {
     var net = YOLOV3.YOLO3_Darknet53_VOC();
 }