-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
71c094a
commit 0b39293
Showing
10 changed files
with
163 additions
and
4 deletions.
There are no files selected for viewing
Binary file added
BIN
+697 KB
...tware/assets/images/automation_pipeline_developer/GUI_tab1_table_connection.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.26 MB
...software/assets/images/automation_pipeline_developer/cluster_params_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.17 MB
...oftware/assets/images/automation_pipeline_developer/default_parameters_main.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.18 MB
...s/images/automation_pipeline_developer/imaging_equivalence_parameter_tables.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.77 MB
...e/assets/images/automation_pipeline_developer/new_default_recording_records.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.29 MB
...tware/assets/images/automation_pipeline_developer/precluster_params_example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+34.7 KB
src/software/assets/images/pupillometry_guide/pupillometry_model_selection.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -171,14 +171,62 @@ psmd = pupillometry.PupillometrySessionModelData() | |
pupillometry_finished_sessions = psmd.get_finished_jobs_pupillometry() | ||
``` | ||
|
||
## Add a new video model to the pipeline | ||
|
||
1. Check <a href="https://deeplabcut.github.io/DeepLabCut/README.html">Deeplabcut documentation</a> for step by step guide. | ||
|
||
2. Ask for tips and tricks to our BRAINCoGS personnel that have created video models in the past: | ||
+ Joshua Julian ([email protected]) | ||
+ Juan Lopez ([email protected]) | ||
|
||
## Add a new video model to the pipeline | ||
3. After video model has been created, copy the main directory of the model to this location: `\\cup.pni.princeton. | ||
edu\braininit\Data\Raw\video_models\(video_model_directory)` | ||
|
||
4. Add model to the DB (u19_pupillometry.PupillometryModels table): | ||
+ MATLAB code: | ||
|
||
``` | ||
new_model_key = struct() | ||
new_model_key.model_description = 'New model to insert' | ||
new_model_key.model_path = 'video_models/new_model_directory_name' | ||
insert(pupillometry.PupillometryModels,new_model_key) | ||
``` | ||
+ Always add `video_models/` to the model_path, `before model_directory_name`. | ||
|
||
5. Get `model_id` of model you want to use for your sessions: | ||
|
||
``` | ||
>> pupillometry.PupillometryModels | ||
ans = | ||
Object pupillometry.PupillometryModels | ||
:: Table to store reference for each model :: | ||
MODEL_ID model_description model_path | ||
________ _____________________ ______________________________________________ | ||
1 {'Pupillometry_2022'} {'video_models/Pupillometry2-Ryan-2022-04-07'} | ||
2 {'Pupillometry_2023'} {'video_models/twolickspouts-esme-2023-06-22'} | ||
``` | ||
|
||
`fetch(pupillometry.PupillometryModels,'*')` | ||
|
||
<figure> | ||
<img src='./assets/images/pupillometry_guide/pupillometry_model_selection.png'> | ||
<center><figcaption>Pupillometry model_id selection</figcaption></center> | ||
</figure> | ||
|
||
6. Insert into `u19_pupillometry.PupillometrySessionModel` sessions to be processed with the new model: | ||
|
||
``` | ||
key = struct('subject_fullname', 'efonseca_ef317_act116', 'session_date', '2024-02-21') | ||
key.model_id = 2 | ||
insert(pupillometry.PupillometrySessionModel, key, 'IGNORE'); | ||
``` | ||
|
||
7. Sessions will be processed with new model overnight. | ||
|
||
## | ||
### **Note: All pupillometry sessions are processed with a default model (model_id = 2, Pupillometry_2023).** | ||
### **In the future we plan a way to select model for subjects and or rigs instead of being processed with default model.** | ||
|
||
|
||
## Review processed data | ||
|