-
Notifications
You must be signed in to change notification settings - Fork 254
Add cvat_labels_file conf parameter to support CSV label definitions with attributes #1824
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
Conversation
…abels with JSON attributes passed via cvat_labels_file
for more information, see https://pre-commit.ci
Signed-off-by: Muhammad Bilal <bilalcodehub>
|
Hi MONAILabel team, Could someone kindly review my pull request when possible? I’ve added support for reading label definitions from a CSV file by updating the This change would be especially helpful for our workflow, as it saves us from manually modifying I’d really appreciate your review and approval when convenient. Many thanks in advance! Best regards, |
Signed-off-by: Muhammad Bilal <dotmbilal@gmail.com>
00641d0 to
802e6ae
Compare
|
Please fix the pressure commit errors and windows is dependency check You can ignore DCO but the rest of the checks should be passing For DCO the simple fix is use git -s option when committing.. something like git -s -m "my commit message" |
…lient Signed-off-by: bilalcodehub <dotmbilal@gmail.com>
0f30a2b to
da270d0
Compare
for more information, see https://pre-commit.ci
…indows Signed-off-by: bilalcodehub <dotmbilal@gmail.com>
Signed-off-by: bilalcodehub <dotmbilal@gmail.com>
|
@SachidanandAlle, All checks now pass including the |
@SachidanandAlle: Can you please have a look at this? All checks have been passed now. |
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:
read_labels_from_fileto 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:
init_datastoremethod to check ifcvat_labels_fileis provided in the configuration.read_labels_from_fileinstead of relying solely on the configuration-provided labels.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.