Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.16)
project(autospeed_standalone LANGUAGES CXX)

Check warning on line 2 in VisionPilot/Middleware_Recipes/Standalone/AutoSpeed/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (autospeed)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
Expand All @@ -15,21 +15,21 @@
# yaml-cpp for calibration loading
find_package(yaml-cpp REQUIRED)

# ONNX Runtime - user must set ONNXRUNTIME_ROOT

Check warning on line 18 in VisionPilot/Middleware_Recipes/Standalone/AutoSpeed/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (ONNXRUNTIME)
if(NOT DEFINED ENV{ONNXRUNTIME_ROOT})

Check warning on line 19 in VisionPilot/Middleware_Recipes/Standalone/AutoSpeed/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (ONNXRUNTIME)
message(FATAL_ERROR "Please set ONNXRUNTIME_ROOT environment variable to ONNX Runtime installation directory\n"

Check warning on line 20 in VisionPilot/Middleware_Recipes/Standalone/AutoSpeed/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (ONNXRUNTIME)
"Example: export ONNXRUNTIME_ROOT=/path/to/onnxruntime-linux-x64-gpu-1.22.0")

Check warning on line 21 in VisionPilot/Middleware_Recipes/Standalone/AutoSpeed/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (onnxruntime)

Check warning on line 21 in VisionPilot/Middleware_Recipes/Standalone/AutoSpeed/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (ONNXRUNTIME)
endif()

set(ONNXRUNTIME_ROOT $ENV{ONNXRUNTIME_ROOT})

Check warning on line 24 in VisionPilot/Middleware_Recipes/Standalone/AutoSpeed/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (ONNXRUNTIME)
set(ONNXRUNTIME_INCLUDE_DIR ${ONNXRUNTIME_ROOT}/include)
set(ONNXRUNTIME_LIB_DIR ${ONNXRUNTIME_ROOT}/lib)

# Find library (handle versioned .so files)
file(GLOB ONNXRUNTIME_LIBRARY "${ONNXRUNTIME_LIB_DIR}/libonnxruntime.so*")

Check warning on line 29 in VisionPilot/Middleware_Recipes/Standalone/AutoSpeed/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (libonnxruntime)
list(GET ONNXRUNTIME_LIBRARY 0 ONNXRUNTIME_LIBRARY)

if(NOT EXISTS ${ONNXRUNTIME_INCLUDE_DIR}/onnxruntime_cxx_api.h)

Check warning on line 32 in VisionPilot/Middleware_Recipes/Standalone/AutoSpeed/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (onnxruntime)
message(FATAL_ERROR "ONNX Runtime headers not found at: ${ONNXRUNTIME_INCLUDE_DIR}")
endif()

Expand All @@ -44,10 +44,11 @@
${GSTREAMER_INCLUDE_DIRS}
${GSTREAMER_APP_INCLUDE_DIRS}
../../common/include
../../common/backends
)

# AutoSpeed ONNX Runtime backend
add_library(autospeed_backend

Check warning on line 51 in VisionPilot/Middleware_Recipes/Standalone/AutoSpeed/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / spell-check-differential

Unknown word (autospeed)
../../common/backends/autospeed/onnxruntime_engine.cpp
../../common/backends/autospeed/onnxruntime_session.cpp
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ docker run -it --rm \
-v "$PWD"/model-weights:/autoware/model-weights \
-v "$PWD"/launch:/autoware/launch \
-v "$PWD"/../Test:/autoware/test \
ghcr.io/autowarefoundation/visionpilot:latest \
visionpilot \
/autoware/launch/run_objectFinder.sh
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ WORKDIR /app
EXPOSE 5900 6080

# Copy startup scripts
COPY Modules/SDV/OpenADKit/Docker/xstartup /root/.vnc/xstartup
COPY Modules/SDV/OpenADKit/Docker/entrypoint.sh /entrypoint.sh
COPY VisionPilot/SDV/OpenADKit/Docker/xstartup /root/.vnc/xstartup
COPY VisionPilot/SDV/OpenADKit/Docker/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh /root/.vnc/xstartup

# Environment defaults
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ The **visionpilot** container image is automatically pulled from [GHCR](https://

```bash
# Build for x64 with ONNX Runtime 1.22.0
docker build -t visionpilot -f Modules/SDV/OpenADKit/Docker/Dockerfile . --build-arg ARCH=x64 --build-arg ONNXRUNTIME_VERSION=1.22.0
docker build -t visionpilot -f VisionPilot/SDV/OpenADKit/Docker/Dockerfile . --build-arg ARCH=x64 --build-arg ONNXRUNTIME_VERSION=1.22.0

# Build for ARM64 with ONNX Runtime 1.22.0
docker build -t visionpilot -f Modules/SDV/OpenADKit/Docker/Dockerfile . --build-arg ARCH=arm64 --build-arg ONNXRUNTIME_VERSION=1.22.0
docker build -t visionpilot -f VisionPilot/SDV/OpenADKit/Docker/Dockerfile . --build-arg ARCH=arm64 --build-arg ONNXRUNTIME_VERSION=1.22.0
```
Binary file not shown.
Loading