mirror of
https://github.com/DarthAffe/StableDiffusion.NET.git
synced 2025-12-12 13:28:35 +00:00
Update README.md
This commit is contained in:
parent
1b8c2fce9d
commit
a7ccbe8ef2
@ -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());
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user