mirror of
https://github.com/DarthAffe/StableDiffusion.NET.git
synced 2025-12-13 05:48:40 +00:00
Update README.md
This commit is contained in:
parent
1b8c2fce9d
commit
a7ccbe8ef2
@ -1,8 +1,6 @@
|
|||||||
# StableDiffusion.NET
|
# StableDiffusion.NET
|
||||||
|
|
||||||
Based on
|
Based on https://github.com/leejet/stable-diffusion.cpp
|
||||||
https://github.com/seasonjs/stable-diffusion.cpp-build
|
|
||||||
https://github.com/leejet/stable-diffusion.cpp
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
### Setup
|
### Setup
|
||||||
@ -11,6 +9,5 @@ Run `build.bat` to build the native libs (modify params like CUDA-builds if need
|
|||||||
### Example
|
### Example
|
||||||
```csharp
|
```csharp
|
||||||
using StableDiffusionModel sd = new(@"<path_to_model>", new ModelParameter());
|
using StableDiffusionModel sd = new(@"<path_to_model>", new ModelParameter());
|
||||||
using StableDiffusionParameter parameter = new StableDiffusionParameter();
|
using StableDiffusionImage image = sd.TextToImage("<prompt>", new StableDiffusionParameter());
|
||||||
using StableDiffusionImage image = sd.TextToImage("<prompt>", parameter);
|
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user