can not download tensorflow dataset celeb_a/2.0.1
Exception has occurred: DownloadError
Failed to get url https://drive.google.com/uc?export=download&id=0B7EVK8r0v71pZjFTYXZWM3FlRnM. HTTP code: 404.
File "/media/a1/SW/python-machine-learning-book-3rd-edition/ch15/ch15_part2.py", line 44, in
Arg, yeah, downloading CelebA can sometimes be a bit frustrating. Luckily, you only have to do it once. I just put up some instructions here if that helps: https://github.com/rasbt/python-machine-learning-book-3rd-edition/tree/master/ch15/downloading-celeba
Thank you so much I've downloaded CelebA and the download_celeba.py is working. I'm sorry, I'm newbee in Python & ML, may be it's trivial, but I can't find how to convert "torchvision.datasets.CelebA" into tf.data.Dataset, that used in ch15_part2.py
Hm, I currently can't get it to work either. I think there is an issue with some of the dataset function in the recent TensorFlow / TensorFlow Dataset version (https://github.com/tensorflow/datasets/pull/3056). I wish I could be more helpful but I don't know how to fix this atm. Maybe @vmirly has some ideas?
I am a beginner, and it took me a day to solve this problem . Seems it is impossible to use download_and_prepare() to download celeb_a for now. But we can do it manually, hope it will help.
- You can download dataset manually from http://mmlab.ie.cuhk.edu.hk/projects/CelebA.html, you can ignore the In-The-Wild Images by the way.
- Then, put the .txt file and extracted .jpeg file folder into tensorflow_datasets folder. For me it is located at C:\Users\15899\tensorflow_datasets\celeb_a\2.0.1
- After that do as https://github.com/rasbt/python-machine-learning-book-3rd-edition/issues/131#issuecomment-769354803 said.
- Do not forget to install tensorflow-datasets nightly with !pip install tfds-nightly. After that Restart python console.
- Use datasets=tfds.load('celeb_a:2.0.1',download= False) to load it.