<jupyter_start><jupyter_text>Point to the training images, label using the 'DeepPoseKit' annotator (Graving et al. 2019)<jupyter_code># The skeleton file specifies the affinity fields (nose-to-tail, ear-to-nose, etc) 
# between the clicked keypoints (nose, ears, tail, implant).

# high-res training data 
top_folder_0 = '/media/chrelli/Data0/recording_20200821-123841'
top_folder_1 = '/media/chrelli/Data1/recording_20200821-123841'
# training data with different exposure
top_folder_0 = '/media/chrelli/Data0/recording_20200828-113642/'
top_folder_1 = '/media/chrelli/Data1/recording_20200828-113642/'

# validation dataset with LASER ON 90 fps
top_folder_0 = '/media/chrelli/Data0/recording_20200828-114251/'
top_folder_1 = '/media/chrelli/Data1/recording_20200828-114251/'

# training data with implant 
top_folder_0 = '/media/chrelli/Data0/recording_20201107-092409/'
top_folder_1 = '/media/chrelli/Data1/recording_20201107-092409/'

# training data with implant with SPIKES
top_folder_0 = '/media/chrelli/Data0/recording_20201108-092537/'
top_folder_1 = '/media/chrelli/Data1/recording_20201108-092537/'

# GOOD SPIKES< female, no laser
top_folder_0 = '/media/chrelli/Data0/recording_20201110-104449'
top_folder_1 = '/media/chrelli/Data1/recording_20201110-104449'

# ALSO good spikes, more light
top_folder_0 = '/media/chrelli/SSD4TB/Data0_backup/recording_20201111-103049'
top_folder_1 = '/media/chrelli/SSD4TB/Data1_backup/recording_20201111-103049'


training_sets = glob.glob( top_folder_0 + '/*.h5')
skeletons = glob.glob('training_sets' + '/*skeleton_v2*')

print(training_sets)
print(skeletons)


app = Annotator(datapath=training_sets[0],
                dataset='c_images',
                skeleton=skeletons[0],
                shuffle_colors=False,
                text_scale=.3)

app.run()<jupyter_output>Saved
Saved
{'fraction_non_alphanumeric': 0.11498637602179837, 'fraction_numerical': 0.12970027247956403, 'mean_word_length': 4.884615384615385, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '207493', 'license': 'Apache-2.0', 'n_tokens_mistral': 839, 'n_tokens_neox': 687, 'n_words': 112, 'path': 'analysis/IMP_ir_002_Label_training_images.ipynb', 'repo_name': 'chrelli/3DDD_social_mouse_tracker', 'size': '1835'}