You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am wondering if it is possible to determine the granularity of the segmented objects?
It seems to detect objects that are of course well defined, but very small. These small objects are not of interest of me and I would like to blend those smaller segments into larger segments.
For example, instead of segmenting a chair into 8 segments, I want to segment it as one single object.
The text was updated successfully, but these errors were encountered:
Fixesfacebookresearch#770
Add granularity parameter to control segmented object granularity.
* **segment_anything/automatic_mask_generator.py**
- Add `granularity` parameter to `SamAutomaticMaskGenerator` class constructor.
- Update `generate` method to blend smaller segments into larger ones based on the `granularity` parameter.
- Add `blend_segments` method to handle the blending logic based on the `granularity` parameter.
* **scripts/amg.py**
- Add `--granularity` command-line argument to set the granularity of segmented objects.
- Pass the `granularity` argument to the `SamAutomaticMaskGenerator` class.
* **README.md**
- Update documentation to include information about the new `granularity` parameter.
- Add examples of how to use the `granularity` parameter in the `Getting Started` section.
Hello,
I am wondering if it is possible to determine the granularity of the segmented objects?
It seems to detect objects that are of course well defined, but very small. These small objects are not of interest of me and I would like to blend those smaller segments into larger segments.
For example, instead of segmenting a chair into 8 segments, I want to segment it as one single object.
The text was updated successfully, but these errors were encountered: