question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SaveImaged add feature for dictionary-based output postfix

See original GitHub issue

I think it would be useful if the function monai.transforms.saveImaged could accept output_postfix parameter in the form of a dictionary.

The problem is that when it loads muiltiple data based on the keys parameter, then all inputs are saved with the same output filename.

Having something like

output_postfix={'image':'_imgTrans', 'label':'_labTrans']

to save images and labels with different postfixes.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
scarpmacommented, Mar 23, 2022

Ah ok, you are right !!! But maybe it would make sense to accept dictionary-like meta data keys. Just an idea.

Thanks for the clarification. For me we can close the issue.

0reactions
Nic-Macommented, Mar 23, 2022

Ok, but isn’t it strange to specify meta_keys through a list while referring to a dictionary-based data ? How is the order checked ?

Hi @scarpma , the keys arg is also a list, the data is a dict.

Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Transforms — MONAI 1.1.0 Documentation
Typically, the input data is model output of segmentation task or classification task. And it also can support to add weights for the...
Read more >
PostfixBasicSetupHowto - Community Help Wiki
Introduction. This document will teach you how to set up a basic Postfix mail server with IMAP and POP3 services.
Read more >
Applications — MONAI 1.0.0 Documentation
Dictionary-based wrapper of monai.apps.pathology.transforms. ... number of output feature maps is len(returned_layers)+1 returned_layers = [1,2,3] ...
Read more >
matplotlib plot to image Code Example - Code Grepper
Add a Grepper Answer ... DataFrame(data.data, columns=data.features) · sklearn.utils.bunch to ... convert list of values to dictionary based on count ...
Read more >
[Bug]: issues when using POSIX ACL for data directory - Nextcloud ...
SaveImaged add feature for dictionary-based output postfix, 8, 2022-03-23, 2022-09-05. Honoring ProxyCommand from ~/.ssh/config? 0, 2021-08-09, 2022-10-31.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found