clcarwin / convert_torch_to_pytorch

Convert torch t7 model to pytorch model and source.
MIT License
539 stars 161 forks source link

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

Open angel1288 opened 6 years ago

angel1288 commented 6 years ago

@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."
angel1288 commented 6 years ago

@clcarwin ??

clcarwin commented 6 years ago

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

hepesu commented 6 years ago

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