-
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.
* Model runs + draws in notebook, no data output * Configs etc - model not yet working. * Disable energy * Offset shape bugfix (#73) * fix offset shape when saving * update demo config * linter * fix demo.yaml * update configs * update config test --------- Co-authored-by: Charles Zhang <charleszhang@boslogin02.rc.fas.harvard.edu> * Smoke test (#74) * run stac experiment * Fixed yaml * Test fail with bad input. * Should fail. * Corrected input - test should pass. * Update demo.yaml - enable ik_only() * Revert update demo.yaml * IT'S WORKING * Offset shape bugfix (#73) * fix offset shape when saving * update demo config * linter * fix demo.yaml * update configs * update config test --------- Co-authored-by: Charles Zhang <charleszhang@boslogin02.rc.fas.harvard.edu> * Configs etc - model not yet working. * Offset shape bugfix (#73) * fix offset shape when saving * update demo config * linter * fix demo.yaml * update configs * update config test --------- Co-authored-by: Charles Zhang <charleszhang@boslogin02.rc.fas.harvard.edu> * Configs etc - model not yet working. * Fix weird merge. * Clean up synth_model config file. * Remove TIME_BINS (which was a merge accident.) * Fix smoke test. * Fix smoke test. * Clean up. * Fixed root optimization, but still some debug code. * Add root_kp_index * Forgot model yaml. * Reset rodent configs, enable synth config. * Add synth_data smoke test. * Missed data file. * Clean up. * Add root opt keypoint to model configs + clean up. * Clean up. * CR feedback. * Add synth data generation program. * Add comments. --------- Co-authored-by: Charles Zhang <33401293+charles-zhng@users.noreply.github.com> Co-authored-by: Charles Zhang <charleszhang@boslogin02.rc.fas.harvard.edu>
- Loading branch information
1 parent
11819ee
commit f3980e4
Showing
19 changed files
with
949 additions
and
14 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
|
||
MJCF_PATH: 'models/synth_model.xml' | ||
|
||
# Frames per clip for transform. | ||
N_FRAMES_PER_CLIP: 1 | ||
|
||
# Tolerance for the optimizations of the full model, limb, and root. | ||
# TODO: Re-implement optimizer loops to use these tolerances | ||
FTOL: 5.0e-03 | ||
ROOT_FTOL: 1.0e-05 | ||
LIMB_FTOL: 1.0e-06 | ||
|
||
# Number of alternating pose and offset optimization rounds. | ||
N_ITERS: 1 | ||
|
||
KP_NAMES: | ||
- part_0 | ||
|
||
ROOT_OPTIMIZATION_KEYPOINT: part_0 | ||
|
||
# The model sites used to register the keypoints. | ||
KEYPOINT_MODEL_PAIRS: | ||
part_0: base | ||
|
||
# The initial offsets for each keypoint in meters. | ||
KEYPOINT_INITIAL_OFFSETS: | ||
part_0: 0 0 0.01 | ||
|
||
TRUNK_OPTIMIZATION_KEYPOINTS: | ||
- part_0 | ||
|
||
INDIVIDUAL_PART_OPTIMIZATION: | ||
model_base: [base] | ||
|
||
# Color to use for each keypoint when visualizing the results | ||
KEYPOINT_COLOR_PAIRS: | ||
part_0: 0 .5 1 1 | ||
|
||
# What is the size of the animal you'd like to register, relative to the model? | ||
SCALE_FACTOR: 1 | ||
|
||
# Multiplier to put the mocap data into the same scale as the data. Eg, if the | ||
# mocap data is known to be in millimeters and the model is in meters, this is | ||
# .001 | ||
MOCAP_SCALE_FACTOR: 1 | ||
|
||
# If you have reason to believe that the initial offsets are correct for particular keypoints, | ||
# you can regularize those sites using this with M_REG_COEF. | ||
SITES_TO_REGULARIZE: | ||
- part_0 | ||
|
||
RENDER_FPS: 200 | ||
|
||
N_SAMPLE_FRAMES: 1 | ||
|
||
# If you have reason to believe that the initial offsets are correct for particular keypoints, | ||
# you can regularize those sites using _SITES_TO_REGULARIZE. | ||
M_REG_COEF: 1 |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
fit_offsets_path: "synth_fit.p" | ||
ik_only_path: "synth_ik_only.p" | ||
data_path: "tests/data/test_synth_1_frames.nwb" | ||
|
||
n_fit_frames: 1 | ||
skip_fit_offsets: False | ||
skip_ik_only: False | ||
|
||
mujoco: | ||
solver: newton | ||
iterations: 1 | ||
ls_iterations: 4 |
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<mujoco> | ||
<option timestep=".001"> | ||
</option> | ||
|
||
<default> | ||
<joint type="hinge" axis="0 -1 0"/> | ||
<geom type="capsule" size=".02"/> | ||
</default> | ||
|
||
<worldbody> | ||
<light pos="0 -.4 1"/> | ||
<camera name="fixed" pos="0 -1 0" xyaxes="1 0 0 0 0 1"/> | ||
<body name="base" pos="0 0 .2"> | ||
<joint type="free" name="root"/> | ||
<geom fromto="0 0 0 0 0 -.25" rgba="1 1 0 1"/> | ||
</body> | ||
</worldbody> | ||
</mujoco> |
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
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
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
Binary file not shown.