You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a number of applications, it would be nice to be able to work with poses using the Pose-format library. So, given a datum, it would be ideal to be able to reconstruct the Pose format, or at least retrieve the Header to know which point is which.
Applications include
Visualization of the pose sequences.
Being able to apply pose normalization or select specific points, as in SignCLIP.
Ability to save off the data as .pose files
I tried a few methods for reconstructing the pose from the datum and wasn't able to figure it out. Currently, what we get when you do a tfds.load with pose="holistic", is a Tensor, without the accompanying header that explains things like fps, which point is the NOSE point, and so forth. Eventually I just edited the data loader in question to also save off .pose files.
The text was updated successfully, but these errors were encountered:
What I do, which is terrible that it is not a part of this library, is:
dataset_name="dgs_corpus"# for example# Dynamically import the dataset moduledataset_module=importlib.import_module(f"sign_language_datasets.datasets.{dataset_name}.{dataset_name}")
# Read the pose header from the dataset's predefined filewithopen(dataset_module._POSE_HEADERS["holistic"], "rb") asbuffer:
pose_header=PoseHeader.read(BufferReader(buffer.read()))
pose_body=NumPyPoseBody(fps=float(datum["pose"]["fps"].numpy()),
data=datum["pose"]["data"].numpy(),
confidence=datum["pose"]["conf"].numpy())
# Construct and return the Pose objectpose=Pose(pose_header, pose_body)
For a number of applications, it would be nice to be able to work with poses using the Pose-format library. So, given a datum, it would be ideal to be able to reconstruct the Pose format, or at least retrieve the Header to know which point is which.
Applications include
I tried a few methods for reconstructing the pose from the datum and wasn't able to figure it out. Currently, what we get when you do a tfds.load with pose="holistic", is a Tensor, without the accompanying header that explains things like fps, which point is the NOSE point, and so forth. Eventually I just edited the data loader in question to also save off .pose files.
The text was updated successfully, but these errors were encountered: