Skip to content

Commit 733167f

Browse files
EOF line added and package.xml structure update
1 parent b83bf61 commit 733167f

File tree

11 files changed

+36
-35
lines changed

11 files changed

+36
-35
lines changed

LICENSE

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
1-
Custom License Agreement
1+
BSD 2-Clause License
22

3-
1. License Grant You are hereby granted a non-exclusive, non-transferable license to use, reproduce, and distribute the code (hereinafter referred to as "the Software") under the following conditions:
3+
Copyright (c) 2021, Eindhoven University of Technology - CST Robotics Group
4+
All rights reserved.
45

5-
2. Conditions of Use
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
68

7-
Non-Commercial Use: You may use the Software for personal, educational, or non-commercial purposes without any additional permissions.
8-
Commercial Use: Any commercial use of the Software, including but not limited to selling, licensing, or using it in a commercial product, requires prior written permission from the original developer.
9-
3. Contact Requirement
9+
1. Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
1011

11-
If you wish to use the Software for commercial purposes, you must contact the original developer at [https://www.linkedin.com/in/hamdi-boukamcha/] to obtain a commercial license.
12-
The terms of any commercial license will be mutually agreed upon and may involve a licensing fee.
13-
4. Attribution
12+
2. Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
1415

15-
Regardless of whether you are using the Software for commercial or non-commercial purposes, you must provide appropriate credit to the original developer in any distributions or products that use the Software.
16-
5. Disclaimer of Warranty
17-
18-
The Software is provided "as is," without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and non-infringement. In no event shall the original developer be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the Software or the use or other dealings in the Software.
19-
6. Governing Law
20-
21-
This License Agreement shall be governed by and construed in accordance with the laws of France.
22-
By using the Software, you agree to abide by the terms outlined in this License Agreement.
16+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
20+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ A high-performance C++ implementation for SAM (segment anything model) using Ten
1919
Dynamic Shape Support: Efficient handling of variable input sizes using optimization profiles.
2020
CUDA Optimization: Leverage CUDA for preprocessing and efficient memory handling.
2121

22-
## 📢 Performance
23-
### Infernce Time
22+
## 📢 Performance
23+
### Infernce Time
2424

2525
| Component | SpeedSAM |
2626
|----------------------------|-----------|
@@ -51,7 +51,7 @@ A high-performance C++ implementation for SAM (segment anything model) using Ten
5151
│ ├── main.cpp # Main entry point
5252
│ └── speedSam.cpp # Implementation of the SpeedSam class
5353
└── CMakeLists.txt # CMake configuration
54-
54+
5555
# 🚀 Installation
5656
## Prerequisites
5757
git clone https://github.com/hamdiboukamcha/SPEED-SAM-C-TENSORRT.git
@@ -94,8 +94,3 @@ If you use this code in your research, please cite the repository as follows:
9494
publisher = {GitHub},
9595
howpublished = {\url{https://github.com/hamdiboukamcha/SPEED-SAM-C-TENSORRT//}},
9696
}
97-
98-
99-
100-
101-

include/dl_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ namespace SEG
6868

6969
} DL_RESULT;
7070
} // namespace SEG
71-
#endif // DL_TYPES_H
71+
#endif // DL_TYPES_H

include/sam_inference.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ class SAM
4646
float _iouThreshold;
4747
};
4848

49-
#endif // SAMINFERENCE_H
49+
#endif // SAMINFERENCE_H

include/segmentation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ void SegmentAnything(std::vector<std::unique_ptr<SAM>>& samSegmentors, const SEG
99
std::vector<SEG::DL_RESULT> &resSam,
1010
SEG::DL_RESULT &res);
1111

12-
#endif // SEGMENTATION_H
12+
#endif // SEGMENTATION_H

include/utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ class Utils
5555
float _resizeScalesBbox; // letterbox scale
5656
};
5757

58-
#endif // UTILS_H
58+
#endif // UTILS_H

package.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,25 @@
77
<version>0.0.0</version>
88
<description>Segment Anything Model (SAM) segmentation</description>
99

10+
<author email="[email protected]">Iason Theodorou</author>
1011
<maintainer email="[email protected]">Iason Theodorou</maintainer>
1112

1213
<license>BSD</license>
1314

1415
<buildtool_depend>catkin</buildtool_depend>
1516

1617
<build_depend>libopencv-dev</build_depend>
17-
<exec_depend>libopencv-dev</exec_depend>
1818
<build_depend>onnxruntime_ros</build_depend>
19+
20+
<exec_depend>libopencv-dev</exec_depend>
1921
<exec_depend>onnxruntime_ros</exec_depend>
2022

2123
<test_depend>catkin_lint_cmake</test_depend>
24+
2225
<doc_depend>doxygen</doc_depend>
2326

2427
<export>
2528
<rosdoc config="rosdoc.yaml" />
2629
</export>
2730

28-
</package>
31+
</package>

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ int main()
2727
}
2828
}
2929
return 0;
30-
}
30+
}

src/utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,4 +219,4 @@ void Utils::PostProcess(std::vector<Ort::Value> &output_tensors, const cv::Mat &
219219
{
220220
std::cerr << "[SAM]: Unexpected mask tensor shape." << std::endl;
221221
}
222-
}
222+
}

test/sam_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,4 @@ TEST_F(SamInferenceTest, FullInferencePipeline)
9191

9292
// We only check that a vector is returned. (You can strengthen this to EXPECT_FALSE(masks.empty()).)
9393
EXPECT_TRUE(res.masks.size() >= 0) << "Masks should be a valid output vector";
94-
}
94+
}

0 commit comments

Comments
 (0)