Skip to content

Commit 3d32ce6

Browse files
First version (#1)
2 parents 918db59 + e6e5bc5 commit 3d32ce6

File tree

17 files changed

+884
-437
lines changed

17 files changed

+884
-437
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: CI
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
jobs:
6+
tue-ci:
7+
name: TUe CI - ${{ github.event_name }}
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: TUe CI
11+
uses: tue-robotics/tue-env/ci/main@master
12+
with:
13+
package: ${{ github.event.repository.name }}

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
build/
2+
images/*
3+
onnxruntime*/
4+
onnxruntime/*
5+
docker/*
6+
CMakefile
7+
CMakeCache.txt
8+
CMakeFiles/*
9+
cmake_install.cmake
10+
Makefile
11+
SPEED-SAM-C-TENSORRT/
12+
sam_inference/model/FastSAM-x.onnx
13+
mask*
14+
segmentation_results*
15+
16+
# Models
17+
*.onnx

.vscode/c_cpp_properties_json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "Linux",
5+
"includePath": [
6+
"${workspaceFolder}/**",
7+
"/usr/include/opencv4",
8+
"${workspaceFolder}/sam_inference/inc",
9+
"${workspaceFolder}/sam_inference/build"
10+
],
11+
"defines": [],
12+
"compilerPath": "/usr/bin/gcc",
13+
"cStandard": "c11",
14+
"cppStandard": "c++17",
15+
"intelliSenseMode": "linux-gcc-x64"
16+
}
17+
],
18+
"version": 4
19+
}

.vscode/launch.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Debug Yolo Model",
6+
"type": "cppdbg",
7+
"request": "launch",
8+
"program": "/home/amigo/ros/noetic/system/devel/lib/yolo_onnx_ros/test_yolo_onnx_ros", // Path to the executable
9+
"args": [
10+
"/home/amigo/ros/noetic/repos/github.com/tue-robotics/yolo_onnx_ros/data/yolo11m.onnx",
11+
"/home/amigo/Documents/repos/hero_sam.bak/pipeline/build/images"
12+
], // Add any command-line arguments for your program here
13+
"stopAtEntry": false,
14+
"cwd": "${workspaceFolder}/build", // Set the working directory
15+
"environment": [],
16+
"externalConsole": false,
17+
"MIMode": "gdb",
18+
"setupCommands": [
19+
{
20+
"description": "Enable pretty-printing for gdb",
21+
"text": "-enable-pretty-printing",
22+
"ignoreFailures": true
23+
}
24+
],
25+
//"preLaunchTask": "build-yolo-project" // Ensure the project is built before debugging
26+
},
27+
{
28+
"name": "Debug Yolo Test",
29+
"type": "cppdbg",
30+
"request": "launch",
31+
"program": "/home/amigo/ros/noetic/system/devel/lib/yolo_onnx_ros/yolo_test", // Path to the executable
32+
"args": [], // Add any command-line arguments for your program here
33+
"stopAtEntry": false,
34+
"cwd": "${workspaceFolder}/build", // Set the working directory
35+
"environment": [],
36+
"externalConsole": false,
37+
"MIMode": "gdb",
38+
"setupCommands": [
39+
{
40+
"description": "Enable pretty-printing for gdb",
41+
"text": "-enable-pretty-printing",
42+
"ignoreFailures": true
43+
}
44+
],
45+
//"preLaunchTask": "build-yolo-project" // Ensure the project is built before debugging
46+
}
47+
]
48+
}

.vscode/settings.json

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
{
2+
"files.associations": {
3+
"iostream": "cpp",
4+
"cctype": "cpp",
5+
"clocale": "cpp",
6+
"cmath": "cpp",
7+
"cstdarg": "cpp",
8+
"cstddef": "cpp",
9+
"cstdio": "cpp",
10+
"cstdlib": "cpp",
11+
"cstring": "cpp",
12+
"ctime": "cpp",
13+
"cwchar": "cpp",
14+
"cwctype": "cpp",
15+
"array": "cpp",
16+
"atomic": "cpp",
17+
"strstream": "cpp",
18+
"bit": "cpp",
19+
"*.tcc": "cpp",
20+
"bitset": "cpp",
21+
"chrono": "cpp",
22+
"codecvt": "cpp",
23+
"complex": "cpp",
24+
"condition_variable": "cpp",
25+
"cstdint": "cpp",
26+
"deque": "cpp",
27+
"list": "cpp",
28+
"map": "cpp",
29+
"set": "cpp",
30+
"unordered_map": "cpp",
31+
"unordered_set": "cpp",
32+
"vector": "cpp",
33+
"exception": "cpp",
34+
"algorithm": "cpp",
35+
"functional": "cpp",
36+
"iterator": "cpp",
37+
"memory": "cpp",
38+
"memory_resource": "cpp",
39+
"numeric": "cpp",
40+
"optional": "cpp",
41+
"random": "cpp",
42+
"ratio": "cpp",
43+
"regex": "cpp",
44+
"string": "cpp",
45+
"string_view": "cpp",
46+
"system_error": "cpp",
47+
"tuple": "cpp",
48+
"type_traits": "cpp",
49+
"utility": "cpp",
50+
"fstream": "cpp",
51+
"initializer_list": "cpp",
52+
"iomanip": "cpp",
53+
"iosfwd": "cpp",
54+
"istream": "cpp",
55+
"limits": "cpp",
56+
"mutex": "cpp",
57+
"new": "cpp",
58+
"ostream": "cpp",
59+
"shared_mutex": "cpp",
60+
"sstream": "cpp",
61+
"stdexcept": "cpp",
62+
"streambuf": "cpp",
63+
"thread": "cpp",
64+
"cfenv": "cpp",
65+
"cinttypes": "cpp",
66+
"typeindex": "cpp",
67+
"typeinfo": "cpp",
68+
"variant": "cpp",
69+
"compare": "cpp",
70+
"concepts": "cpp",
71+
"numbers": "cpp",
72+
"semaphore": "cpp",
73+
"stop_token": "cpp",
74+
"*.txx": "cpp",
75+
"filesystem": "cpp"
76+
}
77+
}

.vscode/tasks.json

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "build-sam-project",
6+
"dependsOrder": "sequence",
7+
"dependsOn": ["configure-sam", "build-sam-binary"],
8+
"problemMatcher": ["$gcc"],
9+
"group": "build"
10+
},
11+
{
12+
"label": "build-pipeline-project",
13+
"dependsOrder": "sequence",
14+
"dependsOn": ["configure-pipeline", "build-pipeline-binary"],
15+
"problemMatcher": ["$gcc"],
16+
"group": "build"
17+
},
18+
{
19+
"label": "build-yolo-project",
20+
"dependsOrder": "sequence",
21+
"dependsOn": ["configure-yolo", "build-yolo-binary"],
22+
"problemMatcher": ["$gcc"],
23+
"group": "build"
24+
},
25+
{
26+
"label": "configure-sam",
27+
"type": "shell",
28+
"command": "cmake",
29+
"args": [
30+
"-DCMAKE_BUILD_TYPE=Debug",
31+
"-S", "${workspaceFolder}/sam_inference",
32+
"-B", "${workspaceFolder}/sam_inference/build"
33+
],
34+
"problemMatcher": ["$gcc"]
35+
},
36+
{
37+
"label": "configure-pipeline",
38+
"type": "shell",
39+
"command": "cmake",
40+
"args": [
41+
"-DCMAKE_BUILD_TYPE=Debug",
42+
"-S", "${workspaceFolder}/pipeline",
43+
"-B", "${workspaceFolder}/pipeline/build"
44+
],
45+
"problemMatcher": ["$gcc"]
46+
},
47+
{
48+
"label": "configure-yolo",
49+
"type": "shell",
50+
"command": "cmake",
51+
"args": [
52+
"-DCMAKE_BUILD_TYPE=Debug",
53+
"-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
54+
"-S", "${workspaceFolder}/",
55+
"-B", "${workspaceFolder}/build"
56+
],
57+
"problemMatcher": ["$gcc"]
58+
},
59+
{
60+
"label": "build-sam-binary",
61+
"type": "shell",
62+
"command": "cmake",
63+
"args": [
64+
"--build",
65+
"${workspaceFolder}/sam_inference/build",
66+
"--config", "Debug"
67+
],
68+
"problemMatcher": ["$gcc"]
69+
},
70+
{
71+
"label": "build-pipeline-binary",
72+
"type": "shell",
73+
"command": "cmake",
74+
"args": [
75+
"--build",
76+
"${workspaceFolder}/pipeline/build",
77+
"--config", "Debug"
78+
],
79+
"problemMatcher": ["$gcc"]
80+
},
81+
{
82+
"label": "build-yolo-binary",
83+
"type": "shell",
84+
"command": "cmake",
85+
"args": [
86+
"--build",
87+
"${workspaceFolder}/build",
88+
"--config", "Debug"
89+
],
90+
"problemMatcher": ["$gcc"]
91+
}
92+
93+
]
94+
}

0 commit comments

Comments
 (0)