root@unbutu:/workspace/build# make -j
[ 4%] Building CXX object easy_deploy_tool/deploy_utils/common_utils/CMakeFiles/common_utils.dir/src/log.cpp.o
[ 8%] Linking CXX shared library libcommon_utils.so
[ 8%] Built target common_utils
[ 16%] Building CXX object easy_deploy_tool/deploy_core/CMakeFiles/deploy_core.dir/src/base_detection.cpp.o
[ 16%] Building CXX object easy_deploy_tool/deploy_core/CMakeFiles/deploy_core.dir/src/base_infer_core.cpp.o
[ 20%] Building CXX object easy_deploy_tool/deploy_core/CMakeFiles/deploy_core.dir/src/base_sam.cpp.o
[ 25%] Building CXX object easy_deploy_tool/deploy_core/CMakeFiles/deploy_core.dir/src/base_mono_stereo.cpp.o
[ 29%] Building CXX object easy_deploy_tool/deploy_core/CMakeFiles/deploy_core.dir/src/base_stereo.cpp.o
[ 33%] Linking CXX shared library libdeploy_core.so
[ 33%] Built target deploy_core
[ 41%] Building CXX object easy_deploy_tool/deploy_utils/test_utils/CMakeFiles/test_utils.dir/src/detection_2d_test_utils.cpp.o
[ 41%] Building CXX object easy_deploy_tool/deploy_utils/image_processing_utils/CMakeFiles/image_processing_utils.dir/src/detection_2d_preprocess_cpu.cpp.o
[ 50%] Building CXX object easy_deploy_tool/inference_core/trt_core/CMakeFiles/trt_core.dir/src/trt_core.cpp.o
[ 50%] Building CXX object sam2/CMakeFiles/sam2.dir/src/sam2.cpp.o
[ 54%] Building CXX object easy_deploy_tool/inference_core/trt_core/CMakeFiles/trt_core.dir/src/trt_core_factory.cpp.o
[ 58%] Building CXX object sam2/CMakeFiles/sam2.dir/src/sam2_track.cpp.o
[ 62%] Building CXX object easy_deploy_tool/deploy_utils/image_processing_utils/CMakeFiles/image_processing_utils.dir/src/detection_2d_postprocess_cpu.cpp.o
[ 70%] Building CXX object easy_deploy_tool/deploy_utils/test_utils/CMakeFiles/test_utils.dir/src/sam_test_utils.cpp.o
[ 70%] Building CXX object easy_deploy_tool/deploy_utils/image_processing_utils/CMakeFiles/image_processing_utils.dir/src/detection_2d_preprocess_cuda.cpp.o
[ 75%] Building CUDA object easy_deploy_tool/deploy_utils/image_processing_utils/CMakeFiles/image_processing_utils.dir/src/detection_2d_cuda_preprocess.cu.o
[ 79%] Linking CXX shared library libtrt_core.so
In file included from /workspace/sam2/src/sam2_def.hpp:3,
from /workspace/sam2/src/sam2.cpp:1:
/workspace/sam2/include/sam2/sam2.hpp:9:48: error: expected class-name before '{' token
9 | class BaseSam2TrackModel : public BaseSamModel {
| ^
/workspace/sam2/include/sam2/sam2.hpp:19:43: error: 'BBox2D' was not declared in this scope; did you mean 'easy_deploy::BBox2D'?
19 | virtual bool Register(const std::vector &boxes,
| ^~~~~~
| easy_deploy::BBox2D
In file included from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline_impl.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_infer_core.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_sam.hpp:3,
from /workspace/sam2/include/sam2/sam2.hpp:3,
from /workspace/sam2/src/sam2_def.hpp:3,
from /workspace/sam2/src/sam2.cpp:1:
/workspace/easy_deploy_tool/deploy_core/include/deploy_core/common.hpp:17:8: note: 'easy_deploy::BBox2D' declared here
17 | struct BBox2D {
| ^~~~~~
In file included from /workspace/sam2/src/sam2_def.hpp:3,
from /workspace/sam2/src/sam2.cpp:1:
/workspace/sam2/include/sam2/sam2.hpp:19:49: error: template argument 1 is invalid
19 | virtual bool Register(const std::vector &boxes,
| ^
/workspace/sam2/include/sam2/sam2.hpp:19:49: error: template argument 2 is invalid
/workspace/sam2/include/sam2/sam2.hpp:26:38: error: 'inference_core' was not declared in this scope
26 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:26:67: error: template argument 1 is invalid
26 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^
/workspace/sam2/include/sam2/sam2.hpp:26:38: error: 'inference_core' was not declared in this scope
26 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:26:67: error: template argument 1 is invalid
26 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^
/workspace/sam2/include/sam2/sam2.hpp:26:38: error: 'inference_core' was not declared in this scope
26 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:26:67: error: template argument 1 is invalid
26 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^
/workspace/sam2/include/sam2/sam2.hpp:26:38: error: 'inference_core' was not declared in this scope
26 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:26:67: error: template argument 1 is invalid
26 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^
/workspace/sam2/include/sam2/sam2.hpp:26:22: error: invalid template-id
26 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~
/workspace/sam2/include/sam2/sam2.hpp:26:38: error: 'inference_core' has not been declared
26 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:26:69: error: 'auto' parameter not permitted in this context
26 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:27:38: error: 'inference_core' was not declared in this scope
27 | std::shared_ptr<inference_core::BaseInferCore> mask_points_decoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:27:67: error: template argument 1 is invalid
27 | std::shared_ptr<inference_core::BaseInferCore> mask_points_decoder_core,
| ^
/workspace/sam2/include/sam2/sam2.hpp:27:38: error: 'inference_core' was not declared in this scope
27 | std::shared_ptr<inference_core::BaseInferCore> mask_points_decoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:27:67: error: template argument 1 is invalid
27 | std::shared_ptr<inference_core::BaseInferCore> mask_points_decoder_core,
| ^
/workspace/sam2/include/sam2/sam2.hpp:27:38: error: 'inference_core' was not declared in this scope
27 | std::shared_ptr<inference_core::BaseInferCore> mask_points_decoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:27:67: error: template argument 1 is invalid
27 | std::shared_ptr<inference_core::BaseInferCore> mask_points_decoder_core,
| ^
[ 79%] Built target trt_core
/workspace/sam2/include/sam2/sam2.hpp:27:38: error: 'inference_core' was not declared in this scope
27 | std::shared_ptr<inference_core::BaseInferCore> mask_points_decoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:27:67: error: template argument 1 is invalid
27 | std::shared_ptr<inference_core::BaseInferCore> mask_points_decoder_core,
| ^
/workspace/sam2/include/sam2/sam2.hpp:27:22: error: invalid template-id
27 | std::shared_ptr<inference_core::BaseInferCore> mask_points_decoder_core,
| ^~~
/workspace/sam2/include/sam2/sam2.hpp:27:38: error: 'inference_core' has not been declared
27 | std::shared_ptr<inference_core::BaseInferCore> mask_points_decoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:27:69: error: 'auto' parameter not permitted in this context
27 | std::shared_ptr<inference_core::BaseInferCore> mask_points_decoder_core,
| ^~~~~~~~~~~~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:28:38: error: 'inference_core' was not declared in this scope
28 | std::shared_ptr<inference_core::BaseInferCore> mask_boxes_decoder_core)
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:28:67: error: template argument 1 is invalid
28 | std::shared_ptr<inference_core::BaseInferCore> mask_boxes_decoder_core)
| ^
/workspace/sam2/include/sam2/sam2.hpp:28:38: error: 'inference_core' was not declared in this scope
28 | std::shared_ptr<inference_core::BaseInferCore> mask_boxes_decoder_core)
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:28:67: error: template argument 1 is invalid
28 | std::shared_ptr<inference_core::BaseInferCore> mask_boxes_decoder_core)
| ^
/workspace/sam2/include/sam2/sam2.hpp:28:38: error: 'inference_core' was not declared in this scope
28 | std::shared_ptr<inference_core::BaseInferCore> mask_boxes_decoder_core)
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:28:67: error: template argument 1 is invalid
28 | std::shared_ptr<inference_core::BaseInferCore> mask_boxes_decoder_core)
| ^
/workspace/sam2/include/sam2/sam2.hpp:28:38: error: 'inference_core' was not declared in this scope
28 | std::shared_ptr<inference_core::BaseInferCore> mask_boxes_decoder_core)
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:28:67: error: template argument 1 is invalid
28 | std::shared_ptr<inference_core::BaseInferCore> mask_boxes_decoder_core)
| ^
/workspace/sam2/include/sam2/sam2.hpp:28:22: error: invalid template-id
28 | std::shared_ptr<inference_core::BaseInferCore> mask_boxes_decoder_core)
| ^~~
/workspace/sam2/include/sam2/sam2.hpp:28:38: error: 'inference_core' has not been declared
28 | std::shared_ptr<inference_core::BaseInferCore> mask_boxes_decoder_core)
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:28:69: error: 'auto' parameter not permitted in this context
28 | std::shared_ptr<inference_core::BaseInferCore> mask_boxes_decoder_core)
| ^~~~~~~~~~~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp: In constructor 'sam::BaseSam2TrackModel::BaseSam2TrackModel(const string&)':
/workspace/sam2/include/sam2/sam2.hpp:29:9: error: class 'sam::BaseSam2TrackModel' does not have any field named 'BaseSamModel'
29 | : BaseSamModel(
| ^~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:30:25: error: 'image_encoder_core' was not declared in this scope
30 | model_name, image_encoder_core, mask_points_decoder_core, mask_boxes_decoder_core)
| ^~~~~~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:30:45: error: 'mask_points_decoder_core' was not declared in this scope
30 | model_name, image_encoder_core, mask_points_decoder_core, mask_boxes_decoder_core)
| ^~~~~~~~~~~~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:30:71: error: 'mask_boxes_decoder_core' was not declared in this scope
30 | model_name, image_encoder_core, mask_points_decoder_core, mask_boxes_decoder_core)
| ^~~~~~~~~~~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp: At global scope:
/workspace/sam2/include/sam2/sam2.hpp:35:21: error: 'inference_core' was not declared in this scope
35 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:35:50: error: template argument 1 is invalid
35 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^
/workspace/sam2/include/sam2/sam2.hpp:35:21: error: 'inference_core' was not declared in this scope
35 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:35:50: error: template argument 1 is invalid
35 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^
/workspace/sam2/include/sam2/sam2.hpp:35:21: error: 'inference_core' was not declared in this scope
35 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:35:50: error: template argument 1 is invalid
35 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^
/workspace/sam2/include/sam2/sam2.hpp:35:21: error: 'inference_core' was not declared in this scope
35 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:35:50: error: template argument 1 is invalid
35 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^
/workspace/sam2/include/sam2/sam2.hpp:35:5: error: invalid template-id
35 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~
/workspace/sam2/include/sam2/sam2.hpp:35:21: error: 'inference_core' was not declared in this scope
35 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:35:57: error: missing template arguments before 'image_encoder_core'
35 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:36:21: error: 'inference_core' was not declared in this scope
36 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:36:50: error: template argument 1 is invalid
36 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core,
| ^
/workspace/sam2/include/sam2/sam2.hpp:37:21: error: 'inference_core' was not declared in this scope
37 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:37:50: error: template argument 1 is invalid
37 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core,
| ^
/workspace/sam2/include/sam2/sam2.hpp:38:21: error: 'inference_core' was not declared in this scope
38 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:38:50: error: template argument 1 is invalid
38 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core,
| ^
/workspace/sam2/include/sam2/sam2.hpp:39:21: error: 'detection_2d' was not declared in this scope
39 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block,
| ^~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:39:55: error: template argument 1 is invalid
39 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block,
| ^
/workspace/sam2/include/sam2/sam2.hpp:40:5: error: expected primary-expression before 'const'
40 | const std::vectorstd::string &image_encoder_blob_names = {"image", "high_res_feat0",
| ^~~~~
/workspace/sam2/include/sam2/sam2.hpp:43:5: error: expected primary-expression before 'const'
43 | const std::vectorstd::string &image_dec_blob_names = {"image_embed", "high_res_feats_0",
| ^~~~~
/workspace/sam2/include/sam2/sam2.hpp:47:5: error: expected primary-expression before 'const'
47 | const std::vectorstd::string &memory_attention_blob_names = {"current_vision_feat",
| ^~~~~
/workspace/sam2/include/sam2/sam2.hpp:52:5: error: expected primary-expression before 'const'
52 | const std::vectorstd::string &memory_encoder_blob_names = {
| ^~~~~
In file included from /workspace/sam2/src/sam2.cpp:1:
/workspace/sam2/src/sam2_def.hpp:9:61: error: expected class-name before '{' token
9 | struct Sam2TrackPipelinePackage : public SamPipelinePackage {
| ^
/workspace/sam2/src/sam2_def.hpp:10:19: error: 'inference_core' was not declared in this scope
10 | std::shared_ptr<inference_core::BlobsTensor> memory_attention_blobs_buffer;
| ^~~~~~~~~~~~~~
In file included from /workspace/sam2/src/sam2_def.hpp:3,
from /workspace/sam2/src/sam2_track.cpp:1:
/workspace/sam2/include/sam2/sam2.hpp:9:48: error: expected class-name before '{' token
9 | class BaseSam2TrackModel : public BaseSamModel {
| ^
/workspace/sam2/src/sam2_def.hpp:10:46: error: template argument 1 is invalid
10 | std::shared_ptr<inference_core::BlobsTensor> memory_attention_blobs_buffer;
| ^
/workspace/sam2/include/sam2/sam2.hpp:19:43: error: 'BBox2D' was not declared in this scope; did you mean 'easy_deploy::BBox2D'?
19 | virtual bool Register(const std::vector &boxes,
| ^~~~~~
| easy_deploy::BBox2D
In file included from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline_impl.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_infer_core.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_sam.hpp:3,
from /workspace/sam2/include/sam2/sam2.hpp:3,
from /workspace/sam2/src/sam2_def.hpp:3,
from /workspace/sam2/src/sam2_track.cpp:1:
/workspace/easy_deploy_tool/deploy_core/include/deploy_core/common.hpp:17:8: note: 'easy_deploy::BBox2D' declared here
17 | struct BBox2D {
| ^~~~~~
In file included from /workspace/sam2/src/sam2_def.hpp:3,
from /workspace/sam2/src/sam2_track.cpp:1:
/workspace/sam2/include/sam2/sam2.hpp:19:49: error: template argument 1 is invalid
19 | virtual bool Register(const std::vector &boxes,
| ^
/workspace/sam2/include/sam2/sam2.hpp:19:49: error: template argument 2 is invalid
/workspace/sam2/src/sam2_def.hpp:11:19: error: 'inference_core' was not declared in this scope
11 | std::shared_ptr<inference_core::BlobsTensor> memory_encoder_blobs_buffer;
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:11:46: error: template argument 1 is invalid
11 | std::shared_ptr<inference_core::BlobsTensor> memory_encoder_blobs_buffer;
| ^
/workspace/sam2/include/sam2/sam2.hpp:26:38: error: 'inference_core' was not declared in this scope
26 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:26:67: error: template argument 1 is invalid
26 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^
/workspace/sam2/src/sam2_def.hpp:19:24: error: 'inference_core' was not declared in this scope
19 | Sam2(std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:19:53: error: template argument 1 is invalid
19 | Sam2(std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^
/workspace/sam2/include/sam2/sam2.hpp:26:38: error: 'inference_core' was not declared in this scope
26 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:26:67: error: template argument 1 is invalid
26 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^
/workspace/sam2/src/sam2_def.hpp:20:24: error: 'inference_core' was not declared in this scope
20 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:20:53: error: template argument 1 is invalid
20 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core,
| ^
/workspace/sam2/src/sam2_def.hpp:20:24: error: 'inference_core' was not declared in this scope
20 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:26:38: error: 'inference_core' was not declared in this scope
26 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:26:67: error: template argument 1 is invalid
26 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^
/workspace/sam2/src/sam2_def.hpp:20:53: error: template argument 1 is invalid
20 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core,
| ^
/workspace/sam2/src/sam2_def.hpp:20:24: error: 'inference_core' was not declared in this scope
20 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:20:53: error: template argument 1 is invalid
20 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core,
| ^
/workspace/sam2/include/sam2/sam2.hpp:26:38: error: 'inference_core' was not declared in this scope
26 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:26:67: error: template argument 1 is invalid
26 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^
/workspace/sam2/include/sam2/sam2.hpp:26:22: error: invalid template-id
26 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~
/workspace/sam2/include/sam2/sam2.hpp:26:38: error: 'inference_core' has not been declared
26 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:26:69: error: 'auto' parameter not permitted in this context
26 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:20:24: error: 'inference_core' was not declared in this scope
20 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:20:53: error: template argument 1 is invalid
20 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core,
| ^
/workspace/sam2/src/sam2_def.hpp:20:8: error: invalid template-id
20 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core,
| ^~~
/workspace/sam2/src/sam2_def.hpp:20:24: error: 'inference_core' has not been declared
20 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:20:60: error: 'auto' parameter not permitted in this context
20 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core,
| ^~~~~~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:27:38: error: 'inference_core' was not declared in this scope
27 | std::shared_ptr<inference_core::BaseInferCore> mask_points_decoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:27:67: error: template argument 1 is invalid
27 | std::shared_ptr<inference_core::BaseInferCore> mask_points_decoder_core,
| ^
/workspace/sam2/src/sam2_def.hpp:21:24: error: 'inference_core' was not declared in this scope
21 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:21:53: error: template argument 1 is invalid
21 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core,
| ^
/workspace/sam2/include/sam2/sam2.hpp:27:38: error: 'inference_core' was not declared in this scope
27 | std::shared_ptr<inference_core::BaseInferCore> mask_points_decoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:27:67: error: template argument 1 is invalid
27 | std::shared_ptr<inference_core::BaseInferCore> mask_points_decoder_core,
| ^
/workspace/sam2/src/sam2_def.hpp:21:24: error: 'inference_core' was not declared in this scope
21 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:21:53: error: template argument 1 is invalid
21 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core,
| ^
/workspace/sam2/include/sam2/sam2.hpp:27:38: error: 'inference_core' was not declared in this scope
27 | std::shared_ptr<inference_core::BaseInferCore> mask_points_decoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:27:67: error: template argument 1 is invalid
27 | std::shared_ptr<inference_core::BaseInferCore> mask_points_decoder_core,
| ^
/workspace/sam2/src/sam2_def.hpp:21:24: error: 'inference_core' was not declared in this scope
21 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:21:53: error: template argument 1 is invalid
21 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core,
| ^
/workspace/sam2/include/sam2/sam2.hpp:27:38: error: 'inference_core' was not declared in this scope
27 | std::shared_ptr<inference_core::BaseInferCore> mask_points_decoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:27:67: error: template argument 1 is invalid
27 | std::shared_ptr<inference_core::BaseInferCore> mask_points_decoder_core,
| ^
/workspace/sam2/include/sam2/sam2.hpp:27:22: error: invalid template-id
27 | std::shared_ptr<inference_core::BaseInferCore> mask_points_decoder_core,
| ^~~
/workspace/sam2/include/sam2/sam2.hpp:27:38: error: 'inference_core' has not been declared
27 | std::shared_ptr<inference_core::BaseInferCore> mask_points_decoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:27:69: error: 'auto' parameter not permitted in this context
27 | std::shared_ptr<inference_core::BaseInferCore> mask_points_decoder_core,
| ^~~~~~~~~~~~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:21:24: error: 'inference_core' was not declared in this scope
21 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:21:53: error: template argument 1 is invalid
21 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core,
| ^
/workspace/sam2/src/sam2_def.hpp:21:8: error: invalid template-id
21 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core,
| ^~~
/workspace/sam2/src/sam2_def.hpp:21:24: error: 'inference_core' has not been declared
21 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:21:60: error: 'auto' parameter not permitted in this context
21 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core,
| ^~~~~~~~~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:28:38: error: 'inference_core' was not declared in this scope
28 | std::shared_ptr<inference_core::BaseInferCore> mask_boxes_decoder_core)
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:28:67: error: template argument 1 is invalid
28 | std::shared_ptr<inference_core::BaseInferCore> mask_boxes_decoder_core)
| ^
/workspace/sam2/src/sam2_def.hpp:22:24: error: 'inference_core' was not declared in this scope
22 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:22:53: error: template argument 1 is invalid
22 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core,
| ^
/workspace/sam2/include/sam2/sam2.hpp:28:38: error: 'inference_core' was not declared in this scope
28 | std::shared_ptr<inference_core::BaseInferCore> mask_boxes_decoder_core)
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:28:67: error: template argument 1 is invalid
28 | std::shared_ptr<inference_core::BaseInferCore> mask_boxes_decoder_core)
| ^
/workspace/sam2/src/sam2_def.hpp:22:24: error: 'inference_core' was not declared in this scope
22 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:22:53: error: template argument 1 is invalid
22 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core,
| ^
/workspace/sam2/include/sam2/sam2.hpp:28:38: error: 'inference_core' was not declared in this scope
28 | std::shared_ptr<inference_core::BaseInferCore> mask_boxes_decoder_core)
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:28:67: error: template argument 1 is invalid
28 | std::shared_ptr<inference_core::BaseInferCore> mask_boxes_decoder_core)
| ^
/workspace/sam2/src/sam2_def.hpp:22:24: error: 'inference_core' was not declared in this scope
22 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:22:53: error: template argument 1 is invalid
22 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core,
| ^
/workspace/sam2/include/sam2/sam2.hpp:28:38: error: 'inference_core' was not declared in this scope
28 | std::shared_ptr<inference_core::BaseInferCore> mask_boxes_decoder_core)
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:28:67: error: template argument 1 is invalid
28 | std::shared_ptr<inference_core::BaseInferCore> mask_boxes_decoder_core)
| ^
/workspace/sam2/include/sam2/sam2.hpp:28:22: error: invalid template-id
28 | std::shared_ptr<inference_core::BaseInferCore> mask_boxes_decoder_core)
| ^~~
/workspace/sam2/include/sam2/sam2.hpp:28:38: error: 'inference_core' has not been declared
28 | std::shared_ptr<inference_core::BaseInferCore> mask_boxes_decoder_core)
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:28:69: error: 'auto' parameter not permitted in this context
28 | std::shared_ptr<inference_core::BaseInferCore> mask_boxes_decoder_core)
| ^~~~~~~~~~~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp: In constructor 'sam::BaseSam2TrackModel::BaseSam2TrackModel(const string&)':
/workspace/sam2/include/sam2/sam2.hpp:29:9: error: class 'sam::BaseSam2TrackModel' does not have any field named 'BaseSamModel'
29 | : BaseSamModel(
| ^~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:22:24: error: 'inference_core' was not declared in this scope
22 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:22:53: error: template argument 1 is invalid
22 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core,
| ^
/workspace/sam2/src/sam2_def.hpp:22:8: error: invalid template-id
22 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core,
| ^~~
/workspace/sam2/src/sam2_def.hpp:22:24: error: 'inference_core' has not been declared
22 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:22:60: error: 'auto' parameter not permitted in this context
22 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core,
| ^~~~~~~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:30:25: error: 'image_encoder_core' was not declared in this scope
30 | model_name, image_encoder_core, mask_points_decoder_core, mask_boxes_decoder_core)
| ^~~~~~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:23:24: error: 'detection_2d' was not declared in this scope
23 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block,
| ^~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:23:58: error: template argument 1 is invalid
23 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block,
| ^
/workspace/sam2/include/sam2/sam2.hpp:30:45: error: 'mask_points_decoder_core' was not declared in this scope
30 | model_name, image_encoder_core, mask_points_decoder_core, mask_boxes_decoder_core)
| ^~~~~~~~~~~~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:23:24: error: 'detection_2d' was not declared in this scope
23 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block,
| ^~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:23:58: error: template argument 1 is invalid
23 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block,
| ^
/workspace/sam2/src/sam2_def.hpp:23:24: error: 'detection_2d' was not declared in this scope
23 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block,
| ^~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:23:58: error: template argument 1 is invalid
23 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block,
| ^
/workspace/sam2/include/sam2/sam2.hpp:30:71: error: 'mask_boxes_decoder_core' was not declared in this scope
30 | model_name, image_encoder_core, mask_points_decoder_core, mask_boxes_decoder_core)
| ^~~~~~~~~~~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:23:24: error: 'detection_2d' was not declared in this scope
23 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block,
| ^~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:23:58: error: template argument 1 is invalid
23 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block,
| ^
/workspace/sam2/src/sam2_def.hpp:23:8: error: invalid template-id
23 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block,
| ^~~
/workspace/sam2/src/sam2_def.hpp:23:24: error: 'detection_2d' has not been declared
23 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block,
| ^~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:23:60: error: 'auto' parameter not permitted in this context
23 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block,
| ^~~~~~~~~~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:41:35: error: 'BBox2D' was not declared in this scope; did you mean 'easy_deploy::BBox2D'?
41 | bool Register(const std::vector &boxes,
| ^~~~~~
| easy_deploy::BBox2D
In file included from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline_impl.hpp:9,
/workspace/sam2/src/sam2_def.hpp:41:35: error: 'BBox2D' was not declared in this scope; did you mean 'easy_deploy::BBox2D'?
41 | bool Register(const std::vector<BBox2D> &boxes,
| ^~~~~~
| easy_deploy::BBox2D
In file included from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline_impl.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_infer_core.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_sam.hpp:3,
from /workspace/sam2/include/sam2/sam2.hpp:3,
from /workspace/sam2/src/sam2_def.hpp:3,
from /workspace/sam2/src/sam2.cpp:1:
/workspace/easy_deploy_tool/deploy_core/include/deploy_core/common.hpp:17:8: note: 'easy_deploy::BBox2D' declared here
17 | struct BBox2D {
| ^~~~~~
In file included from /workspace/sam2/src/sam2.cpp:1:
/workspace/sam2/src/sam2_def.hpp:41:41: error: template argument 1 is invalid
41 | bool Register(const std::vector &boxes,
| ^
/workspace/sam2/src/sam2_def.hpp:41:41: error: template argument 2 is invalid
/workspace/sam2/src/sam2_def.hpp:48:24: error: 'ParsingType' has not been declared
48 | bool ImagePreProcess(ParsingType pipeline_unit) override;
| ^~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:50:28: error: 'ParsingType' has not been declared
50 | bool PromptBoxPreProcess(ParsingType pipeline_unit) override;
| ^~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:52:30: error: 'ParsingType' has not been declared
52 | bool PromptPointPreProcess(ParsingType pipeline_unit) override;
| ^~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:54:24: error: 'ParsingType' has not been declared
54 | bool MaskPostProcess(ParsingType pipeline_unit) override;
| ^~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:57:34: error: 'ParsingType' has not been declared
57 | bool RunMemoryEncoderAndRecord(ParsingType pipeline_unit);
| ^~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:59:34: error: 'ParsingType' has not been declared
59 | bool MemoryAttentionPreProcess(ParsingType pipeline_unit);
| ^~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:61:39: error: 'ParsingType' has not been declared
61 | bool PromptPointPreProcessTrackMode(ParsingType pipeline_unit);
| ^~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp: At global scope:
/workspace/sam2/include/sam2/sam2.hpp:35:21: error: 'inference_core' was not declared in this scope
35 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:35:50: error: template argument 1 is invalid
35 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^
/workspace/sam2/include/sam2/sam2.hpp:35:21: error: 'inference_core' was not declared in this scope
35 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:35:50: error: template argument 1 is invalid
35 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^
/workspace/sam2/include/sam2/sam2.hpp:35:21: error: 'inference_core' was not declared in this scope
35 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:35:50: error: template argument 1 is invalid
35 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^
/workspace/sam2/src/sam2_def.hpp:79:19: error: 'inference_core' was not declared in this scope
79 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core_;
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:79:48: error: template argument 1 is invalid
79 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core_;
| ^
/workspace/sam2/include/sam2/sam2.hpp:35:21: error: 'inference_core' was not declared in this scope
35 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:80:19: error: 'inference_core' was not declared in this scope
80 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core_;
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:80:48: error: template argument 1 is invalid
80 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core_;
| ^
/workspace/sam2/include/sam2/sam2.hpp:35:50: error: template argument 1 is invalid
35 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^
/workspace/sam2/include/sam2/sam2.hpp:35:5: error: invalid template-id
35 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~
/workspace/sam2/include/sam2/sam2.hpp:35:21: error: 'inference_core' was not declared in this scope
35 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:35:57: error: missing template arguments before 'image_encoder_core'
35 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:81:19: error: 'inference_core' was not declared in this scope
81 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core_;
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:81:48: error: template argument 1 is invalid
81 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core_;
| ^
/workspace/sam2/src/sam2_def.hpp:82:19: error: 'inference_core' was not declared in this scope
82 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core_;
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:36:21: error: 'inference_core' was not declared in this scope
36 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:36:50: error: template argument 1 is invalid
36 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core,
| ^
/workspace/sam2/src/sam2_def.hpp:82:48: error: template argument 1 is invalid
82 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core_;
| ^
/workspace/sam2/include/sam2/sam2.hpp:37:21: error: 'inference_core' was not declared in this scope
37 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:37:50: error: template argument 1 is invalid
37 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core,
| ^
/workspace/sam2/src/sam2_def.hpp:83:19: error: 'detection_2d' was not declared in this scope
83 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block_;
| ^~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:83:53: error: template argument 1 is invalid
83 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block_;
| ^
/workspace/sam2/src/sam2_def.hpp:48:8: error: 'bool sam::Sam2::ImagePreProcess(int)' marked 'override', but does not override
48 | bool ImagePreProcess(ParsingType pipeline_unit) override;
| ^~~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:50:8: error: 'bool sam::Sam2::PromptBoxPreProcess(int)' marked 'override', but does not override
50 | bool PromptBoxPreProcess(ParsingType pipeline_unit) override;
| ^~~~~~~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:52:8: error: 'bool sam::Sam2::PromptPointPreProcess(int)' marked 'override', but does not override
52 | bool PromptPointPreProcess(ParsingType pipeline_unit) override;
| ^~~~~~~~~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:54:8: error: 'bool sam::Sam2::MaskPostProcess(int)' marked 'override', but does not override
54 | bool MaskPostProcess(ParsingType pipeline_unit) override;
| ^~~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:38:21: error: 'inference_core' was not declared in this scope
38 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:38:50: error: template argument 1 is invalid
38 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core,
| ^
/workspace/sam2/src/sam2.cpp:14:56: error: 'inference_core' was not declared in this scope
14 | const std::shared_ptr<inference_core::BaseInferCore> &infer_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2.cpp:14:85: error: template argument 1 is invalid
14 | const std::shared_ptr<inference_core::BaseInferCore> &infer_core,
| ^
/workspace/sam2/include/sam2/sam2.hpp:39:21: error: 'detection_2d' was not declared in this scope
39 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block,
| ^~~~~~~~~~~~
/workspace/sam2/include/sam2/sam2.hpp:39:55: error: template argument 1 is invalid
39 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block,
| ^
/workspace/sam2/include/sam2/sam2.hpp:40:5: error: expected primary-expression before 'const'
40 | const std::vectorstd::string &image_encoder_blob_names = {"image", "high_res_feat0",
| ^~~~~
/workspace/sam2/include/sam2/sam2.hpp:43:5: error: expected primary-expression before 'const'
43 | const std::vectorstd::string &image_dec_blob_names = {"image_embed", "high_res_feats_0",
| ^~~~~
/workspace/sam2/include/sam2/sam2.hpp:47:5: error: expected primary-expression before 'const'
47 | const std::vectorstd::string &memory_attention_blob_names = {"current_vision_feat",
| ^~~~~
/workspace/sam2/include/sam2/sam2.hpp:52:5: error: expected primary-expression before 'const'
52 | const std::vectorstd::string &memory_encoder_blob_names = {
| ^~~~~
In file included from /workspace/sam2/src/sam2_track.cpp:1:
/workspace/sam2/src/sam2_def.hpp:9:61: error: expected class-name before '{' token
9 | struct Sam2TrackPipelinePackage : public SamPipelinePackage {
| ^
/workspace/sam2/src/sam2.cpp:14:56: error: 'inference_core' was not declared in this scope
14 | const std::shared_ptr<inference_core::BaseInferCore> &infer_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2.cpp:14:85: error: template argument 1 is invalid
14 | const std::shared_ptr<inference_core::BaseInferCore> &infer_core,
| ^
/workspace/sam2/src/sam2.cpp:14:56: error: 'inference_core' was not declared in this scope
14 | const std::shared_ptr<inference_core::BaseInferCore> &infer_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2.cpp:14:85: error: template argument 1 is invalid
14 | const std::shared_ptr<inference_core::BaseInferCore> &infer_core,
| ^
/workspace/sam2/src/sam2_def.hpp:10:19: error: 'inference_core' was not declared in this scope
10 | std::shared_ptr<inference_core::BlobsTensor> memory_attention_blobs_buffer;
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:10:46: error: template argument 1 is invalid
10 | std::shared_ptr<inference_core::BlobsTensor> memory_attention_blobs_buffer;
| ^
/workspace/sam2/src/sam2.cpp:14:56: error: 'inference_core' was not declared in this scope
14 | const std::shared_ptr<inference_core::BaseInferCore> &infer_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2.cpp:14:85: error: template argument 1 is invalid
14 | const std::shared_ptr<inference_core::BaseInferCore> &infer_core,
| ^
/workspace/sam2/src/sam2.cpp:14:40: error: invalid template-id
14 | const std::shared_ptr<inference_core::BaseInferCore> &infer_core,
| ^~~
/workspace/sam2/src/sam2.cpp:14:56: error: 'inference_core' has not been declared
14 | const std::shared_ptr<inference_core::BaseInferCore> &infer_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2.cpp:14:34: error: template placeholder type 'const shared_ptr<...auto...>' must be followed by a simple declarator-id
14 | const std::shared_ptr<inference_core::BaseInferCore> &infer_core,
| ^~~~~
In file included from /usr/include/c++/9/bits/shared_ptr.h:52,
from /usr/include/c++/9/memory:81,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_infer_core.hpp:3,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_sam.hpp:3,
from /workspace/sam2/include/sam2/sam2.hpp:3,
from /workspace/sam2/src/sam2_def.hpp:3,
from /workspace/sam2/src/sam2.cpp:1:
/usr/include/c++/9/bits/shared_ptr_base.h:348:11: note: 'template class std::shared_ptr' declared here
348 | class shared_ptr;
| ^~~~~~~~~~
/workspace/sam2/src/sam2.cpp:14:98: error: expected ')' before ',' token
14 | const std::shared_ptr<inference_core::BaseInferCore> &infer_core,
| ^
| )
/workspace/sam2/src/sam2.cpp:13:33: note: to match this '('
13 | static void CheckBlobNameMatched(const std::string &infer_core_name,
| ^
/workspace/sam2/src/sam2.cpp:15:34: error: expected unqualified-id before 'const'
15 | const std::vectorstd::string &blob_names)
| ^~~~~
/workspace/sam2/src/sam2_def.hpp:11:19: error: 'inference_core' was not declared in this scope
11 | std::shared_ptr<inference_core::BlobsTensor> memory_encoder_blobs_buffer;
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:11:46: error: template argument 1 is invalid
11 | std::shared_ptr<inference_core::BlobsTensor> memory_encoder_blobs_buffer;
| ^
/workspace/sam2/src/sam2.cpp:40:28: error: 'inference_core' was not declared in this scope
40 | Sam2::Sam2(std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2.cpp:40:57: error: template argument 1 is invalid
40 | Sam2::Sam2(std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^
/workspace/sam2/src/sam2_def.hpp:19:24: error: 'inference_core' was not declared in this scope
19 | Sam2(std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:19:53: error: template argument 1 is invalid
19 | Sam2(std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^
/workspace/sam2/src/sam2_def.hpp:20:24: error: 'inference_core' was not declared in this scope
20 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:20:53: error: template argument 1 is invalid
20 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core,
| ^
/workspace/sam2/src/sam2.cpp:40:28: error: 'inference_core' was not declared in this scope
40 | Sam2::Sam2(std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2.cpp:40:57: error: template argument 1 is invalid
40 | Sam2::Sam2(std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^
/workspace/sam2/src/sam2_def.hpp:20:24: error: 'inference_core' was not declared in this scope
20 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:20:53: error: template argument 1 is invalid
20 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core,
| ^
/workspace/sam2/src/sam2.cpp:40:28: error: 'inference_core' was not declared in this scope
40 | Sam2::Sam2(std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2.cpp:40:57: error: template argument 1 is invalid
40 | Sam2::Sam2(std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^
/workspace/sam2/src/sam2_def.hpp:20:24: error: 'inference_core' was not declared in this scope
20 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:20:53: error: template argument 1 is invalid
20 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core,
| ^
/workspace/sam2/src/sam2_def.hpp:20:24: error: 'inference_core' was not declared in this scope
20 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:20:53: error: template argument 1 is invalid
20 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core,
| ^
/workspace/sam2/src/sam2_def.hpp:20:8: error: invalid template-id
20 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core,
| ^~~
/workspace/sam2/src/sam2_def.hpp:20:24: error: 'inference_core' has not been declared
20 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2.cpp:40:28: error: 'inference_core' was not declared in this scope
40 | Sam2::Sam2(std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2.cpp:40:57: error: template argument 1 is invalid
40 | Sam2::Sam2(std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^
/workspace/sam2/src/sam2.cpp:40:12: error: invalid template-id
40 | Sam2::Sam2(std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~
/workspace/sam2/src/sam2_def.hpp:20:60: error: 'auto' parameter not permitted in this context
20 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core,
| ^~~~~~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:21:24: error: 'inference_core' was not declared in this scope
21 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:21:53: error: template argument 1 is invalid
21 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core,
| ^
/workspace/sam2/src/sam2_def.hpp:21:24: error: 'inference_core' was not declared in this scope
21 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:21:53: error: template argument 1 is invalid
21 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core,
| ^
/workspace/sam2/src/sam2.cpp:40:28: error: 'inference_core' was not declared in this scope
40 | Sam2::Sam2(std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2.cpp:40:11: error: expected constructor, destructor, or type conversion before '(' token
40 | Sam2::Sam2(std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^
/workspace/sam2/src/sam2.cpp:72:6: error: 'bool sam::Sam2::ImagePreProcess' is not a static data member of 'class sam::Sam2'
72 | bool Sam2::ImagePreProcess(ParsingType package)
| ^~~~
/workspace/sam2/src/sam2_def.hpp:21:24: error: 'inference_core' was not declared in this scope
21 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:21:53: error: template argument 1 is invalid
21 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core,
| ^
/workspace/sam2/src/sam2.cpp:72:28: error: 'ParsingType' was not declared in this scope
72 | bool Sam2::ImagePreProcess(ParsingType package)
| ^~~~~~~~~~~
/workspace/sam2/src/sam2.cpp:105:6: error: 'bool sam::Sam2::PromptBoxPreProcess' is not a static data member of 'class sam::Sam2'
105 | bool Sam2::PromptBoxPreProcess(ParsingType package)
| ^~~~
/workspace/sam2/src/sam2_def.hpp:21:24: error: 'inference_core' was not declared in this scope
21 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:21:53: error: template argument 1 is invalid
21 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core,
| ^
/workspace/sam2/src/sam2_def.hpp:21:8: error: invalid template-id
21 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core,
| ^~~
/workspace/sam2/src/sam2_def.hpp:21:24: error: 'inference_core' has not been declared
21 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:21:60: error: 'auto' parameter not permitted in this context
21 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core,
| ^~~~~~~~~~~~~~~~~~~~~
/workspace/sam2/src/sam2.cpp:105:32: error: 'ParsingType' was not declared in this scope
105 | bool Sam2::PromptBoxPreProcess(ParsingType package)
| ^~~~~~~~~~~
/workspace/sam2/src/sam2.cpp:132:6: error: 'bool sam::Sam2::PromptPointPreProcess' is not a static data member of 'class sam::Sam2'
132 | bool Sam2::PromptPointPreProcess(ParsingType package)
| ^~~~
/workspace/sam2/src/sam2.cpp:132:34: error: 'ParsingType' was not declared in this scope
132 | bool Sam2::PromptPointPreProcess(ParsingType package)
| ^~~~~~~~~~~
/workspace/sam2/src/sam2.cpp:201:6: error: 'bool sam::Sam2::MaskPostProcess' is not a static data member of 'class sam::Sam2'
201 | bool Sam2::MaskPostProcess(ParsingType package)
| ^~~~
/workspace/sam2/src/sam2_def.hpp:22:24: error: 'inference_core' was not declared in this scope
22 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:22:53: error: template argument 1 is invalid
22 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core,
| ^
/workspace/sam2/src/sam2.cpp:201:28: error: 'ParsingType' was not declared in this scope
201 | bool Sam2::MaskPostProcess(ParsingType package)
| ^~~~~~~~~~~
/workspace/sam2/src/sam2.cpp:237:21: error: 'inference_core' was not declared in this scope
237 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2.cpp:237:50: error: template argument 1 is invalid
237 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^
/workspace/sam2/src/sam2_def.hpp:22:24: error: 'inference_core' was not declared in this scope
22 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:22:53: error: template argument 1 is invalid
22 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core,
| ^
/workspace/sam2/src/sam2.cpp:237:21: error: 'inference_core' was not declared in this scope
237 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2.cpp:237:50: error: template argument 1 is invalid
237 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^
/workspace/sam2/src/sam2_def.hpp:22:24: error: 'inference_core' was not declared in this scope
22 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:22:53: error: template argument 1 is invalid
22 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core,
| ^
/workspace/sam2/src/sam2.cpp:237:21: error: 'inference_core' was not declared in this scope
237 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2.cpp:237:50: error: template argument 1 is invalid
237 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^
/workspace/sam2/src/sam2_def.hpp:22:24: error: 'inference_core' was not declared in this scope
22 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:22:53: error: template argument 1 is invalid
22 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core,
| ^
/workspace/sam2/src/sam2_def.hpp:22:8: error: invalid template-id
22 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core,
| ^~~
/workspace/sam2/src/sam2_def.hpp:22:24: error: 'inference_core' has not been declared
22 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:22:60: error: 'auto' parameter not permitted in this context
22 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core,
| ^~~~~~~~~~~~~~~~~~~
/workspace/sam2/src/sam2.cpp:237:21: error: 'inference_core' was not declared in this scope
237 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2.cpp:237:50: error: template argument 1 is invalid
237 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^
/workspace/sam2/src/sam2.cpp:237:5: error: invalid template-id
237 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~
/workspace/sam2/src/sam2_def.hpp:23:24: error: 'detection_2d' was not declared in this scope
23 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block,
| ^~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:23:58: error: template argument 1 is invalid
23 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block,
| ^
/workspace/sam2/src/sam2_def.hpp:23:24: error: 'detection_2d' was not declared in this scope
23 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block,
| ^~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:23:58: error: template argument 1 is invalid
23 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block,
| ^
/workspace/sam2/src/sam2_def.hpp:23:24: error: 'detection_2d' was not declared in this scope
23 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block,
| ^~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:23:58: error: template argument 1 is invalid
23 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block,
| ^
/workspace/sam2/src/sam2.cpp:237:21: error: 'inference_core' was not declared in this scope
237 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2.cpp:236:37: error: redefinition of 'std::shared_ptrsam::BaseSam2TrackModel sam::CreateSam2Model'
236 | std::shared_ptr CreateSam2Model(
| ^~~~~~~~~~~~~~~
In file included from /workspace/sam2/src/sam2_def.hpp:3,
from /workspace/sam2/src/sam2.cpp:1:
/workspace/sam2/include/sam2/sam2.hpp:34:37: note: 'std::shared_ptrsam::BaseSam2TrackModel sam::CreateSam2Model' previously declared here
34 | std::shared_ptr CreateSam2Model(
| ^~~~~~~~~~~~~~~
/workspace/sam2/src/sam2.cpp:237:57: error: missing template arguments before 'image_encoder_core'
237 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core,
| ^~~~~~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:23:24: error: 'detection_2d' was not declared in this scope
23 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block,
| ^~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:23:58: error: template argument 1 is invalid
23 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block,
| ^
/workspace/sam2/src/sam2.cpp:238:21: error: 'inference_core' was not declared in this scope
238 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2.cpp:238:50: error: template argument 1 is invalid
238 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core,
| ^
/workspace/sam2/src/sam2_def.hpp:23:8: error: invalid template-id
23 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block,
| ^~~
/workspace/sam2/src/sam2_def.hpp:23:24: error: 'detection_2d' has not been declared
23 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block,
| ^~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:23:60: error: 'auto' parameter not permitted in this context
23 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block,
| ^~~~~~~~~~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:41:35: error: 'BBox2D' was not declared in this scope; did you mean 'easy_deploy::BBox2D'?
41 | bool Register(const std::vector &boxes,
| ^~~~~~
| easy_deploy::BBox2D
In file included from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline_impl.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_infer_core.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_sam.hpp:3,
from /workspace/sam2/include/sam2/sam2.hpp:3,
from /workspace/sam2/src/sam2_def.hpp:3,
from /workspace/sam2/src/sam2_track.cpp:1:
/workspace/easy_deploy_tool/deploy_core/include/deploy_core/common.hpp:17:8: note: 'easy_deploy::BBox2D' declared here
17 | struct BBox2D {
| ^~~~~~
In file included from /workspace/sam2/src/sam2_track.cpp:1:
/workspace/sam2/src/sam2_def.hpp:41:41: error: template argument 1 is invalid
41 | bool Register(const std::vector &boxes,
| ^
/workspace/sam2/src/sam2_def.hpp:41:41: error: template argument 2 is invalid
/workspace/sam2/src/sam2_def.hpp:48:24: error: 'ParsingType' has not been declared
48 | bool ImagePreProcess(ParsingType pipeline_unit) override;
| ^~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:50:28: error: 'ParsingType' has not been declared
50 | bool PromptBoxPreProcess(ParsingType pipeline_unit) override;
| ^~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:52:30: error: 'ParsingType' has not been declared
52 | bool PromptPointPreProcess(ParsingType pipeline_unit) override;
| ^~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:54:24: error: 'ParsingType' has not been declared
54 | bool MaskPostProcess(ParsingType pipeline_unit) override;
| ^~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:57:34: error: 'ParsingType' has not been declared
57 | bool RunMemoryEncoderAndRecord(ParsingType pipeline_unit);
| ^~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:59:34: error: 'ParsingType' has not been declared
59 | bool MemoryAttentionPreProcess(ParsingType pipeline_unit);
| ^~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:61:39: error: 'ParsingType' has not been declared
61 | bool PromptPointPreProcessTrackMode(ParsingType pipeline_unit);
| ^~~~~~~~~~~
/workspace/sam2/src/sam2.cpp:239:21: error: 'inference_core' was not declared in this scope
239 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2.cpp:239:50: error: template argument 1 is invalid
239 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core,
| ^
/workspace/sam2/src/sam2.cpp:240:21: error: 'inference_core' was not declared in this scope
240 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core,
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2.cpp:240:50: error: template argument 1 is invalid
240 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core,
| ^
/workspace/sam2/src/sam2.cpp:241:21: error: 'detection_2d' was not declared in this scope
241 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block,
| ^~~~~~~~~~~~
/workspace/sam2/src/sam2.cpp:241:55: error: template argument 1 is invalid
241 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block,
| ^
/workspace/sam2/src/sam2.cpp:242:5: error: expected primary-expression before 'const'
242 | const std::vectorstd::string &image_encoder_blob_names,
| ^~~~~
/workspace/sam2/src/sam2.cpp:243:5: error: expected primary-expression before 'const'
243 | const std::vectorstd::string &image_dec_blob_names,
| ^~~~~
/workspace/sam2/src/sam2.cpp:244:5: error: expected primary-expression before 'const'
244 | const std::vectorstd::string &memory_attention_blob_names,
| ^~~~~
/workspace/sam2/src/sam2.cpp:245:5: error: expected primary-expression before 'const'
245 | const std::vectorstd::string &memory_encoder_blob_names)
| ^~~~~
/workspace/sam2/src/sam2_def.hpp:79:19: error: 'inference_core' was not declared in this scope
79 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core_;
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:79:48: error: template argument 1 is invalid
79 | std::shared_ptr<inference_core::BaseInferCore> image_encoder_core_;
| ^
/workspace/sam2/src/sam2_def.hpp:80:19: error: 'inference_core' was not declared in this scope
80 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core_;
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:80:48: error: template argument 1 is invalid
80 | std::shared_ptr<inference_core::BaseInferCore> image_decoder_core_;
| ^
/workspace/sam2/src/sam2_def.hpp:81:19: error: 'inference_core' was not declared in this scope
81 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core_;
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:81:48: error: template argument 1 is invalid
81 | std::shared_ptr<inference_core::BaseInferCore> memory_attention_core_;
| ^
/workspace/sam2/src/sam2_def.hpp:82:19: error: 'inference_core' was not declared in this scope
82 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core_;
| ^~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:82:48: error: template argument 1 is invalid
82 | std::shared_ptr<inference_core::BaseInferCore> memory_encoder_core_;
| ^
/workspace/sam2/src/sam2_def.hpp:83:19: error: 'detection_2d' was not declared in this scope
83 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block_;
| ^~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:83:53: error: template argument 1 is invalid
83 | std::shared_ptr<detection_2d::IDetectionPreProcess> image_preprocess_block_;
| ^
/workspace/sam2/src/sam2_def.hpp:48:8: error: 'bool sam::Sam2::ImagePreProcess(int)' marked 'override', but does not override
48 | bool ImagePreProcess(ParsingType pipeline_unit) override;
| ^~~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:50:8: error: 'bool sam::Sam2::PromptBoxPreProcess(int)' marked 'override', but does not override
50 | bool PromptBoxPreProcess(ParsingType pipeline_unit) override;
| ^~~~~~~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:52:8: error: 'bool sam::Sam2::PromptPointPreProcess(int)' marked 'override', but does not override
52 | bool PromptPointPreProcess(ParsingType pipeline_unit) override;
| ^~~~~~~~~~~~~~~~~~~~~
/workspace/sam2/src/sam2_def.hpp:54:8: error: 'bool sam::Sam2::MaskPostProcess(int)' marked 'override', but does not override
54 | bool MaskPostProcess(ParsingType pipeline_unit) override;
| ^~~~~~~~~~~~~~~
/workspace/sam2/src/sam2_track.cpp: In member function 'virtual bool sam::Sam2::SetImage(const cv::Mat&, bool)':
/workspace/sam2/src/sam2_track.cpp:11:59: error: base operand of '->' is not a pointer
11 | auto image_encoder_blobs_buffer = image_encoder_core_->GetBuffer(true);
| ^~
/workspace/sam2/src/sam2_track.cpp:12:59: error: base operand of '->' is not a pointer
12 | auto image_decoder_blobs_buffer = image_decoder_core_->GetBuffer(true);
| ^~
/workspace/sam2/src/sam2_track.cpp:13:62: error: base operand of '->' is not a pointer
13 | auto memory_attention_blobs_buffer = memory_attention_core_->GetBuffer(true);
| ^~
/workspace/sam2/src/sam2_track.cpp:14:60: error: base operand of '->' is not a pointer
14 | auto memory_encoder_blobs_buffer = memory_encoder_core_->GetBuffer(true);
| ^~
/workspace/sam2/src/sam2_track.cpp:17:21: error: 'using element_type = struct sam::Sam2TrackPipelinePackage' {aka 'struct sam::Sam2TrackPipelinePackage'} has no member named 'input_image_data'
17 | current_package_->input_image_data = std::make_shared(image, isRGB);
| ^~~~~~~~~~~~~~~~
/workspace/sam2/src/sam2_track.cpp:17:57: error: 'PipelineCvImageWrapper' was not declared in this scope; did you mean 'easy_deploy::PipelineCvImageWrapper'?
17 | current_package_->input_image_data = std::make_shared(image, isRGB);
| ^~~~~~~~~~~~~~~~~~~~~~
| easy_deploy::PipelineCvImageWrapper
In file included from /workspace/sam2/src/sam2_track.cpp:3:
/workspace/easy_deploy_tool/deploy_core/include/deploy_core/wrapper.hpp:15:7: note: 'easy_deploy::PipelineCvImageWrapper' declared here
15 | class PipelineCvImageWrapper : public IPipelineImageData {
| ^~~~~~~~~~~~~~~~~~~~~~
/workspace/sam2/src/sam2_track.cpp:17:93: error: no matching function for call to 'make_shared< >(const cv::Mat&, bool&)'
17 | current_package_->input_image_data = std::make_shared(image, isRGB);
| ^
In file included from /usr/include/c++/9/memory:81,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_infer_core.hpp:3,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_sam.hpp:3,
from /workspace/sam2/include/sam2/sam2.hpp:3,
from /workspace/sam2/src/sam2_def.hpp:3,
from /workspace/sam2/src/sam2_track.cpp:1:
/usr/include/c++/9/bits/shared_ptr.h:714:5: note: candidate: 'template<class Tp, class ... Args> std::shared_ptr<Tp> std::make_shared(Args&& ...)'
714 | make_shared(Args&&... args)
| ^~~~~~~~~~~
/usr/include/c++/9/bits/shared_ptr.h:714:5: note: template argument deduction/substitution failed:
/workspace/sam2/src/sam2_track.cpp:17:93: error: template argument 1 is invalid
17 | current_package->input_image_data = std::make_shared(image, isRGB);
| ^
/workspace/sam2/src/sam2_track.cpp:18:21: error: 'using element_type = struct sam::Sam2TrackPipelinePackage' {aka 'struct sam::Sam2TrackPipelinePackage'} has no member named 'image_encoder_blobs_buffer'; did you mean 'memory_encoder_blobs_buffer'?
18 | current_package->image_encoder_blobs_buffer = image_encoder_blobs_buffer;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| memory_encoder_blobs_buffer
/workspace/sam2/src/sam2_track.cpp:19:21: error: 'using element_type = struct sam::Sam2TrackPipelinePackage' {aka 'struct sam::Sam2TrackPipelinePackage'} has no member named 'mask_decoder_blobs_buffer'; did you mean 'memory_encoder_blobs_buffer'?
19 | current_package->mask_decoder_blobs_buffer = image_decoder_blobs_buffer;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| memory_encoder_blobs_buffer
In file included from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline_impl.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_infer_core.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_sam.hpp:3,
from /workspace/sam2/include/sam2/sam2.hpp:3,
from /workspace/sam2/src/sam2_def.hpp:3,
from /workspace/sam2/src/sam2_track.cpp:1:
/workspace/sam2/src/sam2_track.cpp:24:52: error: cannot convert 'std::shared_ptrsam::Sam2TrackPipelinePackage' to 'int'
24 | MESSURE_DURATION_AND_CHECK_STATE(ImagePreProcess(current_package),
| ^~~~~~~~~~~~~~~~
| |
| std::shared_ptrsam::Sam2TrackPipelinePackage
/workspace/easy_deploy_tool/deploy_core/include/deploy_core/common.hpp:45:11: note: in definition of macro 'CHECK_STATE'
45 | if (!(state))
| ^~~~~
/workspace/sam2/src/sam2_track.cpp:24:3: note: in expansion of macro 'MESSURE_DURATION_AND_CHECK_STATE'
24 | MESSURE_DURATION_AND_CHECK_STATE(ImagePreProcess(current_package),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /workspace/sam2/src/sam2_track.cpp:1:
/workspace/sam2/src/sam2_def.hpp:48:36: note: initializing argument 1 of 'bool sam::Sam2::ImagePreProcess(int)'
48 | bool ImagePreProcess(ParsingType pipeline_unit) override;
| ~~~~~~~~~~~~^~~~~~~~~~~~~
In file included from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline_impl.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_infer_core.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_sam.hpp:3,
from /workspace/sam2/include/sam2/sam2.hpp:3,
from /workspace/sam2/src/sam2_def.hpp:3,
from /workspace/sam2/src/sam2_track.cpp:1:
/workspace/sam2/src/sam2_track.cpp:28:26: error: base operand of '->' is not a pointer
28 | image_encoder_core->SyncInfer(current_package->GetInferBuffer()),
| ^~
/workspace/easy_deploy_tool/deploy_core/include/deploy_core/common.hpp:45:11: note: in definition of macro 'CHECK_STATE'
45 | if (!(state))
| ^~~~~
/workspace/sam2/src/sam2_track.cpp:27:3: note: in expansion of macro 'MESSURE_DURATION_AND_CHECK_STATE'
27 | MESSURE_DURATION_AND_CHECK_STATE(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/workspace/sam2/src/sam2_track.cpp:28:56: error: 'using element_type = struct sam::Sam2TrackPipelinePackage' {aka 'struct sam::Sam2TrackPipelinePackage'} has no member named 'GetInferBuffer'
28 | image_encoder_core_->SyncInfer(current_package_->GetInferBuffer()),
| ^~~~~~~~~~~~~~
/workspace/easy_deploy_tool/deploy_core/include/deploy_core/common.hpp:45:11: note: in definition of macro 'CHECK_STATE'
45 | if (!(state))
| ^~~~~
/workspace/sam2/src/sam2_track.cpp:27:3: note: in expansion of macro 'MESSURE_DURATION_AND_CHECK_STATE'
27 | MESSURE_DURATION_AND_CHECK_STATE(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/workspace/sam2/src/sam2_track.cpp: In member function 'virtual bool sam::Sam2::Register(const std::vector<std::pair<int, int> >&, const std::vector&, std::unordered_map<long unsigned int, cv::Mat>&)':
/workspace/sam2/src/sam2_track.cpp:40:21: error: 'using element_type = struct sam::Sam2TrackPipelinePackage' {aka 'struct sam::Sam2TrackPipelinePackage'} has no member named 'points'
40 | current_package_->points = points;
| ^~~~~~
/workspace/sam2/src/sam2_track.cpp:41:21: error: 'using element_type = struct sam::Sam2TrackPipelinePackage' {aka 'struct sam::Sam2TrackPipelinePackage'} has no member named 'labels'
41 | current_package_->labels = labels;
| ^~~~~~
In file included from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline_impl.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_infer_core.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_sam.hpp:3,
from /workspace/sam2/include/sam2/sam2.hpp:3,
from /workspace/sam2/src/sam2_def.hpp:3,
from /workspace/sam2/src/sam2_track.cpp:1:
/workspace/sam2/src/sam2_track.cpp:45:67: error: cannot convert 'std::shared_ptrsam::Sam2TrackPipelinePackage' to 'int'
45 | MESSURE_DURATION_AND_CHECK_STATE(PromptPointPreProcessTrackMode(current_package_),
| ^~~~~~~~~~~~~~~~
| |
| std::shared_ptrsam::Sam2TrackPipelinePackage
/workspace/easy_deploy_tool/deploy_core/include/deploy_core/common.hpp:75:5: note: in expansion of macro 'CHECK_STATE'
75 | CHECK_STATE((run), fmt, ##VA_ARGS);
| ^~~~~~~~~~~
/workspace/sam2/src/sam2_track.cpp:45:3: note: in expansion of macro 'MESSURE_DURATION_AND_CHECK_STATE'
45 | MESSURE_DURATION_AND_CHECK_STATE(PromptPointPreProcessTrackMode(current_package_),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /workspace/sam2/src/sam2_track.cpp:1:
/workspace/sam2/src/sam2_def.hpp:61:51: note: initializing argument 1 of 'bool sam::Sam2::PromptPointPreProcessTrackMode(int)'
61 | bool PromptPointPreProcessTrackMode(ParsingType pipeline_unit);
| ~~~~~~~~~~~~^~~~~~~~~~~~~
In file included from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline_impl.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_infer_core.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_sam.hpp:3,
from /workspace/sam2/include/sam2/sam2.hpp:3,
from /workspace/sam2/src/sam2_def.hpp:3,
from /workspace/sam2/src/sam2_track.cpp:1:
/workspace/sam2/src/sam2_track.cpp:49:26: error: base operand of '->' is not a pointer
49 | image_decoder_core_->SyncInfer(current_package_->GetInferBuffer()),
| ^~
/workspace/easy_deploy_tool/deploy_core/include/deploy_core/common.hpp:45:11: note: in definition of macro 'CHECK_STATE'
45 | if (!(state))
| ^~~~~
/workspace/sam2/src/sam2_track.cpp:48:3: note: in expansion of macro 'MESSURE_DURATION_AND_CHECK_STATE'
48 | MESSURE_DURATION_AND_CHECK_STATE(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/workspace/sam2/src/sam2_track.cpp:49:56: error: 'using element_type = struct sam::Sam2TrackPipelinePackage' {aka 'struct sam::Sam2TrackPipelinePackage'} has no member named 'GetInferBuffer'
49 | image_decoder_core_->SyncInfer(current_package_->GetInferBuffer()),
| ^~~~~~~~~~~~~~
/workspace/easy_deploy_tool/deploy_core/include/deploy_core/common.hpp:45:11: note: in definition of macro 'CHECK_STATE'
45 | if (!(state))
| ^~~~~
/workspace/sam2/src/sam2_track.cpp:48:3: note: in expansion of macro 'MESSURE_DURATION_AND_CHECK_STATE'
48 | MESSURE_DURATION_AND_CHECK_STATE(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/workspace/sam2/src/sam2_track.cpp:52:52: error: cannot convert 'std::shared_ptrsam::Sam2TrackPipelinePackage' to 'int'
52 | MESSURE_DURATION_AND_CHECK_STATE(MaskPostProcess(current_package_),
| ^~~~~~~~~~~~~~~~
| |
| std::shared_ptrsam::Sam2TrackPipelinePackage
/workspace/easy_deploy_tool/deploy_core/include/deploy_core/common.hpp:45:11: note: in definition of macro 'CHECK_STATE'
45 | if (!(state))
| ^~~~~
/workspace/sam2/src/sam2_track.cpp:52:3: note: in expansion of macro 'MESSURE_DURATION_AND_CHECK_STATE'
52 | MESSURE_DURATION_AND_CHECK_STATE(MaskPostProcess(current_package_),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /workspace/sam2/src/sam2_track.cpp:1:
/workspace/sam2/src/sam2_def.hpp:54:36: note: initializing argument 1 of 'bool sam::Sam2::MaskPostProcess(int)'
54 | bool MaskPostProcess(ParsingType pipeline_unit) override;
| ~~~~~~~~~~~~^~~~~~~~~~~~~
In file included from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline_impl.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_infer_core.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_sam.hpp:3,
from /workspace/sam2/include/sam2/sam2.hpp:3,
from /workspace/sam2/src/sam2_def.hpp:3,
from /workspace/sam2/src/sam2_track.cpp:1:
/workspace/sam2/src/sam2_track.cpp:55:62: error: cannot convert 'std::shared_ptrsam::Sam2TrackPipelinePackage' to 'int'
55 | MESSURE_DURATION_AND_CHECK_STATE(RunMemoryEncoderAndRecord(current_package_),
| ^~~~~~~~~~~~~~~~
| |
| std::shared_ptrsam::Sam2TrackPipelinePackage
/workspace/easy_deploy_tool/deploy_core/include/deploy_core/common.hpp:45:11: note: in definition of macro 'CHECK_STATE'
45 | if (!(state))
| ^~~~~
/workspace/sam2/src/sam2_track.cpp:55:3: note: in expansion of macro 'MESSURE_DURATION_AND_CHECK_STATE'
55 | MESSURE_DURATION_AND_CHECK_STATE(RunMemoryEncoderAndRecord(current_package_),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /workspace/sam2/src/sam2_track.cpp:1:
/workspace/sam2/src/sam2_def.hpp:57:46: note: initializing argument 1 of 'bool sam::Sam2::RunMemoryEncoderAndRecord(int)'
57 | bool RunMemoryEncoderAndRecord(ParsingType pipeline_unit);
| ~~~~~~~~~~~~^~~~~~~~~~~~~
/workspace/sam2/src/sam2_track.cpp:58:42: error: 'using element_type = struct sam::Sam2TrackPipelinePackage' {aka 'struct sam::Sam2TrackPipelinePackage'} has no member named 'mask'
58 | results = {{obj_id_, current_package_->mask}};
| ^~~~
/workspace/sam2/src/sam2_track.cpp:58:47: error: no match for 'operator=' (operand types are 'std::unordered_map<long unsigned int, cv::Mat>' and '')
58 | results = {{obj_id_, current_package_->mask}};
| ^
In file included from /usr/include/c++/9/unordered_map:47,
from /usr/include/c++/9/functional:61,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline.hpp:3,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_infer_core.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_sam.hpp:3,
from /workspace/sam2/include/sam2/sam2.hpp:3,
from /workspace/sam2/src/sam2_def.hpp:3,
from /workspace/sam2/src/sam2_track.cpp:1:
/usr/include/c++/9/bits/unordered_map.h:272:7: note: candidate: 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator=(const std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>&) [with _Key = long unsigned int; _Tp = cv::Mat; _Hash = std::hash; _Pred = std::equal_to; _Alloc = std::allocator<std::pair<const long unsigned int, cv::Mat> >]'
272 | operator=(const unordered_map&) = default;
| ^~~~~~~~
/usr/include/c++/9/bits/unordered_map.h:272:17: note: no known conversion for argument 1 from '' to 'const std::unordered_map<long unsigned int, cv::Mat>&'
272 | operator=(const unordered_map&) = default;
| ^~~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/unordered_map.h:276:7: note: candidate: 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator=(std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>&&) [with _Key = long unsigned int; _Tp = cv::Mat; _Hash = std::hash; _Pred = std::equal_to; _Alloc = std::allocator<std::pair<const long unsigned int, cv::Mat> >]'
276 | operator=(unordered_map&&) = default;
| ^~~~~~~~
/usr/include/c++/9/bits/unordered_map.h:276:17: note: no known conversion for argument 1 from '' to 'std::unordered_map<long unsigned int, cv::Mat>&&'
276 | operator=(unordered_map&&) = default;
| ^~~~~~~~~~~~~~~
/usr/include/c++/9/bits/unordered_map.h:290:7: note: candidate: 'std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::operator=(std::initializer_list<typename std::_Hashtable<_Key, std::pair<const _Key, _Tp>, _Alloc, std::__detail::_Select1st, _Pred, _Hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<std::_not<std::_and<std::__is_fast_hash<_Hash>, std::__is_nothrow_invocable<const _Hash&, const _Key&> > >::value, false, true> >::value_type>) [with _Key = long unsigned int; _Tp = cv::Mat; _Hash = std::hash; _Pred = std::equal_to; _Alloc = std::allocator<std::pair<const long unsigned int, cv::Mat> >; typename std::_Hashtable<_Key, std::pair<const _Key, _Tp>, _Alloc, std::__detail::_Select1st, _Pred, _Hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::detail::Prime_rehash_policy, std::detail::Hashtable_traits<std::not<std::and<std::is_fast_hash<Hash>, std::is_nothrow_invocable<const Hash&, const Key&> > >::value, false, true> >::value_type = std::pair<const long unsigned int, cv::Mat>]'
290 | operator=(initializer_list<value_type> l)
| ^~~~~~~~
/usr/include/c++/9/bits/unordered_map.h:290:46: note: no known conversion for argument 1 from '' to 'std::initializer_list<std::pair<const long unsigned int, cv::Mat> >'
290 | operator=(initializer_list<value_type> l)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
/workspace/sam2/src/sam2_track.cpp: At global scope:
/workspace/sam2/src/sam2_track.cpp:62:6: error: 'bool sam::Sam2::PromptPointPreProcessTrackMode' is not a static data member of 'class sam::Sam2'
62 | bool Sam2::PromptPointPreProcessTrackMode(ParsingType package)
| ^~~~
/workspace/sam2/src/sam2_track.cpp:62:43: error: 'ParsingType' was not declared in this scope
62 | bool Sam2::PromptPointPreProcessTrackMode(ParsingType package)
| ^~~~~~~~~~~
/workspace/sam2/src/sam2_track.cpp:149:6: error: 'bool sam::Sam2::RunMemoryEncoderAndRecord' is not a static data member of 'class sam::Sam2'
149 | bool Sam2::RunMemoryEncoderAndRecord(ParsingType pipeline_unit)
| ^~~~
/workspace/sam2/src/sam2_track.cpp:149:38: error: 'ParsingType' was not declared in this scope
149 | bool Sam2::RunMemoryEncoderAndRecord(ParsingType pipeline_unit)
| ^~~~~~~~~~~
/workspace/sam2/src/sam2_track.cpp:223:6: error: 'bool sam::Sam2::MemoryAttentionPreProcess' is not a static data member of 'class sam::Sam2'
223 | bool Sam2::MemoryAttentionPreProcess(ParsingType pipeline_unit)
| ^~~~
/workspace/sam2/src/sam2_track.cpp:223:38: error: 'ParsingType' was not declared in this scope
223 | bool Sam2::MemoryAttentionPreProcess(ParsingType pipeline_unit)
| ^~~~~~~~~~~
/workspace/sam2/src/sam2_track.cpp:326:39: error: 'BBox2D' was not declared in this scope; did you mean 'easy_deploy::BBox2D'?
326 | bool Sam2::Register(const std::vector &boxes, std::unordered_map<size_t, cv::Mat> &results)
| ^~~~~~
| easy_deploy::BBox2D
In file included from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline_impl.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_infer_core.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_sam.hpp:3,
from /workspace/sam2/include/sam2/sam2.hpp:3,
from /workspace/sam2/src/sam2_def.hpp:3,
from /workspace/sam2/src/sam2_track.cpp:1:
/workspace/easy_deploy_tool/deploy_core/include/deploy_core/common.hpp:17:8: note: 'easy_deploy::BBox2D' declared here
17 | struct BBox2D {
| ^~~~~~
/workspace/sam2/src/sam2_track.cpp:326:45: error: template argument 1 is invalid
326 | bool Sam2::Register(const std::vector &boxes, std::unordered_map<size_t, cv::Mat> &results)
| ^
/workspace/sam2/src/sam2_track.cpp:326:45: error: template argument 2 is invalid
In file included from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline_impl.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_infer_core.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_sam.hpp:3,
from /workspace/sam2/include/sam2/sam2.hpp:3,
from /workspace/sam2/src/sam2_def.hpp:3,
from /workspace/sam2/src/sam2_track.cpp:1:
/workspace/sam2/src/sam2_track.cpp: In member function 'virtual bool sam::Sam2::Track(std::unordered_map<long unsigned int, cv::Mat>&)':
/workspace/sam2/src/sam2_track.cpp:341:64: error: cannot convert 'std::shared_ptrsam::Sam2TrackPipelinePackage' to 'int'
341 | MESSURE_DURATION_AND_CHECK_STATE(MemoryAttentionPreProcess(current_package),
| ^~~~~~~~~~~~~~~~
| |
| std::shared_ptrsam::Sam2TrackPipelinePackage
/workspace/easy_deploy_tool/deploy_core/include/deploy_core/common.hpp:45:11: note: in definition of macro 'CHECK_STATE'
45 | if (!(state))
| ^~~~~
/workspace/sam2/src/sam2_track.cpp:341:5: note: in expansion of macro 'MESSURE_DURATION_AND_CHECK_STATE'
341 | MESSURE_DURATION_AND_CHECK_STATE(MemoryAttentionPreProcess(current_package),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /workspace/sam2/src/sam2_track.cpp:1:
/workspace/sam2/src/sam2_def.hpp:59:46: note: initializing argument 1 of 'bool sam::Sam2::MemoryAttentionPreProcess(int)'
59 | bool MemoryAttentionPreProcess(ParsingType pipeline_unit);
| ~~~~~~~~~~~~^~~~~~~~~~~~~
In file included from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline_impl.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_infer_core.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_sam.hpp:3,
from /workspace/sam2/include/sam2/sam2.hpp:3,
from /workspace/sam2/src/sam2_def.hpp:3,
from /workspace/sam2/src/sam2_track.cpp:1:
/workspace/sam2/src/sam2_track.cpp:345:31: error: base operand of '->' is not a pointer
345 | memory_attention_core->SyncInfer(current_package->GetInferBuffer()),
| ^~
/workspace/easy_deploy_tool/deploy_core/include/deploy_core/common.hpp:45:11: note: in definition of macro 'CHECK_STATE'
45 | if (!(state))
| ^~~~~
/workspace/sam2/src/sam2_track.cpp:344:5: note: in expansion of macro 'MESSURE_DURATION_AND_CHECK_STATE'
344 | MESSURE_DURATION_AND_CHECK_STATE(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/workspace/sam2/src/sam2_track.cpp:345:61: error: 'using element_type = struct sam::Sam2TrackPipelinePackage' {aka 'struct sam::Sam2TrackPipelinePackage'} has no member named 'GetInferBuffer'
345 | memory_attention_core->SyncInfer(current_package->GetInferBuffer()),
| ^~~~~~~~~~~~~~
/workspace/easy_deploy_tool/deploy_core/include/deploy_core/common.hpp:45:11: note: in definition of macro 'CHECK_STATE'
45 | if (!(state))
| ^~~~~
/workspace/sam2/src/sam2_track.cpp:344:5: note: in expansion of macro 'MESSURE_DURATION_AND_CHECK_STATE'
344 | MESSURE_DURATION_AND_CHECK_STATE(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/workspace/sam2/src/sam2_track.cpp:348:23: error: 'using element_type = struct sam::Sam2TrackPipelinePackage' {aka 'struct sam::Sam2TrackPipelinePackage'} has no member named 'points'
348 | current_package->points = {{0, 0}};
| ^~~~~~
/workspace/sam2/src/sam2_track.cpp:349:23: error: 'using element_type = struct sam::Sam2TrackPipelinePackage' {aka 'struct sam::Sam2TrackPipelinePackage'} has no member named 'labels'
349 | current_package->labels = {-1};
| ^~~~~~
In file included from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline_impl.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_infer_core.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_sam.hpp:3,
from /workspace/sam2/include/sam2/sam2.hpp:3,
from /workspace/sam2/src/sam2_def.hpp:3,
from /workspace/sam2/src/sam2_track.cpp:1:
/workspace/sam2/src/sam2_track.cpp:350:69: error: cannot convert 'std::shared_ptrsam::Sam2TrackPipelinePackage' to 'int'
350 | MESSURE_DURATION_AND_CHECK_STATE(PromptPointPreProcessTrackMode(current_package),
| ^~~~~~~~~~~~~~~~
| |
| std::shared_ptrsam::Sam2TrackPipelinePackage
/workspace/easy_deploy_tool/deploy_core/include/deploy_core/common.hpp:45:11: note: in definition of macro 'CHECK_STATE'
45 | if (!(state))
| ^~~~~
/workspace/sam2/src/sam2_track.cpp:350:5: note: in expansion of macro 'MESSURE_DURATION_AND_CHECK_STATE'
350 | MESSURE_DURATION_AND_CHECK_STATE(PromptPointPreProcessTrackMode(current_package),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /workspace/sam2/src/sam2_track.cpp:1:
/workspace/sam2/src/sam2_def.hpp:61:51: note: initializing argument 1 of 'bool sam::Sam2::PromptPointPreProcessTrackMode(int)'
61 | bool PromptPointPreProcessTrackMode(ParsingType pipeline_unit);
| ~~~~~~~~~~~~^~~~~~~~~~~~~
In file included from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline_impl.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_infer_core.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_sam.hpp:3,
from /workspace/sam2/include/sam2/sam2.hpp:3,
from /workspace/sam2/src/sam2_def.hpp:3,
from /workspace/sam2/src/sam2_track.cpp:1:
/workspace/sam2/src/sam2_track.cpp:354:28: error: base operand of '->' is not a pointer
354 | image_decoder_core->SyncInfer(current_package->GetInferBuffer()),
| ^~
/workspace/easy_deploy_tool/deploy_core/include/deploy_core/common.hpp:45:11: note: in definition of macro 'CHECK_STATE'
45 | if (!(state))
| ^~~~~
/workspace/sam2/src/sam2_track.cpp:353:5: note: in expansion of macro 'MESSURE_DURATION_AND_CHECK_STATE'
353 | MESSURE_DURATION_AND_CHECK_STATE(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/workspace/sam2/src/sam2_track.cpp:354:58: error: 'using element_type = struct sam::Sam2TrackPipelinePackage' {aka 'struct sam::Sam2TrackPipelinePackage'} has no member named 'GetInferBuffer'
354 | image_decoder_core->SyncInfer(current_package->GetInferBuffer()),
| ^~~~~~~~~~~~~~
/workspace/easy_deploy_tool/deploy_core/include/deploy_core/common.hpp:45:11: note: in definition of macro 'CHECK_STATE'
45 | if (!(state))
| ^~~~~
/workspace/sam2/src/sam2_track.cpp:353:5: note: in expansion of macro 'MESSURE_DURATION_AND_CHECK_STATE'
353 | MESSURE_DURATION_AND_CHECK_STATE(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/workspace/sam2/src/sam2_track.cpp:357:54: error: cannot convert 'std::shared_ptrsam::Sam2TrackPipelinePackage' to 'int'
357 | MESSURE_DURATION_AND_CHECK_STATE(MaskPostProcess(current_package),
| ^~~~~~~~~~~~~~~~
| |
| std::shared_ptrsam::Sam2TrackPipelinePackage
/workspace/easy_deploy_tool/deploy_core/include/deploy_core/common.hpp:45:11: note: in definition of macro 'CHECK_STATE'
45 | if (!(state))
| ^~~~~
/workspace/sam2/src/sam2_track.cpp:357:5: note: in expansion of macro 'MESSURE_DURATION_AND_CHECK_STATE'
357 | MESSURE_DURATION_AND_CHECK_STATE(MaskPostProcess(current_package),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /workspace/sam2/src/sam2_track.cpp:1:
/workspace/sam2/src/sam2_def.hpp:54:36: note: initializing argument 1 of 'bool sam::Sam2::MaskPostProcess(int)'
54 | bool MaskPostProcess(ParsingType pipeline_unit) override;
| ~~~~~~~~~~~~^~~~~~~~~~~~~
In file included from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline_impl.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/async_pipeline.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_infer_core.hpp:9,
from /workspace/easy_deploy_tool/deploy_core/include/deploy_core/base_sam.hpp:3,
from /workspace/sam2/include/sam2/sam2.hpp:3,
from /workspace/sam2/src/sam2_def.hpp:3,
from /workspace/sam2/src/sam2_track.cpp:1:
/workspace/sam2/src/sam2_track.cpp:360:64: error: cannot convert 'std::shared_ptrsam::Sam2TrackPipelinePackage' to 'int'
360 | MESSURE_DURATION_AND_CHECK_STATE(RunMemoryEncoderAndRecord(current_package),
| ^~~~~~~~~~~~~~~~
| |
| std::shared_ptrsam::Sam2TrackPipelinePackage
/workspace/easy_deploy_tool/deploy_core/include/deploy_core/common.hpp:45:11: note: in definition of macro 'CHECK_STATE'
45 | if (!(state))
| ^~~~~
/workspace/sam2/src/sam2_track.cpp:360:5: note: in expansion of macro 'MESSURE_DURATION_AND_CHECK_STATE'
360 | MESSURE_DURATION_AND_CHECK_STATE(RunMemoryEncoderAndRecord(current_package),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /workspace/sam2/src/sam2_track.cpp:1:
/workspace/sam2/src/sam2_def.hpp:57:46: note: initializing argument 1 of 'bool sam::Sam2::RunMemoryEncoderAndRecord(int)'
57 | bool RunMemoryEncoderAndRecord(ParsingType pipeline_unit);
| ~~~~~~~~~~~~^~~~~~~~~~~~~
/workspace/sam2/src/sam2_track.cpp:363:47: error: 'using element_type = struct sam::Sam2TrackPipelinePackage' {aka 'struct sam::Sam2TrackPipelinePackage'} has no member named 'mask'
363 | results.emplace(obj_id, current_package->mask);
| ^~~~
make[2]: *** [sam2/CMakeFiles/sam2.dir/build.make:76: sam2/CMakeFiles/sam2.dir/src/sam2.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [sam2/CMakeFiles/sam2.dir/build.make:90: sam2/CMakeFiles/sam2.dir/src/sam2_track.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:384: sam2/CMakeFiles/sam2.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 83%] Linking CXX shared library libtest_utils.so
[ 83%] Built target test_utils
[ 87%] Linking CXX shared library libimage_processing_utils.so
[ 87%] Built target image_processing_utils
make: *** [Makefile:146: all] Error 2
root@unbutu:/workspace/build#