Torchvision fails to load LSUN dataset

Hello everyone.
I am trying to load the LSUN dataset.
However, the following code snippet does not work:

*dataset = torchvision.datasets.LSUN(root=’./data’, classes = [‘bedroom_train’], transform = transform) , giving me the error:

*Error: ./data/bedroom_train_lmdb: The system cannot find the path specified.

I assume there is a problem with the path given in the root, can anyone please shed some light on this problem?
Thanks in advance :slight_smile:

PyTorch version used : 0.4.1 (latest stable release)
Torchvision verison used: 0.2.1

try '/data'

if it does not work, try the full path of your data

'/home/ClainTimbus/your_app/data'

the above works for me.

By full path I assume full absolute path.
Thank you, I will try. As soon as I get an answer/solution I will inform you of it.

It doesn’t work for me. I also need to specify that I’m on Windows, not on Ubuntu.

Hello, I encountered the same problem. Have you solved it?