Skip to content

Instantly share code, notes, and snippets.

View KittenYang's full-sized avatar
🚀
Rush

Qitao Yang KittenYang

🚀
Rush
View GitHub Profile
@KittenYang
KittenYang / SD2ContentView.swift
Created December 5, 2022 04:26 — forked from ynagatomo/SD2ContentView.swift
An iOS app that generates images using Stable-Diffusion-v2 CoreML models.
//
// ContentView.swift
// coremlsd2test
//
// Created by Yasuhito Nagatomo on 2022/12/03.
//
// A sample code using Apple/ml-stable-diffusion library.
// Preparation:
// 1. convert the PyTorch Stable-Diffusion v2 model to coreml models using Apple's tools.
// 2. import the coreml models into the iOS project.