Skip to content

Picture Generator SwiftUI App using Core ML Stable Diffusion

Notifications You must be signed in to change notification settings

tiagomartinho/picgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

picgen

Picture Generator SwiftUI App using Core ML Stable Diffusion

To run the app you need to add a folder called "model" to the Xcode Project using Apple Core ML Stable Diffusion.

This folder must contain the following files (which I didn't include because of the model size):

  • merges.txt
  • SafetyChecker.mlmodelc
  • TextEncoder.mlmodelc
  • Unet.mlmodelc
  • UnetChunk1.mlmodelc
  • UnetChunk2.mlmodelc
  • VAEDecoder.mlmodelc
  • vocab.json

The command (after following these instructions) I used was:

python -m python_coreml_stable_diffusion.torch2coreml --convert-unet --convert-text-encoder --convert-vae-decoder --convert-safety-checker --bundle-resources-for-swift-cli --chunk-unet -o output

About

Picture Generator SwiftUI App using Core ML Stable Diffusion

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages