Skip to content
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

Feature/pipelines #21

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open

Feature/pipelines #21

wants to merge 4 commits into from

Conversation

SkalskiP
Copy link
Collaborator

@SkalskiP SkalskiP commented Dec 4, 2023

Description

TODO

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Docs

  • Docs updated? What were the changes:

This commit introduces two new classes, SamPromptCreator and SamResponseProcessor, in sam_segmentation.py.
Deleted the primitives.py and postprocessing.text.py files along with their corresponding tests as their functionalities have been refactored. parse_mark_id method from the deleted files have been moved to sam_segmentation.py which is a simplified version of the extract_marks_in_brackets method and is more suitable for the task at hand. extract_relevant_masks has been replaced by a process method in SamResponseProcessor which extracts the relevant mark ids from the text and uses them to index the detections object.

The mark generating classes have been moved to the wrappers directory as they are effectively serving as wrappers around existing models. Made these changes to make the classes more modular, easy to understand and use. They can be extended in the future to include more models other than SAM.

Also, created two new abstract base classes BasePromptCreator and BaseResponseProcessor in base.py file under pipelines directory. These two classes would be used to ensure a consistent structure across different pipelines.

In maestro/__init__.py, SegmentAnythingMarkGenerator was renamed to SegmentAnything to adhere to the new structure. Bumped the version of Maestro to 0.2.0rc1 from 0.1.1rc1 reflecting the amount of changes made. Finally, updated README.md to reflect the changes made to the API but the new API usage example still needs to be added.
@SkalskiP SkalskiP self-assigned this Dec 4, 2023
@SkalskiP SkalskiP added the enhancement New feature or request label Dec 4, 2023
Deleted 'get_started.md', 'lmms.md', 'markers.md', 'visualizers.md', and 'visualizers.py' due to changes in the project structure and features. Extracted 'extract_mark_ids' method and placed it in 'sam_segmentation.py' for better coherence. Modified 'maestro/__init__.py' and 'mkdocs.yaml' to reflect current file structure and update some definitions. Furthermore, added new features to 'sam_segmentation.py'. These changes improve code modularity and update the project with new features.
@SkalskiP SkalskiP marked this pull request as ready for review December 4, 2023 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant