Hacker News new | ask | show | jobs
by browserface 2110 days ago
Damn I got an error at cell 19

otherwise seemed to work

3 comments

What was the error? I tried to make the demo notebook as robust as possible - you should be able to execute all cells in sequence once then execute cells out of sequence etc. without trouble, but it's hard to legislate for errors in Jupyter-like notebooks sometimes.
The models aren't downloading correctly. The content of the '*.pt' files says 'Google Drive - Quota exceeded'. I guess too many people have tried downloading the files from your drive.

One solution is to download (and upload to Colab) the models manually in /content/checkpoint/

In the step

# Setup model

I get an error in the function call 'prepare_model'

UnpicklingError: invalid load key, '<'.

I get the same
GDrive doesn't download the model checkpoints correctly sometimes, leading to the following error:

``` # Setup model

I get an error in the function call 'prepare_model'

UnpicklingError: invalid load key, '<'. ```

Try rerunning the download cell if you experience this - the models downloaded should be around 1.5-2GB, so if the checkpoints are 100kB in size, the download's gone wrong.

Oh, thanks so much for your replies. Really appreciate your attitude of taking that seriously and trying to mitigate. Not saying that from my point of view of thinking my error is somehow important, just from my experience putting work on HN, and knowing what it feels like when people let you know something goes wrong. Well done!

That was the error I got!

I pushed a workaround and provided extra instructions in the demo, so anyone experiencing errors should try that.