Skip to content

Commit efc11ed

Browse files
committed
Merge branch 'master' into user/numform/gallery-bundle-arm64
2 parents 0da7eb5 + fac25f2 commit efc11ed

File tree

12 files changed

+24
-18
lines changed

12 files changed

+24
-18
lines changed

Samples/WinMLSamplesGallery/WinMLSamplesGallery (Package)/Package.appxmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
Executable="$targetnametoken$.exe"
3232
EntryPoint="$targetentrypoint$">
3333
<uap:VisualElements
34-
DisplayName="Windows ML SamplesGallery"
34+
DisplayName="Windows ML Samples Gallery"
3535
Description="WinMLSamplesGallery (Package)"
3636
BackgroundColor="transparent"
3737
Square150x150Logo="Images\Square150x150Logo.png"

Samples/WinMLSamplesGallery/WinMLSamplesGallery/MainWindow.xaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
BackRequested="nvSample_BackRequested"
1616
Loaded="nvSample_Loaded"
1717
AlwaysShowHeader="False"
18-
PaneTitle="Windows AI"
18+
PaneTitle="Windows ML"
1919
FontFamily="Arial"
2020
IsSettingsVisible="False">
2121
<NavigationView.Resources>
@@ -26,6 +26,11 @@
2626
<NavigationViewItem Icon="Flag" Content="Home" Tag="home" />
2727
<NavigationViewItem Icon="Library" Content="All samples" Tag="all_samples" />
2828
<NavigationViewItemSeparator />
29+
<TextBlock>
30+
<Hyperlink TextDecorations="None" NavigateUri="https://docs.microsoft.com/en-us/windows/ai/windows-ml/">
31+
Learn more about Windows ML
32+
</Hyperlink>
33+
</TextBlock>
2934
</NavigationView.MenuItems>
3035
<Frame x:Name="contentFrame" Navigated="contentFrame_Navigated" BorderBrush="#dbdbdb" BorderThickness="1,1,0,0" Margin="0,40,0,0"
3136
CornerRadius="5,0,0,0" Background="White" FontFamily="Arial"/>

