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

UnicodeDecodeError in 00_download_data.ipynb of zurich #13

Open
tarnoldo opened this issue Jun 22, 2017 · 0 comments
Open

UnicodeDecodeError in 00_download_data.ipynb of zurich #13

tarnoldo opened this issue Jun 22, 2017 · 0 comments

Comments

@tarnoldo
Copy link

tarnoldo commented Jun 22, 2017

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(
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

1 participant