question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tensorflow_datasets.load('cats_vs_dogs') not working !

See original GitHub issue

Code NOT WORKING

# load dataset module 
import tensorflow_datasets as tfds
# make downloading progress bar dissable 
tfds.disable_progress_bar()
# download data - cats vs dogs 
_=tfds.load('cats_vs_dogs',            # dataset name 
            as_supervised=False,       # include labels - False
          )

ERROR: -> DownloadError: Failed to get url https://download.microsoft.com/download/3/E/1/3E1C3F21-ECDB-4869-8368-6DEBA77B919F/kagglecatsanddogs_3367a.zip. HTTP code: 404.

Environment - Google Colab

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:14

github_iconTop GitHub Comments

25reactions
GuillaumeVraycommented, May 12, 2022

Hi. I have a temporary solution below to modify the URL:

setattr(tfds.image_classification.cats_vs_dogs, ‘_URL’,“https://download.microsoft.com/download/3/E/1/3E1C3F21-ECDB-4869-8368-6DEBA77B919F/kagglecatsanddogs_5340.zip”)

1reaction
IHackmer19commented, May 12, 2022

Hi. I have a temporary solution below to modify the URL:

setattr(tfds.image_classification.cats_vs_dogs, ‘_URL’,“https://download.microsoft.com/download/3/E/1/3E1C3F21-ECDB-4869-8368-6DEBA77B919F/kagglecatsanddogs_5340.zip”)

Thanks Worked for me…

Read more comments on GitHub >

github_iconTop Results From Across the Web

cats_vs_dogs | TensorFlow Datasets
Description: A large set of images of cats and dogs. There are 1738 corrupted images that are dropped. Additional Documentation: Explore on Papers...
Read more >
Error in importing Cats-vs-Dogs dataset in Google Colab
module 'tensorflow_datasets' has no attribute 'image_classification' This seems to work on my version: ``` # fix dataset url setattr(tfds.image.
Read more >
Classify Images of Dogs and Cats using CNN and TensorFlow 2
It is a binary classification problem because there are two classes. ... We will use TensorFlow 2 and TensorFlow Datasets (TFDS).
Read more >
Ready-to-use Datasets - 简单粗暴TensorFlow 2
TensorFlow Datasets is an out-of-the-box collection of dozens of commonly used machine learning datasets. The data can be loaded in the tf.data.
Read more >
transfer-learning-cats-vs-dogs-tensorflow-datasets.ipynb
Load the Dogs vs Cats Dataset · # number of images in the dataset · info.splits[ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found