Skip to content

UnicodeDecodeError in 00_download_data.ipynb of zurich #13

@tarnoldo

Description

@tarnoldo

On a Windows 7 machine with python-3.5.3-amd64 - when running the 00_download_data.ipynb of zurich I end up in the following error within cell no. 2 (when trying to load the "data/frog.npy"):

UnicodeDecodeError                        Traceback (most recent call last)
<ipython-input-6-64f0c986b1c7> in <module>()
     32     url = "https://storage.googleapis.com/quickdraw_dataset/full/numpy_bitmap/{}.npy".format(animal)
     33     file_path = maybe_download(url, DATA_DIR)
---> 34     data.append(load_data(file_path, max_examples = 1000, example_name = animal))
     35     labels.extend([animal2id[animal]]*data[-1].shape[0])
     36 

<ipython-input-6-64f0c986b1c7> in load_data(file_path, max_examples, example_name)
     20 
     21 def load_data(file_path, max_examples=2000, example_name=''):
---> 22     d = np.load(open(file_path, 'r'))
     23     d = d[:max_examples,:] # limit number of instances to save memory
     24     print("Loaded {} {} examples of dimension {} from {}".format(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions