Skip to content
This repository was archived by the owner on Nov 27, 2024. It is now read-only.

Commit b829f58

Browse files
committed
Nuget Updates, Fix broken examples
1 parent e1c5308 commit b829f58

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

OnnxStack.Console/Examples/ControlNetExample.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public async Task RunAsync()
3535
var controlImage = await OnnxImage.FromFileAsync("D:\\Repositories\\OnnxStack\\Assets\\Samples\\OpenPose.png");
3636

3737
// Create ControlNet
38-
var controlNet = ControlNetModel.Create("D:\\Repositories\\controlnet_onnx\\controlnet\\openpose.onnx");
38+
var controlNet = ControlNetModel.Create("D:\\Repositories\\controlnet_onnx\\controlnet\\openpose.onnx", ControlNetType.OpenPose, DiffuserPipelineType.StableDiffusion);
3939

4040
// Create Pipeline
4141
var pipeline = StableDiffusionPipeline.CreatePipeline("D:\\Repositories\\stable_diffusion_onnx", ModelType.ControlNet);

OnnxStack.Console/Examples/ControlNetFeatureExample.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public async Task RunAsync()
4444
await controlImage.SaveAsync(Path.Combine(_outputDirectory, $"Depth.png"));
4545

4646
// Create ControlNet
47-
var controlNet = ControlNetModel.Create("D:\\Repositories\\controlnet_onnx\\controlnet\\depth.onnx");
47+
var controlNet = ControlNetModel.Create("D:\\Repositories\\controlnet_onnx\\controlnet\\depth.onnx", ControlNetType.Depth, DiffuserPipelineType.StableDiffusion);
4848

4949
// Create Pipeline
5050
var pipeline = StableDiffusionPipeline.CreatePipeline("D:\\Repositories\\stable_diffusion_onnx", ModelType.ControlNet);

OnnxStack.Console/OnnxStack.Console.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
</ItemGroup>
2626

2727
<ItemGroup>
28-
<PackageReference Include="Microsoft.ML.OnnxRuntime.DirectML" Version="1.17.1" Condition=" '$(Configuration)' == 'Debug' OR '$(Configuration)' == 'Release' " />
29-
<PackageReference Include="Microsoft.ML.OnnxRuntime.Gpu" Version="1.17.1" Condition=" '$(Configuration)' == 'Debug-Nvidia' OR '$(Configuration)' == 'Release-Nvidia'" />
28+
<PackageReference Include="Microsoft.ML.OnnxRuntime.DirectML" Version="1.17.3" Condition=" '$(Configuration)' == 'Debug' OR '$(Configuration)' == 'Release' " />
29+
<PackageReference Include="Microsoft.ML.OnnxRuntime.Gpu" Version="1.17.3" Condition=" '$(Configuration)' == 'Debug-Nvidia' OR '$(Configuration)' == 'Release-Nvidia'" />
3030
</ItemGroup>
3131

3232
<ItemGroup>

OnnxStack.Core/OnnxStack.Core.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
4444
<PackageReference Include="Microsoft.ML" Version="3.0.1" />
4545
<PackageReference Include="Microsoft.ML.OnnxRuntime.Extensions" Version="0.10.0" />
46-
<PackageReference Include="Microsoft.ML.OnnxRuntime.Managed" Version="1.17.1" />
47-
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.3" />
46+
<PackageReference Include="Microsoft.ML.OnnxRuntime.Managed" Version="1.17.3" />
47+
<PackageReference Include="SixLabors.ImageSharp" Version="3.1.4" />
4848
<PackageReference Include="System.Linq.Async" Version="6.0.1" />
4949
</ItemGroup>
5050

OnnxStack.UI/OnnxStack.UI.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
</ItemGroup>
5757

5858
<ItemGroup>
59-
<PackageReference Include="Microsoft.ML.OnnxRuntime.DirectML" Version="1.17.1" Condition=" '$(Configuration)' == 'Debug' OR '$(Configuration)' == 'Release' " />
60-
<PackageReference Include="Microsoft.ML.OnnxRuntime.Gpu" Version="1.16.3" Condition=" '$(Configuration)' == 'Debug-Nvidia' OR '$(Configuration)' == 'Release-Nvidia'" />
59+
<PackageReference Include="Microsoft.ML.OnnxRuntime.DirectML" Version="1.17.3" Condition=" '$(Configuration)' == 'Debug' OR '$(Configuration)' == 'Release' " />
60+
<PackageReference Include="Microsoft.ML.OnnxRuntime.Gpu" Version="1.17.3" Condition=" '$(Configuration)' == 'Debug-Nvidia' OR '$(Configuration)' == 'Release-Nvidia'" />
6161
</ItemGroup>
6262

6363
<ItemGroup>

0 commit comments

Comments
 (0)