首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Triton推理服务器的姿态估计

Triton推理服务器的姿态估计
EN

Stack Overflow用户
提问于 2021-12-02 13:34:25
回答 1查看 154关注 0票数 0

在NVIDIA Triton推理服务器中,我在运行位姿模型。模型(开放姿态,阿尔法姿势,HRNet .正常加载,但后处理是问题所在。

EN

回答 1

Stack Overflow用户

发布于 2022-01-15 08:08:05

您可以参考文档中的后处理脚本。他们给出了一个图像分类器的例子:client.py

代码语言:javascript
复制
def postprocess(results, output_name, batch_size, batching):
    """
    Post-process results to show classifications.
    """

    output_array = results.as_numpy(output_name)
    if len(output_array) != batch_size:
        raise Exception("expected {} results, got {}".format(
            batch_size, len(output_array)))

    # Include special handling for non-batching models
    for results in output_array:
        if not batching:
            results = [results]
        for result in results:
            if output_array.dtype.type == np.object_:
                cls = "".join(chr(x) for x in result).split(':')
            else:
                cls = result.split(':')
            print("    {} ({}) = {}".format(cls[0], cls[1], cls[2]))
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70200437

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档