载入中...
搜索中...
未找到
SmrMeshRetNet.h
浏览该文件的文档.
1#pragma once
2
4#include "common/Result.h"
5
6#include <vector>
7
8namespace eve::animation {
9
12 int latentDim = 128;
13 int ffSize = 256;
14 int numLayers = 2;
15 int numHeads = 4;
16 int seed = 9923;
17};
18
24public:
27
29 [[nodiscard]] const SmrMeshRetConfig& config() const { return config_; }
30
32 [[nodiscard]] Result<std::vector<float>> forward(const SmrFeatureBatch& features) const;
33
34private:
35 struct LayerWeights {
36 std::vector<float> wq, wk, wv, wo, w1, b1, w2, b2, ln1g, ln1b, ln2g, ln2b;
37 };
38
39 SmrMeshRetConfig config_;
40 std::vector<float> geomW1_, geomB1_, geomW2_, geomB2_;
41 std::vector<float> dmiW1_, dmiB1_, dmiW2_, dmiB2_;
42 std::vector<float> motionW_, motionB_;
43 std::vector<float> fuseW_, fuseB_;
44 std::vector<float> outW_, outB_;
45 std::vector<LayerWeights> enc_;
46 std::vector<LayerWeights> dec_;
47
48 void initWeights();
49};
50
51} // namespace eve::animation
Move-only, checked operation results for the common layer.
Move-only operation result carrying either a value or Status.
Definition Result.h:155
Builtin MeshRet-style PointNet + Transformer retarget (links eve::tensor). @thread Owner thread; not ...
Result< std::vector< float > > forward(const SmrFeatureBatch &features) const
Owning target rot6d [T*J*6], or structured failure.
const SmrMeshRetConfig & config() const
Config.
Packed MeshRet-style features for one retarget inference window.
Definition SmrFeatures.h:15
Hyperparameters for the builtin MeshRet-style graph.