Skip to content

Instantly share code, notes, and snippets.

@alexiscreuzot
Created August 20, 2018 15:02
Show Gist options
  • Save alexiscreuzot/d8364d0096da54a3afbf95526808d15b to your computer and use it in GitHub Desktop.
Save alexiscreuzot/d8364d0096da54a3afbf95526808d15b to your computer and use it in GitHub Desktop.
Building a Style Transfer app on iOS using CoreML (2)
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