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>
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()
|
default |
Constructs a SmrNeuralProvider.
成员函数说明
◆ isReady()
|
overridevirtual |
True when ONNX is loadable for the profile path, or builtin MeshRet is usable.
- 参数
-
profile Borrowed 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()
|
overridevirtual |
◆ retarget()
|
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().
该类的文档由以下文件生成:
- src/modules/animation/tensor/SmrNeuralProvider.h
- src/modules/animation/tensor/SmrNeuralProvider.cpp
Public 成员函数 继承自