Questions tagged [darknet]

This tag refers to the neural net framework created by Joseph Redmon

Darknet is an open source neural network framework written in C and CUDA. It is fast, easy to install, and supports CPU and GPU computation. You can find the source on GitHub or you can read more about what Darknet can do right here:

454 questions
48
votes
4 answers

Understanding darknet's yolo.cfg config files

I have searched around the internet but found very little information around this, I don't understand what each variable/value represents in yolo's .cfg files. So I was hoping some of you could help, I don't think I'm the only one having this…
Reda Drissi
  • 1,532
  • 3
  • 20
  • 32
28
votes
5 answers

Darknet YOLO image size

I am trying to train custom object classifier in Darknet YOLO v2 https://pjreddie.com/darknet/yolo/ I gathered a dataset for images most of them are 6000 x 4000 px and some lower resolutions as well. Do I need to resize the images before training to…
Farahats9
  • 535
  • 1
  • 9
  • 22
16
votes
2 answers

Unsupported gpu architecture compute_30 on a CUDA 5 capable gpu

I'm currently trying to compile Darknet on the latest CUDA toolkit which is version 11.1. I have a GPU capable of running CUDA version 5 which is a GeForce 940M. However, while rebuilding darknet using the latest CUDA toolkit, it said nvcc fatal …
3MP The Rook
  • 173
  • 1
  • 2
  • 5
16
votes
1 answer

How to convert caffe prototxt to pytorch model?

So far I was using the pytorch-caffe-darknet-convert repository. After overcoming numerous problems (concat and eltwise layers not convertible) I ended up with something that looks like a darknet config file: python caffe2darknet.py my_prototxt.txt…
mcExchange
  • 6,154
  • 12
  • 57
  • 103
16
votes
3 answers

Yolo Darknet Detecting Only Specific Class like Person, Cat, Dog etc

We are using YOLO Darknet for object detection. We are using Python3, tensorflow 1.0, numpy, opencv 3. Using yolo.weight for detection. 
As per given in below link : 
https://github.com/thtrieu/darkflow#cameravideo-file-demo
 When we run it on a…
Tejas Somaiya
  • 387
  • 1
  • 3
  • 10
14
votes
4 answers

Training darknet finishes immediately

I would like to use the yolo architecture for object detection. Before training the network with my custom data, I followed these steps to train it on the Pascal VOC data: https://pjreddie.com/darknet/yolo/ The instructions are very clear. But after…
lhk
  • 27,458
  • 30
  • 122
  • 201
13
votes
6 answers

OpenCV 4.x+ requires enabled C++11 support compilation darknet fatal error

I just compiled and installed the last version of OpenCV 3.4.0 and I would like to compile darknet (for yolo object detection), but at compilation, I have gcc -Iinclude/ -Isrc/ -DOPENCV `pkg-config --cflags opencv` -DGPU…
FlavienRJ
  • 191
  • 1
  • 1
  • 7
8
votes
4 answers

Unable to init server: Could not connect: Connection refused. YOLO on Google Colab

I'm trying to test out YOLO on google colab for the first time and keep running into this odd error: This is the line of code that I run: !./darknet detector test data/obj.data cfg/yolov3_custom.cfg /mydrive/yolov3/backup/yolov3_custom_last.weights…
A.Code.1
  • 161
  • 1
  • 3
  • 10
7
votes
2 answers

How to deal with "DNN module was not built with CUDA backend; switching to CPU" warning in C++?

I am trying to run YOLOv3 on Visual Studio 2019 using CUDA 10.2 with cuDNN v7.6.5 on Windows 10 using NVidia GeForce 930M. Here is part of the code I used. #include #include #include #include #include…
AbdelAziz AbdelLatef
  • 3,650
  • 6
  • 24
  • 52
6
votes
2 answers

Loss and mAP chart in YOLOv4

I'm still new to "You Only Look Once" object detection algorithm (YOLOv4 to be exact). I have some questions regarding the mAP and loss chart. I tried to follow the instructions from AlexeyAB Darknet, and train my custom object detector using Google…
6
votes
3 answers

Darknet model to onnx

I am currently working with Darknet on Yolov4, with 1 class. I need to export those weights to onnx format, for tensorRT inference. I've tried multiple technics, using ultralytics to convert or going from tensorflow to onnx. But none seems to work.…
remc
  • 161
  • 1
  • 2
  • 10
6
votes
6 answers

Yolo not starting to train

I am trying to train Yolo on a custom dataset and everything seems to be working without errors but it just isn't training. I followed the tutorial on https://github.com/AlexeyAB/darknet twice but I get the same results ./darknet detector train…
Rob
  • 127
  • 1
  • 2
  • 12
6
votes
2 answers

cv2.dnn.readNetFromDarknet error: (-212:Parsing error) Unsupported activation: relu in function 'cv::dnn::darknet::ReadDarknetFromCfgStream'

I tried to run the Openpose on darknet with weights and cfg downloaded from this place: https://github.com/lincolnhard/openpose-darknet This is the error when I tried to create a net in Opencv modelConfiguration = path to cfg file modelWeights =…
Water Chan
  • 101
  • 1
  • 2
  • 7
5
votes
1 answer

batch and subdivisions in YOLOv3

I'm using YOLOv3 and YOLOv3-Tiny from AlexeyAB's fork of Darknet. I understand that the image size must be a multiple of 32. And that batch divided by subdivisions determines the number of images that will be processed in parallel. For example,…
Stéphane
  • 19,459
  • 24
  • 95
  • 136
5
votes
1 answer

What is the purpose of ignore_thresh and truth_thresh in the YOLO layers in yolov3.cfg?

I am attempting to explain the purposes of different parameters in the yolov3.cfg file, however, I can't find any explanation for ignore_thresh and truth_thresh. My current (limited) understanding is that they are either related to non-max…
Jonas
  • 137
  • 2
  • 10
1
2 3
30 31