Questions tagged [yolov7]

You Only Look Once (YOLO) is a real-time object detection system written in C. Use this tag for questions about YOLO version 7.

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

87 questions
0
votes
0 answers

I want to add one more class to the yolov7-seg.pt file

In the yolov7-segmentation model, there are 80 classes provided by COCO, and with the yolov7-seg.pt file obtained from your GitHub account, I am able to detect and perform segmentation on these 80 classes as desired. What I want is to add my own…
0
votes
0 answers

yolov7 custom model traing

train: Scanning 'data/train/labels.cache' images and labels... 46 found, 0 missing, 0 empty, 46 corrupted: 100%|█████| 46/46 [00:00
0
votes
1 answer

How to correctly render YoloV7 boxes on image?

I'm using a TensorFlow.js implementation of YoloV7 object detection, but can't wrap my head around how to correctly scale and deal with ratios of bounding boxes. I get the correct spatial output in [x1, y1, width, height] format, but I don't get the…
itsisaac19
  • 536
  • 3
  • 15
0
votes
0 answers

How can I get YOLOv7 to train on all images in my dataset, instead of just one?

I have a question concerning Training the dataset in yolov7; it is only reading 1 image and the dataset contains more than 20 images training not done !python train.py --device 0 --batch-size 16 --epochs 100 --img 640 640 --data…
0
votes
0 answers

Object Detecion and tracking yolov8

Here Everyone I have this code for objection Detecion from ultralytics import YOLO import streamlit as st import cv2 from PIL import Image import tempfile def _display_detected_frames(conf, model, st_frame, image): """ Display the detected…
saas
  • 1
  • 2
0
votes
0 answers

Bounding box not plotting for yolo v7 model training and conversion

yolo v7 small object detection I trained a yolov7-tiny model post that I converted the weight file into open-vino and I used yolov5 proc with dlstreamer, its working for every model except the head model, as in the bounding boxes are not plotting…
0
votes
1 answer

How can I add timestamp metadata to images detected by my custom YOLOv7 model in Python?

I trained a custom YOLOv7 model to detect a few bird species and now I want to process thousands of images to detect the species, but for my output I need to have the timestamp (so date and time) for every image in which my model recognizes a…
Anouk
  • 1
0
votes
0 answers

Custom dataset with YOLOv7, assertion error. Label class 1 exceeds nc=1

I want to train the YOLOv7 with a custom dataset, the dataset is from COCO, but I want to train it only for sheep class. I have in the coco.yaml file: path: /content/drive/MyDrive/Sheep/yolov7 train: data/train/images val: data/val/images test:…
0
votes
0 answers

incorrect labels when using DeepSORT tracker

I'm facing an issue while using DeepSORT tracker with my custom trained yolov7 model. Initially I have trained my object detection model and now I want it to track also. I have downloaded files for DeepSORT tracker. But when I use tracker with with…
0
votes
0 answers

I am converting YOLOV7 .pt to tflite and stumble upon this problem

I'm trying to convert YOLOV7 model to mobile using this command line onnx-tf convert -i yolov7.onnx -o /yolov7/ and I'm getting an error message that I'm struggling to understand. The error message is: ValueError: Dimensions must be equal, but are…
0
votes
0 answers

Changing Video input size from camera in YOLOv7

I am using The YOLOv7 for object detection, and I trained it on a custom dataset and I use it in real time with a fullHD Camera. My problem is that when using it, it uses a 640*480 cropped image. I tried to tweak the code by using…
Amin Lucho
  • 23
  • 2
0
votes
0 answers

Custom trained YOLOv7 detect object frame by frame in a video

I want to process a video frame by frame and for each frame to detect if a certain object has appeared using an already custom trained YOLOv7 model. I saw that this is pretty simple for a image or a set of images because after you load the mode you…
Andrei
  • 23
  • 7
0
votes
0 answers

yolov7 extremely low precision

I am training yolov7 on the mask detection dataset. However, after 50 epoch, the result is extremely unsatisfying. This is the command I used to train the model. I tried to train with --weights yolov7-e6e.pt and --weights ''. python train.py…
0
votes
0 answers

Convert yolov7 weight and configuration file

How can I convert yolov7 .yaml and .pt files into .cfg and .weights files???! I've already tried using pre-existing .cfg and .weights extensions and they worked fine. I need to use these files with an OpenCV code, so I need those extensions.
0
votes
0 answers

Do polygon segmentation labels meet in Coco dataset?

I'm trying to train a model to do image segmentation using Yolov7. I understand the labels are specified in the polygon structure similar to the Coco dataset. My question is when the polygon data is specified, is there an assumption that the first…