-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added perf script for rt-detr * Fix models path. --------- Co-authored-by: Denis Medyantsev <[email protected]>
- Loading branch information
1 parent
347c607
commit dad2831
Showing
3 changed files
with
34 additions
and
3 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
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,24 @@ | ||
#!/bin/bash | ||
# you are expected to be in Savant/ directory | ||
# Usage: run_perf.sh [MULTISTREAM] [YQ_ARGS]... | ||
# The MULTISTREAM argument is an integer, 0 means using uridecodebin source, | ||
# >0 means using the the multistream source adapter with specified number of streams. | ||
# The YQ_ARGS are module configuration updates in yq notation, | ||
# e.g. ".parameters.batch_size=4". | ||
|
||
MODULE_CONFIG=samples/rtdetr/module.yml | ||
DATA_LOCATION=data/leeds_1080p.mp4 | ||
|
||
if [ "$(uname -m)" = "aarch64" ]; then | ||
# docker compose -f samples/rtdetr/docker-compose.l4t.yml build module | ||
echo "L4T benchmark is not implemented" | ||
exit 1 | ||
else | ||
docker compose -f samples/rtdetr/docker-compose.x86.yml build module | ||
fi | ||
|
||
source samples/assets/run_perf_helper.sh | ||
set_source $DATA_LOCATION | ||
PERF_CONFIG="${MODULE_CONFIG%.*}_perf.yml" | ||
config_perf $MODULE_CONFIG $PERF_CONFIG "${YQ_ARGS[@]}" | ||
./scripts/run_module.py -i rtdetr-module $PERF_CONFIG |