Skip to content

Commit

Permalink
Add benchmark deps
Browse files Browse the repository at this point in the history
  • Loading branch information
scotts committed Nov 12, 2024
1 parent 8a6257a commit 960b620
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/benchmarks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ jobs:
run: python -m pip install --upgrade pip
- name: Install dependencies and FFmpeg
run: |
# TODO: torchvision and torchaudio shouldn't be needed. They were only added
# to silence an error as seen in https://github.com/pytorch/torchcodec/issues/203
conda install ffmpeg pkg-config -c conda-forge
python -m pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
conda install "ffmpeg=7.0.1" pkg-config -c conda-forge
python -m pip install decord matplotlib pandas numpy
ffmpeg -version
- name: Build and install torchcodec
run: |
Expand All @@ -46,4 +45,3 @@ jobs:
- name: TEST README data geeneration benchmark
run: |
python benchmarks/decoders/generate_readme_data.py --test_run
2 changes: 1 addition & 1 deletion benchmarks/decoders/generate_readme_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def main() -> None:
patterns = ["mandelbrot"]
fpses = [30]
gop_sizes = [20]
durations = [10] # if this goes too low, we hit EOF errors in some decoders
durations = [10] # if this goes too low, we hit EOF errors in some decoders
pix_fmts = ["yuv420p"]
ffmpeg_path = "ffmpeg"
min_runtime_seconds = 1
Expand Down

0 comments on commit 960b620

Please sign in to comment.