-
Notifications
You must be signed in to change notification settings - Fork 65
Description
I am having trouble specifying the path to the vame.egocentric aligment function using the example data suggested and I get UnboundLocalError: local variable 'data' referenced before assignment"
I would really appreciate the help to see what I am getting wrong here. Is there there something more fundamental with project initialisation?
Here are the things I have tried
- If I specify the video path exactly in the config file as below I get the "UnboundLocalError: local variable 'data' referenced before assignment"
- if I specify as VAME_Example_120224-Jan16-2024/videos/video-1 I also get the same error
- I can trick it into running if I specify VAME_Example_120224-Jan16-2024/videos/video-1.csv and put the file in this folder but I think this causes me problems later.
config paths
project_path: /content/drive/MyDrive/Colab Notebooks/VAME/VAME_Example/VAME_Example_120224-Jan16-2024
video_sets: ['/content/drive/MyDrive/Colab Notebooks/VAME/VAME_Example/VAME_Example_120224-Jan16-2024/videos/video-1.mp4']
current folder structure
vame.egocentic alignment
Aligning data /content/drive/MyDrive/Colab Notebooks/VAME/VAME_Example/VAME_Example_120224-Jan16-2024/videos/video-1.mp4, Pose confidence value: 0.99
UnboundLocalError Traceback (most recent call last)
in <cell line: 1>()
----> 1 vame.egocentric_alignment(config, pose_ref_index=[0,5], crop_size=(300,300), use_video=False, video_format='.mp4', check_video=False) # transform for egocentric aligment
2 #uses path to video specified in the config file video sets
1 frames
/content/VAME/vame/util/align_egocentrical.py in alignment(path_to_file, filename, pose_ref_index, video_format, crop_size, confidence, use_video, check_video)
264 elif dataFile.endswith('.h5'):
265 data = pd.read_hdf(dataFile)
--> 266 data_mat = pd.DataFrame.to_numpy(data)
267 # data_mat = data_mat[:,1:]
268
UnboundLocalError: local variable 'data' referenced before assignment