Norod / MLStyleTransferPlayground

A macOS Swift Playground for testing your image stylizing CoreML model

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MLStyleTransferPlayground

A macOS Swift Playground for testing your image stylizing CoreML model
  • The playground loads and compiles the model in runtime
  • It comes with an example model I have prepared
  • Before you start, please create a folder named "Shared Playground Data" in your ~/Documents folder, it's where the tiff files are written to
  • You can run convertOutput.sh to batch convert them into jpg's
  • Before you try the example model, set the correct full path for the inputImageFullPath and mlModelFullPath parameters
You can see the stylized result inline

XcodeScreenShot.png

There are 10 styles in the example model (0 to 9)

Style 0 Style 1 Style 2

Style 3 Style 4 Style 5

Style 6 Style 7 Style 8

Style 8

About

A macOS Swift Playground for testing your image stylizing CoreML model

License:Apache License 2.0


Languages

Language:Swift 95.3%Language:Shell 4.7%