I have a problem using the label_frames() command in Windows. It seems as if deeplabcut is not able to load the frames it itself extracted from the video with lable_extract(). To explain myself better, let me walk you through my code:
- Create a new project using:
- extract frames as:
- With the config.yaml file succesfully generated, I extract the frames as:
- The frames are extracted and stored in the labeled-data folder (The video is about 20s and I am extracting 100 frames). And here is where my issue begins. Because I can clearly see the .png frames in the folder. However, when I execute deeplabcut.label_frames(config_path) and use the GUI to load the frames, the labeled-data folder looks empty. And if I just select the folder and click on load, I get the errors shown at the bottom.
Do you have any clue of why I cannot visualize the frames and load them into the GUI?
I will appreciate any piece of advice you could provide me.
Thank you very much.
TypeError Traceback (most recent call last) C:\Users\reyre\Desktop\MasterProject\DeepLabCut-master\DeepLabCut-master\deeplabcut\utils\auxiliaryfunctions.py in read_config(configname) 73 try: ---> 74 with open(path, 'r') as f: 75 cfg = ruamelFile.load(f) TypeError: invalid file: WindowsPath('C:/Users/reyre/Desktop/MasterProject/DeepLab0-Trial_1-2019-02-06/config.yaml') During handling of the above exception, another exception occurred: IndexError Traceback (most recent call last) C:\Users\reyre\Desktop\MasterProject\DeepLabCut-master\DeepLabCut-master\deeplabcut\generate_training_dataset\labeling_toolbox.py in browseDir(self, event) 369 370 # Reading config file and its variables --> 371 self.cfg = auxiliaryfunctions.read_config(self.config_file) 372 self.scorer = self.cfg['scorer'] 373 self.bodyparts = self.cfg['bodyparts'] C:\Users\reyre\Desktop\MasterProject\DeepLabCut-master\DeepLabCut-master\deeplabcut\utils\auxiliaryfunctions.py in read_config(configname) 75 cfg = ruamelFile.load(f) 76 except Exception as err: ---> 77 if err.args == "could not determine a constructor for the tag '!!python/tuple'": 78 with open(path, 'r') as ymlfile: 79 print("Converting to novel config.yaml format!") IndexError: tuple index out of range
I even tried loading the labeled-data from the example folder Reaching-MacKenzie-2018-08-30, but I get the exact same problem.