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

Error when generating/saving some normalised poses #42

Open
rktilia opened this issue Apr 21, 2023 · 1 comment
Open

Error when generating/saving some normalised poses #42

rktilia opened this issue Apr 21, 2023 · 1 comment

Comments

@rktilia
Copy link

rktilia commented Apr 21, 2023

There is an occasional issue for some pose files when saving a normalized version of the hands.

Error message: ushort format requires 0 <= number <= (32767 *2 +1)

A pose file is generated but it is very small (only 4 bytes) and it cannot be read in again.

Currently, I have only seen this issue with normalisation of the right hand.

Colab to reproduce: https://colab.research.google.com/drive/1CPTP6Um2K6bYv62QvHrVZ0HyPc0WKpSA?usp=sharing

@AmitMY
Copy link
Collaborator

AmitMY commented Apr 21, 2023

The problem seems to be your dimensions.
They are:

width=72165 
height=53412 
depth=7497

To fix this, for your case, you can set the dimensions to something else. Here is the maximum value:

p_norm_rh.header.dimensions.width = 0x7fff * 2 + 1
p_norm_rh.header.dimensions.height = 0x7fff * 2 + 1
p_norm_rh.header.dimensions.depth = 0x7fff * 2 + 1

Please note, this does not have an effect on the pose data, but only matters for visualization, if you would like to draw the pose it will create an insanely large image. (So you could also use 0 and that would be fine)

I now added warnings in 2bd9d2f

Does this solve your issue?

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