-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vame.egocentic alignment specifying video path - UnboundLocalError #133
Comments
As a follow up, 1. If I run a vame.egocentic alignment with the path as content/drive/MyDrive/Colab Notebooks/VAME/VAME_Example/VAME_Example_120224-Jan16-2024/videos/video-1.csv I can then also successfully run but then I have errors presumably because of the incorrect path: 1 vame.pose_segmentation(config) gives me as follows or changing the path 2 vame.pose_segmentation(config) gives me as follows In all cases I think the incorrect path near the beginning for vame.egocentic alignment is causing me problems downstream Full tracebackUsing CUDA FileNotFoundError Traceback (most recent call last) 2 frames /usr/local/lib/python3.10/dist-packages/numpy/core/overrides.py in save(*args, **kwargs) /usr/local/lib/python3.10/dist-packages/numpy/lib/npyio.py in save(file, arr, allow_pickle, fix_imports) FileNotFoundError: [Errno 2] No such file or directory: '/content/drive/MyDrive/Colab Notebooks/VAME/VAME_Example/VAME_Example_120224-Jan16-2024/videos/VAME/hmm-15/15_km_label_/content/drive/MyDrive/Colab Notebooks/VAME/VAME_Example/VAME_Example_120224-Jan16-2024/videos/.npy' |
And finally, my current work around is to use - not sure why this works so far but it allows video import I have also now commented out #figManager.window.showMaximized()' in the treehierarchy.py file |
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
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
The text was updated successfully, but these errors were encountered: