Skip to content
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

Numpy upgrade error for training and evaluating #30

Open
yishengpei opened this issue Apr 26, 2024 · 1 comment
Open

Numpy upgrade error for training and evaluating #30

yishengpei opened this issue Apr 26, 2024 · 1 comment

Comments

@yishengpei
Copy link

Hi, I failed to run the training and evaluating scripts with numpy == 1.26.4 with following error,

ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (97148,) + inhomogeneous part. Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.

So I change the code from line 81 of file phalp_action_dataset.py from self.track2video = np.array(self.track2video) to self.track2video = np.asarray(self.track2video, dtype=object) and solve it. Might caused by the numpy upgrade?

If you are happy with this, I will pull request the problem and send it back.

Many thanks.

@Narrowunknown
Copy link

Same issue here

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