Error when generating/saving some normalised poses
rktilia opened this issue · comments
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
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?