-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a61edb
commit daf8a2d
Showing
21 changed files
with
1,949 additions
and
1,796 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
224 changes: 126 additions & 98 deletions
224
yolox_ros_cpp/yolox_cpp/include/yolox_cpp/coco_names.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,99 +1,127 @@ | ||
#ifndef _YOLOX_CPP_COCO_NAMES_HPP | ||
#define _YOLOX_CPP_COCO_NAMES_HPP | ||
// Copyright 2024 Ar-Ray-code | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
namespace yolox_cpp{ | ||
static const std::vector<std::string> COCO_CLASSES = { | ||
"person", "bicycle", "car", "motorcycle", "airplane", "bus", "train", "truck", "boat", "traffic light", | ||
"fire hydrant", "stop sign", "parking meter", "bench", "bird", "cat", "dog", "horse", "sheep", "cow", | ||
"elephant", "bear", "zebra", "giraffe", "backpack", "umbrella", "handbag", "tie", "suitcase", "frisbee", | ||
"skis", "snowboard", "sports ball", "kite", "baseball bat", "baseball glove", "skateboard", "surfboard", | ||
"tennis racket", "bottle", "wine glass", "cup", "fork", "knife", "spoon", "bowl", "banana", "apple", | ||
"sandwich", "orange", "broccoli", "carrot", "hot dog", "pizza", "donut", "cake", "chair", "couch", | ||
"potted plant", "bed", "dining table", "toilet", "tv", "laptop", "mouse", "remote", "keyboard", "cell phone", | ||
"microwave", "oven", "toaster", "sink", "refrigerator", "book", "clock", "vase", "scissors", "teddy bear", | ||
"hair drier", "toothbrush" | ||
}; | ||
const float color_list[80][3] ={ | ||
{0.000, 0.447, 0.741}, | ||
{0.850, 0.325, 0.098}, | ||
{0.929, 0.694, 0.125}, | ||
{0.494, 0.184, 0.556}, | ||
{0.466, 0.674, 0.188}, | ||
{0.301, 0.745, 0.933}, | ||
{0.635, 0.078, 0.184}, | ||
{0.300, 0.300, 0.300}, | ||
{0.600, 0.600, 0.600}, | ||
{1.000, 0.000, 0.000}, | ||
{1.000, 0.500, 0.000}, | ||
{0.749, 0.749, 0.000}, | ||
{0.000, 1.000, 0.000}, | ||
{0.000, 0.000, 1.000}, | ||
{0.667, 0.000, 1.000}, | ||
{0.333, 0.333, 0.000}, | ||
{0.333, 0.667, 0.000}, | ||
{0.333, 1.000, 0.000}, | ||
{0.667, 0.333, 0.000}, | ||
{0.667, 0.667, 0.000}, | ||
{0.667, 1.000, 0.000}, | ||
{1.000, 0.333, 0.000}, | ||
{1.000, 0.667, 0.000}, | ||
{1.000, 1.000, 0.000}, | ||
{0.000, 0.333, 0.500}, | ||
{0.000, 0.667, 0.500}, | ||
{0.000, 1.000, 0.500}, | ||
{0.333, 0.000, 0.500}, | ||
{0.333, 0.333, 0.500}, | ||
{0.333, 0.667, 0.500}, | ||
{0.333, 1.000, 0.500}, | ||
{0.667, 0.000, 0.500}, | ||
{0.667, 0.333, 0.500}, | ||
{0.667, 0.667, 0.500}, | ||
{0.667, 1.000, 0.500}, | ||
{1.000, 0.000, 0.500}, | ||
{1.000, 0.333, 0.500}, | ||
{1.000, 0.667, 0.500}, | ||
{1.000, 1.000, 0.500}, | ||
{0.000, 0.333, 1.000}, | ||
{0.000, 0.667, 1.000}, | ||
{0.000, 1.000, 1.000}, | ||
{0.333, 0.000, 1.000}, | ||
{0.333, 0.333, 1.000}, | ||
{0.333, 0.667, 1.000}, | ||
{0.333, 1.000, 1.000}, | ||
{0.667, 0.000, 1.000}, | ||
{0.667, 0.333, 1.000}, | ||
{0.667, 0.667, 1.000}, | ||
{0.667, 1.000, 1.000}, | ||
{1.000, 0.000, 1.000}, | ||
{1.000, 0.333, 1.000}, | ||
{1.000, 0.667, 1.000}, | ||
{0.333, 0.000, 0.000}, | ||
{0.500, 0.000, 0.000}, | ||
{0.667, 0.000, 0.000}, | ||
{0.833, 0.000, 0.000}, | ||
{1.000, 0.000, 0.000}, | ||
{0.000, 0.167, 0.000}, | ||
{0.000, 0.333, 0.000}, | ||
{0.000, 0.500, 0.000}, | ||
{0.000, 0.667, 0.000}, | ||
{0.000, 0.833, 0.000}, | ||
{0.000, 1.000, 0.000}, | ||
{0.000, 0.000, 0.167}, | ||
{0.000, 0.000, 0.333}, | ||
{0.000, 0.000, 0.500}, | ||
{0.000, 0.000, 0.667}, | ||
{0.000, 0.000, 0.833}, | ||
{0.000, 0.000, 1.000}, | ||
{0.000, 0.000, 0.000}, | ||
{0.143, 0.143, 0.143}, | ||
{0.286, 0.286, 0.286}, | ||
{0.429, 0.429, 0.429}, | ||
{0.571, 0.571, 0.571}, | ||
{0.714, 0.714, 0.714}, | ||
{0.857, 0.857, 0.857}, | ||
{0.000, 0.447, 0.741}, | ||
{0.314, 0.717, 0.741}, | ||
{0.500, 0.500, 0.000} | ||
}; | ||
} | ||
#endif | ||
#ifndef YOLOX_CPP__COCO_NAMES_HPP_ | ||
#define YOLOX_CPP__COCO_NAMES_HPP_ | ||
|
||
#include <string> | ||
#include <vector> | ||
|
||
namespace yolox_cpp | ||
{ | ||
static const std::vector<std::string> COCO_CLASSES = { | ||
"person", "bicycle", "car", "motorcycle", "airplane", | ||
"bus", "train", "truck", "boat", "traffic light", | ||
"fire hydrant", "stop sign", "parking meter", "bench", | ||
"bird", "cat", "dog", "horse", "sheep", "cow", | ||
"elephant", "bear", "zebra", "giraffe", "backpack", | ||
"umbrella", "handbag", "tie", "suitcase", "frisbee", | ||
"skis", "snowboard", "sports ball", "kite", "baseball bat", | ||
"baseball glove", "skateboard", "surfboard", | ||
"tennis racket", "bottle", "wine glass", "cup", "fork", | ||
"knife", "spoon", "bowl", "banana", "apple", | ||
"sandwich", "orange", "broccoli", "carrot", "hot dog", | ||
"pizza", "donut", "cake", "chair", "couch", | ||
"potted plant", "bed", "dining table", "toilet", "tv", | ||
"laptop", "mouse", "remote", "keyboard", "cell phone", | ||
"microwave", "oven", "toaster", "sink", "refrigerator", | ||
"book", "clock", "vase", "scissors", "teddy bear", | ||
"hair drier", "toothbrush" | ||
}; | ||
const float color_list[80][3] = { | ||
{0.000, 0.447, 0.741}, | ||
{0.850, 0.325, 0.098}, | ||
{0.929, 0.694, 0.125}, | ||
{0.494, 0.184, 0.556}, | ||
{0.466, 0.674, 0.188}, | ||
{0.301, 0.745, 0.933}, | ||
{0.635, 0.078, 0.184}, | ||
{0.300, 0.300, 0.300}, | ||
{0.600, 0.600, 0.600}, | ||
{1.000, 0.000, 0.000}, | ||
{1.000, 0.500, 0.000}, | ||
{0.749, 0.749, 0.000}, | ||
{0.000, 1.000, 0.000}, | ||
{0.000, 0.000, 1.000}, | ||
{0.667, 0.000, 1.000}, | ||
{0.333, 0.333, 0.000}, | ||
{0.333, 0.667, 0.000}, | ||
{0.333, 1.000, 0.000}, | ||
{0.667, 0.333, 0.000}, | ||
{0.667, 0.667, 0.000}, | ||
{0.667, 1.000, 0.000}, | ||
{1.000, 0.333, 0.000}, | ||
{1.000, 0.667, 0.000}, | ||
{1.000, 1.000, 0.000}, | ||
{0.000, 0.333, 0.500}, | ||
{0.000, 0.667, 0.500}, | ||
{0.000, 1.000, 0.500}, | ||
{0.333, 0.000, 0.500}, | ||
{0.333, 0.333, 0.500}, | ||
{0.333, 0.667, 0.500}, | ||
{0.333, 1.000, 0.500}, | ||
{0.667, 0.000, 0.500}, | ||
{0.667, 0.333, 0.500}, | ||
{0.667, 0.667, 0.500}, | ||
{0.667, 1.000, 0.500}, | ||
{1.000, 0.000, 0.500}, | ||
{1.000, 0.333, 0.500}, | ||
{1.000, 0.667, 0.500}, | ||
{1.000, 1.000, 0.500}, | ||
{0.000, 0.333, 1.000}, | ||
{0.000, 0.667, 1.000}, | ||
{0.000, 1.000, 1.000}, | ||
{0.333, 0.000, 1.000}, | ||
{0.333, 0.333, 1.000}, | ||
{0.333, 0.667, 1.000}, | ||
{0.333, 1.000, 1.000}, | ||
{0.667, 0.000, 1.000}, | ||
{0.667, 0.333, 1.000}, | ||
{0.667, 0.667, 1.000}, | ||
{0.667, 1.000, 1.000}, | ||
{1.000, 0.000, 1.000}, | ||
{1.000, 0.333, 1.000}, | ||
{1.000, 0.667, 1.000}, | ||
{0.333, 0.000, 0.000}, | ||
{0.500, 0.000, 0.000}, | ||
{0.667, 0.000, 0.000}, | ||
{0.833, 0.000, 0.000}, | ||
{1.000, 0.000, 0.000}, | ||
{0.000, 0.167, 0.000}, | ||
{0.000, 0.333, 0.000}, | ||
{0.000, 0.500, 0.000}, | ||
{0.000, 0.667, 0.000}, | ||
{0.000, 0.833, 0.000}, | ||
{0.000, 1.000, 0.000}, | ||
{0.000, 0.000, 0.167}, | ||
{0.000, 0.000, 0.333}, | ||
{0.000, 0.000, 0.500}, | ||
{0.000, 0.000, 0.667}, | ||
{0.000, 0.000, 0.833}, | ||
{0.000, 0.000, 1.000}, | ||
{0.000, 0.000, 0.000}, | ||
{0.143, 0.143, 0.143}, | ||
{0.286, 0.286, 0.286}, | ||
{0.429, 0.429, 0.429}, | ||
{0.571, 0.571, 0.571}, | ||
{0.714, 0.714, 0.714}, | ||
{0.857, 0.857, 0.857}, | ||
{0.000, 0.447, 0.741}, | ||
{0.314, 0.717, 0.741}, | ||
{0.500, 0.500, 0.000} | ||
}; | ||
|
||
} // namespace yolox_cpp | ||
|
||
#endif // YOLOX_CPP__COCO_NAMES_HPP_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,23 @@ | ||
#ifndef _YOLOX_CPP_CONFIG_H_ | ||
#define _YOLOX_CPP_CONFIG_H_ | ||
// Copyright 2024 Ar-Ray-code | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
#ifndef YOLOX_CPP__CONFIG_H_IN_ | ||
#define YOLOX_CPP__CONFIG_H_IN_ | ||
|
||
#cmakedefine ENABLE_OPENVINO | ||
#cmakedefine ENABLE_TENSORRT | ||
#cmakedefine ENABLE_ONNXRUNTIME | ||
#cmakedefine ENABLE_TFLITE | ||
|
||
#endif // _YOLOX_CPP_CONFIG_H_ | ||
#endif // YOLOX_CPP__CONFIG_H_IN_ |
Oops, something went wrong.