Skip to content
Open
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
12 changes: 12 additions & 0 deletions .ci/scripts/test_model.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ prepare_artifacts_upload() {
fi
}

install_model_requirements() {
if [[ "${MODEL_NAME}" == "yolo26" ]]; then
local torch_url="https://download.pytorch.org/whl/cpu"
"${PYTHON_EXECUTABLE}" -m pip install \
--upgrade-strategy only-if-needed \
--extra-index-url "${torch_url}" \
-r examples/models/yolo26/requirements.txt
fi
}


build_cmake_executor_runner() {
local backend_string_select="${1:-}"
Expand Down Expand Up @@ -339,6 +349,8 @@ test_model_with_cuda() {
}


install_model_requirements

if [[ "${BACKEND}" == "portable" ]]; then
echo "Testing ${MODEL_NAME} with portable kernels..."
test_model
Expand Down
Loading