Skip to content

Commit 1854650

Browse files
committed
add a screenshot
1 parent 4519151 commit 1854650

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

_mobile/ios.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ HelloWorld is a simple image classification application that demonstrates how to
1818

1919
### Model Preparation
2020

21-
Let's start with model preparation. If you are familiar with PyTorch, you probably should already know how to train and save your model. In case you don't, we are going to use a pre-trained image classification model - Resnet18, which is already packaged in [TorchVision](https://pytorch.org/docs/stable/torchvision/index.html). To install it, run the command below.
21+
Let's start with model preparation. If you are familiar with PyTorch, you probably should already know how to train and save your model. In case you don't, we are going to use a pre-trained image classification model - [Resnet18](https://pytorch.org/hub/pytorch_vision_resnet/), which is already packaged in [TorchVision](https://pytorch.org/docs/stable/torchvision/index.html). To install it, run the command below.
2222

23-
> Before running, we highly recommend following the [Pytorch Github page](https://github.com/pytorch/pytorch) to set up the Python development environment on your local machine.
23+
> We highly recommend following the [Pytorch Github page](https://github.com/pytorch/pytorch) to set up the Python development environment on your local machine.
2424
2525
```shell
2626
pip install torchvision
@@ -36,7 +36,7 @@ If everything works well, we should have our model - `model.pt` generated in the
3636

3737
> To find out more details about TorchScript, please visit [tutorials on pytorch.org](https://pytorch.org/tutorials/advanced/cpp_export.html)
3838
39-
### Install PyTorch C++ libraries via Cocoapods
39+
### Install LibTorch via Cocoapods
4040

4141
The PyTorch C++ library is available in [Cocoapods](https://cocoapods.org/), to integrate it to our project, simply run
4242

@@ -46,7 +46,7 @@ pod install
4646

4747
Now it's time to open the `HelloWorld.xcworkspace` in XCode, select an iOS simulator and launch it (cmd + R). If everything works well, we should see a wolf picture on the simulator screen along with the prediction result.
4848

49-
![](https://github.com/pytorch/ios-demo-app/blob/master/HelloWorld/HelloWorld/HelloWorld/image.jpg?raw=true)
49+
<img src="https://github.com/pytorch/ios-demo-app/blob/master/HelloWorld/screenshot.png?raw=true", width="50%">
5050

5151
### Code Walkthrough
5252

0 commit comments

Comments
 (0)