質問編集履歴

1

エラーメッセージの変更

2021/10/26 11:55

投稿

xs5786
xs5786

スコア1

test CHANGED
@@ -1 +1 @@
1
- deeplabcut google colab上での開発 python AttributeError: 'str' object has no attribute 'keys'
1
+ deeplabcut google colab上での開発 python AttributeError: 'CommentedSeq' object has no attribute 'keys'
test CHANGED
@@ -68,7 +68,65 @@
68
68
 
69
69
  ```
70
70
 
71
+ config.yamlファイルのvideo_setsを
71
72
 
73
+ video_sets:
74
+
75
+ -/content/drive/MyDrive/ColabNotebooks~のように変更したところ
76
+
77
+ エラーメッセージが以下のように変わりました。
78
+
79
+
80
+
81
+
82
+
83
+ ### 発生している問題・エラーメッセージ
84
+
85
+
86
+
87
+ ```
88
+
89
+ AttributeError Traceback (most recent call last)
90
+
91
+ <ipython-input-16-b29a52be26d9> in <module>()
92
+
93
+ ----> 1 deeplabcut.create_training_dataset(path_config_file)
94
+
95
+
96
+
97
+ 1 frames
98
+
99
+ /usr/local/lib/python3.7/dist-packages/deeplabcut/generate_training_dataset/trainingsetmanipulation.py in create_training_dataset(config, num_shuffles, Shuffles, windows2linux, userfeedback, trainIndices, testIndices, net_type, augmenter_type)
100
+
101
+ 761
102
+
103
+ 762 Data = merge_annotateddatasets(
104
+
105
+ --> 763 cfg, Path(os.path.join(project_path, trainingsetfolder)), windows2linux
106
+
107
+ 764 )
108
+
109
+ 765 if Data is None:
110
+
111
+
112
+
113
+ /usr/local/lib/python3.7/dist-packages/deeplabcut/generate_training_dataset/trainingsetmanipulation.py in merge_annotateddatasets(cfg, trainingsetfolder_full, windows2linux)
114
+
115
+ 414 AnnotationData = []
116
+
117
+ 415 data_path = Path(os.path.join(cfg["project_path"], "labeled-data"))
118
+
119
+ --> 416 videos = cfg["video_sets"].keys()
120
+
121
+ 417 for video in videos:
122
+
123
+ 418 _, filename, _ = _robust_path_split(video)
124
+
125
+
126
+
127
+ AttributeError: 'CommentedSeq' object has no attribute 'keys'
128
+
129
+ ```
72
130
 
73
131
  ### 該当のソースコード
74
132