Views
No views yet
-fp16) for Apple-Silicon inference via the
mlx-lama-swift Swift package (the MLXEngine
imageInpaint ModelPackage / Forge Erase capability). From-scratch MLX-Swift architecture port
of Picsart-AI-Research/MI-GAN; parity-locked vs the PyTorch oracle on the CPU stream
(LaMa predicted max_abs 3.2e-5 · MI-GAN 5.5e-5).1// Package.swift → .package(url: "https://github.com/xocialize/mlx-lama-swift", from: "0.1.0")
2import LaMa // or MIGAN
3let inpainter = try LaMaInpainter.fromPretrained(weightsPath, dtype: .float16)
4let filled: CGImage = inpainter(sourceCGImage, mask: maskCGImage) // white mask = remove