-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated trt inference and added configuration scripts
- Loading branch information
1 parent
5f19aae
commit 1eef47b
Showing
5 changed files
with
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "object-detection-inference", | ||
// Use the image property instead of dockerFile | ||
"image": "object-detection-inference:tensorrt", // Replace with your image name and tag | ||
|
||
"features": { | ||
"ghcr.io/devcontainers/features/nvidia-cuda:1": {} | ||
}, | ||
|
||
"overrideCommand": true, | ||
"runArgs": [ | ||
"--gpus", "all" | ||
], | ||
"postCreateCommand": "bash", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-vscode.cpptools", | ||
"kaysonwu.cpptask", | ||
"ms-vscode.cpptools-extension-pack", | ||
"franneck94.c-cpp-runner", | ||
"DamianKoper.gdb-debug" | ||
] | ||
} | ||
} // Or your desired entrypoint command | ||
|
||
// OR: Run a specific command. Example: run your app with arguments | ||
// "overrideCommand": true, | ||
// "command": ["./object-detection-inference", "-m", "your_model.engine", "-i", "your_input.mp4"] | ||
} | ||
|
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
TRT_MAJOR=10 | ||
TRT_MINOR=.7 | ||
TRT_PATCH=.0 | ||
TRT_BUILD=.23 | ||
TRT_VERSION=${TRT_MAJOR}${TRT_MINOR}${TRT_PATCH}${TRT_BUILD} | ||
TRT_CUDA_VERSION=12.6 | ||
#wget https://developer.nvidia.com/downloads/compute/machine-learning/tensorrt/${TRT_MAJOR}${TRT_MINOR}${TRT_PATCH}/tars/TensorRT-${TRT_VERSION}.Linux.x86_64-gnu.cuda-${TRT_CUDA_VERSION}.tar.gz | ||
|
||
tar -xvf TensorRT-${TRT_VERSION}.Linux.x86_64-gnu.cuda-${TRT_CUDA_VERSION}.tar.gz | ||
|
||
mv TensorRT-${TRT_VERSION} $HOME/TensorRT-${TRT_VERSION} |