Skip to content

Commit 02b5868

Browse files
authored
Merge pull request #511 from microsoft/user/numform/yolov4
Update Yolov4 sample to use the NuGet
2 parents 7a99cf7 + f7172e1 commit 02b5868

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Samples/Tutorial Samples/YOLOv4ObjectDetection/YOLOv4ObjectDetection/Model.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44
using System.Linq;
55
using System.Text;
66
using System.Threading.Tasks;
7-
using Windows.AI.MachineLearning;
87
using Windows.Media;
98
using Windows.Storage;
109
using Windows.UI.Xaml;
10+
// Windows.AI.MachineLearning' refers to the libraries included in Windows,
11+
// while 'Microsoft.AI.MachineLearning' refers to the externally available NuGet package.
12+
using Microsoft.AI.MachineLearning;
13+
// using Windows.AI.MachineLearning;
1114

1215
namespace YOLOv4ObjectDetection
1316
{

Samples/Tutorial Samples/YOLOv4ObjectDetection/YOLOv4ObjectDetection/YOLOv4ObjectDetection.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@
152152
</Page>
153153
</ItemGroup>
154154
<ItemGroup>
155+
<PackageReference Include="Microsoft.AI.MachineLearning">
156+
<Version>1.13.1</Version>
157+
</PackageReference>
155158
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
156159
<Version>6.2.10</Version>
157160
</PackageReference>

0 commit comments

Comments
 (0)