Questions tagged [yolov8]

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

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

165 questions
8
votes
3 answers

YOLOv8 dfl_loss metric

I was wondering how to interpret different losses in the YOLOv8 model. I've easily found explanations about the box_loss and the cls_loss. About the dfl_loss I don't find any information on the Internet. I've also checked the YOLOv8 Docs. I've found…
caro.mss
  • 81
  • 1
  • 3
3
votes
1 answer

Loading YOLO8 in pytorch nn.module

I have trained a yolov8n and now need to do inferences using pytorch, but I don't know how to properly import/convert the layers to load. I can make predictions in YOLO using model.predict(), but I need to load this like in pytorch format. If I…
2
votes
1 answer

How to freeze the backbone, feature extraction layers, in YOLO v8

I want to train the YOLO v8 in transfer learning on my custom dataset. I have different classes than the base training on the COCO dataset. Yet I don't want to learn again the feature extraction. Hence I though following the Ultralytics YOLOv8 Docs…
David
  • 135
  • 6
2
votes
2 answers

How to interpret output tensor from YOLOv8 web model?

I am using YOLOv8 for object detection in a React app, and I'm having trouble interpreting the output of the model. I have taken the official "yolov8n.pt" model from Ultralytics and converted it to a web model in python like this: model =…
Marcus
  • 29
  • 1
  • 5
2
votes
1 answer

YoloV8 Label file when there is no bounding box?

I wanted to train my yolo model and see if I can detect pneumonia in images So the images I have of X ray and the one which has pneumonia , its labels look like the following 1 0.2 0.23 0.32 0.23 Where first value is lable and rest four are the…
Sadaf Shafi
  • 1,016
  • 11
  • 27
1
vote
0 answers

why yolov8 uses torch.zeros(1, ch, s, s) as input to forward pass to calculate model stride?

This is part of task.py from yolov8 codebase. m = self.model[-1] # Detect() if isinstance(m, (Detect, Segment, Pose)): s = 256 # 2x min stride m.inplace = self.inplace forward = lambda x: self.forward(x)[0] if isinstance(m, (Segment, Pose)) else…
rakeshKM
  • 53
  • 6
1
vote
1 answer

why torchsummary and torchinfo give different number of total parameter?

I am testing this code, to compare model parameters, which will help me to modify the models/layers, but I don't know which method gives me the actual number of parameters. from torchsummary import summary import torchinfo from ultralytics.nn.tasks…
1
vote
0 answers

realsense d415 with yolov8 trained model

I'm trying to detect object and get the depth using realsense d415 and yolov8 trained model. I've already trained yolov8 and I have best.pt file about it. So I want to use this best.pt file to put it in the code about connecting realsense d415. But…
1
vote
0 answers

I want to downgrade from net6.0 to net5.0

I want to use YoloV8 in my C# Project. My Project uses Net5.0 version but the YoloV8 in Nuget Library use Netv6.0. I've tried to change the TargetFramework Tag of the YoloV8 Library from net6.0 to net5.0 but it doesn't seem to work. This is the…
1
vote
0 answers

Detecting the object from larger image using the grid block of image to train the model and predict in YOLOV8n

The code demonstrates the yolov8 model weights uploaded to predict the object in images. I have a problem using spherical image as input to predict the object, can anyone help in using sliding window approach for this code? import cv2 import numpy…
1
vote
1 answer

Yolov8: imgsz in predict()

What is the use of imgsz in inference on Yolov8 model ? Looking at current documentation's example, we can write : model.predict(source, save=True, imgsz=320, conf=0.5) (https://docs.ultralytics.com/modes/predict/#inference-sources). It is not…
montardon
  • 399
  • 3
  • 12
1
vote
1 answer

Track Mouse (animal) in video using YOLO v8 trained on fiftyone.zoo dataset

The problem: I am trying to train a YOLO v8 model using a custom dataset to detect (and track) a mouse in a video but with poor results. Can you help me improve the performances of my model? PS: The training of the model require a quite some time,…
Fabio Magarelli
  • 1,031
  • 4
  • 14
  • 47
1
vote
0 answers

Replace the Backbone of yolov8 (CSPDarknet53) to Eficientnet in details instruction

first of all I'm beginner in computer vision so be bear with me. I'm trying to replace the backbone of the yolov8 method from the CSPDarknet53 (default backbone) to the Eficientnet and I searched for explanation in details steps, but I only found…
1
vote
1 answer

Attribute error while integrating Google TTS with YOLOv8

My project aims to detect object labels and coordinates and then convert them into a string which is converted into voice using gTTS but I keep getting an attribute error in the prediction labels. I am new to this framework, any help will be…
1
vote
1 answer

YOLO V8 save results custom file name

I want to save the results the prediction of Yolo v8. I know how so set the path or project/name but I don't want just any file name, e.g. "image0.jpg". I want to specify the file name to something like "custom-name.jpg". I want to iteratively…
foxychev
  • 31
  • 5
1
2 3
10 11