Skip to content

Commit 4d50bf6

Browse files
committed
refactor test_benchmark_script: increase image size for torch models
1 parent b07adc1 commit 4d50bf6

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

tests/test_benchmark_script.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def test_benchmark_script_with_torch_modelzoo(tmp_path, datafolder, model_name):
6262
from dlclive import modelzoo
6363

6464
# Test configuration
65-
pixels = [100, 400]
65+
pixels = 4096 # approximately 64x64 pixels, keeping aspect ratio
6666
n_frames = 5
6767
out_dir = tmp_path / "results"
6868
out_dir.mkdir(exist_ok=True)
@@ -92,8 +92,9 @@ def test_benchmark_script_with_torch_modelzoo(tmp_path, datafolder, model_name):
9292

9393
# Get video paths and run benchmarks
9494
for config in model_configs:
95-
video_path = glob.glob(str(datafolder / config["video_dir"] / "*.avi"))[0]
96-
print(f"Running {config['model_display_name']}")
95+
video_dir = datafolder / config["video_dir"]
96+
video_path = list(video_dir.glob("*.avi"))[0]
97+
print(f"Running {config['checkpoint'].stem}")
9798
benchmark_videos(
9899
model_path=config["checkpoint"],
99100
model_type="pytorch",

0 commit comments

Comments
 (0)