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

Setting ["bridge_train"] to classes argument of LSUN() gets error #8768

Open
hyperkai opened this issue Nov 29, 2024 · 1 comment
Open

Setting ["bridge_train"] to classes argument of LSUN() gets error #8768

hyperkai opened this issue Nov 29, 2024 · 1 comment

Comments

@hyperkai
Copy link

hyperkai commented Nov 29, 2024

🐛 Describe the bug

Setting ["bridge_train"] to classes argument of LSUN() gets the error as shown below:
*Memos:

  • It also happens with ["conference_room_train"], ["church_outdoor_train"], ["dining_room_train"] and ["tower_train"] for classes argument.
  • "test" doesn't work because test_lmdb.zip, test_train_lmdb.zip and test_val_lmdb.zip cannot be unzipped as I reported the bug.
  • There is other error as I reported here.
from torchvision import datasets

train_data = datasets.LSUN(
    root="C:/Users/<user>/dl-models/data/lsun",
    classes=["bridge_train"] # Here
) # Error

print(len(train_data))

CorruptedError: mdb_cursor_get: MDB_CORRUPTED: Located page was wrong type

Versions

import torchvision

torchvision.__version__ # '0.20.1'
@NicolasHug
Copy link
Member

Hi @hyperkai Can you please provide the entire traceback? It might help diagnose what's going on. As mentioned in #8767 (comment) it's hard to repro as the original files aren't available anymore

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

No branches or pull requests

2 participants