help/ #8027
Replies: 67 comments 242 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.
-
I have this code here and an error. But for some reason it is not extracting all my frames. It should at least extract 15,000 of color frames and 15,000 depth because I did work before, but now it is not working anymore. I tested this code with different bag files and I am still having the same problem taht did not arrive frame with 5000... I increased time for 10000, but I am still having the same error. Folder path containing the bag filesfolder_path = r"D:\11-13-2023\DEPTH\INTEL_REALSENSE\ORIGINAL_DATA\FRONT_VIEW" Get a list of all .bag files in the folderbag_files = [file for file in os.listdir(folder_path) if file.endswith("20231113_070159.bag")] Main loop to process bag filesfor bag_file in bag_files:
But I am having this error: Traceback (most recent call last): |
Beta Was this translation helpful? Give feedback.
-
Is it possible to use ultralytics to find distance and speed of the vehicle in front when using car's dashcam? |
Beta Was this translation helpful? Give feedback.
-
Hello |
Beta Was this translation helpful? Give feedback.
-
from ultralytics import YOLO model = YOLO("yolov8n.pt") Video writervideo_writer = cv2.VideoWriter("heatmap_output.avi", classes_for_heatmap = [0, 2] # classes for heatmap Init heatmapheatmap_obj = heatmap.Heatmap() while cap.isOpened():
cap.release() The output video that is saved is in binary. Hence, I cannot use it to send it to my react app front end and play it. Can you give me a simple code + react template to render the output video? |
Beta Was this translation helpful? Give feedback.
-
Hello, I would like to ask whether the following code can be directly used in the software by simply calling it. The AGPL agreement will not involve the whole software open source: |
Beta Was this translation helpful? Give feedback.
-
hello sir if I use uultralytics package which is freely on the internet for my start-up for product development, should I need to pay for this |
Beta Was this translation helpful? Give feedback.
-
I tested the provided code 'yolo segment train data=crack-seg.yaml model=yolov8n-seg.pt epochs=100 imgsz=640'
Traceback (most recent call last): |
Beta Was this translation helpful? Give feedback.
-
Can we do line counting for multiple videos using threading? |
Beta Was this translation helpful? Give feedback.
-
How can I use augmentation? And what will be the training code? Please give me an example how can I use Mosaic augmentation. |
Beta Was this translation helpful? Give feedback.
-
I want to pass segmentation as feature during training. So, I want to use SAM by facebook. I'm training the model using YOLOV9. Can you please tell in which file, I have to add the code to pass this feature? |
Beta Was this translation helpful? Give feedback.
-
I started training model on YOLOV9. But suddenly my PC shuts down after 10 epochs. Is there any way I can resume training from 10 epochs? |
Beta Was this translation helpful? Give feedback.
-
i have trained a model using yolov9. Now I have a validation dataset. I want to predict the images and calculate the mAP50 and mAP50-95 score. How can I do that? Also, how can I extract the predicted bounding boxes? |
Beta Was this translation helpful? Give feedback.
-
Hi @glenn-jocher |
Beta Was this translation helpful? Give feedback.
-
from ultralytics import YOLO model = YOLO("best.pt") Hi, I have to export model into tflite format but the error I'm getting is as given below. TensorFlow SavedModel: export failure ❌ 19.1s: generic_type: cannot initialize type "StatusCode": an object with that name is already definedImportError Traceback (most recent call last) 11 frames ImportError: generic_type: cannot initialize type "StatusCode": an object with that name is already defined. Please give suggestion on this. |
Beta Was this translation helpful? Give feedback.
-
I want to use Intel extension for pytorch on yolov8, how should I modify the code? |
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