Skip to content

Mednist GAN Bundle#31

Merged
ericspod merged 18 commits into
devfrom
mednist_gan
Jul 29, 2022
Merged

Mednist GAN Bundle#31
ericspod merged 18 commits into
devfrom
mednist_gan

Conversation

@ericspod

@ericspod ericspod commented Jun 8, 2022

Copy link
Copy Markdown
Member

Fixes # .

Description

This is the bundle for the MedNIST GAN network based off the example notebooks in the tutorials repo. I've followed the code pretty closely with that found in the notebooks with a few changes that don't impact results. There are two scripts for training and inference.

I have as the license the copyright information that is at the top of our files and notebooks but I'm open to changing this to something more appropriate.

I've also included the weights for the network as a pt file directly rather than as a download link because it's so small. I feel we're ok with tiny networks to do this but it can be changed if that's better.

Status

Ready

Please ensure all the checkboxes:

  • Codeformat tests passed locally by running ./runtests.sh --codeformat.
  • In-line docstrings updated.
  • Update version and changelog in metadata.json.
  • Ensure versions of packages such as monai, pytorch and numpy are correct in metadata.json.
  • Descriptions should be consistent with the content, such as eval_metrics of the provided weights and TorchScript modules.
  • Files larger than 25MB are excluded and replaced by providing download links in large_file.yml.

ericspod and others added 6 commits June 8, 2022 14:29
Signed-off-by: Eric Kerfoot <eric.kerfoot@kcl.ac.uk>
Signed-off-by: Eric Kerfoot <eric.kerfoot@kcl.ac.uk>
Signed-off-by: Eric Kerfoot <eric.kerfoot@kcl.ac.uk>
Signed-off-by: Eric Kerfoot <eric.kerfoot@kcl.ac.uk>
Comment thread models/mednist_gan/configs/metadata.json
@yiheng-wang-nv

Copy link
Copy Markdown
Collaborator

As for the license part, should MedNIST related license be mentioned as well? Hi @Nic-Ma , may need your help to double confirm it (for other bundles, the dataset related license is added).

Signed-off-by: Eric Kerfoot <eric.kerfoot@kcl.ac.uk>
@ericspod

Copy link
Copy Markdown
Member Author

I wasn't sure what the license should be for this one so yes some help on it would be good.

Comment thread models/mednist_gan/docs/README.md
@yiheng-wang-nv

Copy link
Copy Markdown
Collaborator

I wasn't sure what the license should be for this one so yes some help on it would be good.

Hi @ericspod , Nic and I discussed about the license, and could you please refer to the first cell of this notebook: https://colab.research.google.com/drive/1wy8XUSnNWlhDNazFdvGBHLfdkGvOHBKe and use the same license?

Comment thread models/mednist_gan/configs/inference.json
Comment thread models/mednist_gan/configs/inference.json
Comment thread models/mednist_gan/configs/metadata.json Outdated
Comment thread models/mednist_gan/configs/metadata.json
Comment thread models/mednist_gan/configs/train.json Outdated
Comment thread models/mednist_gan/configs/train.json
Comment thread models/mednist_gan/scripts/losses.py Outdated
@ericspod

Copy link
Copy Markdown
Member Author

Hi @ericspod , Nic and I discussed about the license, and could you please refer to the first cell of this notebook: https://colab.research.google.com/drive/1wy8XUSnNWlhDNazFdvGBHLfdkGvOHBKe and use the same license?

The content in that cell isn't a license, it's stating that the data is licensed under CC but just points to that license's text. The license that should be here is for the network itself, not the data. I've stated the data's licensing conditions in the README.md file so that should suffice for that, but we don't want to assert that the network is copyrighted by the same author as the data and distributed under their terms. What I put initially in the license file is our copyright header but that isn't sufficient either, so the next best thing I would say is to use the Apache 2.0 license MONAI uses?

Signed-off-by: Eric Kerfoot <eric.kerfoot@kcl.ac.uk>
@Nic-Ma

Nic-Ma commented Jun 14, 2022

Copy link
Copy Markdown
Collaborator

Hi @wyli ,

Could you please help share some comments about the license question?
I am also not sure what licenses we should put for this bundle.
Others look good to me now.

Thanks in advance.

@Nic-Ma

Nic-Ma commented Jun 16, 2022

Copy link
Copy Markdown
Collaborator

Hi @ericspod ,

About the license, I think maybe you can refer to the BERT model in the huggingface:
https://huggingface.co/bert-base-uncased/blob/main/LICENSE
We may need some guide or policy for developers to write license?

Thanks.

@ericspod

Copy link
Copy Markdown
Member Author

I think we do need to consider what our licensing should be and what to recommend to contributors. The BERT link uses Apache 2.0 like MONAI, I'd be fine with that. We could also use MIT license that's more permissive and I'd be fine with that as well, but we should definitely establish a policy.

@Nic-Ma

Nic-Ma commented Jul 1, 2022

Copy link
Copy Markdown
Collaborator

Hi @ericspod ,

We discussed the license topic with @pdogra89 and the team last week, and updated the contribution guide for it:
https://github.com/Project-MONAI/model-zoo/blob/dev/CONTRIBUTING.md#license-format

Could you please help update this PR for this last part?

Thanks in advance.

@ericspod

ericspod commented Jul 6, 2022

Copy link
Copy Markdown
Member Author

Yes I'll get on updating this, I had wanted to revisit what to do with licensing.

ericspod and others added 2 commits July 6, 2022 00:34
Signed-off-by: Eric Kerfoot <eric.kerfoot@kcl.ac.uk>
@ericspod

Copy link
Copy Markdown
Member Author

I've added a statement into the license regarding the MedNIST data, this goes with the license for the network itself. Does this meet the discussed license criteria and the contribution guidelines?

@yiheng-wang-nv

Copy link
Copy Markdown
Collaborator

/build

@Nic-Ma Nic-Ma left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should we put the model.pt in the large_files to reduce the repo size even it's less than 25MB?
Others look good to me.

Thanks for the update.

Comment thread models/mednist_gan/configs/metadata.json Outdated
Comment thread models/mednist_gan/configs/metadata.json
@ericspod

Copy link
Copy Markdown
Member Author

Should we put the model.pt in the large_files to reduce the repo size even it's less than 25MB? Others look good to me.

Thanks for the update.

The file is so tiny I don't think it would make much of a difference, I want to have at least one example of a whole bundle in the repo without having to explain our large file system.

@ericspod ericspod merged commit fa8e1fb into dev Jul 29, 2022
@yiheng-wang-nv yiheng-wang-nv deleted the mednist_gan branch July 29, 2022 13:40
yiheng-wang-nv pushed a commit to yiheng-wang-nv/model-zoo that referenced this pull request Jul 29, 2024
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