-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
odri
committed
Aug 5, 2022
1 parent
87769c2
commit d1898b4
Showing
3 changed files
with
43 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
#include <iostream> | ||
#include <Eigen/Core> | ||
#include <iostream> | ||
#include "Interface.hpp" | ||
|
||
int main() { | ||
|
||
Eigen::VectorXf input; | ||
input.setRandom(5); | ||
|
||
MLP_3<132, 12> net = MLP_3<132, 12>(); | ||
//net.load_checkpoint("/home/maractin/Workspace/quadruped-replay/checkpoints/vel_3d/flat/p2/jit_20000.pt"); | ||
// net.load_checkpoint("/home/maractin/Workspace/quadruped-replay/checkpoints/vel_3d/flat/p2/jit_20000.pt"); | ||
Eigen::Matrix<float, 132, 1> input1 = Eigen::Matrix<float, 132, 1>::Zero(); | ||
std::cout<<net.forward(input1)<<std::endl; | ||
std::cout << net.forward(input1) << std::endl; | ||
|
||
MLP_2<123, 11> net2 = MLP_2<123, 11>(); | ||
|
||
std::cout << "----" << std::endl; | ||
Interface test = Interface(); | ||
std::string polDirName = "../../tmp_checkpoints/sym_pose/energy/6cm/policy-08-03-01-20-47/"; | ||
std::string estDirName = "../../tmp_checkpoints/state_estimation/symmetric_state_estimator.txt"; | ||
std::string polDirName = | ||
"../../tmp_checkpoints/sym_pose/energy/6cm/policy-08-03-01-20-47/"; | ||
std::string estDirName = | ||
"../../tmp_checkpoints/state_estimation/symmetric_state_estimator.txt"; | ||
test.initialize(polDirName, estDirName, Vector12::Ones()); | ||
|
||
} |