Merge pull request #13 from DarthAffe/HPPH

Updated readme
This commit is contained in:
DarthAffe authored and GitHub committed 2024-07-22 19:39:39 +02:00
commit 2895e0e567
1 file changed
+6 -1
+6 -1
View File
@@ -15,5 +15,10 @@ If you want to add your own native-libraries or need more control over which bac
### Example ### Example
```csharp ```csharp
using StableDiffusionModel sd = new(@"<path_to_model>", new ModelParameter()); 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)