You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 1, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 1, 2021. It is now read-only.
UnboundLocalError: local variable 'cfg' referenced before assignment #21
I am having this issue when I attempt "dlc.extract_frames(config_path, crop = True"
I am using Visual Studio Code as a text editor instead of ATOM, could this be the source of the problem? It seems to be in the config.yaml and I even tried it using an old config file that used to work
The config_path variable is different than your project_path. I assume you moved the project and the project_path variable needs to be updated in the config.
Activity
KonradDanielewski commentedon May 20, 2021
It's an error connected to improper formatting of the project path or an error in project path in config.yaml
Can you share a path to your project and a screenshot of the config.yaml (top part with the project path)?
RobertoEnrique commentedon May 20, 2021
Yes. What I do to get to the project is:
config_path = '/home/dubouelab/Roberto/Aggression-Videos-2021-02-04/Side_Videos/Resident-Intruder-Assay-Roberto-2021-02-06'
Here are 2 screenshots of the path and the error it is throwing:
KonradDanielewski commentedon May 21, 2021
Please post screenshot of your config.yaml file. This part:

RobertoEnrique commentedon May 21, 2021
Ok, here it is:

KonradDanielewski commentedon May 21, 2021
The config_path variable is different than your project_path. I assume you moved the project and the
project_pathvariable needs to be updated in the config.RobertoEnrique commentedon May 21, 2021
That solved it... wow, what a silly mistake! I'm still new to all this. But thanks so much!