FritzVisionStyleModelOptions

@objc(FritzVisionStyleModelOptions)
public final class FritzVisionStyleModelOptions : NSObject, FritzImageOptions

Options for running style transfer models.

  • Crop and scale option. Default option is .scaleFit.

    Declaration

    Swift

    @objc
    public var imageCropAndScaleOption: FritzVisionCropAndScale
  • Force predictions to use Core ML (if supported by model). In iOS 12, scaleFit would incorrectly crop image. When True (or on iOS 12) model will run using CoreML.

    Declaration

    Swift

    @objc
    public var forceCoreMLPrediction: Bool
  • Force predictions to use the Vision framework (if supported by model). If you are using ARKit, you must set this to true.

    Declaration

    Swift

    @objc
    public var forceVisionPrediction: Bool
  • Resize the output to match the FritzVisionImage size.

    Declaration

    Swift

    @objc
    public var resizeOutputToInputDimensions: Bool
  • Sets dimensions of input image for flexible model. Note that setting this to higher resolutions will increase model processing time.

    Declaration

    Swift

    @objc
    public var flexibleModelDimensions: FlexibleModelDimensions
  • Declaration

    Swift

    public static var defaults: FritzImageOptions