Topology-agnostic skeletal motion retargeting
The neural network-based method for motion retargeting addresses the limitation of topology-dependent techniques by using encoder and decoder networks to generate a latent code for retargeting across arbitrary skeletons, enabling efficient and topology-agnostic motion transfer in animation assets.
Patent Information
- Application Number
- PCT/EP2024/057287
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-28
- Filing Date
- 2024-03-19
- Publication Date
- 2024-10-03
AI Technical Summary
Current motion retargeting techniques are limited by the requirement that source and target skeletons have identical or homeomorphic topologies, restricting the repurposing of old animation assets for new productions and failing to effectively handle heterogeneous datasets.
A neural network-based method that uses an encoder and decoder network, conditioned on standardized skeleton templates to generate a latent code representing the motion, allowing for retargeting across skeletons with arbitrary topologies, employing positional encoding and transformer blocks to process joint positions independently and generate a retargeted skeleton sequence.
Enables motion retargeting that is agnostic to skeletal topology differences, allowing for efficient repurposing of old animation assets and merging diverse datasets into a common representation, while maintaining visual plausibility and naturalness of the retargeted motion.
Smart Images

Figure EP2024057287_03102024_PF_FP_ABST
Abstract
Description
[0001]TOPOLOGY-AGNOSTIC SKELETAL MOTION RETARGETING CROSS REFERENCE TO RELATED APPLICATION This application claims the benefit of European Serial No.23305422.0, filed March 28, 2023, which is incorporated by reference herein in its entirety. TECHNICAL FIELD At least one of the present embodiments generally relates to a method or an apparatus for retargeting skeletal motion. BACKGROUND This invention relates to the animation of virtual characters, and specifically of human bodies of virtual characters. Applications of this technology range from the creation of digital assets in the movie and video game industry to the control and animation of avatars in virtual word environments such as implementations of the Metaverse concept. The standard representation of a virtual character is a textured 3D mesh. The geometry of the mesh consists of a set of 3D vertices connected by edges in such a way that the vertices form simple polygons on the surface of the mesh, typically triangles or quads. Usually, a large number of vertices is needed to accurately model the surface of the body. Thus, animating the character by moving each single vertex of the mesh would be extremely tedious. Instead, the animation is typically driven by a skeleton that can be seen as a simplified representation of the human body skeleton. As illustrated on Figure 1, a skeleton used for character animation consists of a graph of joints, represented as disks on the figure, connected by bones, represented by line segments on the figure. In a typical setting, as shown in the legend of Figure 1, the positions of the joints will match the position of the main joints in a physical human skeleton. Thus, each joint in the skeleton is assigned a semantic meaning, namely, the identity of the corresponding physical joint in a physical human skeleton. The number of joints and the identities of the joints define the topology of the skeleton. Given a predetermined topology, the lengths of the bones define the morphology of the skeleton. 1 In skeleton-driven animation, each vertex of the mesh representing the body of the animated character is bound to one or several neighboring joints in the skeleton with predetermined weights called skinning weights. The weights for each vertex sum up to 1. The displacements of each vertex in an animation are completely determined by the translations and rotations of the skeleton joints and by the skinning weights. Thus, the animation of the skeleton joints is sufficient to compute the animation of each vertex in the mesh representing the surface of the character body. A skeletal animation is entirely determined by the displacements of the joints from one frame to the next in the sequence. For a given type motion type (e.g., walking), style and pace, the animations of two characters whose skeleton morphologies differ will be different. Motion retargeting refers to the task of transferring the movements of a source character in a skeletal animation sequence to a target character with a different morphology. There is no formal specification of this task: in practice, the goal is to synthesize a retargeted sequence whose motion mimics the source animation while remaining visually plausible and natural. An important use case of motion retargeting in movie or video game production is to repurpose existing animation assets. Creating animations for a new production by retargeting and fine-tuning existing animations from old assets can be more efficient than authoring them from scratch. Since retargeting implies abstracting away the dynamics of the animation sequence, it can also provide a compact and bitrate efficient representation of a character motion. This can be used to in transmission protocols that deal with the transfer of an animation to a remote device, for instance for the purpose of animating an avatar in a video game or a virtual world. SUMMARY At least one of the present embodiments generally relates to a method or an apparatus for retargeting skeletal motion. According to a first aspect, there is provided a method. The method comprises steps for performing positional encoding on a skeleton template and a skeleton motion sequence to generate a token sequence; appending a duplicated query token to the token sequence to generate a tensor; transforming the tensor; and, retaining a last token of the transformed tensor to be processed by a fully connected layer to generate a latent code representative of the motion in the input skeleton motion sequence. 2 According to a second aspect, there is provided a method. The method comprises steps for processing a latent code representative of the motion of an input skeleton sequence of predetermined length by a Convolutional Neural Network (CNN) and an input skeleton template by a Multi-Layer Perceptron (MLP); duplicating an MLP output tensor so that its temporal dimension matches the predetermined length on the input skeleton sequence; performing positional encoding of the CNN and MLP output tensors; feeding the positional-encoded duplicated MLP output tensor to a neural network consisting of a sequence of at least two transformer blocks; processing the positional-encoded CNN output tensor through as many MLP networks as the number of transformer blocks in said neural network transforming the positional-encoded duplicated MLP output tensor; multiplying the inputs of each layer in said network of transformer blocks by the output of said MLP-processed replicated positional-encoded CNN output tensors; transforming the multiplied tensors; processing an output of a last transformer block by a one-dimensional CNN, wherein each joint is processed independently to generate a retargeted skeleton sequence. According to another aspect, there is provided an apparatus. The apparatus comprises a processor. The processor can be configured to implement the general aspects by executing any of the described methods. According to another aspect, there is provided an apparatus, configured to perform encoding of a skeletal motion sequence and an encoder template skeleton into latent code data representing the motion of said skeletal motion sequence and decoding the latent code data and a decoder template skeleton to generate an output retargeted motion sequence having the same motion as said encoded skeletal motion sequence. According to another general aspect of at least one embodiment, there is provided a non-transitory computer readable medium containing data content generated according to any of the described encoding embodiments or variants. According to another general aspect of at least one embodiment, there is provided a signal comprising data generated according to any of the described encoding embodiments or variants. According to another general aspect of at least one embodiment, a bitstream is formatted to include data content generated according to any of the described encoding embodiments or variants. 3 According to another general aspect of at least one embodiment, there is provided a non-transitory computer readable medium containing data content comprising instructions to perform any of the described encoding or decoding methods. These and other aspects, features and advantages of the general aspects will become apparent from the following detailed description of exemplary embodiments, which is to be read in connection with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 illustrates an animation skeleton with annotated joints (disks) and bones (line segments). Figure 2 illustrates an overview of a retargeting method. Figure 3 illustrates a block diagram of an encoder network. Figure 4 illustrates a block diagram of a decoder network. Figure 5 illustrates one embodiment of an encoding method for retargeting a skeletal motion sequence. Figure 6 illustrates another embodiment of a decoding method for retargeting a skeletal motion sequence. Figure 7 illustrates one embodiment of an apparatus for encoding and / or decoding a skeletal motion sequence. Figure 8 illustrates a compression scheme for the latent code representing the motion of a skeleton motion sequence. Figure 9 illustrates a decompression scheme for the latent code representing the motion of a skeleton motion sequence. Figure 10 illustrates a processor-based system for encoding / decoding under the general described aspects. DETAILED DESCRIPTION Recent developments on motion retargeting all rely on deep learning approaches. The input skeletal animation sequence is fed to a neural network, whose output provides the retargeted sequence. The network is trained on a dataset of skeletal animation sequences. Since datasets of skeletal animations representing the same motion for characters with different skeleton morphologies are rare, often a self- retargeting scenario is used for training. This means that the source and target 4 skeleton morphologies are identical, and the network is trained to reproduce at its output the input skeleton sequence. Alternatively, the network is trained using a cycle consistency loss. The optimization criterion in this case is to minimize the discrepancies between an animation of character A, and the animation of the same character retargeted to another character B then back to character A. An example of recent deep learning approach is described in the paper titled “Neural Kinematic Networks for Unsupervised Motion Retargetting” by R Villegas, J. Yang, D. Ceylan and H. Lee, published in the proceedings of the 2018 International Conference on Computer Vision and Pattern Recognition. Their neural network consists of a Recurrent Neural Network (RNN) encoder followed by an RNN decoder. The RNN decoder is conditioned on the topology of the target skeleton, represented by a reference pose of this skeleton. The RNN encoder captures the current context of the input skeleton sequence by the hidden state of the RNN and feeds it to the decoder RNN. The output of the decoder RNN provides the output sequence. In this approach, the skeleton topology of the output sequence is constrained to be the same as the input. The paper by K. Aberman, P. Li, D. Lischinski, O. Sorkine-Hornung, D. Cohen- O and B. Chen, titled “Skeleton-Aware Networks for Deep Motion Retargeting”, published in the ACM transactions on Graphics, vol.39 n°4, in July 2020, removes the need for input and output skeleton topologies to be identical. However, these topologies are required to be homeomorphic, meaning that they can be reduced to a common “primal” skeleton topology by merging pairs of adjacent bones. This still limits the applicability of retargeting in practice. To better disentangle static skeleton structure from character motion, the skeletal model is split into temporally invariant bone offset vectors and time-varying bone rotations at each joint. The deep motion retargeting network proposed in the paper processes these two components in parallel branches. A dedicated network is learnt for each character (skeleton topology and morphology) represented in the training dataset. It is designed as an autoencoder, composed of an encoder followed by a decoder. Each encoder generates separate embeddings for the static bone offset and dynamic joint rotation components involved in the retargeting transform. Skeletons encoded in these embeddings are mapped to the common primal skeletal structure. At inference, retargeting a motion sequence of character A to character B is obtained by composing the encoder trained for character A with the decoder trained for character B. 5 Advantages of the invention Prior art approaches to motion retargeting assume that the topologies of the source and target skeletons driving the animations are identical, or that they differ only up to a certain extent. This limits the practical interest of motion retargeting. Indeed, in the asset repurposing use case, character topologies used in old assets are likely to be different from the topology chosen for the new production in which animations are to be created. Unlike all previous approaches from the state of art, this invention proposes a method for retargeting the motion of a source character to a target character that is completely agnostic to the differences in the topology of the character skeletons. It thereby lifts all the restrictions on the repurposing of old assets for creating new animation sequences. An additional benefit is the usage of heterogeneous datasets collected by various organizations. Usually, depending on the acquisition system that is used, the representation and topology of the data differ. We propose here a solution that allows to merge all data into a common representation. As illustrated on Figure 2, the proposed retargeting method relies on a neural network consisting of an encoder network followed by a decoder network. The encoder is conditioned on an encoding skeleton template that represents the morphology and topology of the character in the input sequence. Similarly, the decoder is conditioned on a decoding skeleton template representing the target morphology and topology of the character in the retargeted output sequence. The method operates on input skeleton sequences of arbitrary lengths. Each skeleton in the sequence is represented by the 3D positions of joints in the 3D Euclidean space OXYZ. Thus, a motion sequence of F frames performed by a skeleton a having J(a) joints is represented by a vector ^^^^^∈ ℝ^^^^௫ଷ௫ி. When retargeting the morphology and topology of a skeleton a to a skeleton b, the encoder network is conditioned on the skeleton template ^^^ ^^^ ∈ ℝ^^^^௫ଷand the decoder network is conditioned on the skeleton Both templates are standardized neutral skeleton poses with legs along the body, as illustrated on Figure 2. The templates encode the topology of the character models through the ordering and positioning of their joints, and the morphology of the characters through the relative joint positions, that correspond to 6 the lengths of the skeleton bones. Each template is represented by the positions of its joints expressed in the OXYZ space. The positions are normalized such that the pelvis lies at the origin of the Euclidean space, the transverse plane of the template – that divides the body into inferior and superior sections – is parallel to the XY plane, and the coronal plane – that divides the body into dorsal and ventral sections – is parallel to the XZ plane. The skeleton template for a sequence can be obtained by manually editing an example skeleton with the same topology so that the pose conforms to the standardized neutral pose, then scaling the bone lengths to the values observed in the considered sequence. Encoder architecture The architecture of the encoder network is depicted in the block diagram of Figure 3. The encoder takes as inputs a motion sequence of skeletons and the corresponding template skeleton. The front-end part of the encoder model, represented on Figure 3 as the “Positional Encoding” block, deals with the positional encoding of the inputs. The skeleton sequence to be retargeted is a sequence of joint positions provided in an arbitrary order in the spatial domain, but in a consistent order across frames in the sequence. The purpose of positional encoding is to provide the encoder with the knowledge of the spatial position of each joint in the skeletons and the temporal position of each skeleton in the sequence. The positional encoding scheme in the encoder proceeds as follows. The joint positions of the template and of each skeleton in the motion sequence are first processed independently by a Multi-Layer Perceptron (MLP) neural network and a Convolutional Neural Network (CNN), respectively. The CNN operates along the temporal dimension of the input joint positions in the sequence. The joint features computed by the MLP from the template skeleton are duplicated to match the number of frames in the sequence. Next, the duplicated joint features of the template skeleton and of the input sequence are concatenated joint by joint and frame by frame. The joint-by-joint concatenation ensures that each joint position in the sequence is registered with the joint in the same position in the skeleton template, thereby providing spatial positional encoding. The output of this concatenation is fed to a fully connected layer, represented by the “FC Layer” box inside the Positional Encoding 7 block on Figure 3. The temporal positional encoding is obtained by applying to the output of this fully connected layer sinusoidal functions of varying frequencies to provide the encoder with the knowledge of the position of each frame in the sequence. Specifically, the temporal positional encoding term is given by sine and cosine functions of varying frequencies: sin ^^൬^^^ / ^^ , ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^where ^^ is the layer represented by the “FC Layer” box, while ^^ and ^^ denote the considered index of the frame in the sequence and the index of the feature, respectively. This temporal positional encoding term is then added to each item of the tensor output by the fully connected layer represented by the “FC Layer” box. Formally, the ^^௧^feature of the ^^௧^joint at ^^௧^frame after positional encoding is ^^^ᇱ,^,^ൌ ^^^,^,^^ ^^ ^^^ ^^, ^^^, where ^^^,^,^is the ^^௧^feature of the ^^௧^joint at the ^^௧^frame of the input of positional encoding block. Thus, the output of the positional encoding block is a tensor of dimensions C x J x F, where C represents the depth of the features output by the fully connected layer inside the Positional Encoding block, J is the number of joints in the skeletons at the input to the encoder, and F the number of frames in the input skeleton sequence. By analogy with the sequence-to-sequence networks used in natural language processing, this tensor can be interpreted as a sequence of F tokens each of dimension C x J. To ensure that the encoder output is independent of the number of joints in the input skeleton topology, and following standard practice in transformer networks used for natural language processing, a query token of dimension C, initialized randomly and replicated F times, is appended to this sequence of F tokens to create a new tensor of dimension C x (J+1) x F. Next, as represented on Figure 3, this new tensor is fed to a transformer network made up of a stack of N transformer blocks. At the output of this network, the last token in the J+1 token sequence, corresponding to the transformer-processed query token is retained and passed to a fully connected layer to provide the latent code at the encoder output. This latent code is a tensor whose dimension C x F is independent of the number of joints in the skeletons at the encoder input. It provides a compact representation of the motion information in the input skeleton sequence. 8 Thus, the query token acts as a fixed-size (with respect to the number of input skeleton joints) container that holds all the motion information on the input sequence that is relevant for the purpose of retargeting. The other tokens in the sequence are discarded. During the training of the encoder, the network is forced to progressively migrate this motion information towards the query token. Decoder architecture The architecture of the decoder network is depicted in the block diagram of Figure 4. It is similar to the architecture of the encoder. The decoder input consists of, firstly, a latent code tensor of dimension F x Z output by the encoder for the input sequence of F skeletons, which can be interpreted as F codes each of dimension Z, and secondly, of the skeleton template defining the topology and morphology of the skeleton of the target character of the retargeting. The number J’ of joints in the retargeted sequence will in general be different from the number J of joints in the input skeletons. The input skeleton template is fed to a MultiLayer Perceptron (MLP) network and the latent codes to a Convolutional Neural Network (CNN). The MLP processes each joint of the skeleton independently. The C x J’ tensor at the output of the MLP is duplicated F times to yield a C x F x J’ tensor whose temporal dimension matches the temporal dimension of the tensor at the CNN outputs. The same temporal positional encoding scheme as the one used in the encoder is applied to these two tensors. The position-encoded duplicated template tensor is fed to a network consisting of N transformer blocks. In parallel, the positional-encoded latent code tensor output by the CNN is fed to N distinct MLP networks. The N outputs of these N MLPs are used as modulating inputs for the transformer block inputs: the tensor at the input to the i-th transformer block is multiplied by the output tensor of the i-th MLP. Finally, the output of the last transformer block is fed to a 1D CNN that processes each joint independently to produce the retargeted skeleton sequence as a tensor of dimension J’ x 3 x F. Cross-Covariance Attention The computation and memory complexity of the self-attention layers in transformer blocks increase quadratically with the number of input tokens. As a refinement of the proposed invention, in order to minimize this complexity, the transformer blocks in the encoder and decoder of the proposed retargeting network 9 implement the cross-covariance attention scheme disclosed by A. El-Nouby, H. Touvron, M. Caron, P. Bojanowski, M. Douze, A. Joulin, I. Laptev, N. Neverova, G. Synnaeve, J. Verbeek and H. Jégou in their paper titled “XCiT: Cross-Covariance Image Transformers”, published in the proceedings of the 2021 NeurIPS conference on Neural Information Processing Systems. In this scheme, the self-attention is computed across feature channels instead of tokens, leading to a linear complexity with respect to the number of tokens. Training objectives The optimization criterion for training the network is the sum of two terms: a reconstruction loss and a temporal bone length consistency loss. Training is performed on the self-retargeting task where the output skeletal motion sequence is identical to the input sequence, up to a stochastic joint subsampling mechanism described below. The reconstruction loss term is defined as the mean squared position error of all the joints over all the frames of the processed sequence. In order to prevent the model from being tied to specific skeleton topologies in the training dataset, a stochastic joint subsampling strategy is applied. Given an input motion sequence ^^^^^from the training dataset, two versions ^^^^భ^and ^^^^మ^are derived, each by from ^^^^^a randomly drawn subsets of joints. These two versions can be viewed as representations of the same underlying skeletal motion. The skeleton template of ^^^ ^^^ corresponding to the input sequence is subsampled using the same two random subsets, yielding ^^^ ^^^^ and ^^^ ^^ଶ^. Letting ^^^. ^ and ^^^. ^ be the encoder and decoder of the retargeting network as represented on Figure 2, respectively, the reconstruction loss is computed as follows: 1. ^^^^భ^ is encoded conditioned on ^^^ ^^^^ into latent code ^^ ≜ ^^൫^^^^భ^ห^^^ ^^^^൯ decoded conditioned on ^^^ ^^ଶ^ into ^^^^^మ^≜ ^^^ ^^| ^^^ ^^ଶ^^2. The reconstruction loss is defined as the mean squared position error between ^^^^మ^and ^^^^^మ^, averaged over all the frames in the sequence: ^^^ ^ ଶ^^^ ≜ ி ^^^మ^∑ி^ୀ^∑^^^మ^^ୀ^ ^ ^^^^మ^^,^ െ ^^^^^మ^^,^ ^ଶ The temporal bone length consistency term is defined as the temporal variance of bone length ratios with respect to the true bone lengths in the sequence output by the retargeting network: 10 ^^^ 1మ^ி^^ ^ி^^ ^ ଶ^^^మ^ ^^^మ^ ^ మ ^ మ^^ ^^ ^^ ^^^^^ ^^ ^^^^^1^^^,^1^^^,^^ of input and output sequences, respectively, ^^^^మ^∈^^^మ^^,^ℝ and ^^^,^∈ ℝ are the lengths of the ^^௧^bone at the ^^௧^frame of the output sequences, and function ^^^⋅^ yields the number of bones in a skeleton. The criterion used to train the retargeting network is defined as ^^ ≜ ^^^^^^ ^^^^^^^^^^, where ^^^^^is a parameter that balances the two losses, set to 0.5. Refinements of the method The sequences used for training are set up as overlapping temporal chunks of 1 s motion, with an overlap of 0.8 s. The training sequences are normalized with respect to global translation of the skeleton by subtracting from the joint positions the mean joint position, computed by averaging the positions of the most important joints, specifically the ankles, hips, knees, shoulders, elbows and wrists. One embodiment of a method 500 for executing a retargeting encoding model is shown in Figure 5. The method commences at Start block 501 and proceeds to block 510 for performing positional encoding on a skeletal template and a skeleton motion sequence to generate a token sequence. Control proceeds from block 510 to block 520 for appending a randomly generated query token to the token sequence to generate a tensor. Control proceeds from block 520 to block 530 for transforming the tensor. Control proceeds from block 530 to block 540 for retaining a last token of the transformed tensor to be processed by a fully connected layer to generate a latent code representative of the motion in the input skeleton sequence. One embodiment of a method 600 for executing a retargeting decoding model is shown in Figure 6. The method commences at Start block 601 and proceeds to block 610 for processing an input skeleton template by an MLP and an input latent code representing the motion of a skeleton motion sequence to be synthesized by a convolutional neural network. Control proceeds from block 610 to block 620 for duplicating an MLP output tensor to match the temporal dimension of an output tensor of the CNN. Control proceeds from block 620 to block 630 for performing the positional 11 encoding of the CNN and MLP output tensors. Control proceeds from block 630 to block 640 for processing the positional-encoded CNN output tensor by N MLP networks. Control proceeds from block 630 to block 660 for processing the positional- encoded duplicated MLP output tensor by a neural network consisting of a sequence of N transformer blocks, and in parallel from block 640 to 650 for multiplying each of the input layers of said neural network consisting of a sequence of N transformer blocks by one of the N MLP-processed positional-encoded CNN output tensors. Control proceeds from block 660 to block 670 for processing an output of a last transformer block by a one-dimensional CNN, wherein each joint is processed independently to generate a retargeted skeleton sequence. Figure 7 shows one embodiment of an apparatus 700 for performing any of the aforementioned methods. The apparatus comprises Processor 710 and can be interconnected to a memory 720 through at least one port. Both Processor 710 and memory 720 can also have one or more additional interconnections to external connections. Processor 710 is also configured to either insert or receive information in a bitstream or in data and, executing at least a portion of a retargeting system using the aforementioned methods. The embodiments described here include a variety of aspects, including tools, features, embodiments, models, approaches, etc. Many of these aspects are described with specificity and, at least to show the individual characteristics, are often described in a manner that may sound limiting. However, this is for purposes of clarity in description, and does not limit the application or scope of those aspects. Indeed, all of the different aspects can be combined and interchanged to provide further aspects. Moreover, the aspects can be combined and interchanged with aspects described in earlier filings as well. The aspects described and contemplated in this application can be implemented in many different forms. Figures 8, 9, and 10 provide some embodiments, but other embodiments are contemplated and the discussion of Figures 8, 9, and 10 does not limit the breadth of the implementations. At least one of the aspects generally relates to transmitting a bitstream generated or encoded. These and other aspects can be implemented as a method, an apparatus, a computer readable storage medium having stored thereon instructions for encoding or decoding video data according to any of the methods described, and / or a computer readable 12 storage medium having stored thereon a bitstream generated according to any of the methods described. In the present application, the terms “reconstructed” and “decoded” may be used interchangeably. Usually, but not necessarily, the term “reconstructed” is used at the encoder side while “decoded” or “reconstructed” is used at the decoder side. Various methods are described herein, and each of the methods comprises one or more steps or actions for achieving the described method. Unless a specific order of steps or actions is required for proper operation of the method, the order and / or use of specific steps and / or actions may be modified or combined. Additionally, terms such as “first”, “second”, etc. may be used in various embodiments to modify an element, component, step, operation, etc., such as, for example, a “first decoding” and a “second decoding”. Use of such terms does not imply an ordering to the modified operations unless specifically required. So, in this example, the first decoding need not be performed before the second decoding, and may occur, for example, before, during, or in an overlapping time period with the second decoding. Unless indicated otherwise, or technically precluded, the aspects described in this application can be used individually or in combination. Various numeric values are used in the present application. The specific values are for example purposes and the aspects described are not limited to these specific values. Figure 8 illustrates a latent code encoder 100. Variations of this encoder 100 are contemplated, but the encoder 100 is described below for purposes of clarity without describing all expected variations. In the encoder 100, a latent code output by the method 500 shown on Figure 5 is encoded by the encoder elements as described below. Prediction residuals are calculated, for example, by subtracting (110) a predicted latent code from the original latent code. The prediction residuals are entropy coded (120) to output a bitstream. Combining (130) the prediction residuals and the predicted latent code, a latent code is reconstructed and stored at a latent code reference buffer (140) to provide reference for further predictions. The prediction of the latent code is performed by the latent code prediction block (150). Figure 9 illustrates a block diagram of a latent code decoder 200. In the decoder 200, a bitstream is decoded by the decoder elements as described below. The decoder 200 generally performs a decoding pass reciprocal to the encoding pass as described in Figure 8. The encoder 100 also generally performs decoding as part 13 of encoding video data. In particular, the input of the latent code decoder includes a latent code bitstream, which can be generated by latent code encoder 100. The bitstream is first entropy decoded (210) to obtain the transmitted latent code prediction residual. Combining (220) the decoded prediction residuals and the predicted latent code, a latent code is reconstructed and sent to the input of the processing method 600 shown on Figure 6. This latent code is stored at a reference latent code buffer (230). The predicted latent code is obtained from the latent code prediction block (240). Figure 10 illustrates a block diagram of an example of a system in which various aspects and embodiments are implemented. System 1000 can be embodied as a device including the various components described below and is configured to perform one or more of the aspects described in this document. Examples of such devices include, but are not limited to, various electronic devices such as personal computers, laptop computers, smartphones, tablet computers, digital multimedia set top boxes, digital television receivers, personal video recording systems, connected home appliances, and servers. Elements of system 1000, singly or in combination, can be embodied in a single integrated circuit (IC), multiple ICs, and / or discrete components. For example, in at least one embodiment, the processing and encoder / decoder elements of system 1000 are distributed across multiple ICs and / or discrete components. In various embodiments, the system 1000 is communicatively coupled to one or more other systems, or other electronic devices, via, for example, a communications bus or through dedicated input and / or output ports. In various embodiments, the system 1000 is configured to implement one or more of the aspects described in this document. The system 1000 includes at least one processor 1010 configured to execute instructions loaded therein for implementing, for example, the various aspects described in this document. Processor 1010 can include embedded memory, input output interface, and various other circuitries as known in the art. The system 1000 includes at least one memory 1020 (e.g., a volatile memory device, and / or a non- volatile memory device). System 1000 includes a storage device 1040, which can include non-volatile memory and / or volatile memory, including, but not limited to, Electrically Erasable Programmable Read-Only Memory (EEPROM), Read-Only Memory (ROM), Programmable Read-Only Memory (PROM), Random Access Memory (RAM), Dynamic Random Access Memory (DRAM), Static Random Access 14 Memory (SRAM), flash, magnetic disk drive, and / or optical disk drive. The storage device 1040 can include an internal storage device, an attached storage device (including detachable and non-detachable storage devices), and / or a network accessible storage device, as non-limiting examples. System 1000 includes an encoder / decoder module 1030 configured, for example, to process data to provide an encoded video or decoded video, and the encoder / decoder module 1030 can include its own processor and memory. The encoder / decoder module 1030 represents module(s) that can be included in a device to perform the encoding and / or decoding functions. As is known, a device can include one or both of the encoding and decoding modules. Additionally, encoder / decoder module 1030 can be implemented as a separate element of system 1000 or can be incorporated within processor 1010 as a combination of hardware and software as known to those skilled in the art. Program code to be loaded onto processor 1010 or encoder / decoder 1030 to perform the various aspects described in this document can be stored in storage device 1040 and subsequently loaded onto memory 1020 for execution by processor 1010. In accordance with various embodiments, one or more of processor 1010, memory 1020, storage device 1040, and encoder / decoder module 1030 can store one or more of various items during the performance of the processes described in this document. Such stored items can include, but are not limited to, the input video, the decoded video or portions of the decoded video, the bitstream, matrices, variables, and intermediate or final results from the processing of equations, formulas, operations, and operational logic. In some embodiments, memory inside of the processor 1010 and / or the encoder / decoder module 1030 is used to store instructions and to provide working memory for processing that is needed during encoding or decoding. In other embodiments, however, a memory external to the processing device (for example, the processing device can be either the processor 1010 or the encoder / decoder module 1030) is used for one or more of these functions. The external memory can be the memory 1020 and / or the storage device 1040, for example, a dynamic volatile memory and / or a non-volatile flash memory. In several embodiments, an external non-volatile flash memory is used to store the operating system of, for example, a television. In at least one embodiment, a fast external dynamic volatile memory such as a RAM is used as working memory for coding and decoding operations. 15 The input to the elements of system 1000 can be provided through various input devices as indicated in block 1130. Such input devices include, but are not limited to, (i) a radio frequency (RF) portion that receives an RF signal transmitted, for example, over the air by a broadcaster, (ii) a Component (COMP) input terminal (or a set of COMP input terminals), (iii) a Universal Serial Bus (USB) input terminal, and / or (iv) a High Definition Multimedia Interface (HDMI) input terminal. Other examples, not shown in Figure 10, include composite video. In various embodiments, the input devices of block 1130 have associated respective input processing elements as known in the art. For example, the RF portion can be associated with elements suitable for (i) selecting a desired frequency (also referred to as selecting a signal, or band-limiting a signal to a band of frequencies), (ii) downconverting the selected signal, (iii) band-limiting again to a narrower band of frequencies to select (for example) a signal frequency band which can be referred to as a channel in certain embodiments, (iv) demodulating the downconverted and band- limited signal, (v) performing error correction, and (vi) demultiplexing to select the desired stream of data packets. The RF portion of various embodiments includes one or more elements to perform these functions, for example, frequency selectors, signal selectors, band-limiters, channel selectors, filters, downconverters, demodulators, error correctors, and demultiplexers. The RF portion can include a tuner that performs various of these functions, including, for example, downconverting the received signal to a lower frequency (for example, an intermediate frequency or a near-baseband frequency) or to baseband. In one set-top box embodiment, the RF portion and its associated input processing element receives an RF signal transmitted over a wired (for example, cable) medium, and performs frequency selection by filtering, downconverting, and filtering again to a desired frequency band. Various embodiments rearrange the order of the above-described (and other) elements, remove some of these elements, and / or add other elements performing similar or different functions. Adding elements can include inserting elements in between existing elements, such as, for example, inserting amplifiers and an analog-to-digital converter. In various embodiments, the RF portion includes an antenna. Additionally, the USB and / or HDMI terminals can include respective interface processors for connecting system 1000 to other electronic devices across USB and / or HDMI connections. It is to be understood that various aspects of input processing, for example, Reed-Solomon error correction, can be implemented, for example, within a 16 separate input processing IC or within processor 1010 as necessary. Similarly, aspects of USB or HDMI interface processing can be implemented within separate interface Ics or within processor 1010 as necessary. The demodulated, error corrected, and demultiplexed stream is provided to various processing elements, including, for example, processor 1010, and encoder / decoder 1030 operating in combination with the memory and storage elements to process the datastream as necessary for presentation on an output device. Various elements of system 1000 can be provided within an integrated housing, Within the integrated housing, the various elements can be interconnected and transmit data therebetween using suitable connection arrangement, for example, an internal bus as known in the art, including the Inter-IC (I2C) bus, wiring, and printed circuit boards. The system 1000 includes communication interface 1050 that enables communication with other devices via communication channel 1060. The communication interface 1050 can include, but is not limited to, a transceiver configured to transmit and to receive data over communication channel 1060. The communication interface 1050 can include, but is not limited to, a modem or network card and the communication channel 1060 can be implemented, for example, within a wired and / or a wireless medium. Data is streamed, or otherwise provided, to the system 1000, in various embodiments, using a wireless network such as a Wi-Fi network, for example IEEE 802.11 (IEEE refers to the Institute of Electrical and Electronics Engineers). The Wi- Fi signal of these embodiments is received over the communications channel 1060 and the communications interface 1050 which are adapted for Wi-Fi communications. The communications channel 1060 of these embodiments is typically connected to an access point or router that provides access to external networks including the Internet for allowing streaming applications and other over-the-top communications. Other embodiments provide streamed data to the system 1000 using a set-top box that delivers the data over the HDMI connection of the input block 1130. Still other embodiments provide streamed data to the system 1000 using the RF connection of the input block 1130. As indicated above, various embodiments provide data in a non- streaming manner. Additionally, various embodiments use wireless networks other than Wi-Fi, for example a cellular network or a Bluetooth network. The system 1000 can provide an output signal to various output devices, 17 including a display 1100, speakers 1110, and other peripheral devices 1120. The display 1100 of various embodiments includes one or more of, for example, a touchscreen display, an organic light-emitting diode (OLED) display, a curved display, and / or a foldable display. The display 1100 can be for a television, a tablet, a laptop, a cell phone (mobile phone), or another device. The display 1100 can also be integrated with other components (for example, as in a smart phone), or separate (for example, an external monitor for a laptop). The other peripheral devices 1120 include, in various examples of embodiments, one or more of a stand-alone digital video disc (or digital versatile disc) (DVR, for both terms), a disk player, a stereo system, and / or a lighting system. Various embodiments use one or more peripheral devices 1120 that provide a function based on the output of the system 1000. For example, a disk player performs the function of playing the output of the system 1000. In various embodiments, control signals are communicated between the system 1000 and the display 1100, speakers 1110, or other peripheral devices 1120 using signaling such as AV.Link, Consumer Electronics Control (CEC), or other communications protocols that enable device-to-device control with or without user intervention. The output devices can be communicatively coupled to system 1000 via dedicated connections through respective interfaces 1070, 1080, and 1090. Alternatively, the output devices can be connected to system 1000 using the communications channel 1060 via the communications interface 1050. The display 1100 and speakers 1110 can be integrated in a single unit with the other components of system 1000 in an electronic device such as, for example, a television. In various embodiments, the display interface 1070 includes a display driver, such as, for example, a timing controller (T Con) chip. The display 1100 and speaker 1110 can alternatively be separate from one or more of the other components, for example, if the RF portion of input 1130 is part of a separate set-top box. In various embodiments in which the display 1100 and speakers 1110 are external components, the output signal can be provided via dedicated output connections, including, for example, HDMI ports, USB ports, or COMP outputs. The embodiments can be carried out by computer software implemented by the processor 1010 or by hardware, or by a combination of hardware and software. As a non-limiting example, the embodiments can be implemented by one or more integrated circuits. The memory 1020 can be of any type appropriate to the technical environment and can be implemented using any appropriate data storage technology, 18 such as optical memory devices, magnetic memory devices, semiconductor-based memory devices, fixed memory, and removable memory, as non-limiting examples. The processor 1010 can be of any type appropriate to the technical environment, and can encompass one or more of microprocessors, general purpose computers, special purpose computers, and processors based on a multi-core architecture, as non- limiting examples. Various implementations involve decoding. “Decoding”, as used in this application, can encompass all or part of the processes performed, for example, on a received encoded sequence to produce a final output suitable for display. In various embodiments, such processes include one or more of the processes typically performed by a decoder, for example, entropy decoding. In various embodiments, such processes also, or alternatively, include processes performed by a decoder of various implementations described in this application. As further examples, in one embodiment “decoding” refers only to entropy decoding, in another embodiment “decoding” refers only to differential decoding, and in another embodiment “decoding” refers to a combination of entropy decoding and differential decoding. Whether the phrase “decoding process” is intended to refer specifically to a subset of operations or generally to the broader decoding process will be clear based on the context of the specific descriptions and is believed to be well understood by those skilled in the art. Various implementations involve encoding. In an analogous way to the above discussion about “decoding”, “encoding” as used in this application can encompass all or part of the processes performed, for example, on an input latent code to produce an encoded bitstream. In various embodiments, such processes include one or more of the processes typically performed by an encoder, for example, differential encoding, transformation, and entropy encoding. In various embodiments, such processes also, or alternatively, include processes performed by an encoder of various implementations described in this application. As further examples, in one embodiment “encoding” refers only to entropy encoding, in another embodiment “encoding” refers only to differential encoding, and in another embodiment “encoding” refers to a combination of differential encoding and entropy encoding. Whether the phrase “encoding process” is intended to refer specifically to a subset of operations or generally to the broader encoding process will 19 be clear based on the context of the specific descriptions and is believed to be well understood by those skilled in the art. Note that the syntax elements used herein are descriptive terms. As such, they do not preclude the use of other syntax element names. When a figure is presented as a flow diagram, it should be understood that it also provides a block diagram of a corresponding apparatus. Similarly, when a figure is presented as a block diagram, it should be understood that it also provides a flow diagram of a corresponding method / process. Various embodiments may refer to parametric models or rate distortion optimization. In particular, during the encoding process, the balance or trade-off between the rate and distortion is usually considered, often given the constraints of computational complexity. It can be measured through a Rate Distortion Optimization (RDO) metric, or through Least Mean Square (LMS), Mean of Absolute Errors (MAE), or other such measurements. Rate distortion optimization is usually formulated as minimizing a rate distortion function, which is a weighted sum of the rate and of the distortion. There are different approaches to solve the rate distortion optimization problem. For example, the approaches may be based on an extensive testing of all encoding options, including all considered modes or coding parameters values, with a complete evaluation of their coding cost and related distortion of the reconstructed signal after coding and decoding. Faster approaches may also be used, to save encoding complexity, in particular with computation of an approximated distortion based on the prediction or the prediction residual signal, not the reconstructed one. Mix of these two approaches can also be used, such as by using an approximated distortion for only some of the possible encoding options, and a complete distortion for other encoding options. Other approaches only evaluate a subset of the possible encoding options. More generally, many approaches employ any of a variety of techniques to perform the optimization, but the optimization is not necessarily a complete evaluation of both the coding cost and related distortion. The implementations and aspects described herein can be implemented in, for example, a method or a process, an apparatus, a software program, a data stream, or a signal. Even if only discussed in the context of a single form of implementation (for example, discussed only as a method), the implementation of features discussed can also be implemented in other forms (for example, an apparatus or program). An apparatus can be implemented in, for example, appropriate hardware, software, and 20 firmware. The methods can be implemented in, for example, , a processor, which refers to processing devices in general, including, for example, a computer, a microprocessor, an integrated circuit, or a programmable logic device. Processors also include communication devices, such as, for example, computers, cell phones, portable / personal digital assistants (“PDAs”), and other devices that facilitate communication of information between end-users. Reference to “one embodiment” or “an embodiment” or “one implementation” or “an implementation”, as well as other variations thereof, means that a particular feature, structure, characteristic, and so forth described in connection with the embodiment is included in at least one embodiment. Thus, the appearances of the phrase “in one embodiment” or “in an embodiment” or “in one implementation” or “in an implementation”, as well any other variations, appearing in various places throughout this application are not necessarily all referring to the same embodiment. Additionally, this application may refer to “determining” various pieces of information. Determining the information can include one or more of, for example, estimating the information, calculating the information, predicting the information, or retrieving the information from memory. Further, this application may refer to “accessing” various pieces of information. Accessing the information can include one or more of, for example, receiving the information, retrieving the information (for example, from memory), storing the information, moving the information, copying the information, calculating the information, determining the information, predicting the information, or estimating the information. Additionally, this application may refer to “receiving” various pieces of information. Receiving is, as with “accessing”, intended to be a broad term. Receiving the information can include one or more of, for example, accessing the information, or retrieving the information (for example, from memory). Further, “receiving” is typically involved, in one way or another, during operations such as, for example, storing the information, processing the information, transmitting the information, moving the information, copying the information, erasing the information, calculating the information, determining the information, predicting the information, or estimating the information. It is to be appreciated that the use of any of the following “ / ”, “and / or”, and “at least one of”, for example, in the cases of “A / B”, “A and / or B” and “at least one of A 21 and B”, is intended to encompass the selection of the first listed option (A) only, or the selection of the second listed option (B) only, or the selection of both options (A and B). As a further example, in the cases of “A, B, and / or C” and “at least one of A, B, and C”, such phrasing is intended to encompass the selection of the first listed option (A) only, or the selection of the second listed option (B) only, or the selection of the third listed option (C) only, or the selection of the first and the second listed options (A and B) only, or the selection of the first and third listed options (A and C) only, or the selection of the second and third listed options (B and C) only, or the selection of all three options (A and B and C). This may be extended, as is clear to one of ordinary skill in this and related arts, for as many items as are listed. Also, as used herein, the word “signal” refers to, among other things, indicating something to a corresponding decoder. For example, in certain embodiments the encoder signals a particular one of a plurality of transforms, coding modes or flags. In this way, in an embodiment the same transform, parameter, or mode is used at both the encoder side and the decoder side. Thus, for example, an encoder can transmit (explicit signaling) a particular parameter to the decoder so that the decoder can use the same particular parameter. Conversely, if the decoder already has the particular parameter as well as others, then signaling can be used without transmitting (implicit signaling) to simply allow the decoder to know and select the particular parameter. By avoiding transmission of any actual functions, a bit savings is realized in various embodiments. It is to be appreciated that signaling can be accomplished in a variety of ways. For example, one or more syntax elements, flags, and so forth are used to signal information to a corresponding decoder in various embodiments. While the preceding relates to the verb form of the word “signal”, the word “signal” can also be used herein as a noun. As will be evident to one of ordinary skilled in the art, implementations can produce a variety of signals formatted to carry information that can be, for example, stored or transmitted. The information can include, for example, instructions for performing a method, or data produced by one of the described implementations. For example, a signal can be formatted to carry the bitstream of a described embodiment. Such a signal can be formatted, for example, as an electromagnetic wave (for example, using a radio frequency portion of spectrum) or as a baseband signal. The formatting can include, for example, encoding a data stream and modulating a carrier with the encoded data stream. The information that the signal carries can be, for 22 example, analog or digital information. The signal can be transmitted over a variety of different wired or wireless links, as is known. The signal can be stored on a processor- readable medium. The preceding sections describe a number of embodiments, across various claim categories and types. Features of these embodiments can be provided alone or in any combination. Further, embodiments can include one or more of the following features, devices, or aspects, alone or in any combination, across various claim categories and types: At least one embodiment comprises retargeting of a skeletal motion sequence by encoding an input sequence and an encoding skeleton template. At least one embodiment comprises retargeting of a skeletal motion sequence by decoding a deep motion representation into an output sequence using a skeleton decoding template. At least one embodiment comprises the encoding embodiment followed by the decoding embodiment described. At least one embodiment comprises sending data, at least one latent code representing the motion of the input skeleton sequence, and encoding and / or decoding template data to an encoder and / or decoder. At least one embodiment comprises training on a self-retargeting task where an output skeletal motion sequence is identical to an input sequence. At least one embodiment comprises a bitstream or signal that includes syntax conveying information generated according to any of the embodiments described. At least one embodiment comprises creating and / or transmitting and / or receiving and / or decoding according to any of the embodiments described. At least one embodiment comprises a method, process, apparatus, medium storing instructions, medium storing data, or signal according to any of the embodiments described. At least one embodiment comprises inserting in the signaling syntax elements that enable the decoder to determine decoding information in a manner corresponding to that used by an encoder. At least one embodiment comprises creating and / or transmitting and / or receiving and / or decoding a bitstream or signal that includes one or more of the described syntax elements, or variations thereof. 23 At least one embodiment comprises a TV, set-top box, cell phone, tablet, or other electronic device that performs transform method(s) according to any of the embodiments described. At least one embodiment comprises a TV, set-top box, cell phone, tablet, or other electronic device that performs transform method(s) determination according to any of the embodiments described, and that displays (e.g., using a monitor, screen, or other type of display) a resulting image. At least one embodiment comprises a TV, set-top box, cell phone, tablet, or other electronic device that selects, bandlimits, or tunes (e.g., using a tuner) a channel to receive a signal including an encoded image, and performs transform method(s) according to any of the embodiments described. At least one embodiment comprises a TV, set-top box, cell phone, tablet, or other electronic device that receives (e.g., using an antenna) a signal over the air that includes an encoded image, and performs transform method(s). 24
Claims
CLAIMS 1. A method, comprising: performing positional encoding on a skeletal template and a skeleton motion sequence to generate a token sequence; appending a randomly generated query token to the token sequence to generate a tensor; transforming the tensor; and, retaining a last token of the transformed tensor to be processed by a fully connected layer to generate a latent code representative of motion in the skeleton motion sequence.
2. An apparatus configured to perform: performing positional encoding on a skeletal template and a skeleton motion sequence to generate a token sequence; appending a randomly generated query token to the token sequence to generate a tensor; transforming the tensor; and, retaining a last token of the transformed tensor to be processed by a fully connected layer to generate a latent code representative of motion in the skeleton motion sequence.
3. A method comprising: processing an input skeleton template by an Multi-Layer Perceptron (MLP) and at least one latent code representative of motion of a skeleton motion sequence to be synthesized by a convolutional neural network (CNN); duplicating an MLP output tensor to match a temporal dimension of an output tensor of the CNN; positional encoding of the CNN and MLP output tensors; processing the positional encoded CNN output tensor by N MLP networks; multiplying the input layers of said neural network comprising a sequence of N transformer blocks by one of N MLP-processed positional encoded CNN output tensors;processing the positional encoded duplicated MLP output tensor by a neural network consisting of a sequence of N transformer blocks; and, processing an output of a last transformer block by a one-dimensional CNN, wherein each joint is processed independently to generate a retargeted skeleton sequence.
4. An apparatus, configured to perform: processing an input skeleton template by an Multi-Layer Perceptron (MLP) and at least one latent code representative of motion of a skeleton motion sequence to be synthesized by a convolutional neural network (CNN); duplicating an MLP output tensor to match a temporal dimension of an output tensor of the CNN; positional encoding of the CNN and MLP output tensors; processing the positional encoded CNN output tensor by N MLP networks; multiplying the input layers of said neural network comprising a sequence of N transformer blocks by one of N MLP-processed positional encoded CNN output tensors; processing the positional encoded duplicated MLP output tensor by a neural network consisting of a sequence of N transformer blocks; and, processing an output of a last transformer block by a one-dimensional CNN, wherein each joint is processed independently to generate a retargeted skeleton sequence.
5. The method of any one of Claim 1 or 3, or the apparatus of any one of Claim 2 or 4, wherein positional encoding comprises: duplicating joint features from a skeleton template processed by a multi- layer-percentron (MLP) neural network and a sequence of skeletons processed by a convolutional neural network; concatenating said duplicated joint features joint by joint and frame by frame; applying the concatenation to a fully connected layer; applying the fully connected layer output to sinusoidal functions of a plurality of frequencies; 26 adding the positional encoding output at each frame to the input.
6. The method of any one of Claim 1 or 3, or the apparatus of any one of Claim 2 or 4, wherein the query token is randomly initialized.
7. The method of any one of Claim 1 or 3, or the apparatus of any one of Claim 2 or 4, wherein transforming is performed by a cross-covariance attention scheme.
8. The method or the apparatus of Claim 7, wherein self-attention is computed across feature channels instead of tokens.
9. The method of any one of Claim 1 or 3, or the apparatus of any one of Claim 2 or 4, wherein training of said network is performed on a self-retargeting task where an output skeletal motion sequence is identical to an input sequence.
10. The method or the apparatus of Claim 9, wherein said training is performed up to a stochastic joint subsampling mechanism.
11. The method of any one of Claim 1 or 3, or the apparatus of any one of Claim 2 or 4, wherein training is accomplished by deriving two proxy representations of same skeletal motion, subsampling the two proxy representations, determining a reconstruction loss, and balancing the reconstruction loss with a temporal bone length consistency loss.
12. The method or apparatus of Claim 11, also comprising normalizing training sequences with respect to global translation of a skeleton.
Citation Information
Patent Citations
Retargeting skeleton motion sequences through cycle consistency adversarial training of a motion synthesis neural network with a forward kinematics layer
US10546408B2
Cited By
Human motion sequence prediction method and system based on skeleton enhanced Transform
CN119540279A
Dexterous hand motion redirection method and system based on visual end-to-end
CN122066773A
