help/ #8027
Replies: 123 comments 388 replies
-
I want to save the image in which the object is detected and not detected into different folders. |
Beta Was this translation helpful? Give feedback.
-
I'm seeking clarification regarding the imgsz parameter in YOLO (You Only Look Once) and its impact on image resizing and bounding boxes. In my dataset, all images have a consistent size of 1920x1080 pixels. If I set the imgsz parameter to 640, will the images be internally downscaled to 640x640 pixels by YOLO during training or inference? In the context of this resizing, I'm curious about the effect on bounding boxes. Do their coordinates change, or does YOLO handle the calculation of new bounding boxes internally to accommodate the downscaled images? I want to ensure that I understand how YOLO manages the resizing process and its implications for object detection accuracy. Any insights or pointers to relevant documentation would be greatly appreciated. Thank you. |
Beta Was this translation helpful? Give feedback.
-
Hi, WRT inference/predict in yolov8 how can you obtain the run number ? Or the folder to /run/detect/predictXX where XX is the sequential number ? Reason would like to automatically get the image with all the bounding boxes. example /run/detect/predict46 Using :- Thanks |
Beta Was this translation helpful? Give feedback.
-
@glenn-jocher thanks for being so responsive and helpful. It's really impressive. My question is: What color does yolov8 use as infill when a training image not square? Maybe I'm misunderstanding, but if the algorithm pads the image to a square size, I'm just curious what color it pads with (zeros, i.e., black?). If it makes any difference, I'm currently training a classification model. |
Beta Was this translation helpful? Give feedback.
-
Is it possible to combine two YOLOv8 weights? |
Beta Was this translation helpful? Give feedback.
-
Hello, I have a question regarding the |
Beta Was this translation helpful? Give feedback.
-
Hello, I was wondering if you could give me some clarification on the freeze parameter for yolov8. When training begins, the training script automatically prints the layers of the model. There seem to be 23 blocks but over 100 different components. In your examples, you always use In my personal training I used |
Beta Was this translation helpful? Give feedback.
-
i was using YOLOv8 for number detection ( meter readings ), it worked pretty good. but i need small help. |
Beta Was this translation helpful? Give feedback.
-
Dear community thank you to each of the members I want to extract the tree crown boundary using the Yolo8 model. After training the model when I predict the RGB image each tree has multiple polygons but it should be a single polygon for a tree. Have you any idea how to address this issue? |
Beta Was this translation helpful? Give feedback.
-
in my YAML file i have 11 labels, with their respective values. But when I use save_txt command the labels are saved in a text file, but i want the exact values to be saved, because label 10 has value ".", which is important for meter reading value. How can I save the values in text file rather than labels. Below is my YAML file: names: |
Beta Was this translation helpful? Give feedback.
-
I have not found any resolution to the following issue with yolov8. Whenever I start training my model, the val-set score is immediately 1 for Precision and Recall. I believe this is an error. Therefore, it's really hard to monitor training. Here's an example:
|
Beta Was this translation helpful? Give feedback.
-
I want to load model before doing prediction. model.load_state_dict(torch.load(opt.saved_model, map_location=device)) like this one. I want load model when I run file right after. now i'm using custom yolov8 model. |
Beta Was this translation helpful? Give feedback.
-
Hi Guys at ultralytics { Still, there's the general route of training using defining everything as torch variables and then have a training loop |
Beta Was this translation helpful? Give feedback.
-
hello |
Beta Was this translation helpful? Give feedback.
-
i have trained the YOLOv8n with a deck of cards, it was detecting most of the cards well but there was confusion with the similar cards such as 5 and 3 etc. So i tried to fine tune that best.pt model by providing the data sets of cards 5 and 3 only but now it only detects 5 and 3 not the other cards. I have a lot of deck of cards to train and i want to have only one model to detect them. So how can i do that...I have already tried to retrain that best.pt but it forgets the previously trained deck...So how can i do that because i do not found any appropriate answer in the official website. Is it possible, if yes then how...Reply as soon as possible... |
Beta Was this translation helpful? Give feedback.
-
Hi! I have a question, what are the CPU and RAM requirements for using this model to make image predictions? I mean in the processing of predicting rather than training. Thank you so much. |
Beta Was this translation helpful? Give feedback.
-
Hi there, Thank you for your work! I noticed that the results of https://docs.ultralytics.com/models/yolo-world/ is different from https://huggingface.co/spaces/stevengrove/YOLO-World. I am wondering do you evaluate the performance between them. Can we load YOLO-World open source model in ultralytics lib? Thank you! |
Beta Was this translation helpful? Give feedback.
-
YOLOV10n... model.track...: log_string += f"{n} {self.names[int(c)]}{'s' * (n > 1)}, " KeyError n My object detection python (ver 3.10) program running in Windows 11 (23H2) in my miniPC (Intel Alder Lake N200 CPU integrated UHD Graphics, 16GB DDR4 RAM), using a customed YoloV10n trained model, is crashing with the following error:
It crashes after completely processing around 15 video frames, specifically in this line (when running inference):
My program uses a customed model that was trained with a data.yaml file that had the following content:
After training the model, I generated an OpenVINO version of it, by exporting it as follows:
It generated the .bin file, the .xml file and the .yaml file, which has the following content:
Interesting enough, When I use either the pytorch ".pt" or onnx ".onnx" model, my program runs well processing all the video frames with no issues at all (but, I am using a relatively low edge device needing to make more use of the integrated GPU). Just before I finished posting this comment, I upgraded "ultralytics" to version "8.2.101" and, I still encountered the same issue. Below is the full error stack:
|
Beta Was this translation helpful? Give feedback.
-
!yolo task=detect mode=train epochs=10 batch=10 plots=True Error:- /usr/local/lib/python3.10/dist-packages/ultralytics/nn/tasks.py:733: FutureWarning: You are using
0 -1 1 464 ultralytics.nn.modules.conv.Conv [3, 16, 3, 2] Transferred 493/595 items from pretrained weights
0% 0/64 [00:00<?, ?it/s] Why did I get an error in the code above, even though it was running perfectly 2-3 days ago? The dataset shouldn't be the issue, as I'm using one from Roboflow. |
Beta Was this translation helpful? Give feedback.
-
0% 0/46 [00:02<?, ?it/s] how to fix this error? |
Beta Was this translation helpful? Give feedback.
-
I want to know the reason of attributeerro. Why? |
Beta Was this translation helpful? Give feedback.
-
Detection accuracy metrics are typically applied to the entire validation set. I would like to know if there is a way to obtain detection accuracy metrics for individual images in the validation set. |
Beta Was this translation helpful? Give feedback.
-
Hi,could anyone please help me to choose which yolo model will be better for object detection for small objects like cotton from cotton field. |
Beta Was this translation helpful? Give feedback.
-
During my use of YOLOv8, there is a data type conflict between the annotation and some of my Python 3.12. How can I solve this problem? |
Beta Was this translation helpful? Give feedback.
-
Why did I use yolo11 to train my own data set, and the trained model works well in image detection, but poorly in video detection? |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm training a few YOLO models on multiple computers. I have a dataset saved on a network drive, but i'd like to cache the dataset to speed the process up. My Ram is too low, so I'd like to use disk, but I'm having a new problem: The .cache file is created on the network drive, instead of locally. I read that you previously hadn't implemented anything to tell the computer where to cache, and was wondering if that was still the case. Do you have any solutions, beyond just copying he entire dataset from the network onto the individual computers? |
Beta Was this translation helpful? Give feedback.
-
google colab Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.10/dist-packages (from jinja2->torch>=1.8.0->ultralytics) (3.0.2)ModuleNotFoundError Traceback (most recent call last) /usr/local/lib/python3.10/dist-packages/ultralytics/init.py in ModuleNotFoundError: No module named 'package' |
Beta Was this translation helpful? Give feedback.
-
Hi, when running an inference with YOLOv11 is it possible to not print [ 0: 512x640 1 lighted-area, 1 linear-pattern, 80.2ms Thanks :) |
Beta Was this translation helpful? Give feedback.
-
help/
Find comprehensive guides and documents on Ultralytics YOLO tasks. Includes FAQs, contributing guides, CI guide, CLA, MRE guide, code of conduct & more.
https://docs.ultralytics.com/help/
Beta Was this translation helpful? Give feedback.
All reactions