bshillingford / python-torchfile

Deserialize Lua torch-serialized objects from Python
BSD 3-Clause "New" or "Revised" License
216 stars 25 forks source link

How do I edit a .t7 file? #17

Closed harbarex closed 5 years ago

harbarex commented 5 years ago

I currently have a .t7 file which contains some arrays and raw text, but i want to reduce the number of entries in there. How do I edit the file?

So far, I can only display the file's contents using torchfile.load('val_captions.t7')

bshillingford commented 5 years ago

This library only reads t7 files, you'll have to use Lua Torch to modify it if you want to do that.