-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
CelebA: Resource cannot infer ExtractMethod from filename #2321
Comments
The CelebA bug is likely a duplicate of #1482 |
Hi @vijayphoenix , I tried just now with |
Hi @zaccharieramzi, |
I have just tried with version 3.2.1.dev202010020107, it still has the same issue KeyError: <ExtractMethod.NO_EXTRACT: 1> |
I just tried today with
|
celeba_bldr = tfds.builder('celeb_a') Error: |
As explained above, the CelebA bug is likely a duplicate of #1482 |
Hi @vijayphoenix , I just retried with the latest nightly, and it gave the same error. @Conchylicultor I have tried several times at different hours and I am not in China (and not using any VPN), so I guess the root cause for this issue is different than #1482 . However, when inspecting the downloads (for all files), I indeed see an html file that looks like the following (with title
Maybe there is a problem related to this particular file for some reason. Do you know how we can mitigate this issue by manually downloading the files ? |
Ok, I think I understood how the manual downloading should work. Basically you can download all the files listed here, put them in |
Duplicate of #1482 You can also follow https://www.tensorflow.org/datasets/overview#troubleshooting for manual download |
celeb_a tfrecord files: |
KeyError: <ExtractMethod.NO_EXTRACT: 1> since your code need tfrecord files |
I think that this problem does not get fixed in Colab. I've tried in my laptop, and it works fine. But on Colab, nah, it just won't. |
Short description
When trying to load the CelebA dataset, the code fails with the error KeyError: <ExtractMethod.NO_EXTRACT: 1>, because the
Resource()
constructor is unable to figure out the proper method from the filename.Environment information
tensorflow-datasets
version: '3.2.1'tensorflow
version: 2.3.0Reproduction instructions
Link to logs
https://paste.ubuntu.com/p/K8BRHzp27d/
Expected behavior
The dataset should be properly loaded.
Additional context
This happens in
download_manager.py
, in the functioniter_archive
.resource
is/home/ericpts/tensorflow_datasets/downloads/ucexport_download_id_0B7EVK8r0v71pZjFTYXZWM3FlDDaXUAQO8EGH_a7VqGNLRtW52mva1LzDrb-V723OQN8
, and Resource is unable to guess the ExtractMethod from the path.If I manually specify it as
ExtractMethod.ZIP
, then everything works correctly.The text was updated successfully, but these errors were encountered: