python-torchfile
python-torchfile copied to clipboard
Deserialize Lua torch-serialized objects from Python
While trying to run a code which uses torchfile I encountered the following error :- ``` T7ReaderException Traceback (most recent call last) in () 5 else : 6 cap_path =...
When I was trying to read the t7 file in my docker (Ubuntu) vm, I encountered this error which doesn't show up when I run the same code on both...
os: ubuntu16.04 torch: 1.1.0 torchvision: 0.3.0 torchfile: 0.1.0 ```python vgglua = torchfile.load(os.path.join(model_folder, 'vgg16.t7')) vgg = Vgg16() for (src, dst) in zip(vgglua.parameters()[0], vgg.parameters()): dst.data[:] = src ``` Error occured: ``` for...
I have created a file in lua: ``` local z = torch.Tensor(3,4,5) torch.save('tmp.t7', z) ``` When I read it in python, I get nothing: ``` import torchfile tmp = torchfile.load('tmp.t7')...
Error in loading a .t7 file ``` Traceback (most recent call last): File "main.py", line 77, in algo.sample(datapath, cfg.STAGE) File "C:\Users\Ankit\Desktop\EAD Project\StackGAN-Pytorch-master\code\trainer.py", line 242, in sample t_file = torchfile.load(datapath) File...