CreateML Tutorial for iOS: Creating a Customized Image Filter using Style Transfer | raywenderlich.com

Style Transfer is a machine learning technique. Through this, you can transform any given image stylized as another! In this tutorial, you’ll learn how to leverage Apple’s ML Frameworks to achieve this on your iOS device.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/34375110-createml-tutorial-for-ios-creating-a-customized-image-filter-using-style-transfer

Hi there! Thanks for the article. I have a question about the MLModelTrainer enum. Why it isn’t a struct instead? Is there a particular reason about it?

@frostra1n Thanks for writing and hope you found the article useful!
To your question, no, there is no strong reason to not use a struct here. However, as a best practice, we use enums when there are no stored properties. In this way we can also avoid creating instances and use static methods.