You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a desktop application that uses SqueezeNet, a pre-trained machine learning model, to detect the predominant object in an image selected by the user from a file.
3
+
4
+
Note: SqueezeNet was trained to work with image sizes of 224x224, so you must provide an image of size 224X224.
1. This project requires Rust 1.46, which is currently in Beta. Rust release dates can be found [here](https://forge.rust-lang.org/). Rust Beta features can be enabled by running the following commands through command prompt in this current project directory after installation of Rustup :
13
+
-``` rustup install beta ```
14
+
-``` rustup override set beta ```
15
+
2. Install the WinRT nuget dependencies with this command: ``` cargo winrt install ```
16
+
3. Build the project by running ```cargo build``` for debug and ```cargo build --release``` for release.
17
+
4. Run the sample by running this command through the command prompt. ``` cargo winrt run ```
18
+
- Another option would be to run the executable directly. Should be ```<git enlistment>\Samples\RustSqueezeNet\target\debug\rust_squeezenet.exe```
19
+
20
+
## Sample output
21
+
```
22
+
C:\Repos\Windows-Machine-Learning\Samples\RustSqueezeNet> cargo winrt run
23
+
Finished installing WinRT dependencies in 0.47s
24
+
Finished dev [unoptimized + debuginfo] target(s) in 0.12s
25
+
Running `target\debug\rust_squeezenet.exe`
26
+
Loading model C:\Repos\Windows-Machine-Learning\RustSqueezeNet\target\debug\Squeezenet.onnx
0 commit comments