Skip to content

Updated Contrastive Loss batch Size#5093

Merged
wyli merged 4 commits intoProject-MONAI:devfrom
a-parida12:contrastive-branch
Sep 6, 2022
Merged

Updated Contrastive Loss batch Size#5093
wyli merged 4 commits intoProject-MONAI:devfrom
a-parida12:contrastive-branch

Conversation

@a-parida12
Copy link
Copy Markdown
Contributor

@a-parida12 a-parida12 commented Sep 6, 2022

Fixes #5070 .

Description

The batch size for the contrastive loss is estimated automatically

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh -f -u --net --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests --disttests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

@wyli
Copy link
Copy Markdown
Contributor

wyli commented Sep 6, 2022

/black

Signed-off-by: monai-bot <[email protected]>
@wyli
Copy link
Copy Markdown
Contributor

wyli commented Sep 6, 2022

/build

@wyli
Copy link
Copy Markdown
Contributor

wyli commented Sep 6, 2022

/build

Copy link
Copy Markdown
Contributor

@wyli wyli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, it looks good to me. merging this PR if all tests work fine cc @finalelement .

@wyli wyli enabled auto-merge (squash) September 6, 2022 21:46
@wyli wyli merged commit 91a58ed into Project-MONAI:dev Sep 6, 2022
wyli pushed a commit to yashika-git/MONAI that referenced this pull request Sep 6, 2022
Fixes Project-MONAI#5070 .

### Description

The batch size for the contrastive loss is estimated automatically

### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [x] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [x] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.

Signed-off-by: a-parida12 <[email protected]>
Signed-off-by: monai-bot <[email protected]>
Co-authored-by: monai-bot <[email protected]>
@a-parida12 a-parida12 deleted the contrastive-branch branch April 5, 2023 21:18
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.

ContrastiveLoss with dynamic batchsize

3 participants