Project-MONAI / Project-MONAI/MONAI

Make dictionary transforms support different random parameters across keys

Open
#7,561 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature request
Dominant language
Python
Stars
8.7k
Forks
1.6k
Avg merge
5d 1h
Merged PRs (30d)
20

Description

Is your feature request related to a problem? Please describe.
For current dictionary transforms, the random parameters are shared across keys.

E.g: see
https://github.com/Project-MONAI/MONAI/blob/ec63e068fec85dff5f043d73f2c029b359332707/monai/transforms/intensity/dictionary.py#L1401

https://github.com/Project-MONAI/MONAI/blob/ec63e068fec85dff5f043d73f2c029b359332707/monai/transforms/croppad/dictionary.py#L405

Describe the solution you'd like
An option to have separate random parameters would be useful for non input-target dictionary structure. Eg: for dicts that contain views in self-supervised learning. An additional key to the random dict transforms would be ideal

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with monai/transforms/intensity/dictionary.py around line 1401 and monai/transforms/croppad/dictionary.py around line 405, then trace how random parameters are generated and shared between keys. Define the separate-parameter option for dictionary transforms, including the additional random-dictionary key described in the issue, and verify that existing shared-parameter behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.