@@ -61,7 +61,7 @@ const char* SAM::CreateSession(SEG::DL_INIT_PARAM& iParams)
6161 bool result = std::regex_search (iParams.modelPath , pattern);
6262 if (result)
6363 {
64- Ret = " [SAM]:Your model path is error. Change your model path without chinese characters." ;
64+ Ret = " [SAM]: Your model path is error. Change your model path without chinese characters." ;
6565 CONSOLE_BRIDGE_logWarn (" %s" , Ret);
6666 return Ret;
6767 }
@@ -146,8 +146,8 @@ const char* SAM::RunSession(const cv::Mat& iImg, std::vector<SEG::DL_RESULT>& oR
146146 std::vector<int64_t > inputNodeDims;
147147 if (modelType == SEG::SAM_SEGMENT_ENCODER)
148148 {
149- // NCHW with H=imgSize[1], W=imgSize[0] // FIX
150- inputNodeDims = { 1 , 3 , imgSize_.at (1 ), imgSize_.at (0 ) }; // FIX
149+ // NCHW with H=imgSize[1], W=imgSize[0]
150+ inputNodeDims = { 1 , 3 , imgSize_.at (1 ), imgSize_.at (0 ) };
151151 }
152152 else if (modelType == SEG::SAM_SEGMENT_DECODER)
153153 {
@@ -334,7 +334,7 @@ const char* SAM::TensorProcess_(clock_t& starttime_1, const cv::Mat& iImg,
334334 break ;
335335 }
336336 default :
337- CONSOLE_BRIDGE_logError (" [SAM]: " " Not support model type." );
337+ CONSOLE_BRIDGE_logError (" [SAM]: Unsupported model type." );
338338 }
339339
340340 return RET_OK;
@@ -351,8 +351,8 @@ char* SAM::WarmUpSession_(SEG::MODEL_TYPE modelType)
351351 {
352352 float * blob = new float [iImg.total () * 3 ];
353353 utilities.BlobFromImage (processedImg, blob);
354- // NCHW: H=imgSize[1], W=imgSize[0] // FIX
355- std::vector<int64_t > SAM_input_node_dims = { 1 , 3 , imgSize_.at (1 ), imgSize_.at (0 ) }; // FIX
354+ // NCHW: H=imgSize[1], W=imgSize[0]
355+ std::vector<int64_t > SAM_input_node_dims = { 1 , 3 , imgSize_.at (1 ), imgSize_.at (0 ) };
356356 switch (modelType)
357357 {
358358 case SEG::SAM_SEGMENT_ENCODER:
0 commit comments