Update README.md

This commit is contained in:
DarthAffe 2024-01-02 14:17:33 +00:00 committed by GitHub
parent 1b8c2fce9d
commit a7ccbe8ef2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,8 +1,6 @@
# StableDiffusion.NET
Based on
https://github.com/seasonjs/stable-diffusion.cpp-build
https://github.com/leejet/stable-diffusion.cpp
Based on https://github.com/leejet/stable-diffusion.cpp
## Usage
### Setup
@ -11,6 +9,5 @@ Run `build.bat` to build the native libs (modify params like CUDA-builds if need
### Example
```csharp
using StableDiffusionModel sd = new(@"<path_to_model>", new ModelParameter());
using StableDiffusionParameter parameter = new StableDiffusionParameter();
using StableDiffusionImage image = sd.TextToImage("<prompt>", parameter);
using StableDiffusionImage image = sd.TextToImage("<prompt>", new StableDiffusionParameter());
```