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

add LSUN prototype dataset #5390

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

add LSUN prototype dataset #5390

wants to merge 9 commits into from

Conversation

pmeier
Copy link
Collaborator

@pmeier pmeier commented Feb 8, 2022

Closes #5345.

@facebook-github-bot
Copy link

facebook-github-bot commented Feb 8, 2022

💊 CI failures summary and remediations

As of commit 66ba84a (more details on the Dr. CI page):


💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

torchvision/prototype/datasets/_builtin/lsun.py Outdated Show resolved Hide resolved
Comment on lines +72 to +75
def _loader(self, path: pathlib.Path) -> IterDataPipe[str]:
# LMDB datasets cannot be loaded through an open file handle, but have to be loaded through the path of the
# parent directory.
return IterableWrapper([str(next(path.rglob("data.mdb")).parent)])
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@NicolasHug this would have been supported with the loader parameter we removed in #5282. But I guess since this is (currently) the only case that needs this, we can special case it.

This was referenced Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LSUN
2 participants