News for hackers. Stuff that matters.
Re:Show HN: Neural Image Compression Demo by browserface on Saturday September 12, 2020 @04:20AM (#24450841)
Damn I got an error at cell 19

otherwise seemed to work

Re:Show HN: Neural Image Compression Demo by tonic_section on Saturday September 12, 2020 @05:06AM (#24451038)
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.
Re:Show HN: Neural Image Compression Demo by underaxon on Saturday September 12, 2020 @05:30AM (#24451139)
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/

Re:Show HN: Neural Image Compression Demo by s-macke on Saturday September 12, 2020 @05:27AM (#24451127)
In the step

# Setup model

I get an error in the function call 'prepare_model'

UnpicklingError: invalid load key, '<'.

Re:Show HN: Neural Image Compression Demo by 0-_-0 on Saturday September 12, 2020 @06:09AM (#24451313)
I get the same
Re:Show HN: Neural Image Compression Demo by tonic_section on Saturday September 12, 2020 @06:11AM (#24451332)
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.

Re:Show HN: Neural Image Compression Demo by browserface on Saturday September 12, 2020 @07:37AM (#24451701)
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!

Re:Show HN: Neural Image Compression Demo by tonic_section on Saturday September 12, 2020 @06:58AM (#24451530)
I pushed a workaround and provided extra instructions in the demo, so anyone experiencing errors should try that.