Video Compression Using Deep Generative Models
Through deep neural network and autoencoder technology, combined with semantic perception and adaptive compression, it solves the problem of low efficiency of existing video compression algorithms, achieves efficient and adaptable video compression and decompression, and optimizes video storage and transmission efficiency. .
Patent Information
- Application Number
- CN202080020806.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-03-21
- Filing Date
- 2020-03-23
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-03-23
AI Technical Summary
Existing video compression algorithms fail to effectively utilize the similarity of video content and environmental information, resulting in low compression efficiency and difficulty in adapting to the differences in importance of different video areas, affecting video storage and transmission efficiency.
Using deep neural networks, combined with autoencoders and probabilistic models, the video content is mapped to the latent code space by training the encoder and decoder, and semantic perception and adaptive compression technology are used to map the video content according to the importance of the video content and environmental information. Adjust the compression quality to produce an efficient compressed version of your video.
Significantly improves the efficiency and quality of video compression, reduces storage and transmission bandwidth requirements, and optimizes the reconstruction accuracy and storage efficiency of video content.
Smart Images

Figure CN113574883B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims the benefit of U.S. Provisional Patent Application S / N. 62 / 821,778, entitled “Video Compression Using DeepGenerative Models,” filed on March 21, 2019, and assigned to the assignee of this application, the contents of which are hereby incorporated by reference in their entirety.
[0003] Public domain
[0004] The present disclosure relates generally to artificial neural networks and, more particularly, to using artificial neural networks to compress video content.
[0005] Related technical description
[0006] An artificial neural network, which may include a group of interconnected artificial neurons (e.g., a neuron model), is a computing device or represents a method performed by a computing device. These neural networks can be used in various applications and / or devices, such as Internet Protocol (IP) cameras, Internet of Things (IoT) devices, autonomous vehicles, and / or service robots.
[0007] Individual nodes in an artificial neural network can mimic biological neurons by taking input data and performing simple operations on the data. The results of the simple operations performed on the input data are selectively passed to other neurons. Weight values are associated with each vector and node in the network, and these values constrain how the input data is related to the output data. For example, the input data of each node can be multiplied by a corresponding weight value, and the products can be summed. The sum of these products can be adjusted by an optional bias, and an activation function can be applied to the result, thereby generating an output signal or "output activation" of the node. The weight values can be initially determined by the iterative flow of training data in the network (for example, the weight values are established during the training phase, in which the network learns how to identify a specific category by the typical input data characteristics of each category).
[0008] There are different types of artificial neural networks, such as recursive neural networks (RNNs), multi-layer perceptron (MLP) neural networks, convolutional neural networks (CNNs), etc. The working principle of RNNs is to save the output of a layer and feed the output back to the input to help predict the results of the layer. In an MLP neural network, data can be fed into an input layer, and one or more hidden layers provide several levels of abstraction of the data. Predictions can then be made for the output layer based on the abstracted data. MLPs can be particularly suitable for classification prediction problems, where inputs are assigned classes or labels. Convolutional neural networks (CNNs) are a type of feedforward artificial neural network. Convolutional neural networks can include a collection of artificial neurons, each of which has a receptive field (e.g., a spatial local area of an input space) and together spell out an input space. Convolutional neural networks have numerous applications. In particular, CNNs have been widely used in the fields of pattern recognition and classification.
[0009] In a layered neural network architecture, the outputs of the first layer of artificial neurons become the inputs of the second layer of artificial neurons, the outputs of the second layer of artificial neurons become the inputs of the third layer of artificial neurons, and so on. Convolutional neural networks can be trained to recognize hierarchies of features. Computation in a convolutional neural network architecture can be distributed across a population of processing nodes, which can be configured in one or more computational chains. These multi-layer architectures can be trained one layer at a time and can be fine-tuned using backpropagation.
[0010] Overview
[0011] Certain aspects of the present disclosure relate to a method for compressing video. The method generally includes: receiving video content for compression; encoding the received video content into an implicit code space by an encoder implemented by a first artificial neural network, the encoding being based at least in part on information related to the received video content; generating a compressed version of the encoded video content by a probabilistic model implemented by a second artificial neural network; and outputting the compressed version of the encoded video content for transmission.
[0012] Certain aspects of the present disclosure relate to a system for compressing video. The system includes at least one processor and a memory coupled to the at least one processor. The at least one processor is generally configured to: receive video content for compression; encode the received video content into an implicit code space by an encoder implemented by a first artificial neural network, the encoding being based at least in part on information related to the received video content; generate a compressed version of the encoded video content by a probabilistic model implemented by a second artificial neural network; and output the compressed version of the encoded video content for transmission.
[0013] Certain aspects of the present disclosure relate to a method for decompressing video. The method generally includes: receiving a compressed version of an encoded video content that has been encoded based at least in part on information related to source video content; decompressing the compressed version of the encoded video content into a code in an implicit code space by a probabilistic model implemented by a first artificial neural network; decompressing the code in the implicit code space into a reconstruction of the encoded video content by a decoder implemented by a second artificial neural network; and outputting the reconstruction of the encoded video content.
[0014] Certain aspects of the present disclosure relate to a system for decompressing video. The system includes at least one processor and a memory coupled to the at least one processor. The processor is generally configured to: receive a compressed version of an encoded video content, the encoded video content having been encoded at least in part based on information related to source video content; decompress the compressed version of the encoded video content into a code in an implicit code space through a probabilistic model implemented by a first artificial neural network; decompress the code in the implicit code space into a reconstruction of the encoded video content through a decoder implemented by a second artificial neural network, and output the reconstruction of the encoded video content.
[0015] Certain aspects of the present disclosure relate to a method for compressing video. The method generally includes: receiving video content for compression; encoding the received video content into an implicit code space by an encoder implemented by a first artificial neural network and a content mask, the content mask identifying the amount of lossy compression to use when compressing different regions of the received video content; generating a compressed version of the encoded video content by a probabilistic model implemented by a second artificial neural network; and outputting the compressed version of the encoded video content for transmission.
[0016] Certain aspects of the present disclosure relate to a system for compressing video. The system includes at least one processor and a memory coupled to the at least one processor. The at least one processor is generally configured to: receive video content for compression; encode the received video content into an implicit code space by an encoder implemented by a first artificial neural network and a content mask, the content mask identifying the amount of lossy compression to be used when compressing different regions of the received video content; generate a compressed version of the encoded video content by a probabilistic model implemented by a second artificial neural network; and output the compressed version of the encoded video content for transmission.
[0017] Certain aspects of the present disclosure are directed to a non-transitory computer-readable medium including instructions that, when executed by at least one processor, cause the processor to perform operations for compressing video. The operations generally include: receiving video content for compression; encoding the received video content into an implicit code space by an encoder implemented by a first artificial neural network and a content mask, the content mask identifying the amount of lossy compression to be used when compressing different regions of the received video content; generating a compressed version of the encoded video content by a probabilistic model implemented by a second artificial neural network; and outputting the compressed version of the encoded video content for transmission.
[0018] Certain aspects of the present disclosure relate to a method for compressing video. The method generally includes: receiving video content for compression; encoding the received video content into an implicit code space by an encoder implemented by a first artificial neural network, the first artificial neural network being trained on data from a fixed surrounding scene from which the video content was captured; generating a compressed version of the encoded video content by a probabilistic model implemented by a second artificial neural network; and outputting the compressed version of the encoded video content for transmission.
[0019] Certain aspects of the present disclosure relate to a system for compressing video. The system includes at least one processor and a memory coupled to the at least one processor. The at least one processor is generally configured to: receive video content for compression; encode the received video content into an implicit code space by an encoder implemented by a first artificial neural network, the first artificial neural network being trained for data from a fixed surrounding scene from which the video content was captured; generate a compressed version of the encoded video content by a probabilistic model implemented by a second artificial neural network; and output the compressed version of the encoded video content for transmission.
[0020] Certain aspects of the present disclosure are directed to a non-transitory computer-readable medium including instructions that, when executed by at least one processor, cause the processor to perform operations for compressing video. The operations generally include: receiving video content for compression; encoding the received video content into an implicit code space by an encoder implemented by a first artificial neural network, the first artificial neural network being trained on data from a fixed surrounding scene from which the video content was captured; generating a compressed version of the encoded video content by a probabilistic model implemented by a second artificial neural network; and outputting the compressed version of the encoded video content for transmission.
[0021] Certain aspects of the present disclosure relate to a method for compressing video. The method generally includes: receiving video content for compression having multiple channels, the multiple channels including one or more additional data channels in addition to one or more luminance channels in the video content captured by a first camera; encoding the received video content into an implicit code space by an encoder implemented by a first artificial neural network, the encoding being based on correlations between modalities in the multiple data channels; generating a compressed version of the encoded video content by a probabilistic model implemented by a second artificial neural network; and outputting the compressed version of the encoded video content for transmission.
[0022] Certain aspects of the present disclosure relate to a system for compressing video. The system includes at least one processor and a memory coupled to the at least one processor. The at least one processor is generally configured to: receive video content having multiple channels for compression, the multiple channels including one or more additional data channels in addition to one or more luminance channels in the video content captured by a first camera; encode the received video content into an implicit code space by an encoder implemented by a first artificial neural network, the encoding being based on correlations between modalities in the multiple data channels; generate a compressed version of the encoded video content by a probabilistic model implemented by a second artificial neural network; and output the compressed version of the encoded video content for transmission.
[0023] Certain aspects of the present disclosure relate to a non-transitory computer-readable medium including instructions that, when executed by at least one processor, cause the processor to perform operations for compressing video. The operations generally include: receiving video content for compression having multiple channels, the multiple channels including one or more additional data channels in addition to one or more luminance channels in the video content captured by a first camera; encoding the received video content into an implicit code space by an encoder implemented by a first artificial neural network, the encoding being based on correlations between modalities in the multiple data channels; generating a compressed version of the encoded video content by a probabilistic model implemented by a second artificial neural network; and outputting the compressed version of the encoded video content for transmission.
[0024] Other aspects, advantages, and features of the present disclosure will become apparent after reading the entire application, including the following sections: Brief Description of the Drawings, Detailed Description, and Claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 An example implementation of a system on a chip (SOC) is illustrated.
[0027] Figure 2A An example of a fully connected neural network is explained.
[0028] Figure 2B An example of a locally connected neural network is explained.
[0029] Figure 2C An example of a convolutional neural network is explained.
[0030] Figure 2D A detailed example of a deep convolutional network (DCN) designed to recognize visual features from images is explained.
[0031] Figure 3 This is a block diagram explaining the Deep Convolutional Network (DCN).
[0032] Figure 4A An example pipeline for training encoders and decoders implemented as artificial neural networks using autoencoders is illustrated in accordance with aspects of the present disclosure.
[0033] Figure 4B An example pipeline for compressing and decompressing video content using encoders and decoders implemented as artificial neural networks in accordance with aspects of the present disclosure is illustrated.
[0034] Figure 5 Example operations for compressing received video content through a compression pipeline including an encoder implemented by a neural network and a probabilistic model are illustrated in accordance with aspects of the present disclosure.
[0035] Figure 6 Example operations for decompressing encoded video in accordance with aspects of the present disclosure are illustrated.
[0036] Figure 7 Example operations for compressing video content based on semantically-aware context masks in accordance with aspects of the present disclosure are illustrated.
[0037] Fig. 8A and 8B Example simulation results comparing compressing video content using semantic-aware context masks versus using conventional video compression methods in accordance with aspects of the present disclosure are illustrated.
[0038] Fig. 9 Example operations for compressing video content based on encoding learned from the environment in which the video was captured are illustrated in accordance with aspects of the present disclosure.
[0039] Fig.10 Example simulation results comparing compressing video content using encoding learned from the environment in which the video was captured versus using conventional video compression methods are illustrated in accordance with aspects of the present disclosure.
[0040] Fig.11Example operations for compressing video content having additional channels in addition to or other than a luma channel from a camera in accordance with aspects of the present disclosure are illustrated.
[0041] Fig.12 A block diagram illustrating an exemplary software architecture for modularizing artificial intelligence (AI) functionality in accordance with aspects of the present disclosure is shown.
[0042] Detailed Description
[0043] Certain aspects of the present disclosure provide methods and apparatus for compressing video content using a deep generative model and decompressing a received bitstream into the video content.
[0044] Referring now to the accompanying drawings, several exemplary aspects of the present disclosure are described. The word "exemplary" is used herein to mean "serving as an example, instance, or illustration." Any aspect described herein as "exemplary" is not necessarily to be construed as preferred or superior to other aspects.
[0045] Example System-on-Chip for Deep Neural Networks and Deep Learning
[0046] Figure 1 An example implementation of a system on a chip (SOC) 100 according to certain aspects of the present disclosure is illustrated, which may include a central processing unit (CPU) 102 or a multi-core CPU configured to perform a parallel Monte Carlo dropout function. Variables (e.g., neural signals and synaptic weights), system parameters associated with a computing device (e.g., a neural network with weights), delays, frequency bin information, and task information may be stored in a memory block associated with a neural processing unit (NPU) 108, a memory block associated with the CPU 102, a memory block associated with a graphics processing unit (GPU) 104, a memory block associated with a digital signal processor (DSP) 106, a memory block 118, or may be distributed across multiple blocks. Instructions executed at the CPU 102 may be loaded from a program memory associated with the CPU 102 or may be loaded from the memory block 118.
[0047] The SOC 100 may also include additional processing blocks tailored for specific functions, such as a GPU 104, a DSP 106, a connectivity block 110 (which may include fifth generation (5G) connectivity, fourth generation long term evolution (4G LTE) connectivity, Wi-Fi connectivity, USB connectivity, Bluetooth connectivity, etc.), and a multimedia processor 112 that may, for example, detect and recognize gestures. In one implementation, the NPU is implemented in the CPU 102, the DSP 106, and / or the GPU 104. The SOC 100 may also include a sensor processor 114, an image signal processor (ISP) 116, and / or a navigation module 120 (which may include a global positioning system).
[0048] The SOC 100 may be based on the ARM instruction set. In one aspect of the present disclosure, the instructions loaded into the CPU 102 may include code for searching a lookup table (LUT) for a stored multiplication result corresponding to the product of the input value and the filter weight. The instructions loaded into the CPU 102 may also include code for disabling the multiplier when a lookup table hit of the multiplication product is detected during the multiplication operation of the multiplication product. In addition, the instructions loaded into the CPU 102 may include code for storing the calculated product of the input value and the filter weight when a lookup table miss of the product is detected.
[0049] The SOC 100 and / or its components may be configured to perform video compression and / or decompression according to various aspects of the present disclosure discussed below. By using a deep learning architecture to perform video compression and / or decompression, various aspects of the present disclosure may accelerate the compression of video content on a device and the transmission of compressed video to another device and / or may accelerate the decompression of compressed video content received at a device.
[0050] Deep Neural Networks and Deep Learning
[0051] Deep learning architectures can perform complex tasks (such as object recognition) by learning to represent input at successively higher levels of abstraction in each layer, thereby building useful feature representations of the input data. In this way, deep learning solves the main bottleneck of traditional machine learning.
[0052] Before the advent of deep learning, machine learning approaches to object recognition problems might rely heavily on human-engineered features, perhaps in combination with shallow classifiers. A shallow classifier might be a two-class linear classifier, for example, where a weighted sum of input values (e.g., input vector components) is compared to a threshold to predict which class the input belongs to. Human-engineered features might be templates or kernels that are customized for a specific problem domain by engineers with domain expertise. In contrast, a deep learning architecture can learn to represent features similar to what a human engineer might design, but it learns through training. Furthermore, deep networks can learn to represent and recognize new types of features that humans might not have considered.
[0053] In some implementations, a deep learning architecture can learn a hierarchy of features. For example, if a first layer is presented with visual data, the first layer can learn to recognize relatively simple features (such as edges) in the input stream. In another example, if a first layer is presented with auditory data, the first layer can learn to recognize spectral power in specific frequencies. A second layer that takes the output of the first layer as input can learn to recognize combinations of features, such as recognizing simple shapes for visual data or recognizing combinations of sounds for auditory data. Higher layers can learn to represent complex shapes in visual data or words in auditory data. Even higher layers can learn to recognize common visual objects or spoken phrases.
[0054] Deep learning architectures can perform particularly well when applied to problems that have a natural hierarchical structure. For example, the classification of motor vehicles can benefit from first learning to recognize wheels, windshields, and other features. These features can be combined in different ways at higher levels to recognize cars, trucks, and airplanes.
[0055] Neural networks can be designed to have various connectivity patterns. In a feedforward network, information is passed from lower layers to higher layers, with each neuron in a given layer communicating to neurons in a higher layer. As described above, hierarchical representations can be constructed in successive layers of a feedforward network. Neural networks can also have reflow or feedback (also known as top-down) connections. In a reflow connection, the output from a neuron in a given layer can be communicated to another neuron in the same layer. The reflow architecture can help identify patterns that span more than one block of input data delivered sequentially to the neural network. The connection from a neuron in a given layer to a neuron in a lower layer is called a feedback (or top-down) connection. A network with many feedback connections may be helpful when the recognition of high-level concepts can assist in discerning specific low-level features of the input.
[0056] The connections between layers of a neural network can be fully connected or partially connected. Figure 2AAn example of a fully connected neural network 202 is illustrated. In the fully connected neural network 202, a neuron in a first layer may communicate its output to each neuron in a second layer, so that each neuron in the second layer will receive input from each neuron in the first layer.
[0057] Figure 2B An example of a locally connected neural network 204 is illustrated. In the locally connected neural network 204, neurons in a first layer may be connected to a limited number of neurons in a second layer. More generally, the locally connected layers of the locally connected neural network 204 may be configured so that each neuron in a layer will have the same or similar connectivity pattern, but their connection strengths may have different values (e.g., 210, 212, 214, and 216). The locally connected connectivity patterns may produce spatially distinct receptive fields in higher layers because higher layer neurons in a given area may receive inputs that are tuned through training to the properties of a limited portion of the total input to the network.
[0058] An example of a locally connected neural network is a convolutional neural network. Figure 2C An example of a convolutional neural network 206 is illustrated. The convolutional neural network 206 can be configured such that the connection strengths associated with the inputs to each neuron in the second layer are shared (e.g., 208). Convolutional neural networks may be well suited for problems where the spatial location of the inputs is meaningful. The convolutional neural network 206 can be used to perform one or more aspects of video compression and / or decompression according to aspects of the present disclosure.
[0059] The processing of each layer of the convolutional network can be thought of as a spatially invariant template or basis projection. If the input is first decomposed into multiple channels, such as the red, green, and blue channels of a color image, then the convolutional network trained on the input can be thought of as three-dimensional, with two spatial dimensions along the axes of the image and a third dimension that captures color information. The output of the convolutional connection can be thought of as forming a feature map in the subsequent layer, where each element in the feature map receives input from a range of neurons in the previous layer and from each of the multiple channels. The values in the feature map can be further processed with nonlinearities (such as rectification, max(0,x)). The values from adjacent neurons can be further pooled (which corresponds to downsampling) and can provide additional local invariance and dimensionality reduction.
[0060] One type of convolutional neural network is a deep convolutional network (DCN). A deep convolutional network (DCN) is a network of convolutional layers configured with additional pooling and normalization layers. DCN has achieved state-of-the-art performance on many tasks. DCN can be trained using supervised learning, where both the input and output targets are known for many examples and are used to modify the weights of the network by using gradient descent.
[0061] The DCN may be a feed-forward network. In addition, as described above, connections from neurons in the first layer of the DCN to groups of neurons in the next higher layer are shared across neurons in the first layer. The feed-forward and shared connections of the DCN may be utilized for fast processing. The computational burden of the DCN may be much smaller than, for example, a neural network of similar size that includes recurrent or feedback connections.
[0062] Figure 2D A detailed example of a DCN 200 designed to recognize visual features of an image 226 input from an image capture device 230 (such as an onboard camera) is illustrated. The DCN 200 of the current example can be trained to identify traffic signs and numbers provided on traffic signs. Of course, the DCN 200 can be trained for other tasks, such as identifying lane markings or identifying traffic lights. These are just some example tasks, and many other tasks are possible.
[0063] The DCN 200 may be trained using supervised learning. During training, an image (such as an image 226 of a speed limit sign) may be presented to the DCN 200, and a "forward pass" may then be calculated to produce an output 222. The DCN 200 may include a feature extraction section and a classification section. Upon receiving the image 226, a convolution layer 232 may apply a convolution kernel (not shown) to the image 226 to generate a first set of feature maps 218. As an example, the convolution kernel of the convolution layer 232 may be a 5×5 kernel that generates a 28×28 feature map. In this example, since four different feature maps are generated in the first set of feature maps 218, four different convolution kernels are applied to the image 226 at the convolution layer 232. A convolution kernel may also be referred to as a filter or a convolution filter.
[0064] The first set of feature maps 218 may be subsampled by a maximum pooling layer (not shown) to generate a second set of feature maps 220. The maximum pooling layer reduces the size of the first set of feature maps 218. That is, the size of the second set of feature maps 220 (such as 14×14) is smaller than the size of the first set of feature maps 218 (such as 28×28). The reduced size provides similar information to subsequent layers while reducing memory consumption. The second set of feature maps 220 may be further convolved via one or more subsequent convolutional layers (not shown) to generate a subsequent set of one or more sets of feature maps (not shown).
[0065] exist Figure 2DIn the example of , the second set of feature maps 220 is convolved to generate a first feature vector 224. In addition, the first feature vector 224 is further convolved to generate a second feature vector 228. Each feature of the second feature vector 228 may include a number corresponding to a possible feature of the image 226 (such as "sign", "60", and "100"). A softmax function (not shown) can convert the numbers in the second feature vector 228 into probabilities. In this way, the output 222 of the DCN 200 is the probability that the image 226 includes one or more features.
[0066] In this example, the probability of "sign" and "60" in output 222 is higher than the probability of other features of output 222 (such as "30", "40", "50", "70", "80", "90", and "100"). Before training, output 222 generated by DCN 200 is likely to be incorrect. Thus, the error between output 222 and the target output can be calculated. The target output is the true value of image 226 (e.g., "sign" and "60"). The weights of DCN 200 can then be adjusted to align the output 222 of DCN 200 with the target output more closely.
[0067] To adjust the weights, the learning algorithm may calculate a gradient vector for the weights. The gradient may indicate the amount by which the error will increase or decrease if the weights are adjusted. At the top layer, the gradient may directly correspond to the value of the weights connecting the activated neurons in the penultimate layer to the neurons in the output layer. In the lower layers, the gradient may depend on the value of the weights and the calculated error gradient of the higher layers. The weights may then be adjusted to reduce the error. This way of adjusting weights may be referred to as "backward propagation" because it involves a "backward pass" in the neural network.
[0068] In practice, the error gradient of the weights may be calculated over a small number of examples so that the calculated gradient approximates the true error gradient. This approximation method may be referred to as stochastic gradient descent. Stochastic gradient descent may be repeated until the error rate achievable by the entire system has stopped decreasing or until the error rate has reached a target level. After learning, a new image may be presented to the DCN and a forward pass through the network may produce an output 222, which may be considered an inference or prediction of the DCN.
[0069] Finally, deep belief network (DBN) is a probabilistic model including multi-layer hidden nodes. DBN can be used to extract the hierarchical representation of training data set. DBN can be obtained by stacking multi-layer restricted Boltzmann machine (RBM). RBM is a kind of artificial neural network that can learn probability distribution on input set. Because RBM can learn probability distribution when there is no information about which class each input should be classified into, RBM is often used for unsupervised learning. Using mixed unsupervised and supervised paradigm, the bottom RBM of DBN can be trained in an unsupervised manner and can be used as a feature extractor, while the top RBM can be trained in a supervised manner (on the joint distribution of input and target category from previous layer) and can be used as a classifier.
[0070] Figure 3 is a block diagram illustrating an exemplary deep convolutional network 350. The deep convolutional network 350 may include multiple layers of different types based on connectivity and weight sharing. Figure 3 As shown in FIG. 3 , the deep convolution network 350 includes convolution blocks 354A and 354B. Each of the convolution blocks 354A and 354B may be configured with a convolution layer (CONV) 356 , a normalization layer (LNorm) 358 , and a maximum pooling layer (MAX POOL) 360 .
[0071] The convolution layer 356 may include one or more convolution filters that may be applied to the input data 352 to generate a feature map. Although only two convolution blocks 354A, 354B are shown, the present disclosure is not limited thereto, and instead any number of convolution blocks (e.g., blocks 354A, 354B) may be included in the deep convolution network 350 according to design preferences. The normalization layer 358 may normalize the output of the convolution filter. For example, the normalization layer 358 may provide whitening or lateral suppression. The maximum pooling layer 360 may provide spatial downsampling aggregation to achieve local invariance and dimensionality reduction.
[0072] For example, the parallel filter banks of the deep convolutional network may be loaded onto the CPU 102 or GPU 104 of the SOC 100 to achieve high performance and low power consumption. In alternative embodiments, the parallel filter banks may be loaded onto the DSP 106 or ISP 116 of the SOC 100. In addition, the deep convolutional network 350 may access other processing blocks that may be present on the SOC 100, such as the sensor processor 114 and the navigation module 120 dedicated to sensors and navigation, respectively.
[0073] The deep convolutional network 350 may also include one or more fully connected layers, such as layer 362A (labeled as "FC1") and layer 362B (labeled as "FC2"). The deep convolutional network 350 may further include a logistic regression (LR) layer 364. Between each layer 356, 358, 360, 362, 364 of the deep convolutional network 350 are weights (not shown) to be updated. The output of each layer (e.g., 356, 358, 360, 362, 364) can be used as an input to a subsequent layer (e.g., 356, 358, 360, 362, 364) in the deep convolutional network 350 to learn a hierarchical feature representation from the input data 352 (e.g., image, audio, video, sensor data, and / or other input data) supplied from the first convolutional block 354A. The output of the deep convolutional network 350 is a classification score 366 for the input data 352. The classification score 366 may be a set of probabilities, where each probability is a probability that the input data includes a feature from a feature set.
[0074] Example video compression using a deep generative model
[0075] Video content can be uploaded to video hosting services and sharing platforms and can be transmitted to various devices. Recording uncompressed video content generally results in large file sizes, which increase dramatically as the resolution of the recorded video content increases. For example, uncompressed 16-bit per channel video recorded in three channels (e.g., red, green, and blue channels in RGB color space, and luminance and chrominance difference channels in composite color space (e.g., YCbCr), etc.) and 1080p / 24 (e.g., a resolution of 1920 pixels wide and 1080 pixels high, where 24 frames are captured per second) can take up 12.4 megabytes per frame, or 297.6 megabytes per second. Uncompressed 16-bit per channel video recorded in three channels and at 4K resolution at 24 frames per second can take up 49.8 megabytes per frame, or 1195.2 megabytes per second.
[0076] Since uncompressed video content can result in large files, which can involve a lot of memory for physical storage and considerable bandwidth for transmission, various techniques can be utilized to compress such video content. For example, consider delivering video content over a wireless network. It is expected that video content will comprise a large portion of consumer Internet traffic, with more than half of this video content delivered to mobile devices over wireless networks (e.g., via LTE, Advanced LTE, New Radio (NR) or other wireless networks). Despite the improvement in the amount of available bandwidth in wireless networks, it may still be desirable to reduce the amount of bandwidth used to deliver video content in these networks.
[0077] In order to reduce the size of the video content - and thereby reduce the amount of storage involved for storing the video content - and the amount of bandwidth involved in delivering the video content, various compression algorithms can be applied to the video content. Conventionally, a priori defined compression algorithms (such as Moving Picture Experts Group (MPEG) algorithms, H.264, or high efficiency video coding algorithms) can be used to compress the video content. These a priori defined compression algorithms can be able to retain most of the information in the original video content and can be defined a priori based on signal processing and information theory concepts. However, while these predefined compression algorithms are generally applicable (e.g., applicable to any type of video content), these predefined compression algorithms may not take into account similarities in content, new resolutions or frame rates for video capture and delivery, non-natural images (e.g., radar images or other images captured via various sensors), and the like.
[0078] Various aspects of the present disclosure provide for compressing and decompressing video content using a deep neural network. The deep neural network may include: (1) an encoder trained using an autoencoder that maps frames of received video content into an implicit code space, (2) a decoder trained using the autoencoder that decodes codes in the implicit code space into an approximation of the video content mapped to the code by the encoder, and (3) a probabilistic model that can losslessly compress codes from the implicit code space. The encoder and decoder may be deployed on different devices (e.g., the encoder is deployed on a transmitting device and the decoder is deployed on a receiving device) so that the transmitting device can transmit compressed video and the receiving device can decompress the received compressed video for output (e.g., output to a display). The implicit code space generally refers to a space that includes a code Z that is a compressed representation of the video content. The implicit code space may be the layer in the deep neural network with the least number of neurons, and each code Z may be associated with a specific neuron in the implicit code space layer. The probabilistic model generally generates a probability distribution over a code set Z based on the encoded video content, which code set Z can represent the encoded video. The deep neural network may also include an arithmetic codec that generates a bitstream to be output for transmission based on the probability distribution and the code set Z. By using one or more artificial neural networks to compress (and decompress) video content, aspects of the present disclosure may provide video encoding and encoding mechanisms that can be adapted to various use cases by retraining the artificial neural network(s). In addition, aspects of the present disclosure may provide autonomous generation of video encoders and decoders that generate compressed video content with video bitrates and / or quality that approach or exceed conventional a priori defined video compression algorithms (e.g., MPEG-4).
[0079] Figure 4A An example autoencoder 400 is illustrated that trains a neural network to compress and decompress video content. The autoencoder 400 can thus Figure 4B 402 to generate a code z representing the video x in an implicit code space. q(z|x) may represent an approximate posterior probability. The generated code z may be processed using a soft / hard quantization layer 404 to generate a code z representing the video x. The soft / hard quantization layer 404 may generate a code z by discretizing the coordinates of an implicit code (eg, code z in the implicit code space) using a learned codebook, for example. The learned codebook may include L number of centers, C = {c 1 …c L},in
[0080] To train the encoder, the encoder 400 may take a first training video (designated as x) and map the first training video to a code z in an implicit code space. As discussed, the encoder 402 may be implemented as a three-dimensional convolutional network so that the implicit code space has a vector describing a video block centered at that position at each (x, y, t) position. Each block may be set to a horizontal and vertical size defined a priori over several frames. The x coordinate may represent a horizontal pixel position in the video block, the y coordinate may represent a vertical pixel position in the video block, and the t position may represent a timestamp in the video block. Using the three dimensions of horizontal pixel position, vertical pixel position, and time, a vector may describe an image segment across multiple frames. However, in some aspects, the encoder 402 may use a two-dimensional convolutional network to map video frames into a two-dimensional space. The code model used to map video frames into a two-dimensional space may exploit redundancy between adjacent frames (e.g., the same or similar information included in successive frames).
[0081] The encoder 402 may be refined using a decoder 406 that decompresses the code z to obtain a reconstruction of the first training video In general, refactoring x may be an approximation of the uncompressed first training video, and need not be an exact copy of the first training video x. The encoder 402 may compare x and to determine a distance vector or other difference between the first training video and the reconstructed first training video. Based on the determined distance vector or other difference, the encoder 402 can adjust the mapping between the received video content (e.g., on a per-frame basis) and the implicit code space to reduce the distance between the input uncompressed video and the encoded video as generated as output by the encoder 402. The encoder 402 can repeat this process using, for example, a stochastic gradient descent technique to minimize or otherwise reduce the difference between the input video x and the reconstructed video obtained by decoding the generated code z. The difference between .
[0082] code can be compressed by the code model 408, which uses the probabilistic function p(z) to convert the generated code is compressed into a bitstream for output to the decoder 406. The decoder passes the generated code through the function p(x|z) to generate the decoded video It can be an approximation of the compressed video x. May be similar to the compressed video x, but may not be an exact replica of the compressed video x due to information lost during the compression and decompression process.
[0083] The code model 408 may use a probabilistic autoregressive model to learn the probability distribution of the input code z. The probability distribution may be conditioned on its previous values and may be represented by the following equation:
[0084]
[0085] Where t is the time index for all times between the start of the video at t=0 and the end of the video at t=T, where c is the channel index for all channels C, where w is the width index for the total video frame width W, and where h is the height index for the total video frame height H.
[0086] The probability distribution P(z) can be predicted by a fully convolutional neural network with causal convolution. In some aspects, the kernel of each layer of the convolutional network can be masked so that the convolutional network knows the previous value z when calculating the probability distribution 0:t,0:c,0:w,0:h and may not know other values. In some aspects, the final layer of the convolutional network may include a softmax function that determines the probability that a code in the latent space is applicable for an input value (e.g., the likelihood that a given code can be used to compress a given input). When training the code model 408, the softmax function may use a one-hot vector, and when testing, the code model 408 may select the code associated with the highest probability.
[0087] In some aspects, the code model 408 may be implemented using a four-dimensional convolution. The four-dimensional convolution may be represented by the following formula:
[0088]
[0089] Using a 4D convolution in this way can be computationally expensive due in part to the number of parameters to be calculated. To speed up generating the probability distribution, a different dependency decomposition can be used, as follows:
[0090]
[0091] Using this decomposition, the code model 408 is implemented as a three-dimensional convolutional model conditioned on time. The decomposition can examine the previous code at a given time t and the conditioning signal associated with the code up to time t Conditioning signal This can be done by transferring the code from the previous time step (e.g., z 0:t-1,0:C,0:W,0:W ) is obtained by passing it through a set of convolutional long short-term memory (LSTM) layers.
[0092] The autoencoder 400 can be interpreted as a deterministic variational autoencoder (VAE) defined according to the following loss function:
[0093]
[0094] where the reconstruction cost of the resulting compressed video generated by the autoencoder is given by The coding cost of the code model 408 is represented by -logp(z)=KL(q φ (z|x)||p θ (z)) indicates.
[0095] To train encoders and decoders that use deep generative models to compress and decompress content, a deep neural network (such as a variational autoencoder) can learn a latent variable model, where the latent variables capture important information to be transmitted (and preserved) in the compressed version of the input. The original input can be approximately reconstructed from the compressed version of the input. The reconstruction of the input according to the compressed version of the input may not be an exact lossless version of the original input, but may approximate the original input (based on the amount of compression loss involved in compressing the original input into a code in the latent space, the reconstruction has different amounts of difference from the original input, as discussed in more detail below). In general, compression using a deep generative model can be defined around a joint model of the data x and the discrete latent variables z according to the following equation:
[0096] p θ (x,z)=p θ (z)p θ (x|z)
[0097] where p θ(z) represents the code model, and p θ (x|z) denotes the likelihood / decoder. Both the code model and the likelihood / decoder can be defined as deep neural networks, as discussed below. Since the likelihood logp θ (x) = log∫p θ (z)p θ (x|z)dz is difficult to solve, so from the formula -logp(x)≤E q The variational bound defined by [-logp(x|z)]+KL[q(z|x)|p(z)] can be optimized, where q(z|x) represents the approximate posterior. In a variational autoencoder, a neural network can be used to parameterize q(z|x) and p(x|z), which represent the encoder and decoder components of the variational autoencoder, respectively.
[0098] In general, a variational autoencoder used in a video compression and decompression pipeline can be interpreted as a regularized autoencoder, where the first term of the loss function measures the reconstruction error, and the KL term representing the divergence between the probability distribution and the reference probability distribution acts as a regularization term. The reconstruction error term can, for example, measure the expected number of bits required to encode the input x given known samples z~q(z|x) (which represents the set of sample codes to which the input x can be mapped). The code for the input x can be obtained from the decoder distribution p θ (x|z) derives that this decoder distribution can assign approximately -logp to x θ (x|z) bits and averaged over q to obtain the reconstructed term. Note that in lossy compression, x is generally not used. θ (x|z) is not encoded, but code z is output, and the reconstruction cost term represents the distortion factor. The KL term generally relates to the coding cost of generating code z in the implicit space from encoder q(x|z) using the optimal code derived from the previous p(z). In general, the optimal code derived from the previous p(z) can use about -logp(z) bits to encode z. Averaging over encoders q(z|x), the average coding cost for encoding input x into code z can be equal to the cross entropy between q and p, expressed as follows:
[0099]
[0100] The cross entropy can be related to the KL loss via the relationship KL[q|p]=CE[q|p]-H[q], where H[q] represents the entropy of encoder q. The KL loss thus measures the coding cost, with an underestimation of the degree of randomness from the encoder being equivalent to H[q] bits. Using techniques such as bits-back coding, lossless compression can be achieved by transmitting z~q(z|x) and recovering H[q] bits. However, for lossy compression, cross entropy may provide a more appropriate loss function than the KL loss, and when using discrete latent variables, the entropy H[q] may be added to the variational bound formula discussed above (e.g., to E q [-logp(x|z)]+KL[q(z|x)|p(z)]) and allows the generation of valid bounds. Thus, the rate-distortion loss can be expressed as:
[0101]
[0102] Where β represents the rate-distortion tradeoff parameter.
[0103] The cross entropy loss may not include an underestimation of the encoder entropy. To account for the encoder entropy and make the encoder more deterministic, and for fixed p(z) and p(x|z), a deterministic ("one-hot") distribution can be defined such that the code z minimizes -logp(x|z)-βlogp(z). Using a deterministic encoder, the rate-distortion loss can be equivalent to -logp(x)≤E q [-logp(x|z)]+KL[q(z|x)|p(z)] represents the variational bound, since H[q]=0 and hence KL[q|p]=CE[q|p] (i.e., the KL loss function and the cross entropy loss function are the same).
[0104] Further efficiencies in encoding and decoding video content can be achieved by accounting for reconstruction costs and encoding costs when encoding and decoding content, as discussed in further detail below. For example, where the content to be compressed includes information for which fidelity should be preserved and other information for which preservation of fidelity may not be important, different levels of compression can be used to achieve a desired amount of fidelity preservation for different types of information in the content. Less lossy compression can be applied to information for which fidelity should be preserved (e.g., foreground content in an image), while more lossy compression can be applied to information for which fidelity preservation may not be important (e.g., background content in an image, content that is stationary across multiple images in an image stream, etc.).
[0105] Figure 4BA system 450 is illustrated, which includes a transmitter device 460 that compresses video content and transmits the compressed video content to a receiver device 470 for decompression and output on the receiver device 470 and / or a video output device connected to the receiver device 470. As illustrated, the transmitter device 460 includes a video compression pipeline, and the receiver device 470 includes a bitstream decompression pipeline. According to aspects of the present disclosure, the video compression pipeline in the transmitter device 460 and the bitstream decompression pipeline in the receiver device 470 generally use one or more artificial neural networks to compress video content and / or decompress a received bitstream into video content. As illustrated, the video compression pipeline in the transmitter device 460 includes an encoder 462, a code model 464, and an arithmetic codec 466, and the video decompression pipeline in the receiver device 470 includes a decoder 472, a code model 474, and an arithmetic codec 476.
[0106] Encoder 462 generally performs lossy compression on the uncompressed video content by mapping the pixels in multiple frames of the received uncompressed video content to the implicit code space. Generally speaking, encoder 462 can be configured to make the code representing the encoded video be discrete or binary. These codes can be generated based on random perturbation technology, soft vector quantization or other technologies that can generate different codes. In some aspects, encoder 462 can map uncompressed video to the code with compressible (low entropy) distribution. The cross entropy of these codes can be close to the previous distribution of predefined or acquired.
[0107] The encoder 462 may be implemented using a convolutional architecture. In some aspects, the encoder 462 may be configured as a three-dimensional convolutional neural network (CNN) such that the encoder 462 learns a spatiotemporal filter for mapping a video to an implicit code space. In such a network, the encoder 462 may encode the video around a key frame (e.g., an initial frame marking the beginning of a sequence of frames, where subsequent frames in the sequence are described as differences relative to the initial frame in the sequence), a warp (or difference) between the key frame and other frames in the video, and a residual factor. In other aspects, the encoder 462 may be implemented as a two-dimensional neural network conditioned on previous frames, residual factors between frames, and conditioned by stacking channels or including recurrent layers.
[0108] To compress a video, as illustrated, encoder 462 may receive a video x for compression. Encoder 462 may divide video x into a plurality of blocks, and each block may be defined as a vector (x, y, t) representing a portion of video x centered at pixel coordinate (x, y) at time t. The inference performed by encoder 462 may thus result in the generation of a code z that represents an implicit spatial encoding of video x or a portion thereof. Code z generally represents a lossy compressed version of video x such that when decoded by a decoder (e.g., decoder 472 at recipient device 470, as discussed below), an approximation of video x is generated. Furthermore, code z represents a compressed version of video x, such that code z is smaller than video x or the portion of video x represented by code z.
[0109] The code model 464 receives a code z representing an encoded video or a portion thereof and generates a probability distribution P(z) over a set of compressed codewords that can be used to represent the code z. The code model 464 may include, for example, a probabilistic autoregressive generative model. In some aspects, the code for which the probability distribution may be generated may include a learned distribution that controls bit assignment based on the adaptive arithmetic codec 466. For example, using the adaptive arithmetic codec, a compressed code for a first z may be predicted separately; a compressed code for a second z may be predicted based on the compressed code for the first z; a compressed code for a third z may be predicted based on the compressed codes for the first z and the second z, and so on. The compressed codes generally represent different spatiotemporal chunks of a given video to be compressed. Each code z t,c,w,h (denoting a code indexed by time, channel, and horizontal and vertical position) can be predicted based on previous codes, which can be fixed and theoretically arbitrarily ordered codes. In some aspects, the code can be generated by analyzing a given video file from beginning to end and analyzing each frame in raster scan order.
[0110] In some aspects, z may be represented as a four-dimensional tensor. The four dimensions of the tensor may include a time dimension, a channel dimension, and height and width spatial dimensions. In some embodiments, the channel dimension may include different color channels (red, green, and blue channels in various RGB color spaces (such as Adobe RGB, sRGB, NTSC, UHD, or Rec.709 color spaces)). In some aspects, a channel may refer to a number of channels of a wireless network (e.g., 64 channels, 128 channels, etc.).
[0111] The arithmetic codec 466 uses the probability distribution P(z) generated by the code model 464 and the code z generated by the encoder 692 to output a bitstream corresponding to the prediction of the code z. The prediction of the code z can be represented as the code with the highest probability score in the probability distribution P(z) generated on the possible code set. In some aspects, the arithmetic codec 466 can output a variable length bitstream based on the accuracy of the prediction of the code z and the actual code z generated by the encoder 462. For example, if the prediction is accurate, the bitstream may correspond to a short codeword, and when the difference between the code z and the prediction of the code z increases in magnitude, the bitstream may correspond to a longer codeword. The bitstream can be output by the arithmetic codec 466 for storage in a compressed video file, transmission to a requesting device (e.g., such as Figure 4B , a receiving device 470), etc. In general, the bitstream output by the arithmetic codec 466 may losslessly encode z so that z may be accurately recovered during a decompression process applied to a compressed video file.
[0112] At the receiving device 470, the bitstream generated by the arithmetic codec 466 and transmitted from the transmitting device 460 may be received by the receiving device 470. Transmissions between the transmitting device 460 and the receiving device 470 may occur via any of a variety of suitable wired or wireless communication techniques. The communication between the transmitting device 460 and the receiving device 470 may be direct or may be performed through one or more network infrastructure components (e.g., base stations, relay stations, mobile stations, network hubs, etc.).
[0113] As illustrated, the recipient device 470 may include an arithmetic codec 476, a code model 474, and a decoder 472. The decoder 472 may be trained by the autoencoder 400 using the same set used to train the encoder 462 so that for a given input, the decoder 472 is able to reconstruct an approximation of the input encoded by the encoder 462.
[0114] The received bitstream may be input into an arithmetic codec 476 to obtain one or more codes z from the bitstream. As illustrated, the arithmetic codec 476 may output the received bitstream to a code model 474, which uses a probability distribution P(z) generated over a set of possible codes and information associating each generated code z with a bitstream to recover code z from the received bitstream. More specifically, given a received portion of the bitstream and a probabilistic prediction of the next code z, the arithmetic codec 476 may generate a new code z that is the same as the code encoded by the arithmetic codec 466 at the transmitting device 460. Using the new code z, the arithmetic codec 476 may make probabilistic predictions for successive codes z (and the bitstream associated with successive codes z in the arithmetic codec 476), read additional portions of the bitstream, and decode successive codes z until the entire received bitstream is decoded into code z by the code model 474. The decompressed code z may be provided by the code model 474 to the decoder 472, which decompresses the code z and outputs an approximation of the video content x. Approximation of video content x at recipient device 470 The data may be recovered and displayed on a screen communicatively coupled to or integrated with the recipient device 470 .
[0115] Figure 5 An example operation 500 for compressing video content in a deep neural network according to various aspects described herein is illustrated. Operation 500 may be performed by a system having one or more processors (e.g., CPU, DSP, GPU, etc.) implementing a deep neural network. For example, the system may be a transmitting device 410.
[0116] As illustrated, operations 500 begin at block 502, where the system receives video content for compression. The video content may, for example, include uncompressed video content including a number of frames having a given height and width and associated with a given frame rate.
[0117] At block 504, the system encodes the received video content into an implicit code space via an encoder. As discussed, encoding the received uncompressed video content x into an implicit code space may result in generating one or more codes z such that decoding the one or more codes z results in an approximation of the uncompressed video x.
[0118] At block 506, the system generates a compressed version of the encoded video through a probabilistic model. As discussed, the compressed version of the encoded video can be generated based on a probability distribution of codes z that can be used to compress the encoded video, where codes with higher probabilities have shorter codewords and codes with lower probabilities have longer codewords.
[0119] At block 508, the system outputs a compressed version of the encoded video for transmission. The compressed version can be output for transmission to the same or different device as the system. For example, the compressed version can be output for transmission to a storage device (e.g., local storage or remote storage), a remote service (e.g., a video hosting service), a requesting device (e.g., a receiving device 420), and the like.
[0120] According to certain aspects, an encoder is trained by: receiving first video content; encoding the first video content into an implicit code space; generating a reconstructed version of the first video content by decoding the encoded first video content; comparing the reconstructed version of the first video content with the received first video content; and adjusting the encoder based on the comparison. For certain aspects, adjusting the encoder involves performing gradient descent.
[0121] According to certain aspects, the encoder is configured to encode the received video content into an implicit code space. Encoding the received video content into the implicit code space can be based on a three-dimensional filter. The dimensions of the three-dimensional filter can include the height of the video frame, the width of the video frame, and the time of the video frame.
[0122] According to certain aspects, the trained probabilistic model includes an autoregressive model of a probability distribution on a four-dimensional tensor. The probability distribution generally explains the likelihood that different codes can be used to compress the decoded video content. For certain aspects, the probabilistic model generates data based on a four-dimensional tensor. In this case, the dimensions of the four-dimensional tensor may include, for example, the time, channel, and space dimensions of the video content. For certain aspects, the probability distribution is generated based on a decomposition of dependencies. In this case, the decomposition of the dependencies may represent a probability distribution based on a code associated with a current time slice in the video content and an adjustment signal. The adjustment signal may, for example, include an output generated by a recursive neural network for an input of a code associated with a previous time slice in the video content rather than the current time slice. For certain aspects, the recursive neural network includes a set of convolutional long short-term memory (LSTM) layers.
[0123] Example video decompression using a deep generative model
[0124] Figure 6 Example operations 600 for decompressing encoded video (e.g., a received bitstream) into video content in a deep neural network according to various aspects described herein are illustrated. Operations 600 may be performed by a system having one or more processors (e.g., a CPU, DSP, GPU, etc.) implementing a deep neural network. For example, the system may be a recipient device 420.
[0125] As illustrated, operation 600 begins at block 602, where the system receives a compressed version of encoded video content (e.g., from a transmitting device). The compressed version of the encoded video content may be received, for example, as a bitstream that includes one or more codewords corresponding to one or more codes z representing the compressed video or a portion thereof.
[0126] At block 604, the system generates a decompressed version of the coded video content into an implicit code space based on the probabilistic model. The system may identify one or more codes z corresponding to the compressed version of the received coded video content based on a probability distribution of codes that may have been used to compress the coded video. In some cases, the system may identify one or more codes based on the length of each codeword, where codes with higher probabilities have shorter codewords and codes with lower probabilities have longer codewords.
[0127] At block 606, the system decodes the decompressed version of the encoded video content from the implicit code space using a decoder. As discussed, the decoder can be trained so that decoding the one or more codes z in the decompressed version of the encoded video yields an approximation representing the uncompressed video x. Each code z can represent an implicit code space from which an approximation of the uncompressed video x can be generated part.
[0128] At block 608, the system outputs the decoded video content for playback.The system may output the decoded video content for playback on one or more display devices communicatively coupled to or integrated with the system.
[0129] According to certain aspects, a decoder is trained by: receiving first video content; encoding the first video content into an implicit code space; generating a reconstructed version of the first video content by decoding the encoded first video content; comparing the reconstructed version of the first video content with the received first video content; and adjusting the decoder based on the comparison.
[0130] According to certain aspects, the decoder is configured to decode the encoded video content from the implicit code space. The decoding of the received video content from the implicit code space can be based on a three-dimensional filter. The dimensions of the three-dimensional filter can include the height of the video frame, the width of the video frame, and the time of the video frame.
[0131] According to certain aspects, the probabilistic model includes an autoregressive model of a probability distribution on a four-dimensional tensor. The probability distribution generally explains the likelihood that different codes can be used to decompress the encoded video content. For certain aspects, the probabilistic model generates data based on a four-dimensional tensor. In this case, the dimensions of the four-dimensional tensor may include, for example, the time, channel, and space dimensions of the video content. For certain aspects, the probability distribution is generated based on a decomposition of dependencies. In this case, the decomposition of the dependencies may represent a probability distribution based on a code associated with a current time slice in the video content and an adjustment signal. For certain aspects, the adjustment signal includes an output generated by a recursive neural network for a code input associated with a previous time slice in the video content rather than a current time slice. The recursive neural network may include a set of convolutional long short-term memory (LSTM) layers.
[0132] Example semantics-aware compression of video content
[0133] In some cases, video content may include content that differs in importance or interest to users receiving the video content. For example, video content may include foreground information (e.g., image data related to the subject of the video, such as a person captured on a video camera) and background information (e.g., image data related to the environment in which the video was captured). In another example, certain video content may include confidential or otherwise protected information that some users may not be allowed to view, as well as other information that these users may be allowed to view. For example, in a video conferencing scenario, notes or other information on a document, whiteboard or blackboard may be within the field of view of the camera; however, other participants in the video conference do not need to see such information, and in some cases should not see such information.
[0134] In order to reduce the size of the compressed video and / or adjust the quality of the compressed video to compress relevant information (e.g., the user's face, image data that does not include confidential information, etc.), the various aspects described herein use image masks during the encoding process to perform semantic-aware compression of the video content, as discussed in further detail below, which adjusts the compression quality for different parts of the captured video clip. In general, the image mask can include information learned from other video clips and masks associated with those video clips, thereby identifying video areas to be compressed using higher quality compression and video areas to be compressed using lower quality compression. The video area compressed using higher quality compression can be compressed to minimize or at least reduce the loss of visual acuity when decompressed on the receiving device (e.g., using a visually lossless or minimally lossy algorithm), while the area to be compressed using lower quality compression can be compressed using any of various degrees of visual lossy compression (e.g., where the visual details included in the original captured video are blurred or otherwise reproduced with low visual acuity when decompressed). In some embodiments, the image mask can allow multiple levels of visual lossy compression to be applied to the area to be compressed using lower quality compression. For example, incremental lossy compression may be applied to a compressed video based on the distance from a region of the video compressed using higher quality (e.g., visually lossless or minimally lossy) compression, such that objects that are closer to a region of the video compressed using higher quality compression are rendered with greater acuity than objects that are farther away from the region of the video compressed using the higher quality compression.
[0135] In general, the reconstruction loss in the neural network-based video coding and compression pipeline can be defined as the sum of pixel losses over all pixels in the compressed video. The pixel loss can be expressed as an L2 loss (e.g., mean square error loss of predicted pixels), a PSNR (peak signal-to-noise ratio) loss, a MS-SSIM (multi-scale structural similarity) loss, or other metrics. The reconstruction loss in the neural network-based video coding and compression pipeline can be expressed as follows:
[0136]
[0137] where x represents the input frame and represents the reconstructed frame. This equation can be expanded to the following:
[0138]
[0139] where m represents a two-dimensional binary mask identifying the object of interest, α represents a coefficient controlling the quality of reconstruction of the object of interest, and i and j represent the video x and . During training an encoder to perform semantically-aware compression of video content, the two-dimensional mask m may be received from an object segmentation model that is trained to identify interesting video content (and thus, video content to be compressed using higher quality compression) from less important video content (and thus, video content to be compressed using lower quality compression). The object segmentation model may include a model trained using a Masked Recursive Convolutional Neural Network (MaskRCNN) algorithm or other algorithm capable of identifying interesting content (e.g., foreground content) and less interesting content (e.g., background content). The two-dimensional mask m need not be used when testing the encoder.
[0140] The coding loss of the compressed video may be expressed as the sum of the coding losses (eg, cross entropy) over the elements in the latent space into which the video content is encoded and may be expressed according to the following equation:
[0141]
[0142] where z and represents the latent variable predicted by the encoder and the code model. This equation representing the coding loss of the compressed video can be expanded to the following:
[0143]
[0144] Where m represents a two-dimensional binary mask identifying the object of interest, and α represents a coefficient that controls the encoding cost of the object of interest. As discussed above, the binary mask m can be received from an object segmentation model (e.g., trained using the MaskRCNN algorithm) while generating inferences (e.g., compressing video content into a code z), and does not need to be used when testing the code model.
[0145] Figure 7 Example operations 700 for performing semantically aware compression on video content in a neural network-based video compression pipeline in accordance with various aspects described herein are illustrated. Operations 700 may be performed by a system having one or more processors (e.g., CPU, DSP, GPU, etc.) implementing a deep neural network. For example, the system may include or be implemented as a transmitting device 410.
[0146] As illustrated, operations 700 begin at block 702, where the system receives video content for compression. The video content may, for example, include uncompressed video content including a number of frames having a given height and width and associated with a given frame rate.
[0147] At block 704, the system encodes the received video content into an implicit code space using an encoder and a content mask. The encoder may be implemented by a first artificial neural network. The content mask may identify an amount of lossy compression to use when compressing different regions of the received video content. For example, as discussed above, the content mask may include a binary mask in which some regions of the video content (e.g., foreground content) are designated for higher quality compression and other regions of the video content (e.g., background content) are designated for lower quality compression. As discussed, encoding the received uncompressed video content x into the implicit code space may result in generating one or more codes z such that decoding the one or more codes z results in an approximation of the uncompressed video x.
[0148] At block 706, the system generates a compressed version of the encoded video through the probabilistic model implemented by the second neural network. As discussed, the compressed version of the encoded video can be generated based on a probability distribution of codes z that can be used to compress the encoded video, where codes with higher probabilities have shorter codewords and codes with lower probabilities have longer codewords.
[0149] At block 708, the system outputs a compressed version of the encoded video for transmission. The compressed version can be output for transmission to the same or different device as the system. For example, the compressed version can be output for transmission to a storage device (e.g., local storage or remote storage), a remote service (e.g., a video hosting service), a requesting device (e.g., a receiving device 420), and the like.
[0150] According to certain aspects, the content mask comprises a binary mask trained by identifying foreground and background content in a plurality of training videos.
[0151] According to certain aspects, encoding received video content into an implicit code space includes quantizing foreground content using a first compression loss amount and quantizing background content using a second compression loss amount, wherein the first compression loss amount is less than the second compression loss amount.
[0152] According to certain aspects, a content mask is trained to identify foreground and background content using a recurrent convolutional neural network.
[0153] According to certain aspects, the encoder is trained by: receiving first video content; encoding the first video content into an implicit code space; generating a reconstructed version of the first video content by decoding the encoded first video content; comparing the reconstructed version of the first video content with the received first video content; and adjusting the encoder based on the comparison. Adjusting the encoder may include, for example, performing gradient descent. According to certain aspects, the encoder is further trained by: receiving a content mask for the first video content; and adjusting the encoder to encode the first video content into the implicit code space based on foreground and background information included in the content mask for the first video content.
[0154] According to certain aspects, the encoder is configured to encode received video content into an implicit code space based on a multidimensional filter. The dimensions of the multidimensional filter may include a height of a video frame, a width of a video frame, a time of a video frame, and color information from each of a plurality of color channels.
[0155] According to certain aspects, the trained probabilistic model includes an autoregressive model of a probability distribution on a four-dimensional tensor. The probability distribution generally explains the likelihood that different codes can be used to compress the encoded video content. According to certain aspects, the probabilistic model generates data based on a four-dimensional tensor, and the dimensions of the four-dimensional tensor may include the time, channel, and space dimensions of the video content.
[0156] Fig. 8A and 8BExample simulation results comparing video content compressed using the semantic compression techniques described herein and conventional compression techniques are illustrated. Graph 810 illustrates a comparison between reconstructed video similarity (e.g., MS-SSIM) and bits per pixel (BPP) in compressed video generated by an encoder according to the various aspects described herein. As illustrated, for any given number of bits per pixel, foreground content compressed using higher quality compression according to various aspects of the present disclosure may have a similarity score comparable to the similarity score of foreground content compressed using learned video compression techniques that do not take into account content masks, while background content compressed using lower quality compression according to various aspects of the present disclosure may have a lower similarity score than the similarity score of background content compressed using learned video techniques that do not take into account content masks. Graph 820 illustrates a comparison between a compression algorithm defined a priori (e.g., the H.264 algorithm) and learned compression using the semantic compression techniques described herein. As illustrated, foreground content compressed using the semantic compression techniques described herein may have a similarity score similar to a similarity score of a video compressed using an a priori defined compression algorithm, while background content compressed using the semantic compression techniques described herein may have a lower similarity score than a similarity score of a video compressed using an a priori defined compression algorithm. By allowing background content to be compressed using lower quality compression, the aspects described herein may further generate storage and / or transmission efficiencies by compressing background content (which may typically involve irrelevant data) into a smaller data set.
[0157] Example adaptive compression of video content based on common content across frames in the video content
[0158] In some cases, video may be continuously captured from a fixed environment. For example, security video from a fixed security camera may capture a video sequence in which the environment monitored by the security camera remains static (e.g., the video includes the same walls, ceilings, and other building features), and the dynamic content in the video includes people, animals, and other objects moving within the environment. In another example, dashcam video captured from a motor vehicle may include footage of a road captured from a fixed vantage point (e.g., from a camera mounted on a particular portion of the motor vehicle, such as the dashboard, grille, etc.). Because the vantage point from which these videos are captured may remain relatively constant, the aspects described herein may exploit similarities between these videos captured from fixed vantage points when compressing different videos.
[0159] In general, adaptive compression allows a neural network to learn what visual content captured from a fixed environment consists of and learn the kinds of motion that occurs within the environment. For example, in a security camera deployment, the environment may include building features within the camera's field of view; in a dashcam deployment, the environment may include road lines, obstacles, lane markings, etc. that may be frequently encountered while driving. Figure 4B Neural networks such as those implemented in encoder 462 illustrated in ) can learn and fine-tune model weights for these videos captured from fixed vantage points to refine the compression applied to videos captured from fixed vantage points.
[0160] Fig. 9 Example operations for performing adaptive compression on video content in a neural network-based video compression pipeline according to various aspects described herein are illustrated. Operation 900 may be performed by a system having one or more processors (e.g., CPU, DSP, GPU, etc.) implementing a deep neural network. For example, the system may include or be implemented as a transmitting device 410.
[0161] As illustrated, operations 900 begin at block 902, where the system receives video content for compression. The video content may, for example, include uncompressed video content including a number of frames having a given height and width and associated with a given frame rate.
[0162] At block 904, the system encodes the received video content into an implicit code space via an encoder implemented by a first artificial neural network. The first artificial neural network may be trained on data from a fixed environment from which the video content was captured. The fixed environment may include, for example, a fixed surrounding scene in the video content (e.g., in security camera footage, where building features may remain static across frames) or a fixed vantage point of the captured video content (e.g., for dashcam footage, where the environment may change across frames, but each frame is captured from a fixed camera with a fixed viewing angle). As discussed, by training the artificial neural network on data from a fixed environment, the system may learn the appearance of the environment from which the received video content was captured, and compress the video based on the learned appearance of the environment (which generally remains consistent across multiple videos depicting activities within the fixed environment).
[0163] At block 906, the system generates a compressed version of the encoded video through the probabilistic model implemented by the second neural network. As discussed, the compressed version of the encoded video can be generated based on a probability distribution of codes z that can be used to compress the encoded video, where codes with higher probabilities have shorter codewords and codes with lower probabilities have longer codewords.
[0164] At block 908, the system outputs a compressed version of the encoded video for transmission. The compressed version can be output for transmission to the same or different device as the system. For example, the compressed version can be output for transmission to a storage device (e.g., local storage or remote storage), a remote service (e.g., a video hosting service), a requesting device (e.g., a receiving device 420), and the like.
[0165] According to certain aspects, an encoder is trained by: receiving first video content; encoding the first video content into an implicit code space; generating a reconstructed version of the first video content by decoding the encoded first video content; comparing the reconstructed version of the first video content with the received first video content; and adjusting the encoder based on the comparison.
[0166] According to certain aspects, the first video content may include a plurality of video clips captured, for example, in a fixed environment. Encoding the first video content into the implicit code space may include encoding the fixed content in the plurality of video clips into the same code.
[0167] According to certain aspects, the plurality of video clips captured in a fixed environment may include video clips of a fixed surrounding scene captured by a camera located at a fixed position. According to certain aspects, the plurality of video clips captured in a fixed environment may include video clips captured from a fixed vantage point on a mobile platform.
[0168] Fig.10 Example simulation results comparing video content compressed using the adaptive compression techniques described herein and conventional compression techniques are illustrated. Graph 1000 illustrates a comparison between reconstructed video similarity and bits per pixel in compressed videos generated by the neural network-based compression techniques described herein and the compression algorithm defined a priori. As illustrated, at a given amount of compression represented by the number of bits per pixel in the compressed video, the neural network-based compression techniques may result in a video having a higher similarity score to the original captured video than a video compressed using the compression algorithm defined a priori. In addition, a video compressed using the adaptive compression techniques described herein may have a higher similarity score to the original captured video than a video compressed using a neural network-based compressor that does not take into account the consistency in data captured from a fixed surrounding scene (or fixed vantage point).
[0169] Example compression of video content including multiple channels
[0170] Typically, a video codec may be defined a priori to compress video including brightness information for several color channels (e.g., red, green, and blue channels). However, some videos may be captured using various non-standard devices that may record additional or alternative channels (e.g., several spatiotemporal signals) in addition to color channels. For example, RGB-D may allow depth information to be recorded in addition to color brightness information. In another example, spectral imaging may allow information from multiple wavelengths outside the visible spectrum to be recorded. Further, some video recording environments may utilize multiple cameras to record a subject from different vantage points. The various aspects described herein allow compression of video from a first camera including channels additional to or different from a brightness channel (e.g., brightness information for a gray channel or for multiple color channels).
[0171] Fig.11 An example operation 1100 for compressing video content including multiple channels according to aspects of the present disclosure is illustrated. Operation 1100 may be performed by a system having one or more processors (e.g., CPU, DSP, GPU, etc.) implementing a deep neural network. For example, the system may include or be implemented as a transmitting device 410.
[0172] As illustrated, operation 1100 begins at block 1102, where the system receives video content having a plurality of channels for compression. The video content may, for example, include uncompressed video content including a number of frames having a given height and width and associated with a given frame rate. The plurality of channels may also include one or more additional data channels in addition to one or more luminance channels in the video content recorded by the first camera.
[0173] At block 1104, the system encodes the received video content into an implicit code space by an encoder implemented by a first artificial neural network. The encoding may be based, for example, on correlations between modalities in the plurality of data channels. The modalities may include, for example, positional information of a subject captured in the plurality of data channels and other similarities of data captured in each of the plurality of data channels.
[0174] At block 1106, the system generates a compressed version of the encoded video through the probabilistic model implemented by the second neural network. As discussed, the compressed version of the encoded video can be generated based on a probability distribution of codes z that can be used to compress the encoded video, where codes with higher probabilities have shorter codewords and codes with lower probabilities have longer codewords.
[0175] At block 1108, the system outputs a compressed version of the encoded video for transmission. The compressed version can be output for transmission to the same or a different device as the system. For example, the compressed version can be output for transmission to a storage device (e.g., local storage or remote storage), a remote service (e.g., a video hosting service), a requesting device (e.g., a recipient device 420), and the like.
[0176] According to certain aspects, an encoder may be trained by: receiving first video content including data recorded in each of a plurality of data channels; encoding the first video content into an implicit code space; generating a reconstructed version of the first video content by decoding the encoded first video content; comparing the reconstructed version of the first video content with the received first video content; and adjusting the encoder based on the comparison.
[0177] According to certain aspects, the plurality of data channels may include one or more color channels and include a depth information channel. According to certain aspects, the plurality of data channels may include one or more channels that capture data within the visible wavelength range and one or more channels that capture data outside the visible wavelength range. According to certain aspects, the plurality of data channels may include videos of the subject captured from different angles. The videos of the subject captured from different angles may be captured by the first camera and the one or more second cameras.
[0178] Example software architecture for video compression and decompression using deep generative models
[0179] Fig.12 1 is a block diagram illustrating an exemplary software architecture 1200 that can modularize artificial intelligence (AI) functions. According to aspects of the present disclosure, using the architecture 1200, applications can be designed to enable various processing blocks (e.g., CPU 1222, DSP 1224, GPU 1226, and / or NPU 1228) of the SOC 1220 to support video compression and / or decompression using a deep generative model.
[0180] The AI application 1202 may be configured to call functionality defined in the user space 1204 that may, for example, use a deep generative model to compress and / or decompress a video signal (or an encoded version thereof) and adaptively compress and / or decompress the video signal based on content included in the video signal.
[0181] The runtime engine 1208, which may be compiled code of the runtime framework, may further be accessible by the AI application 1202. For example, the AI application 1202 may cause the runtime engine to request inference at a specific time interval or triggered by an event detected by the user interface of the application. Upon causing the runtime engine to provide an inference response, the runtime engine may in turn send a signal to the operating system in an operating system (OS) space 1210 (such as a Linux kernel 1212) running on the SOC 1220. The operating system may in turn cause video compression and / or decompression using a deep generative model to be performed on the CPU 1222, the DSP 1224, the GPU 1226, the NPU 1228, or some combination thereof. The CPU 1222 may be directly accessible by the operating system, while other processing blocks may be accessed through drivers (such as drivers 1214, 1216, or 1218 for the DSP 1224, the GPU 1226, or the NPU 1228, respectively). In an illustrative example, the deep neural network may be configured to run on a combination of processing blocks such as CPU 1222 , DSP 1224 , and GPU 1226 , or may run on NPU 1228 .
[0182] The various illustrative circuits described in conjunction with the various aspects described herein may be implemented in or with an integrated circuit (IC), such as a processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic device. The processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
[0183] It is also noted that the operation steps described in any exemplary aspect herein are described in order to provide examples. The described operation can be performed in many different orders except for the order illustrated. In addition, the operation described in a single operation step can actually be performed in multiple different steps. In addition, one or more operation steps discussed in the exemplary aspects can be combined. It should be understood that, as is obvious to those skilled in the art, the operation steps illustrated in the flow chart can be modified in many different ways. Those skilled in the art will also understand that information and signals can be represented using any of a variety of different technologies and techniques. For example, the data, instructions, commands, information, signals, bits, code elements and code chips that may be mentioned throughout the above description can be represented by voltage, current, electromagnetic waves, magnetic fields or magnetic particles, light fields or light particles, or any combination thereof.
[0184] As used herein, a phrase referring to "at least one of" a list of items refers to any combination of those items, including single members. As an example, "at least one of a, b, or c" is intended to cover: a, b, c, ab, ac, bc, and abc, as well as any combination with multiple identical elements (e.g., aa, aaa, aab, aac, abb, acc, bb, bbb, bbc, cc, and ccc, or any other ordering of a, b, and c).
[0185] The present disclosure is provided to enable any person skilled in the art to make or use the various aspects of the present disclosure. Various modifications to the present disclosure will be readily apparent to those skilled in the art, and the universal principles defined herein may be applied to other variations without departing from the spirit or scope of the present disclosure. Thus, the present disclosure is not intended to be limited to the examples and designs described herein, but should be granted the broadest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for compressing video, comprising: receiving video content for compression; encoding, by an encoder implemented by a first artificial neural network, the received video content into an implicit code space, the encoding being based at least in part on semantic information regarding content included in the received video content, wherein the semantic information divides the received video content into foreground content and background content and identifies an amount of lossy compression to be used in compressing the foreground content and the background content; generating a compressed version of the encoded video content via a probabilistic model implemented by a second artificial neural network; as well as The compressed version of the encoded video content is output for transmission.
2. The method of claim 1, wherein: The semantic information related to the received video content includes a content mask identifying an amount of lossy compression to use when compressing different regions of the received video content.
3. The method of claim 2, wherein: The content mask comprises a binary mask trained by identifying foreground content and background content in a plurality of training videos.
4. The method of claim 3, wherein: Encoding the received video content into the implicit code space includes: quantizing the foreground content using a first compression loss amount; and The background content is quantified using a second compression loss amount, wherein the first compression loss amount is smaller than the second compression loss amount.
5. The method of claim 2, wherein: The content mask is trained to identify foreground content and background content using a recurrent convolutional neural network.
6. The method of claim 1, wherein: The semantic information related to the received video content includes data from a fixed environment from which the video content was captured.
7. The method of claim 6, wherein: The received video content includes a plurality of video clips captured within the fixed environment, and Encoding the received video content into the implicit code space includes encoding fixed content in the plurality of video clips into a same code in the implicit code space.
8. The method of claim 7, wherein: The plurality of video clips captured within the fixed environment include video clips of fixed surrounding scenes captured by cameras located in fixed positions.
9. The method of claim 7, wherein: The plurality of video clips captured within the fixed environment include video clips captured from a fixed vantage point on a mobile platform.
10. The method of claim 1, wherein: The video content includes multiple channels. The plurality of channels include one or more additional data channels in addition to one or more luminance channels in the video content captured by the first camera, and The semantic information related to the received video content includes correlations between modalities in the plurality of channels.
11. The method of claim 10, wherein: The one or more additional data channels include one or more color channels and include a depth information channel.
12. The method of claim 10, wherein: The one or more additional data channels include one or more channels that capture data within the visible wavelength range and one or more channels that capture data outside the visible wavelength range.
13. The method of claim 10, wherein: The video content includes videos of a subject captured from different angles, wherein the videos are captured by the first camera and one or more second cameras.
14. The method of claim 1, wherein: The probabilistic model comprises an autoregressive model of a probability distribution over a four-dimensional tensor, the probability distribution describing the likelihood that different codes can be used to compress the encoded video content.
15. The method of claim 14, wherein: The probabilistic model generates data based on a four-dimensional tensor, wherein the dimensions of the four-dimensional tensor include time, channel, and space dimensions of the received video content.
16. A method for decompressing a video, comprising: receiving a compressed version of encoded video content that has been encoded based at least in part on semantic information related to content included in source video content, wherein the semantic information divides the source video content into foreground content and background content and identifies an amount of lossy compression to use in compressing the foreground content and the background content; decompressing the compressed version of the encoded video content into a code in an implicit code space via a probabilistic model implemented by a first artificial neural network; decompressing the codes in the latent code space into a reconstruction of the encoded video content by a decoder implemented by a second artificial neural network; as well as The reconstruction of the encoded video content is output.
17. The method of claim 16, wherein: The semantic information related to the source video content includes a content mask that identifies an amount of lossy compression to use when compressing different regions of the source video content.
18. The method of claim 17, wherein: The reconstruction of the encoded video content includes foreground content reconstructed using a first amount of compression loss and background content reconstructed using a second amount of compression loss, wherein the first amount of compression loss is less than the second amount of compression loss.
19. The method of claim 16, wherein: The semantic information related to the source video content includes data from a fixed environment from which the video content was captured.
20. The method of claim 19, wherein: The encoded video content includes a plurality of video clips captured within the fixed environment such that fixed content in the plurality of video clips is encoded into a same code in the implicit code space.
21. The method of claim 20, wherein: The plurality of video clips captured within the fixed environment include video clips of fixed surrounding scenes captured by cameras located in fixed positions.
22. The method of claim 20, wherein: The plurality of video clips captured within the fixed environment include video clips captured from a fixed vantage point on a mobile platform.
23. The method of claim 16, wherein: The video content includes multiple channels; the plurality of channels including one or more additional data channels in addition to the one or more luminance channels in the video content captured by the first camera; and The semantic information related to the source video content includes correlations between modalities in the plurality of channels.
24. The method of claim 23, wherein: The one or more additional channels include one or more color channels and include a depth information channel.
25. The method of claim 23, wherein: The one or more additional channels include one or more channels that capture data within the visible wavelength range and one or more channels that capture data outside the visible wavelength range.
26. The method of claim 23, wherein: The video content includes video of a subject captured from different angles by the first camera and one or more additional cameras.
27. The method of claim 16, wherein: The probabilistic model comprises an autoregressive model of a probability distribution over a four-dimensional tensor, the probability distribution describing the likelihood that different codes can be used to decompress the compressed version of the encoded video content into the code in the latent code space.
28. The method of claim 27, wherein: The dimensions of the four-dimensional tensor include the time, channel and space dimensions of the video content.
29. A system for compressing video, comprising: at least one processor configured to: receiving video content for compression, encoding, by an encoder implemented by a first artificial neural network, the received video content into an implicit code space, the encoding being based at least in part on semantic information regarding content included in the received video content, wherein the semantic information divides the received video content into foreground content and background content and identifies an amount of lossy compression to be used when compressing the foreground content and the background content, generating a compressed version of the encoded video content by means of a probabilistic model implemented by a second artificial neural network, and outputting the compressed version of the encoded video content for transmission; as well as A memory coupled to the at least one processor.
30. A system for decompressing video, comprising: at least one processor configured to: receiving a compressed version of encoded video content that has been encoded based at least in part on semantic information related to content included in source video content, wherein the semantic information divides the source video content into foreground content and background content and identifies an amount of lossy compression to use in compressing the foreground content and the background content, decompressing the compressed version of the encoded video content into a code in an implicit code space via a probabilistic model implemented by a first artificial neural network, decompressing the codes in the latent code space into a reconstruction of the encoded video content by a decoder implemented by a second artificial neural network, and outputting the reconstruction of the encoded video content; as well as A memory coupled to the at least one processor.
Citation Information
Patent Citations
Multi-pass compression of uncompressed data
US20180199066A1
Image compression device
US20180268571A1
Method for encoding / decoding image, and device therefor
WO2019009489A1
