Skip to content

Commit

Permalink
ci: Fix onnx location
Browse files Browse the repository at this point in the history
  • Loading branch information
marcojob committed Nov 13, 2024
1 parent 9bd97e1 commit cb1fe4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,11 @@ jobs:
env:
ONNX_FILE_URL: ${{ secrets.DEPTH_ANYTHING_V2_VITS_LINK }}
run: |
# Create directory if it doesn't exist
mkdir -p tests/resources
# Extract Google Drive file ID from URL
FILE_ID=$(echo "$ONNX_FILE_URL" | sed -E 's|.*?/d/([^/]+).*|\1|')
# Download the file using Google Drive link and file ID
curl -L -o tests/resources/model.onnx "https://drive.google.com/uc?export=download&id=${FILE_ID}"
curl -L -o $GITHUB_WORKSPACE/test/resources/depth_anything_v2_vits.onnx "https://drive.google.com/uc?export=download&id=${FILE_ID}"
- name: Run ${{ matrix.ci_script }}
run: |
Expand Down
4 changes: 2 additions & 2 deletions test/test_depth_anything_v2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class DepthAnythingV2Test : public DepthAnythingV2 {

class TestDepthAnythingV2 : public ::testing::Test {
protected:
const std::string model_path = "/workspaces/v4l2_camera/test/resources/depth_anything_v2_vits.onnx";
const std::string test_image_path = "/workspaces/v4l2_camera/test/resources/maschinenhalle_example_frame.jpg";
const std::string model_path = "../test/resources/depth_anything_v2_vits.onnx";
const std::string test_image_path = "../test/resources/maschinenhalle_example_frame.jpg";

cv_bridge::CvImage cv_image;
cv::Mat img;
Expand Down

0 comments on commit cb1fe4d

Please sign in to comment.