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
0
votes
2 answers

Hide Ultralytics' Yolov8 model.predict() output from terminal

I have this output that was generated by model.predict() 0: 480x640 1 Hole, 234.1ms Speed: 3.0ms preprocess, 234.1ms inference, 4.0ms postprocess per image at shape (1, 3, 640, 640) 0: 480x640 1 Hole, 193.6ms Speed: 3.0ms preprocess, 193.6ms…
0
votes
0 answers

Error on Goggle Colab: NMS time limit 2.100s

While I was training Yolov8 model on 50 epoch, I got the following error NMS time limit 2.100s exceeded What does it mean and how to solve it ? The model is still training but it is giving this error while performing the epoch
0
votes
0 answers

Converting a YOLOv8 Image Detection Model from .pt to .h5, .weights or .cfg Format

How can I convert a trained YOLOv8 image detection model saved as .pt extension to either .h5, .weights or .cfg file format? I want to know if is it possible to do it and if possible how?
0
votes
0 answers

How to save video while predicting with super-gradient library model?

I have a code from super_gradients.training import models from super_gradients.common.object_names import Models yolo_x_n = models.get(Models.YOLOX_N, pretrained_weights="coco") yolo_x_n.to("cpu") yolo_x_n.predict_webcam() How can I save the…
0
votes
1 answer

ImportError: cannot import name 'YOLO' from 'ultralytics' (unknown location)

I am trying to build a YOLOv8 model, and I have built it using cloning github repo of YOLOv8. https://github.com/ultralytics/ultralytics For training the yolov8 docs say that I need to start as follows from ultralytics import YOLO But when I try to…
0
votes
0 answers

how to resolve the error of out of memory for YOLOV8 model for model being trained on GPU in local machine

I have this script import ultralytics from ultralytics import YOLO import torch torch.cuda.is_available() ultralytics.checks() if __name__ == "__main__": # Load a model model = YOLO('yolov8n.pt') # load a pretrained model…
0
votes
0 answers

Python Calculating YOLOv8 Label

I have a Python script to create a dataset with images and matching labels for YOLOv8 model training. I have an issue with the bounding boxes. The bounding boxes that have been created seems to be right in the val_batch0_labels.jpg image (the boxes…
0
votes
2 answers

YOLOv8 won't recognize my config.yaml file

I keep attempting to make a custom dataset for yolov8 to learn. I'm using this python script: from ultralytics import YOLO model = YOLO("yolov8n.yaml") results = model.train(data="config.yaml", epochs=1) But I keep getting this error: Ultralytics…
0
votes
1 answer

How to create a binary mask from a yolo8 segmentation result

I want to segment an image using yolo8 and then create a mask for all objects in the image with specific class. I have developed this code: img=cv2.imread('images/bus.jpg') model = YOLO('yolov8m-seg.pt') results = model.predict(source=img.copy(),…
mans
  • 17,104
  • 45
  • 172
  • 321
0
votes
1 answer

Is it possible to modify the default anchor box size in YOLOv8?

I am working on object detection task, some objects are very small and some are large. my model is detecting the large objects easily but can not detect the small objects and narrow objects. previously used other detection models with mmdetection…
0
votes
0 answers

UnicodeEncodeError: 'charmap' codec can't encode character '\u1ed3' in position 6: character maps to

I'm using the following code: from ultralytics import YOLO model = YOLO("weights/best.pt") And I'm getting the following error: WARNING Ultralytics settings reset to defaults. This is normal and may be due to a recent ultralytics package update,…
0
votes
0 answers

How to get classes along with IDs when using yolov8+SORT for object detection and tracking?

I am new to yolo and SORT. I am trying to detect how many persons don't have these protective equipments. But just using yolo would give out outputs for each frame and won't track the persons. Then I tried implementing SORT but now am stuck on how…
Deepak Pawade
  • 150
  • 1
  • 13
0
votes
1 answer

YOLOv8 custom save directory path

I'm currently working in a project in which I'm using Flask and Yolov8 together. When I run this code from ultralytics import YOLO model = YOLO("./yolov8n.pt") results = model.predict(source="../TEST/doggy.jpg", save=True, save_txt=True) the…
Hariharan
  • 191
  • 7
0
votes
1 answer

IndexError: index 13 is out of bounds for dimension 1 with size 13- YOLOv8 Object detection

I am training a model of YOLOv8 on a custom dataset which is DeepFashion2 dataset. The dataset has 13 classes. and I gave the nc=13 in the yaml file, but when I start the training I found the error of IndexError: index 13 is out of bounds for…
0
votes
0 answers

Yolov8 object tracking - strange behaviour with MP4 file

I am doing computer vision inferences using Yolov8. The code was doing okay so far until a few days ago when I discovered it gives me error when it tried to read a mp4 file. I tried multiple mp4 files and the result is the same. Strangely, if I…