载入中...
搜索中...
未找到
eve::animation::SmrNeuralProvider类 参考final

Capability provider selecting ONNX MeshRet or builtin tensor MeshRet. @ownership Owned by AnimationTensor; registered via cap::provide until revoke. @thread Owner/composition thread only; no callbacks while holding locks. 更多...

#include <SmrNeuralProvider.h>

类 eve::animation::SmrNeuralProvider 继承关系图:
eve::animation::ISmrNeuralRetarget

Public 成员函数

 SmrNeuralProvider ()=default
 Constructs a SmrNeuralProvider.
 
std::string name () const override
 Name.
 
bool isReady (const AnimRetargetProfile *profile) const override
 True when ONNX is loadable for the profile path, or builtin MeshRet is usable.
 
Result< SmrNeuralResult > retarget (const SmrNeuralRequest &request) override
 Run inference and rewrite request.targetClip local rotations. @lifetime See SmrNeuralRequest; pointers borrowed for this call only. @thread Owner thread; not re-entrant on targetClip.
 
- Public 成员函数 继承自 eve::animation::ISmrNeuralRetarget
virtual ~ISmrNeuralRetarget ()=default
 Releases ISmrNeuralRetarget resources.
 

额外继承的成员函数

- 静态 Public 属性 继承自 eve::animation::ISmrNeuralRetarget
static constexpr const char * capabilityName = "animation.ISmrNeuralRetarget"
 

详细描述

Capability provider selecting ONNX MeshRet or builtin tensor MeshRet. @ownership Owned by AnimationTensor; registered via cap::provide until revoke. @thread Owner/composition thread only; no callbacks while holding locks.

在文件 SmrNeuralProvider.h 第 18 行定义.

构造及析构函数说明

◆ SmrNeuralProvider()

eve::animation::SmrNeuralProvider::SmrNeuralProvider ( )
default

Constructs a SmrNeuralProvider.

成员函数说明

◆ isReady()

bool eve::animation::SmrNeuralProvider::isReady ( const AnimRetargetProfile *  profile) const
overridevirtual

True when ONNX is loadable for the profile path, or builtin MeshRet is usable.

参数
profileBorrowed for the call only; nullptr means not ready. @ownership Does not retain profile. @lifetime profile must outlive this call. @thread Owner thread.

实现了 eve::animation::ISmrNeuralRetarget.

在文件 SmrNeuralProvider.cpp 第 13 行定义.

引用了 eve::animation::AnimRetargetProfile::getNeuralBackend(), eve::animation::AnimRetargetProfile::getNeuralModelPath(), eve::animation::AnimRetargetProfile::getNeuralRetargetEnabled() , 以及 eve::Result< void >::ok().

◆ name()

std::string eve::animation::SmrNeuralProvider::name ( ) const
overridevirtual

Name.

实现了 eve::animation::ISmrNeuralRetarget.

在文件 SmrNeuralProvider.cpp 第 11 行定义.

◆ retarget()

Result< SmrNeuralResult > eve::animation::SmrNeuralProvider::retarget ( const SmrNeuralRequest &  request)
overridevirtual

Run inference and rewrite request.targetClip local rotations. @lifetime See SmrNeuralRequest; pointers borrowed for this call only. @thread Owner thread; not re-entrant on targetClip.

实现了 eve::animation::ISmrNeuralRetarget.

在文件 SmrNeuralProvider.cpp 第 72 行定义.

引用了 eve::animation::buildSmrFeatures(), eve::Diagnostic::error(), eve::Result< T >::failure(), eve::animation::SmrMeshRetNet::forward(), eve::InvalidArgument, request , 以及 eve::animation::SmrOnnxRunner::run().


该类的文档由以下文件生成: