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

Commit c87c444

Browse files
committed
updated README and Podfile to PT 1.9 for TorchVideo
1 parent d9c2b5c commit c87c444

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

TorchVideo/Podfile

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

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

TorchVideo/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ The newly released open-sourced [PyTorchVideo](https://github.com/facebookresear
66

77
## Prerequisites
88

9-
* PyTorch 1.8.0/1.8.1, torchvision 0.9.1, PyTorchVideo (Optional)
9+
* PyTorch 1.9.0, torchvision 0.10.0, PyTorchVideo 0.1.1 (Optional)
1010
* Python 3.8 or above (Optional)
11-
* iOS PyTorch pod library 1.8.0
11+
* iOS Cocoapods library LibTorch 1.9.0
1212
* Xcode 12 or later
1313

1414

@@ -18,19 +18,19 @@ The newly released open-sourced [PyTorchVideo](https://github.com/facebookresear
1818

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

21-
Be aware that the downloadable model file was created with PyTorch 1.8.1, matching the iOS LibTorch library 1.8.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.
21+
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.
2222

2323
To create the model yourself, simply run the following commands:
2424
```
25-
conda create -n pt181 python=3.8.5
26-
conda activate pt181
25+
conda create -n pt19 python=3.8.5
26+
conda activate pt19
2727
pip install torch torchvision
28+
pip install pytorchvideo
2829
2930
# pip list|grep torch
30-
# torch 1.8.1
31-
# torchvision 0.9.1
32-
33-
pip install pytorchvideo
31+
# torch 1.9.0
32+
# torchvision 0.10.0
33+
# pytorchvideo 0.1.1
3434
3535
cd ios-demo-app/TorchVideo
3636
python build_model.py

0 commit comments

Comments
 (0)