8000 GitHub - tiagomartinho/picgen: Picture Generator SwiftUI App using Core ML Stable Diffusion · GitHub
[go: up one dir, main page]

Skip to content
tiagomartinhoPublic

About

Picture Generator SwiftUI App using Core ML Stable Diffusion

Resources

Stars

17 stars

Watchers

1 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

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

17 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0