Samples/WinMLSamplesGallery/WinMLSamplesGallery/SampleMetadata/SampleMetadata.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"Title": "Image Classification",
55
"DescriptionShort": "Pick an image and classify the scene into 1000 categories such as keyboard, mouse, pencil, and many animals.",
6-
"Description": "Pick an image and classify the scene into 1000 categories such as keyboard, mouse, pencil, and many animals. Many more models can be tested with this sample by building the WinML Samples Gallery App from source from the project GitHub. Select an image to classify.",
6+
"Description": "Pick an image and classify the scene into 1000 categories such as keyboard, mouse, pencil, and many animals. Many more models can be tested with this sample by building the Windows ML Samples Gallery App from source from the project GitHub. Select an image to classify.",
77
"Icon": "\uE155",
88
"Tag": "ImageClassifier",
99
"XAMLGithubLink": "https://github.com/microsoft/Windows-Machine-Learning/blob/master/Samples/WinMLSamplesGallery/WinMLSamplesGallery/Samples/ImageClassifier/ImageClassifier.xaml",
@@ -12,8 +12,8 @@
1212
},
1313
{
1414
"Title": "Image Effects",
15-
"DescriptionShort": "Pick an image and apply a variety of effects powered by Windows AI MachineLearning like Blur, Sharpen, Contrast, and many more.",
16-
"Description": "Pick an image and apply a variety of effects powered by Windows AI MachineLearning like Blur, Sharpen, Contrast, and many more.",
15+
"DescriptionShort": "Pick an image and apply a variety of effects powered by Windows ML like Blur, Sharpen, Contrast, and many more.",
16+
"Description": "Pick an image and apply a variety of effects powered by Windows ML like Blur, Sharpen, Contrast, and many more.",
1717
"Icon": "\uE155",
1818
"Tag": "ImageEffects",
1919
"XAMLGithubLink": "https://github.com/microsoft/Windows-Machine-Learning/blob/master/Samples/WinMLSamplesGallery/WinMLSamplesGallery/Samples/ImageEffects/ImageEffects.xaml",

Samples/WinMLSamplesGallery/WinMLSamplesGallery/Samples/Batching/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# WinML Samples Gallery: Batching
1+
# Windows ML Samples Gallery: Batching
22
Perform infererence over multiple inputs at once to increase runtime performance.
33

44
Use this sample to compare inference runtime performace with and without batched inputs. 50 images will be passed through SqueezeNet for classification. Set a batch size and click Start Inference to compare.
@@ -20,7 +20,7 @@
2020
- **Note**: To use batched inputs, the model must have a value of -1 or a variable name in the input batch dimension. Additionally, the DATA_BATCH Denotation must be added on the batch dimension. To edit your model you can use tools like [WinML Dashboard](https://github.com/Microsoft/Windows-Machine-Learning/tree/master/Tools/WinMLDashboard).
2121

2222
## Feedback
23-
Please file an issue [here](https://github.com/microsoft/Windows-Machine-Learning/issues/new) if you encounter any issues with the WinML Samples Gallery or wish to request a new sample.
23+
Please file an issue [here](https://github.com/microsoft/Windows-Machine-Learning/issues/new) if you encounter any issues with the Windows ML Samples Gallery or wish to request a new sample.
2424

2525
## External Links
2626

Samples/WinMLSamplesGallery/WinMLSamplesGallery/Samples/ImageClassifier/ImageClassifier.xaml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ public ImageClassifier()
125125
AllModelsGrid.ItemsSource = allModels;
126126
AllModelsGrid.SelectRange(new ItemIndexRange(0, 1));
127127
AllModelsGrid.SelectionChanged += AllModelsGrid_SelectionChanged;
128+
129+
BasicGridView.SelectedIndex = 0;
128130
}
129131

130132
private void EnsureInitialized()

Samples/WinMLSamplesGallery/WinMLSamplesGallery/Samples/ImageEffects/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# WinML Samples Gallery: Image Effects
2-
Pick an image and apply a variety of effects powered by Windows AI MachineLearning like Blur, Sharpen, Contrast, and many more. These effects can be used to perform model input image preprocessing, or postprocessing for visualizing outputs.
2+
Pick an image and apply a variety of effects powered by Windows ML like Blur, Sharpen, Contrast, and many more. These effects can be used to perform model input image preprocessing, or postprocessing for visualizing outputs.
33

44
This sample demonstrates using the ```Windows.AI.MachineLearning.Experimental``` namespace to create efficient pre and post processing models in ONNX.
55

Samples/WinMLSamplesGallery/WinMLSamplesGallery/Samples/ImageSharpInterop/ImageSharpInterop.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public ImageSharpInterop()
6464
_inferenceSession = CreateLearningModelSession("ms-appx:///Models/squeezenet1.1-7.onnx");
6565
_postProcessingSession = CreateLearningModelSession(TensorizationModels.SoftMaxThenTopK(TopK));
6666

67+
BasicGridView.SelectedIndex = 0;
6768
}
6869

6970
#pragma warning disable CA1416 // Validate platform compatibility

Samples/WinMLSamplesGallery/WinMLSamplesGallery/Samples/ImageSharpInterop/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# WinML Samples Gallery: ImageSharp Interop
1+
# Windows ML Samples Gallery: ImageSharp Interop
22
This sample demonstrates how to interop between [Windows ML](https://docs.microsoft.com/en-us/windows/ai/windows-ml/) and [ImageSharp](https://docs.sixlabors.com/articles/imagesharp/index.html).
33

44
ImageSharp is a new, fully featured, fully managed, cross-platform, 2D graphics library.

Samples/WinMLSamplesGallery/WinMLSamplesGallery/Samples/OpenCVInterop/OpenCVInterop.xaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
</Grid>
107107
</Border>
108108
<Grid Background="LightGray" HorizontalAlignment="Center" Height="200" Width="200" VerticalAlignment="Top">
109-
<Image x:Name="InputImage" Stretch="UniformToFill" Height="200" HorizontalAlignment="Center"/>
109+
<Image x:Name="InputImage" Stretch="UniformToFill" Height="200" HorizontalAlignment="Center"/>
110110
</Grid>
111111
<Button Content="Classify" x:Name="InferOriginal" IsEnabled="false" FontFamily="Segoe UI Light" Typography.Capitals="AllSmallCaps" Typography.StylisticSet4="True"
112112
Style="{StaticResource AccentButtonStyle}" Width="200"
@@ -120,7 +120,7 @@
120120
</Grid>
121121
</Border>
122122
<Grid Background="LightGray" HorizontalAlignment="Center" Height="200" Width="200" VerticalAlignment="Top">
123-
<Image x:Name="NoisyImage" Stretch="UniformToFill" Height="200" HorizontalAlignment="Center"/>
123+
<Image x:Name="NoisyImage" Stretch="UniformToFill" Height="200" HorizontalAlignment="Center"/>
124124
</Grid>
125125
<Button Content="Classify" x:Name="InferNoisy" IsEnabled="false" FontFamily="Segoe UI Light" Typography.Capitals="AllSmallCaps" Typography.StylisticSet4="True"
126126
Style="{StaticResource AccentButtonStyle}" Width="200"
@@ -134,7 +134,7 @@
134134
</Grid>
135135
</Border>
136136
<Grid Background="LightGray" HorizontalAlignment="Center" Height="200" Width="200" VerticalAlignment="Top">
137-
<Image x:Name="DenoisedImage" Stretch="UniformToFill" Height="200" HorizontalAlignment="Center"/>
137+
<Image x:Name="DenoisedImage" Stretch="UniformToFill" Height="200" HorizontalAlignment="Center"/>
138138
</Grid>
139139
<Button Content="Classify" x:Name="InferDenoised" IsEnabled="false" FontFamily="Segoe UI Light" Typography.Capitals="AllSmallCaps" Typography.StylisticSet4="True"
140140
Style="{StaticResource AccentButtonStyle}" Width="200"

Samples/WinMLSamplesGallery/WinMLSamplesGallery/Samples/OpenCVInterop/OpenCVInterop.xaml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ public OpenCVInterop()
118118
_imagenetLabels = LoadLabels("ms-appx:///InputData/sysnet.txt");
119119
_inferenceSession = CreateLearningModelSession("ms-appx:///Models/squeezenet1.1-7.onnx");
120120
_postProcessingSession = CreateLearningModelSession(TensorizationModels.SoftMaxThenTopK(TopK));
121+
122+
BasicGridView.SelectedIndex = 0;
121123
}
122124

123125
#pragma warning disable CA1416 // Validate platform compatibility

0 commit comments

Comments
 (0)