-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add workflow tests for benchmarks #362
Draft
scotts
wants to merge
17
commits into
pytorch:main
Choose a base branch
from
scotts:benchmark_test
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+109
−16
Draft
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
fa29e9b
Tweaking font sizes on README chart
scotts 4bae5aa
Merge branch 'main' of github.com:pytorch/torchcodec
scotts 7953714
Merge branch 'main' of github.com:pytorch/torchcodec
scotts 8ad2e1b
Merge branch 'main' of github.com:pytorch/torchcodec
scotts 8a6257a
Workflow for benchmarks
scotts 960b620
Add benchmark deps
scotts 64acfeb
Don't execute against decord
scotts 7585c1f
Revert to default decoders
scotts 2085998
Setting FFmpeg version to 6
scotts ea90821
Install TorchVision from source
scotts 6cc503c
Install TorchVision from nightly
scotts 64c4a79
Merge branch 'main' of github.com:pytorch/torchcodec into benchmark_test
scotts 9e59bab
Temp disable new batch mode
scotts 0f0412b
Install PyTorch, TorchAudio and TorchVision from conda
scotts a5f15a4
Use ffmpeg=4
scotts f880bf9
Use FFmpeg=5
scotts dc29aa5
FFmpeg=4, lint
scotts File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Benchmarks | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
paths: | ||
- src/torchcodec/* | ||
- benchmarks/* | ||
- .github/workflows/benchmarks.yaml | ||
|
||
defaults: | ||
run: | ||
shell: bash -l -eo pipefail {0} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup conda env | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
miniconda-version: "latest" | ||
activate-environment: test | ||
python-version: '3.12' | ||
|
||
- name: Update pip | ||
run: python -m pip install --upgrade pip | ||
|
||
- name: Install FFmpeg, PyTorch and TorchAudio | ||
run: | | ||
conda install "ffmpeg=4" pkg-config -c conda-forge | ||
conda install pytorch torchvision torchaudio cpuonly -c pytorch-nightly | ||
#python -m pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu | ||
ffmpeg -version | ||
|
||
#- name: Download, build and install TorchVision | ||
# run: | | ||
# git clone https://github.com/pytorch/vision.git | ||
# cd vision | ||
# python setup.py install | ||
|
||
- name: Install all other dependencies | ||
run: | | ||
python -m pip install decord matplotlib pandas numpy | ||
|
||
- name: Build and install torchcodec | ||
run: | | ||
python -m pip install -e ".[dev]" --no-build-isolation -vvv | ||
|
||
- name: Test generic decoder benchmark | ||
run: | | ||
python benchmarks/decoders/benchmark_decoders.py --bm_video_speed_min_run_seconds 1 | ||
|
||
- name: TEST README data geeneration benchmark | ||
run: | | ||
python benchmarks/decoders/generate_readme_data.py --test_run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ignore changes in this file; once we fix these failures on trunk, I'll pull those changes. These changes just let this run without error.