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

received an error while following a tutorial #1692

Open
sleeping4cat opened this issue Jul 30, 2023 · 1 comment
Open

received an error while following a tutorial #1692

sleeping4cat opened this issue Jul 30, 2023 · 1 comment

Comments

@sleeping4cat
Copy link

Tutorial name: Keyword spotting
Link: https://www.nengo.ai/nengo-examples/loihi/keyword-spotting.html

Code that produced error:

n_inputs = 390
n_outputs = 29
n_neurons = 256

allowed_text = ["loha", "alha", "aloa", "aloh", "aoha", "aloha"]
id_to_char = np.array(list(string.ascii_lowercase + '" -|'))

params = load("reference_params.pkl", "149rLqXnJqZPBiqvWpOAysGyq4fvunlnM")
test_stream = load("test_stream.pkl", "1AQavHjQKNu1sso0jqYhWj6zUBLKuGNvV")

Error Message:

Loading reference_params.pkl
Loading test_stream.pkl
---------------------------------------------------------------------------
UnpicklingError                           Traceback (most recent call last)
[<ipython-input-7-2f697c37b59d>](https://localhost:8080/#) in <cell line: 9>()
      7 
      8 params = load("reference_params.pkl", "149rLqXnJqZPBiqvWpOAysGyq4fvunlnM")
----> 9 test_stream = load("test_stream.pkl", "1AQavHjQKNu1sso0jqYhWj6zUBLKuGNvV")

[<ipython-input-5-f281f1a53b32>](https://localhost:8080/#) in load(fname, drive_id)
     79     print("Loading %s" % fname)
     80     with open(fname, "rb") as fp:
---> 81         ret = pickle.load(fp)
     82     return ret

UnpicklingError: invalid load key, '<'.
@tbekolay
Copy link
Member

I think that means that the download didn't complete successfully. Can you try manually downloading test_stream.pkl from here, put it next to reference_params.pkl (which seems to be working) and try again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants