-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #250 from roboflow/feature/add_benchmarking_capabi…
…lities Inference benchmarking
- Loading branch information
Showing
28 changed files
with
1,407 additions
and
88 deletions.
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
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,35 @@ | ||
output_dir=$1 | ||
batch_size=$2 | ||
clients=$3 | ||
requests=$4 | ||
|
||
|
||
python -m inference_cli.main benchmark api-speed -m yolov8n-640 -c $clients -br $requests -bs $batch_size -o ${output_dir}/yolov8n_640_bs_${batch_size}_clients_${clients}_via_http.json | ||
python -m inference_cli.main benchmark api-speed -m yolov8n-1280 -c $clients -br $requests -bs $batch_size -o ${output_dir}/yolov8n_1280_bs_${batch_size}_clients_${clients}_via_http.json | ||
|
||
python -m inference_cli.main benchmark api-speed -m yolov8s-640 -c $clients -br $requests -bs $batch_size -o ${output_dir}/yolov8s_640_bs_${batch_size}_clients_${clients}_via_http.json | ||
python -m inference_cli.main benchmark api-speed -m yolov8s-1280 -c $clients -br $requests -bs $batch_size -o ${output_dir}/yolov8s_1280_bs_${batch_size}_clients_${clients}_via_http.json | ||
|
||
python -m inference_cli.main benchmark api-speed -m yolov8m-640 -c $clients -br $requests -bs $batch_size -o ${output_dir}/yolov8m_640_bs_${batch_size}_clients_${clients}_via_http.json | ||
python -m inference_cli.main benchmark api-speed -m yolov8m-1280 -c $clients -br $requests -bs $batch_size -o ${output_dir}/yolov8m_1280_bs_${batch_size}_clients_${clients}_via_http.json | ||
|
||
python -m inference_cli.main benchmark api-speed -m yolov8l-640 -c $clients -br $requests -bs $batch_size -o ${output_dir}/yolov8l_640_bs_${batch_size}_clients_${clients}_via_http.json | ||
python -m inference_cli.main benchmark api-speed -m yolov8l-1280 -c $clients -br $requests -bs $batch_size -o ${output_dir}/yolov8l_1280_bs_${batch_size}_clients_${clients}_via_http.json | ||
|
||
python -m inference_cli.main benchmark api-speed -m yolov8x-640 -c $clients -br $requests -bs $batch_size -o ${output_dir}/yolov8x_640_bs_${batch_size}_clients_${clients}_via_http.json | ||
python -m inference_cli.main benchmark api-speed -m yolov8x-1280 -c $clients -br $requests -bs $batch_size -o ${output_dir}/yolov8x_1280_bs_${batch_size}_clients_${clients}_via_http.json | ||
|
||
python -m inference_cli.main benchmark api-speed -m yolov8n-seg-640 -c $clients -br $requests -bs $batch_size -o ${output_dir}/yolov8n_seg_640_bs_${batch_size}_clients_${clients}_via_http.json | ||
python -m inference_cli.main benchmark api-speed -m yolov8n-seg-1280 -c $clients -br $requests -bs $batch_size -o ${output_dir}/yolov8n_seg_1280_bs_${batch_size}_clients_${clients}_via_http.json | ||
|
||
python -m inference_cli.main benchmark api-speed -m yolov8s-seg-640 -c $clients -br $requests -bs $batch_size -o ${output_dir}/yolov8s_seg_640_bs_${batch_size}_clients_${clients}_via_http.json | ||
python -m inference_cli.main benchmark api-speed -m yolov8s-seg-1280 -c $clients -br $requests -bs $batch_size -o ${output_dir}/yolov8s_seg_1280_bs_${batch_size}_clients_${clients}_via_http.json | ||
|
||
python -m inference_cli.main benchmark api-speed -m yolov8m-seg-640 -c $clients -br $requests -bs $batch_size -o ${output_dir}/yolov8m_seg_640_bs_${batch_size}_clients_${clients}_via_http.json | ||
python -m inference_cli.main benchmark api-speed -m yolov8m-seg-1280 -c $clients -br $requests -bs $batch_size -o ${output_dir}/yolov8m_seg_1280_bs_${batch_size}_clients_${clients}_via_http.json | ||
|
||
python -m inference_cli.main benchmark api-speed -m yolov8l-seg-640 -c $clients -br $requests -bs $batch_size -o ${output_dir}/yolov8l_seg_640_bs_${batch_size}_clients_${clients}_via_http.json | ||
python -m inference_cli.main benchmark api-speed -m yolov8l-seg-1280 -c $clients -br $requests -bs $batch_size -o ${output_dir}/yolov8l_seg_1280_bs_${batch_size}_clients_${clients}_via_http.json | ||
|
||
python -m inference_cli.main benchmark api-speed -m yolov8x-seg-640 -c $clients -br $requests -bs $batch_size -o ${output_dir}/yolov8x_seg_640_bs_${batch_size}_clients_${clients}_via_http.json | ||
python -m inference_cli.main benchmark api-speed -m yolov8x-seg-1280 -c $clients -br $requests -bs $batch_size -o ${output_dir}/yolov8x_seg_1280_bs_${batch_size}_clients_${clients}_via_http.json |
33 changes: 33 additions & 0 deletions
33
development/benchmark_scripts/benchmark_yolov8_in_python_package.sh
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,33 @@ | ||
output_dir=$1 | ||
batch_size=$2 | ||
inferences=$3 | ||
|
||
python -m inference_cli.main benchmark python-package-speed -m yolov8n-640 -bi $inferences -bs $batch_size -o $output_dir/yolov8n_640_bs_$batch_size.json | ||
python -m inference_cli.main benchmark python-package-speed -m yolov8n-1280 -bi $inferences -bs $batch_size -o $output_dir/yolov8n_1280_bs_$batch_size.json | ||
|
||
python -m inference_cli.main benchmark python-package-speed -m yolov8s-640 -bi $inferences -bs $batch_size -o $output_dir/yolov8s_640_bs_$batch_size.json | ||
python -m inference_cli.main benchmark python-package-speed -m yolov8s-1280 -bi $inferences -bs $batch_size -o $output_dir/yolov8s_1280_bs_$batch_size.json | ||
|
||
python -m inference_cli.main benchmark python-package-speed -m yolov8m-640 -bi $inferences -bs $batch_size -o $output_dir/yolov8m_640_bs_$batch_size.json | ||
python -m inference_cli.main benchmark python-package-speed -m yolov8m-1280 -bi $inferences -bs $batch_size -o $output_dir/yolov8m_1280_bs_$batch_size.json | ||
|
||
python -m inference_cli.main benchmark python-package-speed -m yolov8l-640 -bi $inferences -bs $batch_size -o $output_dir/yolov8l_640_bs_$batch_size.json | ||
python -m inference_cli.main benchmark python-package-speed -m yolov8l-1280 -bi $inferences -bs $batch_size -o $output_dir/yolov8l_1280_bs_$batch_size.json | ||
|
||
python -m inference_cli.main benchmark python-package-speed -m yolov8x-640 -bi $inferences -bs $batch_size -o $output_dir/yolov8x_640_bs_$batch_size.json | ||
python -m inference_cli.main benchmark python-package-speed -m yolov8x-1280 -bi $inferences -bs $batch_size -o $output_dir/yolov8x_1280_bs_$batch_size.json | ||
|
||
python -m inference_cli.main benchmark python-package-speed -m yolov8n-seg-640 -bi $inferences -bs $batch_size -o $output_dir/yolov8n_seg_640_bs_$batch_size.json | ||
python -m inference_cli.main benchmark python-package-speed -m yolov8n-seg-1280 -bi $inferences -bs $batch_size -o $output_dir/yolov8n_seg_1280_bs_$batch_size.json | ||
|
||
python -m inference_cli.main benchmark python-package-speed -m yolov8s-seg-640 -bi $inferences -bs $batch_size -o $output_dir/yolov8s_seg_640_bs_$batch_size.json | ||
python -m inference_cli.main benchmark python-package-speed -m yolov8s-seg-1280 -bi $inferences -bs $batch_size -o $output_dir/yolov8s_seg_1280_bs_$batch_size.json | ||
|
||
python -m inference_cli.main benchmark python-package-speed -m yolov8m-seg-640 -bi $inferences -bs $batch_size -o $output_dir/yolov8m_seg_640_bs_$batch_size.json | ||
python -m inference_cli.main benchmark python-package-speed -m yolov8m-seg-1280 -bi $inferences -bs $batch_size -o $output_dir/yolov8m_seg_1280_bs_$batch_size.json | ||
|
||
python -m inference_cli.main benchmark python-package-speed -m yolov8l-seg-640 -bi $inferences -bs $batch_size -o $output_dir/yolov8l_seg_640_bs_$batch_size.json | ||
python -m inference_cli.main benchmark python-package-speed -m yolov8l-seg-1280 -bi $inferences -bs $batch_size -o $output_dir/yolov8l_seg_1280_bs_$batch_size.json | ||
|
||
python -m inference_cli.main benchmark python-package-speed -m yolov8x-seg-640 -bi $inferences -bs $batch_size -o $output_dir/yolov8x_seg_640_bs_$batch_size.json | ||
python -m inference_cli.main benchmark python-package-speed -m yolov8x-seg-1280 -bi $inferences -bs $batch_size -o $output_dir/yolov8x_seg_1280_bs_$batch_size.json |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
__version__ = "0.9.10rc2" | ||
__version__ = "0.9.10rc3" | ||
|
||
|
||
if __name__ == "__main__": | ||
|
Oops, something went wrong.