Hello all,
I am trying to load a torch model into pytorch. The model works perfectly in torch, but when I try to import the model into PyTorch, I receive the following error:
torch.utils.serialization.read_lua_file.T7ReaderException: unknown type id 218103808. The file may be corrupted.
The file is not corrupted, as I can load it and run it in torch. I have read all the forum posts on load_lua, without success.
The file I am working with is colornet.t7 and may be downloaded with this script:

  
      github.com
  
  
    satoshiiizuka/siggraph2016_colorization/blob/master/download_model.sh 39
#!/bin/bash

# md5sum c88fa2bb6dc9f942a492a7dc7009b966
# sha1sum d397faf0b63a173680824474bfeab4725c375ca2
FILENAME="colornet.t7"
FILEURL="http://hi.cs.waseda.ac.jp/~iizuka/data/colornet.t7"
FILEMD5="c88fa2bb6dc9f942a492a7dc7009b966"

echo "Downloading the colorization model (663M)..."
wget --continue -O "$FILENAME" -- "$FILEURL"

echo "Checking integrity (md5sum)..."
OS=`uname -s`
if [ "$OS" = "Darwin" ]; then
  CHECKSUM=`cat $FILENAME | md5`
  else
  CHECKSUM=`md5sum $FILENAME | awk '{ print $1 }'`
fi

if [ "$CHECKSUM" != "$FILEMD5" ]; then


  This file has been truncated. show original

  
  
    
    
  
  


Thank you for your assistance!