Skip to content

files in share_contex25_thresh0 are corrupted? #12

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

Open
apple2373 opened this issue Aug 29, 2024 · 1 comment
Open

files in share_contex25_thresh0 are corrupted? #12

apple2373 opened this issue Aug 29, 2024 · 1 comment

Comments

@apple2373
Copy link

apple2373 commented Aug 29, 2024

I cannot load any of the files in https://github.com/assembly-101/assembly101-action-recognition/tree/main/MS-G3D-action-recognition/HAND_GCN/share_contex25_thresh0/

import pickle
file_path = "train_label.pkl"
with open(file_path, 'rb') as file:
    data = pickle.load(file)  # or use 'bytes' for byte objects
print(data)

will give

Traceback (most recent call last):
File "temp.py", line 4, in
data = pickle.load(file) # or use 'bytes' for byte objects
_pickle.UnpicklingError: pickle data was truncated

import numpy as np
file_path = 'train_data_joint_200.npy'
data = np.load(file_path)
print(data)

will give
Traceback (most recent call last):
File "temp.py", line 3, in
data = np.load(file_path)
File "/home/localstorage/miniconda3/envs/py3.7/lib/python3.7/site-packages/numpy/lib/npyio.py", line 441, in load
pickle_kwargs=pickle_kwargs)
File "/home/localstorage/miniconda3/envs/py3.7/lib/python3.7/site-packages/numpy/lib/format.py", line 787, in read_array
array.shape = shape
ValueError: cannot reshape array of size 131040 into shape (46286,3,200,21,2)

My access to the original files on Google Drive is not yet approved, so I cannot reproduce these files either.
Update: Now it's approved (thanks!) so I can reproduce these files, but I still think it's better to fix the corrupted files on github, so I keep the issue open.

@ZahidRazzaq
Copy link

@apple2373 I faced same issue from https://github.com/assembly-101/assembly101-action-recognition/tree/main/MS-G3D-action-recognition/HAND_GCN/share_contex25_thresh0/ as those files are corrupted. I generated the annotation files by myself. You can do the same by running the preprocess folder files one by one (update file paths too). This way, you will clean annotation files and issue will be resolved.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants