Merge pull request #13 from DarthAffe/HPPH

Updated readme
This commit is contained in:
DarthAffe 2024-07-22 19:39:39 +02:00 committed by GitHub
commit 2895e0e567
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,5 +15,10 @@ If you want to add your own native-libraries or need more control over which bac
### Example
```csharp
using StableDiffusionModel sd = new(@"<path_to_model>", new ModelParameter());
using StableDiffusionImage image = sd.TextToImage("<prompt>", new StableDiffusionParameter());
IImage<ColorRGB> image = sd.TextToImage("<prompt>", new StableDiffusionParameter());
```
To process the resulting image further you can write your own extensions or install one of the [HPPH](https://github.com/DarthAffe/HPPH)-extension sets:
[HPPH.System.Drawing](https://www.nuget.org/packages/HPPH.System.Drawing)
[HPPH.SkiaSharp](https://www.nuget.org/packages/HPPH.SkiaSharp)