Skip to content

Indicate Celeba download parameter is deprecated and will be removed #6059

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

Merged
merged 4 commits into from
May 23, 2022

Conversation

NicolasHug
Copy link
Member

Addresses #5705 (comment)

I'm keeping the ValueError instead of a deprecation warning: raising a warning would lead to an error later anyway since the files aren't available. Raising an error early is much cleaner

@pmeier
Copy link
Collaborator

pmeier commented May 20, 2022

When we did that for ImageNet in #1457, we used the following idiom:

def __init__(self, ..., download=None):
    if download is True:
        raise RuntimeError
    elif download is False:
        warnings.warn(...)

Meaning, if the user didn't pass download before nothing happens. If they explicitly set donwload=False, they will be warned that the parameter is deprecated. If they set download=True, they will get an error saying that download can no longer be performed.

@NicolasHug NicolasHug merged commit 49496c4 into pytorch:main May 23, 2022
facebook-github-bot pushed a commit that referenced this pull request Jun 1, 2022
… removed (#6059)

Summary:
* Indicate download parameter is deprecated and will be removed

* change default to None and raise warning if user isnt using default

* aonfajoajgfnjaognojag

Reviewed By: NicolasHug

Differential Revision: D36760925

fbshipit-source-id: 2bb90f85a296830fe825ad29efc4c94858d0ed47
NicolasHug added a commit to NicolasHug/vision that referenced this pull request Jun 9, 2022
NicolasHug added a commit that referenced this pull request Jun 9, 2022
* Revert "Indicate Celeba download parameter is deprecated and will be removed (#6059)"

This reverts commit 49496c4.

* Revert "Deactivate CelebA download (#6052)"

This reverts commit ac56f52.
NicolasHug added a commit to NicolasHug/vision that referenced this pull request Jun 9, 2022
* Revert "Indicate Celeba download parameter is deprecated and will be removed (pytorch#6059)"

This reverts commit 49496c4.

* Revert "Deactivate CelebA download (pytorch#6052)"

This reverts commit ac56f52.
@NicolasHug NicolasHug added the revert(ed) For reverted PRs, and PRs that revert other PRs label Jun 9, 2022
datumbox pushed a commit that referenced this pull request Jun 10, 2022
* Revert "Indicate Celeba download parameter is deprecated and will be removed (#6059)"

This reverts commit 49496c4.

* Revert "Deactivate CelebA download (#6052)"

This reverts commit ac56f52.
NicolasHug added a commit to NicolasHug/vision that referenced this pull request Jun 16, 2022
Summary:
* Revert "Indicate Celeba download parameter is deprecated and will be removed (pytorch#6059)"

This reverts commit 49496c4.

* Revert "Deactivate CelebA download (pytorch#6052)"

This reverts commit ac56f52.

Differential Revision: D37212658

fbshipit-source-id: 608b722a2b96317a1daf97623679a4a1b2c1f14d
facebook-github-bot pushed a commit that referenced this pull request Jun 17, 2022
Summary:
* Revert "Indicate Celeba download parameter is deprecated and will be removed (#6059)"

This reverts commit 49496c4.

* Revert "Deactivate CelebA download (#6052)"

This reverts commit ac56f52.

Reviewed By: datumbox

Differential Revision: D37212658

fbshipit-source-id: 756061b60ed3954b7ff4422b0413ec0ed6a4e932
pmeier pushed a commit to pmeier/vision that referenced this pull request Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla signed deprecation module: datasets revert(ed) For reverted PRs, and PRs that revert other PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants