|
# StableDiffusion 2.* in dotnet |
|
|
|
This project serves as a proof-of-concept purpose of bringing StableDiffusion model into dotnet. In the unet part, this implementation uses a traced DDPM model of v2-inference-v config with pretrained v2-1_768-ema-pruned weight. And in sampling part, this project implements a simplified version of DDIM sampler. |
|
|
|
# To run the project |
|
|
|
- firstly, clone project and download model weight by |
|
|
|
`git lfs install` |
|
`git clone https://huggingface.co/LittleLittleCloud/StableDiffusion-v2-torchsharp` |
|
`` |
|
|
|
- secondly |
|
|
|
`dotnet run` |
|
|
|
# Example output |
|
|
|
![a wild cute green cat](Asset/cat.png) |
|
*a wild cute green cat* |
|
--- |
|
license: mit |
|
--- |
|
|