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

6676 port generative networks vqvae #7285

Merged
merged 31 commits into from
Dec 7, 2023
Merged

6676 port generative networks vqvae #7285

merged 31 commits into from
Dec 7, 2023

Conversation

marksgraham
Copy link
Contributor

@marksgraham marksgraham commented Dec 4, 2023

Partially fixes #6676

Description

Implements the VQ-VAE network, including the vector quantizer block, from MONAI Generative.

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.

KumoLiu and others added 6 commits December 4, 2023 03:50
Fixes model-zoo#537



### 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).
- [ ] 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.

Signed-off-by: KumoLiu <yunl@nvidia.com>
Signed-off-by: Mark Graham <markgraham539@gmail.com>
Signed-off-by: Mark Graham <markgraham539@gmail.com>
Signed-off-by: Mark Graham <markgraham539@gmail.com>
Signed-off-by: Mark Graham <markgraham539@gmail.com>
Copy link
Contributor

@KumoLiu KumoLiu left a comment

Choose a reason for hiding this comment

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

Thanks for the pr. Several minor comments inline.
Please also fix DCO error.
And seems there also has a version issue, please also fix it. Thanks!
https://github.com/Project-MONAI/MONAI/actions/runs/7088708828/job/19291787433?pr=7285#step:8:12578

monai/networks/layers/vector_quantizer.py Outdated Show resolved Hide resolved
monai/networks/layers/vector_quantizer.py Outdated Show resolved Hide resolved
monai/networks/nets/vqvae.py Outdated Show resolved Hide resolved
monai/networks/nets/vqvae.py Outdated Show resolved Hide resolved
tests/test_vector_quantizer.py Outdated Show resolved Hide resolved
tests/test_vqvae.py Show resolved Hide resolved
marksgraham and others added 10 commits December 5, 2023 11:42
Signed-off-by: Mark Graham <markgraham539@gmail.com>
I, Mark Graham <markgraham539@gmail.com>, hereby add my Signed-off-by to this commit: 8cf0525

Signed-off-by: Mark Graham <markgraham539@gmail.com>
Signed-off-by: Mark Graham <markgraham539@gmail.com>
Co-authored-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Signed-off-by: Mark Graham <markgraham539@gmail.com>
Signed-off-by: Mark Graham <markgraham539@gmail.com>
…ksgraham/MONAI into 6676_port_generative_networks_vqvae]
Signed-off-by: Mark Graham <markgraham539@gmail.com>
…r networks

Signed-off-by: Mark Graham <markgraham539@gmail.com>
Signed-off-by: Mark Graham <markgraham539@gmail.com>
Signed-off-by: Mark Graham <markgraham539@gmail.com>
@marksgraham
Copy link
Contributor Author

Thanks @KumoLiu , I've addressed your comments. It seems you need to address one of the DCO errors, I guess from the initial commit which got included from dev. Are you able to fix that? I'll look into properly syncing gen-ai and dev so that doesn't happen in future commits

KumoLiu and others added 8 commits December 6, 2023 10:51
…hub.com>

I, YunLiu <55491388+KumoLiu@users.noreply.github.com>, hereby add my Signed-off-by to this commit: 2fc0126

Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
I, KumoLiu <yunl@nvidia.com>, hereby add my Signed-off-by to this commit: 398e41f

Signed-off-by: KumoLiu <yunl@nvidia.com>
…hub.com>

I, YunLiu <55491388+KumoLiu@users.noreply.github.com>, hereby add my Signed-off-by to this commit: 2fc0126

Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
I, KumoLiu <yunl@nvidia.com>, hereby add my Signed-off-by to this commit: 10ae421

Signed-off-by: KumoLiu <yunl@nvidia.com>
DCO Remediation Commit for YunLiu <55491388+KumoLiu@users.noreply.github.com>

I, YunLiu <55491388+KumoLiu@users.noreply.github.com>, hereby add my Signed-off-by to this commit: 2fc0126

Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
KumoLiu and others added 6 commits December 6, 2023 11:25
…hub.com>

I, YunLiu <55491388+KumoLiu@users.noreply.github.com>, hereby add my Signed-off-by to this commit: 2fc0126

Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
I, KumoLiu <yunl@nvidia.com>, hereby add my Signed-off-by to this commit: e830b1f

Signed-off-by: KumoLiu <yunl@nvidia.com>
DCO Remediation Commit for YunLiu <55491388+KumoLiu@users.noreply.github.com>

I, YunLiu <55491388+KumoLiu@users.noreply.github.com>, hereby add my Signed-off-by to this commit: 2fc0126

Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Signed-off-by: KumoLiu <yunl@nvidia.com>
…hub.com>

I, YunLiu <55491388+KumoLiu@users.noreply.github.com>, hereby add my Signed-off-by to this commit: 2fc0126

Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Signed-off-by: KumoLiu <yunl@nvidia.com>
…hub.com>

I, YunLiu <55491388+KumoLiu@users.noreply.github.com>, hereby add my Signed-off-by to this commit: 2fc0126

Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
docs/source/networks.rst Outdated Show resolved Hide resolved
Copy link
Contributor

@Nic-Ma Nic-Ma left a comment

Choose a reason for hiding this comment

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

It overall looks good to me.

Thanks.

Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
@KumoLiu
Copy link
Contributor

KumoLiu commented Dec 7, 2023

/build

@KumoLiu KumoLiu merged commit b3fdfdd into Project-MONAI:gen-ai-dev Dec 7, 2023
28 checks passed
marksgraham added a commit to marksgraham/MONAI that referenced this pull request Jan 30, 2024
Partially fixes Project-MONAI#6676

### Description

Implements the VQ-VAE network, including the vector quantizer block,
from MONAI Generative.

### 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: KumoLiu <yunl@nvidia.com>
Signed-off-by: Mark Graham <markgraham539@gmail.com>
Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Co-authored-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Co-authored-by: KumoLiu <yunl@nvidia.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Signed-off-by: Mark Graham <markgraham539@gmail.com>
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.

3 participants