Questions tagged [yolo]

You Only Look Once (YOLO) is a real-time object detection system written in C. Use this tag for questions about YOLO compilation and installation, usage, and its features and functionality.

You Only Look Once (YOLO) is a real-time object detection system developed for high speed object detection within images.

Useful Links:

1841 questions
11
votes
1 answer

How to convert Keras .h5 model to darknet yolo.weights format?

I have trained the yolov2 and yolov3 models using Keras with this Github project https://github.com/experiencor/keras-yolo2 Now I want to use the trained model (.h5) in darknet prediction. Essentially I need to convert this h5 model into the format…
Karthik
  • 390
  • 1
  • 4
  • 18
11
votes
2 answers

anchor box or bounding boxes in Yolo or Faster RCNN

I don't know the difference between anchor box and bounding boxes, or proposal area. I am confused with these definitions. And I don't know the meaning of these boxes in the detection model, since the default length never changes! And finally, I…
Luv
  • 263
  • 3
  • 9
11
votes
1 answer

Yolo v1 bounding boxes during training step

I want to implement Yolo v1 but I have some question regarding the algorithm. I understand the fact that in YOLO, we divide the image per cell (7x7) and we predict a fixed number of bounding boxes (2 by default in the paper, with 4 coordinates : x,…
10
votes
3 answers

Tracing back deprecated warning in pytorch

I am training yolov3 on my data using this code here : https://github.com/cfotache/pytorch_custom_yolo_training/ But I am getting this annoying deprecation warnings Warning: indexing with dtype torch.uint8 is now deprecated, please use a dtype…
10
votes
5 answers

How can I download a specific part of Coco Dataset?

I am developing an object detection model to detect ships using YOLO. I want to use the COCO dataset. Is there a way to download only the images that have ships with the annotations?
Shobhit Kumar
  • 626
  • 1
  • 5
  • 21
9
votes
4 answers

How to convert YOLO annotations (.txt) to PASCAL VOC (.xml)?

I have built a dataset to train YOLOv4 and I have all the labels in YOLO format (I used LabelImg). Now I want to train SSD with the same dataset and therefore I need the labels in the PASCAL VOC format. I have seen some ways to do the opposite…
marita
  • 139
  • 1
  • 1
  • 6
8
votes
4 answers

Indices should be either on cpu or on the same device as the indexed tensor

I downloaded a a prepared dataset for YoloV7. Also I cloned yoloV7 Repo. I want to train a model with this downloaded dataset, for this I use this command. python train.py --workers 8 --device 0 --batch-size 16 --data data.yaml --img 640 640 --cfg…
Tristate
  • 1,498
  • 2
  • 18
  • 38
8
votes
0 answers

RuntimeError: [enforce fail at inline_container.cc:145] . PytorchStreamReader failed reading zip archive: failed finding central directory

I am following this tutorial: https://blog.paperspace.com/train-yolov5-custom-data/ in order to train a custom dataset. I followed exactly the steps it says inside this tutorial. But when I try this command: python3 train.py --img 640 --cfg…
just_learning
  • 413
  • 2
  • 11
  • 24
8
votes
2 answers

Loading YOLO: invalid index to scalar variable

Getting an error for IndexError: invalid index to scalar variable on the yolo_layers line. network = cv2.dnn.readNetFromDarknet('yolov3.cfg', 'yolov3.weights') layers = network.getLayerNames() yolo_layers = [layers[i[0] - 1] for i in…
abe
  • 103
  • 1
  • 4
8
votes
4 answers

COCO json annotation to YOLO txt format

how to convert a single COCO JSON annotation file into a YOLO darknet format?? like below each individual image has separate filename.txt file
ShivAA
  • 121
  • 1
  • 2
  • 8
8
votes
1 answer

Tensorflow reported CUDA_ERROR_ILLEGAL_ADDRESS bug while train yolo

It is a really strange bug. Environment: tf 1.12 + cuda9.0 + cudnn 7.5 + single RTX 2080 Today I tried to train YOLO V3 network on my new device. Batch size is 4. Every thing went right at the beginning, training started as usual and I could see…
qishiheibojue
  • 81
  • 1
  • 2
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
8
votes
2 answers

Fine-tuning and transfer learning by the example of YOLO

I have a general question regarding fine-tuning and transfer learning, which came up when I tried to figure out how to best get yolo to detect my custom object (being hands). I apologize for the long text possibily containing lots of false…
kaktus
  • 169
  • 1
  • 1
  • 11
8
votes
3 answers

How to send OpenCV output to browser with python?

I have a simple python script with open cv, which takes in a video and does object detection on it using YOLO. My question is, how can I display the output to my website as a live stream. Here is the python code, saving to output.avi. import…
Leeroy Hannigan
  • 11,409
  • 3
  • 14
  • 31
8
votes
4 answers

How Yolo calculate P(Object) in the YOLO 9000

Currently I am testing the yolo 9000 model for object detection and in the Paper I understand that the image is splited in 13X13 boxes and in each boxes we calculate P(Object), but How can we calculate that ? how can the model know if there is an…
Kamel BOUYACOUB
  • 617
  • 3
  • 7
  • 20