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

Add cvat_labels_file conf parameter to support CSV label definitions with attributes #1824

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bilalcodehub
Copy link
Contributor

This pull request introduces a new configuration parameter, cvat_labels_file, which allows users to specify a CSV file containing label definitions along with their attributes. The changes include:

New Method:

  • Implemented read_labels_from_file to parse the CSV file, reading each label and its attributes (provided as a JSON array string) and returning them in the required format.

Datastore Initialization:

  • Updated the init_datastore method to check if cvat_labels_file is provided in the configuration.
  • If present, the method loads labels using read_labels_from_file instead of relying solely on the configuration-provided labels.
  • This enhancement enables advanced CVAT features by leveraging detailed label attributes.

These updates aim to improve the flexibility and functionality of MONAILabel in endoscopy applications, making it easier to harness CVAT’s advanced capabilities. Please review and let me know if any further modifications are needed.

bilalcodehub and others added 2 commits March 29, 2025 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant