Jon/gaze - Head solver updates & Gaze reconstruction (not geometrically validated) #23
Open
jonmatthis wants to merge 47 commits intomainfrom
Open
Jon/gaze - Head solver updates & Gaze reconstruction (not geometrically validated) #23jonmatthis wants to merge 47 commits intomainfrom
jonmatthis wants to merge 47 commits intomainfrom
Conversation
… clean up to be done
Collaborator
|
I've gone ahead and merged the general processing changes into this. I'm going to add it into the processing pipeline and recording folder steps then merge it. We will likely need to make other changes as well, but those can come in a new PR. At the very least the solver output seems to be an improvement over the old method, the gaze stuff will still need some work though. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@schollben @philipqueen @OptogeneticsandNeuralEngineeringCore
We should have a meeting to go over this PR some time later this week or next. There's a lot to it, and there are some core data objects in here that will form the basis of future analysis pipelines.
Its NOT fully completed yet - I think there are still a few foibles somewhere in the pipeline that make the final data not (necessarily) correct. All the correct pieces are attached to the correct parts, but I think there may be a sign flip or L/R eye swap or something somewhere in the pipeline that might be borking up the final output.
However, this pipeline is sound on a more structural level, so I think its a good time to slot it in to the full pipeline and then break out the fine-toothed combs to look for the little snarls that may still exist.
Installation
uvenvironment made from thepyproject.tomlin the top level (runuv syncfrom a terminal set to the top levelbs/folder)Entry points
Skull Solver
bs/python_code/rigid_body_solver/ferret_skull_solver.pyscript.{recording/clip_folder}/mocap_data/output_data/solver_output/folder.Gaze Pipeline
python_code/ferret_gaze/run_gaze_pipeline.pyeye kinematicsfrom pupil data and save them to{recording/clip_folder/eye_data/output_data/eye_kinematicsgaze_kinematics(note: gaze kinematics are similar to eye kinematics, but in a global/world-centered reference frame. Eye kinematics are in a eye-socket-centered/local reference frame)Output data
analyzable_datafolder in the top level of the recording/clip folderferret_full_gaze_blender_viz.pyscript int he analyzable_data folder - open this script in the Blender scripting and run it to load the data into a Blender scene (NOTE - open the System Console first to see output as the script runs)display_videoswhich has resampled annotated videos that match the timestamp of the analysis data. The original frame# is written in the corner of each frame. These videos are for convenience when making visuals such as the Blender animationKey objects are:
AI Slop
Data Model Primer Script
python_code/ferret_gaze/ferret_kinematics_primer.pythat is designed to give you an intro to the basic data models and relevant geometry.Note for Analysis
Marching Orders
@philip
@schollben and whatever Em's GH handle is
primerscript i mentioned.python_code/ferret_gaze/visualizationfolder. You can try starting from there if that's helpful. If there are bugs when running it, drop the script into an AI chat alongside the relevant data object, and it can probably fix the error (esp useful for small path/syntax errors. most of these scripts will be pretty close to right, so most AI's will be able to handle such errors)gl; hf!