yolo

CUDA error when running Darknet YOLOv4 on Google Colab

CUDA error when running Darknet YOLOv4 on Google Colab Question: I think a recent update with either Colab or Cuda is throwing off the YOLOv4 model. I have previously built this notebook and trained a complete model with it with no problems but now when I run the exact same code, with no changes, I …

Total answers: 2

Splitting image based dataset for YOLOv3

Splitting image based dataset for YOLOv3 Question: I have a question about splitting a dataset of 20k images along with their labels, the dataset is in the format of YOLOv3 which has an image file and a .txt file with the same name as the image, the text file has the labels inside it. I …

Total answers: 2

YOLOv4 annotations saves dimensions in a [0,1] float interval

YOLOv4 annotations saves dimensions in a [0,1] float interval Question: This is from an annotations file for an image: 0 0.6142131979695431 0.336 0.467005076142132 0.392 The first 0 is the class label. 0.6142131979695431 and 0.336 are the x and y coordinates of the bounding box. 0.467005076142132 and 0.392 are the width and the height of the …

Total answers: 1

How to get the coordinates of a bounding box in YOLO?

How to get the coordinates of a bounding box in YOLO? Question: I am trying to get the coordinates of a bounding box in YOLOv4. I followed the accepted answer provided here. But, even after editing the image.c file I can not see the BBox coordinates. What am I doing wrong? I am running YOLO …

Total answers: 3

How to convert Yolo format bounding box coordinates into OpenCV format

How to convert Yolo format bounding box coordinates into OpenCV format Question: I have Yolo format bounding box annotations of objects saved in a .txt files. Now I want to load those coordinates and draw it on the image using OpenCV, but I don’t know how to convert those float values into OpenCV format coordinates …

Total answers: 4

How to use yolov5 model in django

How to use yolov5 model in django Question: I want to use the yolov5 model in django, but I got trouble. What I want to make is if user upload an image to django server, object detection made by with the yolov5 model, and then the result displayed on the web. The process itself is …

Total answers: 1

yolov4 custom object detection error during training

yolov4 custom object detection error during training Question: i have received following error when i trained yolov4 on custom dataset: C:yolo_v4yolo_v4_mask_detectiondarknetbuilddarknetx64>darknet.exe detector train data/obj.data cfg/yolo-obj.cfg yolov4.conv.137 CUDA-version: 10010 (11000), cuDNN: 7.6.5, GPU count: 1 OpenCV version: 4.1.0 valid: Using default ‘data/train.txt’ yolo-obj 0 : compute_capability = 750, cudnn_half = 0, GPU: GeForce RTX 2070 Super …

Total answers: 4

Open-Cv dnn error for python while using Yolov3. Using open-cv ver(4.2.0)

Open-Cv dnn error for python while using Yolov3. Using open-cv ver(4.2.0) Question: cv2.error: OpenCV(4.2.0) C:projectsopencv-pythonopencvmodulesdnnsrcdarknetdarknet_io.cpp:677: error: (-212:Parsing error) Unknown layer type: in function ‘cv::dnn::darknet::ReadDarknetFromCfgStream Code: import cv2 import numpy as np # Load Yolo path =r”D:yolov3-coco” weight = path+r”yolov3.weights” cfg = path+r”yolov3.cfg” net = cv2.dnn.readNetFromDarknet(weight ,cfg ) classes = [] with open(path+”coco.txt”, “r”) as f: …

Total answers: 6

KeyError: ''val_loss" when training model

KeyError: ''val_loss" when training model Question: I am training a model with keras and am getting an error in callback in fit_generator function. I always run to epoch 3rd and get this error annotation_path = ‘train2.txt’ log_dir = ‘logs/000/’ classes_path = ‘model_data/deplao_classes.txt’ anchors_path = ‘model_data/yolo_anchors.txt’ class_names = get_classes(classes_path) num_classes = len(class_names) anchors = get_anchors(anchors_path) input_shape …

Total answers: 9

AttributeError: 'PhotoImage' object has no attribute '_PhotoImage__photo'

AttributeError: 'PhotoImage' object has no attribute '_PhotoImage__photo' Question: I am working on Yolo3-4-PY to implement it with tkinter. I’ve looked up everywhere but not able to resolve the issue. When I run the program the canvas is displayed but when I click on Start Video(btton) I get the following error: Loading weights from weights/yolov3.weights…Done! /usr/local/lib/python3.5/dist-packages/PIL/ImageTk.py:119: …

Total answers: 4