Skip to content

Commit

Permalink
Add the generation of multi-class pose engines (#1512)
Browse files Browse the repository at this point in the history
Co-authored-by: lindsayshuo <[email protected]>
  • Loading branch information
lindsayshuo and lindsayshuo authored May 6, 2024
1 parent 37633b4 commit f2e8b2b
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions yolov8/src/model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,9 @@ static nvinfer1::IShuffleLayer* cv4_conv_combined(nvinfer1::INetworkDefinition*
output_channel = 32;

} else if (algo_type == "pose") {
if (gw == 0.25 || gw == 0.5 || gw == 0.75) {
mid_channle = 51;
} else if (gw == 1.00) {
mid_channle = 64;
} else if (gw == 1.25) {
mid_channle = 80;
}

output_channel = 51;
std::string bn_weight_key = lname + ".0.bn.weight";
mid_channle = weightMap[bn_weight_key].count;
output_channel = kNumberOfPoints * 3;
}

auto cv0 = convBnSiLU(network, weightMap, input, mid_channle, 3, 1, 1, lname + ".0");
Expand Down

0 comments on commit f2e8b2b

Please sign in to comment.