-
-
Notifications
You must be signed in to change notification settings - Fork 15.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get segmentation from yolov5 #13079
Comments
👋 Hello @manoj-samal, thank you for your interest in YOLOv5 🚀! Please visit our ⭐️ Tutorials to get started, where you can find quickstart guides for simple tasks like Custom Data Training all the way to advanced concepts like Hyperparameter Evolution. If this is a 🐛 Bug Report, please provide a minimum reproducible example to help us debug it. If this is a custom training ❓ Question, please provide as much information as possible, including dataset image examples and training logs, and verify you are following our Tips for Best Training Results. RequirementsPython>=3.8.0 with all requirements.txt installed including PyTorch>=1.8. To get started: git clone https://github.com/ultralytics/yolov5 # clone
cd yolov5
pip install -r requirements.txt # install EnvironmentsYOLOv5 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):
StatusIf this badge is green, all YOLOv5 GitHub Actions Continuous Integration (CI) tests are currently passing. CI tests verify correct operation of YOLOv5 training, validation, inference, export and benchmarks on macOS, Windows, and Ubuntu every 24 hours and on every commit. Introducing YOLOv8 🚀We're excited to announce the launch of our latest state-of-the-art (SOTA) object detection model for 2023 - YOLOv8 🚀! Designed to be fast, accurate, and easy to use, YOLOv8 is an ideal choice for a wide range of object detection, image segmentation and image classification tasks. With YOLOv8, you'll be able to quickly and accurately detect objects in real-time, streamline your workflows, and achieve new levels of accuracy in your projects. Check out our YOLOv8 Docs for details and get started with: pip install ultralytics |
Hello! Thank you for reaching out and for your interest in using YOLOv5 for segmentation tasks. To obtain segmentation results in the format you described (e.g.,
This will give you the segmentation results in the format If you encounter any issues or need further assistance, please provide a minimum reproducible code example so we can better understand the problem and help you more effectively. You can refer to our guide on creating a minimum reproducible example here: Minimum Reproducible Example. Thank you for your cooperation, and happy coding! 😊 |
results= model(im, augment=augment, visualize=visualize) results = ( (tensor([[[[[ 0.74621, -0.36439, 0.65680, ..., -0.58979, 0.57147, -0.56773],
|
@manoj-samal hello! Thank you for reaching out and providing details about the issue you're encountering. Let's work together to resolve this. From your description, it looks like you're getting the output in a tuple format when running inference with the YOLOv5 model. The tuple contains tensors that represent different parts of the model's output. Here's a breakdown of what you might be seeing:
To help you better understand and utilize these outputs, let's go through a step-by-step example: Step-by-Step Example
Request for Additional InformationTo further assist you, could you please provide a minimum reproducible code example? This will help us understand the context better and provide a more accurate solution. You can refer to our guide on creating a minimum reproducible example here: Minimum Reproducible Example. Additionally, please ensure you are using the latest versions of pip install --upgrade torch
git pull
pip install -U -r requirements.txt If you have any more questions or need further clarification, feel free to ask. We're here to help! 😊 |
pred: Contains the detection results. after prediction is done the pred which has masks and out which has protos it undergoes process mask
now this masks is in binary from this masks which is binary i need [ [670,35][6,305] [60,3]] segments |
Hello @manoj-samal, Thank you for providing detailed information about your issue. Let's work through this step-by-step to help you extract the segmentation coordinates from the binary masks. Step-by-Step Solution
Explanation
Request for Minimum Reproducible ExampleIf you encounter any issues or the solution does not work as expected, please provide a minimum reproducible code example. This will help us understand the problem better and provide a more accurate solution. You can refer to our guide on creating a minimum reproducible example here: Minimum Reproducible Example. By ensuring we can reproduce the issue, we can investigate it more effectively and provide a timely solution. ConclusionI hope this helps you extract the segmentation coordinates from the binary masks. If you have any further questions or need additional assistance, please feel free to ask. We're here to help! 😊 |
Search before asking
Question
How to get segmentations in form of [ [670,35][6,305] [60,3]] from segments model of yolov5
Additional
Thanks in advance
The text was updated successfully, but these errors were encountered: