MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / create_config_template

Function create_config_template

deeplabcut/utils/auxiliaryfunctions.py:41–166  ·  view source on GitHub ↗

Creates a template for config.yaml file. This specific order is preserved while saving as yaml file.

(multianimal=False)

Source from the content-addressed store, hash-verified

39
40
41def create_config_template(multianimal=False):
42 """Creates a template for config.yaml file.
43
44 This specific order is preserved while saving as yaml file.
45 """
46 if multianimal:
47 yaml_str = """\
48# Project definitions (do not edit)
49Task:
50scorer:
51date:
52multianimalproject:
53identity:
54\n
55# Project path (change when moving around)
56project_path:
57\n
58# Default DeepLabCut engine to use for shuffle creation (either pytorch or tensorflow)
59engine: pytorch
60\n
61# Annotation data set configuration (and individual video cropping parameters)
62video_sets:
63individuals:
64uniquebodyparts:
65multianimalbodyparts:
66bodyparts:
67\n
68# Fraction of video to start/stop when extracting frames for labeling/refinement
69start:
70stop:
71numframes2pick:
72\n
73# Plotting configuration
74skeleton:
75skeleton_color:
76pcutoff:
77dotsize:
78alphavalue:
79colormap:
80\n
81# Training,Evaluation and Analysis configuration
82TrainingFraction:
83iteration:
84default_net_type:
85default_augmenter:
86default_track_method:
87snapshotindex:
88detector_snapshotindex:
89batch_size:
90\n
91# Cropping Parameters (for analysis and outlier frame detection)
92cropping:
93#if cropping is true for analysis, then set the values here:
94x1:
95x2:
96y1:
97y2:
98\n

Callers 1

write_configFunction · 0.85

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected