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

[feat] add default download root instead of using current working dir #479

Merged
merged 1 commit into from
Mar 1, 2023

Conversation

geniuspatrick
Copy link
Collaborator

@geniuspatrick geniuspatrick commented Mar 1, 2023

Thank you for your contribution to the MindCV repo.
Before submitting this PR, please make sure:

Motivation

Set the default download root path as ~/.mindspore(hereinafter referred to as ${DOWNLOAD_ROOT}) instead of using the current working directory.
For different types of files, we place them in:

  • Checkpoints of pretrained model: ${DOWNLOAD_ROOT}/models
  • Small datasets like mnist cifair10: ${DOWNLOAD_ROOT}/datasets

We can change the default download path with function set_default_download_root, or explicitly pass in the download path when calling function download_and_extract_archive or download_url.

Test Plan

Already in tests.

Related Issues and PRs

None

@geniuspatrick geniuspatrick changed the title add default download root instead of using working dir [feat] add default download root instead of using current working dir Mar 1, 2023
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.

2 participants