Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

Is it possible to convert the re-trained pytorch model (xx.pth) using the "inception v3" model? #17

Open
um0619 opened this issue Nov 15, 2017 · 3 comments

Comments

@um0619
Copy link

um0619 commented Nov 15, 2017

Is it possible to convert the re-trained pytorch model (xx.pth) using the "inception v3" model?

@um0619 um0619 changed the title Is it possible to convert the retested pytorch model (xx.pth) using the "inception v3" model? Is it possible to convert the retrain pytorch model (xx.pth) using the "inception v3" model? Nov 15, 2017
@um0619 um0619 changed the title Is it possible to convert the retrain pytorch model (xx.pth) using the "inception v3" model? Is it possible to convert the re-trained pytorch model (xx.path) using the "inception v3" model? Nov 15, 2017
@um0619 um0619 changed the title Is it possible to convert the re-trained pytorch model (xx.path) using the "inception v3" model? Is it possible to convert the re-trained pytorch model (xx.pth) using the "inception v3" model? Nov 15, 2017
@opedge
Copy link
Member

opedge commented Nov 15, 2017

This tool is aimed for torch7 (Lua) models. It is not compatible with pytorch. You could try to convert your model to CoreML using intermediate ONNX format (it is in early development state): https://github.com/onnx/onnx-coreml http://pytorch.org/docs/master/onnx.html

@um0619
Copy link
Author

um0619 commented Nov 16, 2017

@opedge
Thank you. Your answer was very helpful. Does the pytorch model need to be converted to ONNX format and converted?

@opedge
Copy link
Member

opedge commented Nov 17, 2017

@um0619 You can try to export pytorch model to onnx format and then convert it using onnx-coreml converter (please use the code from master branch directly as it changes very often).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants