convert_torch_to_pytorch icon indicating copy to clipboard operation
convert_torch_to_pytorch copied to clipboard

error:" unknow type id 9 . The file may be corrupted"

Open angel1288 opened this issue 6 years ago • 3 comments

@clcarwin Hello! I converted the crnn model to pytorch model, but it occurred the following error:

convert_torch.py `line 259`  -->
read_lua_file.py `line 596`  --> error: " unknow type id 9 . The file may be corrupted."
  • The typeidx=3 does not exist.
  • Why? Thank you!

angel1288 avatar Apr 04 '18 02:04 angel1288

@clcarwin ??

angel1288 avatar Apr 08 '18 01:04 angel1288

Some layers are not supported by pytorch torch.legacy.nn.

clcarwin avatar Apr 27 '18 08:04 clcarwin

Some files were saved on UNIX system, which may cause 'The file may be corrupted', you can try load_lua with long_size=8.

hepesu avatar Sep 14 '18 10:09 hepesu