Skip to content

Commit

Permalink
Merge pull request #446 from Nuzhny007/master
Browse files Browse the repository at this point in the history
Fix yolov8 instance segmentation
  • Loading branch information
Nuzhny007 authored Feb 15, 2024
2 parents d4e8096 + 64bee78 commit 1699dcf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/Detector/tensorrt_yolo/YoloONNX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,9 @@ void YoloONNX::ProcessMaskOutput(size_t imgIdx, const std::vector<float*>& outpu

std::vector<float> temp_proto(output + k + 5 + nc, output + k + net_width);
picked_proposals.push_back(temp_proto);

if (rectBoxes.size() >= CV_CN_MAX - 1)
break;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Tracker/track.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ void CTrack::CreateExternalTracker(int channels)
#ifdef USE_OCV_KCF
if (!m_tracker || m_tracker.empty())
{
#if (((CV_VERSION_MAJOR == 4) && (CV_VERSION_MINOR > 5)) || ((CV_VERSION_MAJOR == 4) && (CV_VERSION_MINOR == 5) && (CV_VERSION_REVISION > 2)) || (CV_VERSION_MAJOR > 4))
#if (((CV_VERSION_MAJOR == 4) && (CV_VERSION_MINOR > 6)) || (CV_VERSION_MAJOR > 4))
cv::TrackerNano::Params params;
params.backbone = "nanotrack_backbone_sim.onnx";
params.neckhead = "nanotrack_head_sim.onnx";
Expand Down

0 comments on commit 1699dcf

Please sign in to comment.