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

Chapter 14 #146

Closed
AbdelrahimKoura opened this issue Sep 29, 2023 · 2 comments
Closed

Chapter 14 #146

AbdelrahimKoura opened this issue Sep 29, 2023 · 2 comments

Comments

@AbdelrahimKoura
Copy link

To load dataset using this statement
celeba_train_dataset = torchvision.datasets.CelebA(
image_path, split='train',
target_type='attr', download=True
)
dataset can not load why?

@acmoudleysa
Copy link

https://drive.google.com/file/d/1m8-EBPgi5MRubrm6iQjafK2QMHDBMSfJ/view

Use this link.

@rasbt
Copy link
Owner

rasbt commented Apr 30, 2024

Sorry for the hassle here. It's a bit frustrating that it doesn't work out of the box via torchvision anymore.

This was also shared as an issue here: pytorch/vision#1920

What I did is I downloaded the files from here: https://drive.google.com/drive/folders/0B7EVK8r0v71pWEZsZE9oNnFzTm8?resourcekey=0-5BR16BdXnb8hVj6CNHKzLg

For simplicity, you can also use my link here where I already prepared the directory structure: https://drive.google.com/file/d/1m8-EBPgi5MRubrm6iQjafK2QMHDBMSfJ/view?usp=share_link

Download that zip file and place it in the celeba folder. Then unzip img_align_celeba.zip. And it should work:
Screenshot 2024-04-25 at 12 26 31 PM

Let me know in case it still doesn't work, and please feel free to reopen this issue then.

@rasbt rasbt closed this as completed Apr 30, 2024
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

3 participants