Update PyTorch API use
Apparently, sketch_simplifaction uses a deprecated/no longer existing module in PyTorch, see here for details.
$ python simplify.py
Traceback (most recent call last):
File "simplify.py", line 4, in <module>
from torch.utils.serialization import load_lua
ImportError: No module named serialization
Solution for now is to use pytorch 0.4.1 until I can get around to uploading the new models which are native pytorch.
@bobbens Hi, I have managed to migrate to torch 1.x, using a conversion tool to update the model files, would you like me to create a pull request for it and upload the updated model?
I have uploaded new models here https://mega.nz/#F!2lUn1YbY!JhTkB1vdaBMeTCSs37iTVA. I have not gone too deep into the code, simply made it work with torch 1.1.0 #12
i am getting a error while compiling the code simplify ....unknown type id 1064941863. The file may be corrupted (regarding the pretrained models)
@Sushanthcheerla99 I don't think i will return to this, so i suggest you try converting the models on your own computer, it is a bit of a pain, but solutions are publicly available and they (with some bugfixing) work
This pull version works great, even without a CUDA GPU! https://github.com/bobbens/sketch_simplification/pull/12
torchfile is an alternative for this i think. You might want to check it out.