sketch_simplification icon indicating copy to clipboard operation
sketch_simplification copied to clipboard

Update PyTorch API use

Open virtualritz opened this issue 7 years ago • 8 comments

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

virtualritz avatar Jan 02 '19 00:01 virtualritz

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 avatar Mar 20 '19 06:03 bobbens

@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?

ramilmsh avatar Jul 03 '19 18:07 ramilmsh

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

ramilmsh avatar Jul 04 '19 07:07 ramilmsh

i am getting a error while compiling the code simplify ....unknown type id 1064941863. The file may be corrupted (regarding the pretrained models)

Sushanthcheerla99 avatar Feb 13 '20 16:02 Sushanthcheerla99

@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

ramilmsh avatar Feb 14 '20 07:02 ramilmsh

This pull version works great, even without a CUDA GPU! https://github.com/bobbens/sketch_simplification/pull/12

krummrey avatar Dec 10 '21 16:12 krummrey

torchfile is an alternative for this i think. You might want to check it out.

ramgj28 avatar Mar 26 '22 03:03 ramgj28