Created
August 20, 2018 15:02
-
-
Save alexiscreuzot/d8364d0096da54a3afbf95526808d15b to your computer and use it in GitHub Desktop.
Building a Style Transfer app on iOS using CoreML (2)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python ./neural_style/neural_style.py eval \ | |
--content-image ~/Documents/data/images/original.jpg \ | |
--output-image ~/Documents/data/images/stylized-test.jpg \ | |
--model ~/Documents/checkpoints/checkpoint_5000.pth \ | |
--cuda 0 \ | |
--export_onnx ~/Documents/models/pytorch_model.onnx \ | |
&& \ | |
python ./onnx_to_coreml.py \ | |
~/Documents/models/pytorch_model.onnx \ | |
~/Documents/models/final_model.mlmodel |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment