Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit 5f74f6b

Browse files
committed
updated README and Podfile to PT 1.9 for ObjectDetection
1 parent c87c444 commit 5f74f6b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ObjectDetection/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ target 'ObjectDetection' do
66
use_frameworks!
77

88
# Pods for ObjectDetection
9-
pod 'LibTorch', '~>1.7.0'
9+
pod 'LibTorch', '~>1.9.0'
1010
end

ObjectDetection/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
## Prerequisites
88

9-
* PyTorch 1.7 or later (Optional)
9+
* PyTorch 1.9.0 or later (Optional)
1010
* Python 3.8 (Optional)
11-
* iOS Pytorch pod library 1.7
11+
* iOS Cocoapods library LibTorch 1.9.0
1212
* Xcode 12 or later
1313

1414
## Quick Start
@@ -19,7 +19,7 @@ To Test Run the Object Detection iOS App, follow the steps below:
1919

2020
If you don't have the PyTorch environment set up to run the script, you can download the model file [here](https://drive.google.com/file/d/1QOxNfpy_j_1KbuhN8INw2AgAC82nEw0F/view?usp=sharing) to the `ios-demo-app/ObjectDetection/ObjectDetection` folder, then skip the rest of this step and go to step 2 directly.
2121

22-
Be aware that the downloadable model file was created with PyTorch 1.7.0, matching the iOS LibTorch library 1.7.0 specified in the `Podfile`. If you use a different version of PyTorch to create your model by following the instructions below, make sure you specify the same iOS LibTorch version in the `Podfile` to avoid possible errors caused by the version mismatch. Furthermore, if you want to use the latest prototype features in the PyTorch master branch to create the model, follow the steps at [Building PyTorch iOS Libraries from Source](https://pytorch.org/mobile/ios/#build-pytorch-ios-libraries-from-source) on how to use the model in iOS.
22+
Be aware that the downloadable model file was created with PyTorch 1.9.0, matching the iOS LibTorch library 1.9.0 specified in the `Podfile`. If you use a different version of PyTorch to create your model by following the instructions below, make sure you specify the same iOS LibTorch version in the `Podfile` to avoid possible errors caused by the version mismatch. Furthermore, if you want to use the latest prototype features in the PyTorch master branch to create the model, follow the steps at [Building PyTorch iOS Libraries from Source](https://pytorch.org/mobile/ios/#build-pytorch-ios-libraries-from-source) on how to use the model in iOS.
2323

2424
The Python script `export.py` in the `models` folder of the [YOLOv5 repo](https://github.com/ultralytics/yolov5) is used to generate a TorchScript-formatted YOLOv5 model named `yolov5s.torchscript.pt` for mobile apps.
2525

0 commit comments

Comments
 (0)