teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

エラーメッセージの変更

2021/10/26 11:55

投稿

xs5786
xs5786

スコア1

title CHANGED
@@ -1,1 +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'
body CHANGED
@@ -33,7 +33,36 @@
33
33
 
34
34
  AttributeError: 'str' object has no attribute 'keys
35
35
  ```
36
+ config.yamlファイルのvideo_setsを
37
+ video_sets:
38
+ -/content/drive/MyDrive/ColabNotebooks~のように変更したところ
39
+ エラーメッセージが以下のように変わりました。
36
40
 
41
+
42
+ ### 発生している問題・エラーメッセージ
43
+
44
+ ```
45
+ AttributeError Traceback (most recent call last)
46
+ <ipython-input-16-b29a52be26d9> in <module>()
47
+ ----> 1 deeplabcut.create_training_dataset(path_config_file)
48
+
49
+ 1 frames
50
+ /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)
51
+ 761
52
+ 762 Data = merge_annotateddatasets(
53
+ --> 763 cfg, Path(os.path.join(project_path, trainingsetfolder)), windows2linux
54
+ 764 )
55
+ 765 if Data is None:
56
+
57
+ /usr/local/lib/python3.7/dist-packages/deeplabcut/generate_training_dataset/trainingsetmanipulation.py in merge_annotateddatasets(cfg, trainingsetfolder_full, windows2linux)
58
+ 414 AnnotationData = []
59
+ 415 data_path = Path(os.path.join(cfg["project_path"], "labeled-data"))
60
+ --> 416 videos = cfg["video_sets"].keys()
61
+ 417 for video in videos:
62
+ 418 _, filename, _ = _robust_path_split(video)
63
+
64
+ AttributeError: 'CommentedSeq' object has no attribute 'keys'
65
+ ```
37
66
  ### 該当のソースコード
38
67
 
39
68
  ```ここに言語名を入力