Skip to content

Commit 30c46b1

Browse files
author
Ori Levari
authored
User/orilevari/copy labels (#165)
1 parent 7ce242c commit 30c46b1

File tree

8 files changed

+1028
-16
lines changed

8 files changed

+1028
-16
lines changed

Samples/AdapterSelection/AdapterSelection/cpp/AdapterSelection.vcxproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,9 @@
252252
</ClCompile>
253253
</ItemGroup>
254254
<ItemGroup>
255-
<CopyFileToFolders Include="Labels.txt" />
255+
<CopyFileToFolders Include="Labels.txt">
256+
<DeploymentContent>true</DeploymentContent>
257+
</CopyFileToFolders>
256258
</ItemGroup>
257259
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
258260
<ImportGroup Label="ExtensionTargets">

Samples/AdapterSelection/AdapterSelection/cpp/AdapterSelection.vcxproj.filters

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131
</ClCompile>
3232
</ItemGroup>
3333
<ItemGroup>
34-
<Text Include="Labels.txt">
35-
<Filter>Resource Files</Filter>
36-
</Text>
34+
<CopyFileToFolders Include="Labels.txt" />
3735
</ItemGroup>
3836
</Project>

Samples/AdapterSelection/AdapterSelection/cpp/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,13 @@ Note: SqueezeNet was trained to work with image sizes of 224x224, so you must pr
2828

2929
## Run the sample
3030

31-
1. Make sure **Labels.txt** is copied into the folder with the built executable.
32-
2. Open a Command Prompt (in the Windows 10 search bar, type **cmd** and press **Enter**).
33-
3. Change the current folder to the folder containing the built EXE (`cd <path-to-exe>`).
34-
4. Run the executable as shown below. Make sure to replace the install location with what matches yours:
31+
1. Open a Command Prompt (in the Windows 10 search bar, type **cmd** and press **Enter**).
32+
2. Change the current folder to the folder containing the built EXE (`cd <path-to-exe>`).
33+
3. Run the executable as shown below. Make sure to replace the install location with what matches yours:
3534
```
3635
AdapterSelection.exe C:\Repos\Windows-Machine-Learning\SharedContent\models\SqueezeNet.onnx C:\Repos\Windows-Machine-Learning\SharedContent\media\kitten_224.png
3736
```
38-
5. You should get output similar to the following:
37+
4. You should get output similar to the following:
3938
```
4039
Index: 0, Description: AMD Radeon Pro WX 3100
4140
Please enter the index of the adapter you want to use...

Samples/CustomOperatorCPU/desktop/cpp/custom-operator-cpu-sample.vcxproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@
181181
</CopyFileToFolders>
182182
</ItemGroup>
183183
<ItemGroup>
184-
<CopyFileToFolders Include="labels.txt" />
184+
<CopyFileToFolders Include="labels.txt">
185+
<DeploymentContent>true</DeploymentContent>
186+
</CopyFileToFolders>
185187
</ItemGroup>
186188
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
187189
<ImportGroup Label="ExtensionTargets">

Samples/SqueezeNetObjectDetection/Desktop/cpp/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,13 @@ Note: SqueezeNet was trained to work with image sizes of 224x224, so you must pr
2828

2929
## Run the sample
3030

31-
1. Make sure **Labels.txt** is copied into the folder with the built executable.
32-
2. Open a Command Prompt (in the Windows 10 search bar, type **cmd** and press **Enter**).
33-
3. Change the current folder to the folder containing the built EXE (`cd <path-to-exe>`).
34-
4. Run the executable as shown below. Make sure to replace the install location with what matches yours:
31+
1. Open a Command Prompt (in the Windows 10 search bar, type **cmd** and press **Enter**).
32+
2. Change the current folder to the folder containing the built EXE (`cd <path-to-exe>`).
33+
3. Run the executable as shown below. Make sure to replace the install location with what matches yours:
3534
```
3635
SqueezeNetObjectDetection.exe C:\Repos\Windows-Machine-Learning\SharedContent\media\kitten_224.png
3736
```
38-
5. You should get output similar to the following:
37+
4. You should get output similar to the following:
3938
```
4039
Loading modelfile 'C:\Repos\Windows-Machine-Learning\SharedContent\models\SqueezeNet.onnx' on the 'default' device
4140
model file loaded in 421 ticks

0 commit comments

Comments
 (0)