ingest.py
ingest_subjects(subject_csv_path='./user_data/subjects.csv', skip_duplicates=True, verbose=True)
¶
Inserts ./user_data/subject.csv data into corresponding subject schema tables
Parameters:
Name | Type | Description | Default |
---|---|---|---|
subject_csv_path |
str
|
relative path of subject csv |
'./user_data/subjects.csv'
|
skip_duplicates |
bool
|
Default True. Passed to DataJoint insert |
True
|
verbose |
bool
|
Display number of entries inserted when ingesting |
True
|
Source code in workflow_deeplabcut/ingest.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
|
ingest_sessions(session_csv_path='./user_data/sessions.csv', skip_duplicates=True, verbose=True)
¶
Ingests to session schema from ./user_data/sessions.csv
Parameters:
Name | Type | Description | Default |
---|---|---|---|
session_csv_path |
str
|
relative path of session csv |
'./user_data/sessions.csv'
|
skip_duplicates |
bool
|
Default True. Passed to DataJoint insert |
True
|
verbose |
bool
|
Default True. Display number of entries inserted when ingesting |
True
|
Source code in workflow_deeplabcut/ingest.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
|
ingest_train_params(config_params_csv_path, skip_duplicates=True, verbose=True)
¶
Use provided path to load TrainingParamSet with relative path to config.yaml
Parameters:
Name | Type | Description | Default |
---|---|---|---|
config_params_csv_path |
str
|
relative path of csv with config parameters |
required |
skip_duplicates |
bool
|
Default True. Passed to DataJoint insert |
True
|
verbose |
bool
|
Default True. Display number of entries inserted when ingesting |
True
|
Source code in workflow_deeplabcut/ingest.py
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
|
ingest_train_vids(train_video_csv_path, verbose=False, **kwargs)
¶
Use provided CSV to insert into train.VideoSet and train.VideoSet.File
Parameters:
Name | Type | Description | Default |
---|---|---|---|
train_video_csv_path |
str
|
relative path of csv with training video info |
required |
verbose |
bool
|
Default False. Display number of entries inserted when ingesting |
False
|
**kwargs |
dict
|
Optional. Unused dict of keyword arguments. |
{}
|
Source code in workflow_deeplabcut/ingest.py
86 87 88 89 90 91 92 93 94 95 96 97 |
|
ingest_model_vids(model_video_csv_path, skip_duplicates=True, verbose=False)
¶
Use provided CSV to insert into model.VideoRecording and VideoRecording.File
Parameters:
Name | Type | Description | Default |
---|---|---|---|
model_video_csv_path |
str
|
relative path of csv with model video info |
required |
skip_duplicates |
bool
|
Default True. Passed to DataJoint insert |
True
|
verbose |
bool
|
Default False. Display number of entries inserted when ingesting |
False
|
Source code in workflow_deeplabcut/ingest.py
100 101 102 103 104 105 106 107 108 109 110 111 112 |
|
ingest_model(model_model_csv_path, skip_duplicates=True, verbose=False)
¶
Use provided CSV to insert into model.Model table
Parameters:
Name | Type | Description | Default |
---|---|---|---|
model_model_csv_path |
str
|
relative path of csv with DLC Model info |
required |
skip_duplicates |
bool
|
Default True. Passed to DataJoint insert |
True
|
verbose |
bool
|
Default False. Display number of entries inserted when ingesting |
False
|
Source code in workflow_deeplabcut/ingest.py
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
|
ingest_dlc_items(config_params_csv_path='./user_data/config_params.csv', train_video_csv_path='./user_data/train_videosets.csv', model_video_csv_path='./user_data/model_videos.csv', skip_duplicates=False, verbose=True)
¶
Ingests to DLC schema from CSVs
Parameters:
Name | Type | Description | Default |
---|---|---|---|
config_params_csv_path |
str
|
Optional. Csv path for model training config and parameters |
'./user_data/config_params.csv'
|
train_video_csv_path |
str
|
Optional. Csv path for list of training videosets |
'./user_data/train_videosets.csv'
|
model_video_csv_path |
str
|
Optional. Csv path for list of modeling videos for pose estimation |
'./user_data/model_videos.csv'
|
Source code in workflow_deeplabcut/ingest.py
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 |
|