Skip to content

Add query to NGC to get matched model URL and version.#2433

Merged
wyli merged 8 commits intoProject-MONAI:devfrom
IsaacYangSLA:download_mmar_via_ngc_api
Jun 25, 2021
Merged

Add query to NGC to get matched model URL and version.#2433
wyli merged 8 commits intoProject-MONAI:devfrom
IsaacYangSLA:download_mmar_via_ngc_api

Conversation

@IsaacYangSLA
Copy link
Contributor

Allow mmar download with latest version or a specific version.

Signed-off-by: Isaac Yang isaacy@nvidia.com

Fixes #2365 .

Description

Add api, version options to current download_mmar method to enable query NGC for list of models, and the version to download.

Status

Ready

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.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

Allow mmar download with latest version or a specific version.

Signed-off-by: Isaac Yang <isaacy@nvidia.com>
@Nic-Ma
Copy link
Contributor

Nic-Ma commented Jun 24, 2021

/integration-test

@IsaacYangSLA IsaacYangSLA force-pushed the download_mmar_via_ngc_api branch 3 times, most recently from 3dbda12 to 6b453d7 Compare June 24, 2021 08:23
Optional import requests as API download is optional

Signed-off-by: Isaac Yang <isaacy@nvidia.com>
@IsaacYangSLA IsaacYangSLA force-pushed the download_mmar_via_ngc_api branch from 6b453d7 to cddb231 Compare June 24, 2021 08:25
@IsaacYangSLA IsaacYangSLA force-pushed the download_mmar_via_ngc_api branch from b0b5935 to 64ab028 Compare June 24, 2021 15:54
Signed-off-by: Isaac Yang <isaacy@nvidia.com>
Copy link
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!

@wyli wyli enabled auto-merge (squash) June 24, 2021 18:34
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.

Thanks for fixing /integration-test in this PR.

@wyli
Copy link
Contributor

wyli commented Jun 25, 2021

Thanks for fixing /integration-test in this PR.

what was the issue in the integration test?

@Nic-Ma
Copy link
Contributor

Nic-Ma commented Jun 25, 2021

Thanks for fixing /integration-test in this PR.

what was the issue in the integration test?

Hi @wyli ,

I found the /integration-test command actually didn't trigger the CI tests in PRs last night.
As you can see, @IsaacYangSLA added requests to requirements-dev.txt in this PR to fix it.

Thanks.

@wyli
Copy link
Contributor

wyli commented Jun 25, 2021

Thanks for fixing /integration-test in this PR.

what was the issue in the integration test?

Hi @wyli ,

I found the /integration-test command actually didn't trigger the CI tests in PRs last night.
As you can see, @IsaacYangSLA added requests to requirements-dev.txt in this PR to fix it.

Thanks.

I don't think requests is explicitly used in the current dev branch, and requests is a part of the pytorch requirements https://github.com/pytorch/pytorch/blob/master/requirements.txt#L7 is probably installed anyway... if there are integration test errors, this couldn't be the fix

@Nic-Ma
Copy link
Contributor

Nic-Ma commented Jun 25, 2021

/integration-test

@Nic-Ma
Copy link
Contributor

Nic-Ma commented Jun 25, 2021

Hi @wyli , thanks for your helpful analysis and suggestion! @IsaacYangSLA what do you think about this command issue?

@Nic-Ma
Copy link
Contributor

Nic-Ma commented Jun 25, 2021

Hi @wyli, BTW, I found the GPU tests of CI are very slow today, do you think it's something related to Blossom env or our config error?

Thanks in advance.

@wyli
Copy link
Contributor

wyli commented Jun 25, 2021

as far as I can see it's not a blossom/config issue

@wyli wyli merged commit 43aba96 into Project-MONAI:dev Jun 25, 2021
@IsaacYangSLA
Copy link
Contributor Author

Thanks for fixing /integration-test in this PR.

what was the issue in the integration test?

Hi @wyli ,
I found the /integration-test command actually didn't trigger the CI tests in PRs last night.
As you can see, @IsaacYangSLA added requests to requirements-dev.txt in this PR to fix it.
Thanks.

I don't think requests is explicitly used in the current dev branch, and requests is a part of the pytorch requirements https://github.com/pytorch/pytorch/blob/master/requirements.txt#L7 is probably installed anyway... if there are integration test errors, this couldn't be the fix

Hi @wyli, I did a wheel install of torch (1.8 and 1.9) in a fresh virtual env and found none of them installed requests automatically. Maybe its setup.py does not load requirements.txt.

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.

MMAR model description and downloading APIs (6/July)

3 participants