- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, this sample has a method defined called "post_process" which takes the results of a prediction or segmentation and formats the output. It leverages a module from ultralytics called ops:
from ultralytics.yolo.utils import ops
and expects a method ops.scale_segments. It appears that this function does not exist and searching finds no results for it.
---> 62 segments = [ops.scale_segments(input_hw, x, shape, normalize=False) for x in ops.masks2segments(masks)] 63 results.append({"det": pred[:, :6].numpy(), "segment": segments}) 64 return results AttributeError: module 'ultralytics.yolo.utils.ops' has no attribute 'scale_segments'
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I don't see that issue from my end. I'm running the code with the function call (scale_segments) using Jupter Notebook on my local machine.
This is my library declaration:
scale_segments function call (it's in the if & else statement of data postprocessing
Test on single image:
Make sure you had set up and installed the requirements properly according to your OS/env.
You may refer here.
Cordially,
Iffa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Intel will no longer monitor this thread since we have provided a solution. If you need any additional information from Intel, please submit a new question.
Cordially,
Iffa

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page