Feature encoding / decoding method and device, recording medium storing bitstream, and method for transmitting bitstream
The feature encoding/decoding method optimizes video compression by distinguishing between important and non-critical areas in feature maps, enhancing efficiency and reducing bitstream size, addressing the limitations of existing technologies in AI service data processing.
Patent Information
- Application Number
- PCT/KR2024/003531
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-22
- Filing Date
- 2024-03-21
- Publication Date
- 2024-09-26
AI Technical Summary
Existing image compression technologies are not optimized for artificial intelligence services, as they focus on high-resolution, high-quality image processing for human vision, making them unsuitable for the efficient processing of vast video data required by AI services within limited resources.
A feature encoding/decoding method and device that distinguishes between important and non-critical areas of feature maps, encoding only the important regions and using representative values for non-critical areas, resulting in a compressed bitstream suitable for machine tasks, and a method for transmitting and storing this bitstream for image restoration.
This approach enhances encoding/decoding efficiency, reduces the bitstream size, and enables efficient transmission and decoding of feature maps for machine tasks, improving the performance of AI services by optimizing video compression for machine-oriented tasks.
Smart Images

Figure KR2024003531_26092024_PF_FP
Abstract
Description
Feature encoding / decoding method, device, recording medium storing bitstream, and bitstream transmission method
[0001] The present disclosure relates to a feature encoding / decoding method and device, and more particularly, to a feature encoding / decoding method and device for performing a machine task, and a method for transmitting a bitstream generated by the feature encoding method / device of the present disclosure.
[0002] With the advancement of machine learning technology, demand for image processing-based AI services is increasing. To effectively process the massive amounts of image data required by AI services within limited resources, image compression technologies optimized for machine tasks are essential. However, existing image compression technologies have been developed with the goal of high-resolution, high-quality image processing for human vision, making them unsuitable for AI services. Consequently, active research and development is underway on new machine-oriented image compression technologies suitable for AI services.
[0003] The present disclosure aims to provide a feature encoding / decoding method and device with improved encoding / decoding efficiency.
[0004] The present disclosure aims to generate a compressed bitstream for transmitting features / feature maps extracted from a deep neural network for performing machine tasks.
[0005] The present disclosure aims to provide a method and device for partially encoding / decoding a feature / feature map by distinguishing its area.
[0006] The present disclosure aims to provide a method and device for efficient encoding / decoding of critical and non-critical regions of a feature.
[0007] In addition, the present disclosure aims to provide a method for transmitting a bitstream generated by a feature encoding method or device according to the present disclosure.
[0008] In addition, the present disclosure aims to provide a recording medium storing a bitstream generated by a feature encoding method or device according to the present disclosure.
[0009] In addition, the present disclosure aims to provide a recording medium storing a bitstream received and decoded by an image decoding device according to the present disclosure and used for image restoration.
[0010] The technical problems to be achieved in the present disclosure are not limited to the technical problems mentioned above, and other technical problems not mentioned will be clearly understood by a person having ordinary skill in the technical field to which the present disclosure belongs from the description below.
[0011] A feature decoding method performed by a feature decoding device according to one aspect of the present disclosure includes a step of obtaining information about a channel within a feature from a bitstream and a step of restoring the channel based on the information about the channel, wherein the information about the channel may include information about whether to code according to the importance of each region of the channel.
[0012] Meanwhile, based on the information on whether or not the above coding is performed, indicating that only the important areas of the channel are coded, the non-important areas can be restored based on representative values for the channel data.
[0013] Meanwhile, the representative value for the above channel data may be an average value for the above channel data.
[0014] Meanwhile, a representative value for the above channel data can be obtained from a bitstream.
[0015] Meanwhile, based on the information about whether or not the coding is performed indicating that only the important area of the channel is coded, the non-important area can be restored further based on the difference value between the representative value of the channel data of the non-important area and the representative value for the channel data.
[0016] Meanwhile, the representative value of the channel data of the non-critical area may be the average value of the channel data of the non-critical area.
[0017] Meanwhile, the above difference value can be obtained from the bitstream.
[0018] Meanwhile, the non-critical area can be restored based on a representative value of the channel data of the non-critical area or a value obtained by adding the representative value of the channel data and the difference value.
[0019] A feature encoding method performed by a feature encoding device according to one aspect of the present disclosure includes a step of determining information about a channel within a feature and a step of encoding the information about the channel into a bitstream, wherein the information about the channel may include information about whether to code according to the importance of each region of the channel.
[0020] Meanwhile, based on coding only the important areas of the channel, a representative value for the channel data can be encoded into a bitstream.
[0021] Meanwhile, based on coding only the important areas of the channel, the difference between representative values for the channel data can be encoded into a bitstream.
[0022] A recording medium according to another aspect of the present disclosure can store a bitstream generated by a feature encoding method or feature encoding device of the present disclosure.
[0023] A bitstream transmission method according to another aspect of the present disclosure can transmit a bitstream generated by a feature encoding method or a feature encoding device of the present disclosure to a feature decoding device.
[0024] The features briefly summarized above regarding the present disclosure are merely exemplary aspects of the detailed description of the present disclosure that follows and do not limit the scope of the present disclosure.
[0025] According to the present disclosure, a feature encoding / decoding method and device with improved encoding / decoding efficiency can be provided.
[0026] According to the present disclosure, a compressed bitstream for features / feature maps extracted from a deep neural network for performing a machine task can be generated.
[0027] According to the present disclosure, it is possible to partially encode / decode a feature / feature map by distinguishing the region.
[0028] According to the present disclosure, important and non-important areas of a feature can be efficiently encoded / decoded.
[0029] Additionally, according to the present disclosure, a VCM (VIDEO CODING FOR MACHINE) bitstream for performing a machine task can be generated.
[0030] Additionally, according to the present disclosure, a method for transmitting a bitstream generated by a feature encoding method or device according to the present disclosure can be provided.
[0031] In addition, according to the present disclosure, a recording medium storing a bitstream generated by a feature encoding method or device according to the present disclosure can be provided.
[0032] In addition, according to the present disclosure, a recording medium storing a bitstream received and decoded by a feature decoding device according to the present disclosure and used for restoring an image can be provided.
[0033] The effects that can be obtained from the present disclosure are not limited to the effects mentioned above, and other effects that are not mentioned will be clearly understood by a person having ordinary skill in the art to which the present disclosure pertains from the description below.
[0034] FIG. 1 is a schematic diagram of a VCM system to which embodiments of the present disclosure can be applied.
[0035] FIG. 2 is a schematic diagram illustrating a VCM pipeline structure to which embodiments of the present disclosure can be applied.
[0036] FIG. 3 is a schematic diagram of an image / video encoder to which embodiments of the present disclosure can be applied.
[0037] FIG. 4 is a schematic diagram of an image / video decoder to which embodiments of the present disclosure can be applied.
[0038] FIG. 5 is a flowchart schematically illustrating a feature / feature map encoding procedure to which embodiments of the present disclosure may be applied.
[0039] FIG. 6 is a flowchart schematically illustrating a feature / feature map decoding procedure to which embodiments of the present disclosure may be applied.
[0040] FIG. 7 is a diagram illustrating an example of a feature extraction and restoration method to which embodiments of the present disclosure can be applied.
[0041] FIG. 8 is a diagram showing an example of an image segmentation method to which embodiments of the present disclosure can be applied.
[0042] FIGS. 9 and 10 are diagrams showing examples of a video encoding / decoding system including a VCM video encoder and decoder.
[0043] Figure 11 is a diagram showing an example of a VCM hierarchical structure.
[0044] Figure 12 is a diagram showing an example of a VCM bitstream composed of encoded abstract features and NNAL information.
[0045] FIG. 13 is a diagram visualizing multiple channel data in a feature / feature map according to one embodiment of the present disclosure.
[0046] FIG. 14 is a diagram illustrating an example of region division and region data distribution of feature / feature map channel data according to one embodiment of the present disclosure.
[0047] FIG. 15 is an example showing a partial encryption / decryption method according to a critical area and a non-critical area presented in one embodiment of the present disclosure.
[0048] FIG. 16 is an example showing a partial coding method for each region according to another embodiment of the present disclosure.
[0049] FIG. 17 is a diagram for explaining a feature decoding method that can be performed by a feature (image) decoding device according to one embodiment of the present disclosure.
[0050] FIG. 18 is a drawing for explaining a feature encoding method that can be performed by a feature (image) encoding device according to one embodiment of the present disclosure.
[0051] FIG. 19 is a diagram illustrating an example of a content streaming system to which embodiments of the present disclosure can be applied.
[0052] FIG. 20 is a diagram illustrating another example of a content streaming system to which embodiments of the present disclosure can be applied.
[0053] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the attached drawings so that those skilled in the art can easily implement the present disclosure. However, the present disclosure may be implemented in various different forms and is not limited to the embodiments described herein.
[0054] In describing embodiments of the present disclosure, detailed descriptions of known configurations or functions will be omitted if they are deemed to obscure the gist of the present disclosure. Furthermore, portions unrelated to the description of the present disclosure in the drawings have been omitted, and similar portions have been designated with similar reference numerals.
[0055] In the present disclosure, when a component is said to be "connected," "coupled," or "connected" to another component, this may include not only a direct connection, but also an indirect connection in which another component exists in between. Furthermore, when a component is said to "include" or "have" another component, unless otherwise specifically stated, this does not exclude the other component, but rather implies that the other component may be included.
[0056] In this disclosure, terms such as first, second, etc. are used solely to distinguish one component from another, and do not limit the order or importance of components unless specifically stated otherwise. Accordingly, within the scope of this disclosure, a first component in one embodiment may be referred to as a second component in another embodiment, and similarly, a second component in one embodiment may be referred to as a first component in another embodiment.
[0057] In this disclosure, distinct components are used to clearly illustrate their respective characteristics, and do not necessarily imply that the components are separated. That is, multiple components may be integrated into a single hardware or software unit, or a single component may be distributed into multiple hardware or software units. Therefore, even if not specifically mentioned, such integrated or distributed embodiments are also included within the scope of this disclosure.
[0058] In the present disclosure, the components described in various embodiments are not necessarily essential components, and some may be optional components. Therefore, embodiments comprising a subset of the components described in one embodiment are also within the scope of the present disclosure. Furthermore, embodiments including other components in addition to the components described in various embodiments are also within the scope of the present disclosure.
[0059] The present disclosure relates to encoding and decoding of images, and terms used in the present disclosure may have their usual meanings commonly used in the technical field to which the present disclosure belongs, unless newly defined in the present disclosure.
[0060] The present disclosure may be applied to a method disclosed in the Versatile Video Coding (VVC) standard and / or the Video Coding for Machines (VCM) standard. In addition, the present disclosure may be applied to a method disclosed in the essential video coding (EVC) standard, the AOMedia Video 1 (AV1) standard, the 2nd generation of audio video coding standard (AVS2), or the next generation video / image coding standard (e.g., H.267 or H.268, etc.).
[0061] The present disclosure presents various embodiments related to video / image coding, and unless otherwise stated, the embodiments may be performed in combination with each other. In the present disclosure, "video" may mean a set of a series of images over time. An "image" may be information generated by artificial intelligence (AI). Input information used in the process of AI performing a series of tasks, information generated during the information processing process, and output information may be used as images. A "picture" generally refers to a unit representing one image at a specific time point, and a slice / tile is a coding unit that constitutes a part of a picture in encoding. A picture may be composed of one or more slices / tiles. In addition, a slice / tile may include one or more coding tree units (CTUs). The CTUs may be divided into one or more units. A tile is a rectangular area existing within a specific tile row and a specific tile column within a picture, and may be composed of multiple CTUs. A tile column can be defined as a rectangular region of CTUs, having a height equal to the height of the picture, and a width specified by a syntax element signaled from a bitstream portion such as a picture parameter set. A tile row can be defined as a rectangular region of CTUs, having a width equal to the width of the picture, and a height specified by a syntax element signaled from a bitstream portion such as a picture parameter set. A tile scan is a predetermined sequential ordering method of CTUs that partition a picture. Here, CTUs can be sequentially ordered within a tile according to a CTU raster scan, and tiles within a picture can be sequentially ordered according to a raster scan order of tiles in the picture.A slice may contain an integer number of complete tiles, or a contiguous integer number of complete CTU rows within a tile of a picture. A slice may be exclusively contained in a single NAL unit. A picture may consist of one or more tile groups. A tile group may contain one or more tiles. A brick may represent a rectangular region of CTU rows within a tile within a picture. A tile may contain one or more bricks. A brick may represent a rectangular region of CTU rows within a tile. A tile may be divided into multiple bricks, and each brick may contain one or more CTU rows belonging to the tile. A tile that is not divided into multiple bricks may also be treated as a brick.
[0062] In the present disclosure, "pixel" or "pel" may refer to the smallest unit that constitutes a picture (or image). Additionally, "sample" may be used as a term corresponding to a pixel. A sample may generally represent a pixel or a pixel value, and may represent only a pixel / pixel value of a luma component or only a pixel / pixel value of a chroma component.
[0063] In one embodiment, particularly when applied to VCM, a pixel / pixel value may represent independent information of each component or a pixel / pixel value of a component generated through combination, synthesis, or analysis when there is a picture composed of a set of components with different characteristics and meanings. For example, in an RGB input, only the pixel / pixel value of R may be represented, only the pixel / pixel value of G may be represented, or only the pixel / pixel value of B may be represented. For example, only the pixel / pixel value of the Luma component synthesized using the R, G, and B components may be represented. For example, only the pixel / pixel value of the image information extracted through analysis of the R, G, and B components may be represented.
[0064] In the present disclosure, a "unit" may represent a basic unit of image processing. A unit may include at least one of a specific region of a picture and information related to the region. One unit may include one luma block and two chroma (e.g., Cb, Cr) blocks. In some cases, the term "unit" may be used interchangeably with terms such as "sample array," "block," or "area." In general, an MxN block may include a set (or array) of samples (or sample array) or transform coefficients consisting of M columns and N rows. In one embodiment, particularly when applied to VCM, a unit may represent a basic unit containing information for performing a specific task.
[0065] In the present disclosure, the "current block" may mean one of the following: a "current coding block," a "current coding unit," a "block to be encoded," a "block to be decoded," or a "block to be processed." When prediction is performed, the "current block" may mean a "current prediction block" or a "block to be predicted." When transformation (inverse transformation) / quantization (inverse quantization) is performed, the "current block" may mean a "current transformation block" or a "block to be transformed." When filtering is performed, the "current block" may mean a "block to be filtered."
[0066] Additionally, in the present disclosure, "current block" may mean "luma block of the current block" unless explicitly described as a chroma block. "Chroma block of the current block" may be expressed by explicitly including explicit description of chroma block, such as "chroma block" or "current chroma block."
[0067] In this disclosure, " / " and "," can be interpreted as "and / or". For example, "A / B" and "A, B" can be interpreted as "A and / or B". Additionally, "A / B / C" and "A, B, C" can mean "at least one of A, B, and / or C."
[0068] In this disclosure, "or" may be interpreted as "and / or." For example, "A or B" may mean 1) "A" only, 2) "B" only, or 3) "A and B." Alternatively, "or" in this disclosure may mean "additionally or alternatively."
[0069] The present disclosure relates to VCM (Video / image coding for machines).
[0070] VCM (Virtual Compression Modeling) is a compression technology that encodes / decodes a portion of a source image / video or information obtained from the source image / video for machine vision purposes. In VCM, the target of encoding / decoding can be referred to as a feature. A feature can refer to information extracted from the source image / video based on the task purpose, requirements, surrounding environment, etc. The feature may have a different information format than the source image / video, and accordingly, the compression method and representation format of the feature may also differ from those of the video source.
[0071] VCMs can be applied to a variety of applications. For example, in surveillance systems that recognize and track objects or people, VCMs can be used to store or transmit object recognition information. Furthermore, in intelligent transportation or smart traffic systems, VCMs can be used to transmit vehicle location information collected from GPS, sensing information collected from LIDAR and radar, and various vehicle control information to other vehicles or infrastructure. Furthermore, in the smart city field, VCMs can be used to perform individual tasks for interconnected sensor nodes or devices.
[0072] The present disclosure provides various embodiments related to feature / feature map coding. Unless otherwise specified, the embodiments of the present disclosure may be implemented individually or in combination of two or more.
[0073] VCM System Overview
[0074] FIG. 1 is a schematic diagram of a VCM system to which embodiments of the present disclosure can be applied.
[0075] Referring to FIG. 1, the VCM system may include an encoding device (10) and a decoding device (20).
[0076] The encoding device (10) can compress / encode features / feature maps extracted from source images / videos to generate a bitstream, and transmit the generated bitstream to a decoding device (20) via a storage medium or a network. The encoding device (10) may also be referred to as a feature encoding device. In the VCM system, features / feature maps can be generated in each hidden layer of a neural network. The size and number of channels of the generated feature maps can vary depending on the type of neural network or the location of the hidden layer. In the present disclosure, a feature map may be referred to as a feature set, and a feature or feature map may be referred to as 'feature information'.
[0077] The encoding device (10) may include a feature acquisition unit (11), an encoding unit (12), and a transmission unit (13).
[0078] The feature acquisition unit (11) can acquire features / feature maps for source images / videos. In some embodiments, the feature acquisition unit (11) can acquire features / feature maps from an external device, for example, a feature extraction network. In this case, the feature acquisition unit (11) performs a feature reception interface function. Alternatively, the feature acquisition unit (11) can acquire features / feature maps by executing a neural network (e.g., CNN, DNN, etc.) using the source images / videos as input. In this case, the feature acquisition unit (11) performs a feature extraction network function.
[0079] According to an embodiment, the encoding device (10) may further include a source image generation unit (not shown) for obtaining a source image / video, or may include one instead of the feature acquisition unit (11). The source image generation unit may be implemented as an image sensor, a camera module, or the like, and may obtain the source image / video through a process of capturing, synthesizing, or generating an image / video. In this case, the generated source image / video may be transmitted to a feature extraction network and used as input data for extracting a feature / feature map.
[0080] The encoding unit (12) can encode the feature / feature map acquired by the feature acquisition unit (11). The encoding unit (12) can perform a series of procedures such as prediction, transformation, and quantization to increase encoding efficiency. The encoded data (encoded feature / feature map information) can be output in the form of a bitstream. A bitstream including the encoded feature / feature map information can be referred to as a VCM bitstream.
[0081] The transmission unit (13) can obtain feature / feature map information or data output in the form of a bitstream, and transmit it to a decoding device (20) or another external object through a digital storage medium or network in the form of a file or streaming. Here, the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. The transmission unit (13) may include elements for generating a media file having a predetermined file format or elements for transmitting data through a broadcast / communication network. The transmission unit (13) may be provided as a transmission device separate from the encoding unit (12), and in this case, the transmission device may include at least one processor for obtaining feature / feature map information or data output in the form of a bitstream, and a transmission unit for transmitting it in the form of a file or streaming.
[0082] The decoding device (20) can obtain feature / feature map information from the encoding device (10) and restore the feature / feature map based on the obtained information.
[0083] The decryption device (20) may include a receiving unit (21) and a decryption unit (22).
[0084] The receiving unit (21) can receive a bitstream from the encoding device (10), obtain feature / feature map information from the received bitstream, and transmit it to the decoding unit (22).
[0085] The decoding unit (22) can decode the feature / feature map based on the acquired feature / feature map information. The decoding unit (22) can perform a series of procedures, such as inverse quantization, inverse transformation, and prediction, corresponding to the operation of the encoding unit (14), to increase decoding efficiency.
[0086] According to an embodiment, the decryption device (20) may further include a task analysis / rendering unit (23).
[0087] The task analysis / rendering unit (23) can perform task analysis based on the decrypted feature / feature map. In addition, the task analysis / rendering unit (23) can render the decrypted feature / feature map into a form suitable for task execution. Various machine-oriented tasks can be performed based on the task analysis results and the rendered feature / feature map.
[0088] Above, the VCM system can encode / decode features extracted from source images / videos according to user and / or machine requests, task objectives, and surrounding environments, and perform various machine-directed tasks based on the decoded features. The VCM system can also be implemented by extending / redesigning a video / image coding system, and can perform various encoding / decoding methods defined in the VCM standard.
[0089] VCM pipeline
[0090] FIG. 2 is a schematic diagram illustrating a VCM pipeline structure to which embodiments of the present disclosure can be applied.
[0091] Referring to FIG. 2, the VCM pipeline (200) may include a first pipeline (210) for encoding / decoding images / videos and a second pipeline (220) for encoding / decoding features / feature maps. In the present disclosure, the first pipeline (210) may be referred to as a video codec pipeline, and the second pipeline (220) may be referred to as a feature codec pipeline.
[0092] The first pipeline (210) may include a first stage (211) for encoding input images / videos and a second stage (212) for decoding the encoded images / videos to generate restored images / videos. The restored images / videos may be used for human viewing, i.e., for human vision.
[0093] The second pipeline (220) may include a third stage (221) for extracting features / feature maps from input images / videos, a fourth stage (222) for encoding the extracted features / feature maps, and a fifth stage (223) for decoding the encoded features / feature maps to generate restored features / feature maps. The restored features / feature maps may be used for machine (vision) tasks. Here, the machine (vision) task may refer to a task in which images / videos are consumed by a machine. The machine (vision) task may be applied to service scenarios such as, for example, surveillance, intelligent transportation, smart city, intelligent industry, and intelligent content. In some embodiments, the restored features / feature maps may also be used for human vision.
[0094] In some embodiments, the encoded feature / feature map in the fourth stage (222) may be transferred to the first stage (221) and used to encode an image / video. In this case, an additional bitstream may be generated based on the encoded feature / feature map, and the generated additional bitstream may be transferred to the second stage (222) and used to decode the image / video.
[0095] In some embodiments, the decrypted feature / feature map in the fifth stage (223) may be transferred to the second stage (222) and used to decrypt an image / video.
[0096] Although FIG. 2 illustrates a case where the VCM pipeline (200) includes a first pipeline (210) and a second pipeline (220), this is merely exemplary and embodiments of the present disclosure are not limited thereto. For example, the VCM pipeline (200) may include only the second pipeline (220), or the second pipeline (220) may be extended into multiple feature codec pipelines.
[0097] Meanwhile, in the first pipeline (210), the first stage (211) may be performed by an image / video encoder, and the second stage (212) may be performed by an image / video decoder. In addition, in the second pipeline (220), the third stage (221) may be performed by a VCM encoder (or a feature / feature map encoder), and the fourth stage (222) may be performed by a VCM decoder (or a feature / feature map decoder). The encoder / decoder structure will be described in detail below.
[0098] Encoder
[0099] FIG. 3 is a schematic diagram of an image / video encoder to which embodiments of the present disclosure can be applied.
[0100] Referring to FIG. 3, the image / video encoder (300) may include an image partitioner (310), a prediction unit (predictor) 320, a residual processor (residual processor) 330, an entropy encoder (entropy encoder) 340, an adder (adder) 350, a filter (filter) 360, and a memory (memory) 370. The prediction unit (320) may include an inter prediction unit (321) and an intra prediction unit (322). The residual processor (330) may include a transformer (transformer) 332, a quantizer (quantizer) 333, a dequantizer (dequantizer) 334, and an inverse transformer (inverse transformer) 335. The residual processing unit (330) may further include a subtractor (331). The addition unit (350) may be referred to as a reconstructor or a recontructed block generator. The image segmentation unit (310), the prediction unit (320), the residual processing unit (330), the entropy encoding unit (340), the addition unit (350), and the filtering unit (360) described above may be configured by one or more hardware components (e.g., an encoder chipset or a processor) depending on the embodiment. In addition, the memory (370) may include a decoded picture buffer (DPB) and may be configured by a digital storage medium. The hardware component described above may further include the memory (370) as an internal / external component.
[0101] The image segmentation unit (310) can segment an input image (or picture, frame) input to the image / video encoder (300) into one or more processing units. For example, the processing unit may be referred to as a coding unit (unit). The coding unit may be recursively segmented from a coding tree unit (CTU) or a largest coding unit (LCU, L unit) according to a Quad-tree binary-tree ternary-tree (QTBTTT) structure. For example, one coding unit may be segmented into a plurality of coding units of deeper depth based on a quad-tree structure, a binary tree structure, and / or a ternary structure. In this case, for example, the quad-tree structure may be applied first, and the binary tree structure and / or the ternary structure may be applied later. Alternatively, the binary tree structure may be applied first. The image / video coding procedure according to the present disclosure may be performed based on a final coding unit that is no longer divided. In this case, the largest coding unit may be used as the final coding unit based on coding efficiency according to image characteristics, etc., or, if necessary, the coding unit may be recursively divided into coding units of lower depths, and the coding unit with the optimal size may be used as the final coding unit. Here, the coding procedure may include procedures such as prediction, transformation, and restoration, which will be described later. As another example, the processing unit may further include a prediction unit (PU) or a transform unit (TU). In this case, the prediction unit and the transform unit may each be divided or partitioned from the final coding unit described above.The prediction unit may be a unit of sample prediction, and the transform unit may be a unit for deriving a transform coefficient and / or a unit for deriving a residual signal from a transform coefficient.
[0102] The term "unit" may be used interchangeably with terms such as "block" or "area" in some cases. In general, an MxN block can represent a set of samples or transform coefficients consisting of M columns and N rows. A sample can generally represent a pixel or a pixel value, and can represent only the pixel / pixel value of the luma component or only the pixel / pixel value of the chroma component. A sample can be used as a term corresponding to a pixel or a pel.
[0103] The image / video encoder (300) can generate a residual signal (residual block, residual sample array) by subtracting a prediction signal (predicted block, prediction sample array) output from an inter-prediction unit (321) or an intra-prediction unit (322) from an input image signal (original block, original sample array), and the generated residual signal is transmitted to a conversion unit (332). In this case, as illustrated, a unit that subtracts a prediction signal (prediction block, prediction sample array) from an input image signal (original block, original sample array) within the image / video encoder (300) may be referred to as a subtraction unit (331). The prediction unit can perform prediction on a block to be processed (hereinafter, referred to as a current block) and generate a predicted block including prediction samples for the current block. The prediction unit can determine whether intra-prediction or inter-prediction is applied on a current block or unit basis. The prediction unit can generate various information regarding prediction, such as prediction mode information, and transmit it to the entropy encoding unit (340). The information regarding prediction can be encoded in the entropy encoding unit (340) and output in the form of a bitstream.
[0104] The intra prediction unit (322) can predict the current block by referring to samples within the current picture. At this time, the referenced samples may be located in the neighborhood of the current block or may be located away from it depending on the prediction mode. In intra prediction, the prediction modes may include multiple non-directional modes and multiple directional modes. The non-directional modes may include, for example, a DC mode and a planar mode. The directional modes may include, for example, 33 directional prediction modes or 65 directional prediction modes depending on the degree of detail in the prediction direction. However, this is only an example, and a greater or lesser number of directional prediction modes may be used depending on the settings. The intra prediction unit (322) may also determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring blocks.
[0105] The inter prediction unit (321) can derive a predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on a reference picture. At this time, in order to reduce the amount of motion information transmitted in the inter prediction mode, the motion information can be predicted in units of blocks, sub-blocks, or samples based on the correlation of the motion information between the neighboring blocks and the current block. The motion information can include a motion vector and a reference picture index. The motion information can further include information on the inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.). In the case of inter prediction, the neighboring block can include a spatial neighboring block existing in the current picture and a temporal neighboring block existing in the reference picture. The reference picture including the reference block and the reference picture including the temporal neighboring block may be the same or different. Temporal neighboring blocks may be referred to as collocated reference blocks, collocated units (colunits), etc., and a reference picture including temporal neighboring blocks may be referred to as a collocated picture (colPic). For example, the inter prediction unit (321) may construct a motion information candidate list based on neighboring blocks, and generate information indicating which candidate is used to derive the motion vector and / or reference picture index of the current block. Inter prediction may be performed based on various prediction modes, and for example, in the case of skip mode and merge mode, the inter prediction unit (321) may use the motion information of neighboring blocks as the motion information of the current block. In the case of skip mode, unlike the merge mode, a residual signal may not be transmitted.In the motion vector prediction (MVP) mode, the motion vector of the surrounding blocks is used as a motion vector predictor, and the motion vector of the current block can be indicated by signaling the motion vector difference.
[0106] The prediction unit (320) can generate a prediction signal based on various prediction methods. For example, the prediction unit can apply intra prediction or inter prediction for prediction of a single block, and can also apply intra prediction and inter prediction simultaneously. This can be called combined inter and intra prediction (CIIP). In addition, the prediction unit can be based on an intra block copy (IBC) prediction mode or a palette mode for prediction of a block. The IBC prediction mode or palette mode can be used for content image / video coding such as games, such as screen content coding (SCC). IBC basically performs prediction within the current picture, but can be performed similarly to inter prediction in that it derives a reference block within the current picture. That is, IBC can utilize at least one of the inter prediction techniques described in the present disclosure. The palette mode can be viewed as an example of intra coding or intra prediction. When palette mode is applied, sample values within a picture can be signaled based on information about the palette table and palette index.
[0107] The prediction signal generated by the prediction unit (320) can be used to generate a reconstructed signal or a residual signal. The transformation unit (332) can apply a transformation technique to the residual signal to generate transform coefficients. For example, the transformation technique can include at least one of a Discrete Cosine Transform (DCT), a Discrete Sine Transform (DST), a Karhunen-Loeve Transform (KLT), a Graph-Based Transform (GBT), or a Conditionally Non-linear Transform (CNT). Here, GBT refers to a transformation obtained from a graph when the relationship information between pixels is expressed as a graph. CNT refers to a transformation obtained based on generating a prediction signal using all previously reconstructed pixels. In addition, the transformation process can be applied to a pixel block having a square equal size, or can be applied to a block of a non-square variable size.
[0108] The quantization unit (333) quantizes the transform coefficients and transmits them to the entropy encoding unit (340), and the entropy encoding unit (340) can encode the quantized signal (information about the quantized transform coefficients) and output it as a bitstream. The information about the quantized transform coefficients may be called residual information. The quantization unit (333) can rearrange the quantized transform coefficients in the form of a block into the form of a one-dimensional vector based on the coefficient scan order, and can also generate information about the quantized transform coefficients based on the quantized transform coefficients in the form of a one-dimensional vector. The entropy encoding unit (340) can perform various encoding methods, such as, for example, exponential Golomb, context-adaptive variable length coding (CAVLC), context-adaptive binary arithmetic coding (CABAC), etc. The entropy encoding unit (340) may encode, together or separately, information necessary for image / video restoration (e.g., values of syntax elements, etc.) in addition to quantized transform coefficients. The encoded information (e.g., encoded image / video information) may be transmitted or stored in the form of a bitstream in units of NAL (network abstraction layer) units. The image / video information may further include information on various parameter sets, such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). In addition, the image / video information may further include general constraint information. In addition, the image / video information may further include a method of generating and using encoded information, a purpose, etc. In the present disclosure, information and / or syntax elements transmitted / signaled from an image / video encoder to an image / video decoder may be included in the image / video information.Image / video information can be encoded through the encoding process described above and included in a bitstream. The bitstream can be transmitted through a network or stored in a digital storage medium. Here, the network can include a broadcasting network and / or a communication network, and the digital storage medium can include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. A transmission unit (not shown) that transmits a signal output from an entropy encoding unit (340) and / or a storage unit (not shown) that stores the signal can be configured as an internal / external element of the image / video encoder (300), or the transmission unit can be included in the entropy encoding unit (340).
[0109] The quantized transform coefficients output from the quantization unit (333) can be used to generate a prediction signal. For example, by applying inverse quantization and inverse transformation to the quantized transform coefficients through the inverse quantization unit (334) and the inverse transform unit (335), a residual signal (residual block or residual samples) can be reconstructed. The addition unit (350) can generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the reconstructed residual signal to the prediction signal output from the inter prediction unit (321) or the intra prediction unit (322). When there is no residual for the block to be processed, such as when skip mode is applied, the predicted block can be used as a reconstructed block. The addition unit (350) may be called a reconstructor or a reconstructed block generation unit. The generated restoration signal can be used for intra prediction of the next processing target block within the current picture, and can also be used for inter prediction of the next picture after filtering as described below.
[0110] Meanwhile, LMCS (luma mapping with chroma scaling) may be applied during the picture encoding and / or restoration process.
[0111] The filtering unit (360) can improve subjective / objective picture quality by applying filtering to the restoration signal. For example, the filtering unit (360) can apply various filtering methods to the restoration picture to generate a modified restoration picture and store the modified restoration picture in the memory (370), specifically, in the DPB of the memory (370). The various filtering methods can include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, etc. The filtering unit (360) can generate various information regarding filtering and transmit it to the entropy encoding unit (340). The information regarding filtering can be encoded by the entropy encoding unit (340) and output in the form of a bitstream.
[0112] The modified restored picture transmitted to the memory (370) can be used as a reference picture in the inter prediction unit (321). Through this, prediction mismatch in the encoder and decoder stages can be avoided, and encoding efficiency can also be improved.
[0113] The DPB of the memory (370) can store the modified restored picture to be used as a reference picture in the inter prediction unit (321). The memory (370) can store motion information of a block from which motion information in the current picture is derived (or encoded) and / or motion information of blocks in a picture that has already been restored. The stored motion information can be transferred to the inter prediction unit (321) to be used as motion information of a spatial neighboring block or motion information of a temporal neighboring block. The memory (370) can store restored samples of restored blocks in the current picture and can transfer the stored restored samples to the intra prediction unit (322).
[0114] Meanwhile, the VCM encoder (or feature / feature map encoder) may have a structure basically identical / similar to the image / video encoder (300) described with reference to FIG. 3 in that it performs a series of procedures such as prediction, transformation, and quantization to encode a feature / feature map. However, the VCM encoder differs from the image / video encoder (300) in that it targets a feature / feature map for encoding, and accordingly, the name of each unit (or component) (e.g., image segmentation unit (310), etc.) and its specific operation contents may be different from the image / video encoder (300). The specific operation contents of the VCM encoder will be described in detail later.
[0115] Decoder
[0116] FIG. 4 is a schematic diagram of an image / video decoder to which embodiments of the present disclosure can be applied.
[0117] Referring to FIG. 4, the image / video decoder (400) may include an entropy decoder (410), a residual processor (420), a predictor (430), an adder (440), a filter (450), and a memory (460). The predictor (430) may include an inter-prediction unit (431) and an intra-prediction unit (432). The residual processor (420) may include a dequantizer (421) and an inverse transformer (422). The entropy decoding unit (410), residual processing unit (420), prediction unit (430), addition unit (440), and filtering unit (450) described above may be configured by a single hardware component (e.g., a decoder chipset or processor) depending on the embodiment. In addition, the memory (460) may include a decoded picture buffer (DPB) and may be configured by a digital storage medium. The hardware component may further include the memory (460) as an internal / external component.
[0118] When a bitstream including video / image information is input, the video / video decoder (400) can restore the video / image in accordance with the process in which the video / image information is processed in the video / video encoder (300) of FIG. 3. For example, the video / video decoder (400) can derive units / blocks based on block division-related information obtained from the bitstream. The video / video decoder (400) can perform decoding using a processing unit applied in the video / video encoder. Accordingly, the processing unit of decoding may be, for example, a coding unit, and the coding unit may be divided from a coding tree unit or a maximum coding unit according to a quad tree structure, a binary tree structure, and / or a ternary tree structure. One or more transform units may be derived from the coding unit. Then, the restored video signal decoded and output by the video / video decoder (400) can be played back through a playback device.
[0119] The image / video decoder (400) can receive a signal output from the encoder of FIG. 3 in the form of a bitstream, and the received signal can be decoded through the entropy decoding unit (410). For example, the entropy decoding unit (410) can parse the bitstream to derive information (e.g., image / video information) necessary for image restoration (or picture restoration). The image / video information may further include information on various parameter sets, such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). In addition, the image / video information may further include general constraint information. In addition, the image / video information may include a method of generating and using decoded information, a purpose, etc. The image / video decoder (400) can decode a picture further based on information on the parameter set and / or the general constraint information. Signaling / received information and / or syntax elements can be decoded through a decoding procedure and obtained from the bitstream. For example, the entropy decoding unit (410) can decode information in the bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, and output the values of syntax elements necessary for image restoration and the quantized values of transform coefficients for the residual. More specifically, the CABAC entropy decoding method receives a bin corresponding to each syntax element in the bitstream, determines a context model using information of the syntax element to be decoded and decoding information of the surrounding and decoding target blocks or information of symbols / bins decoded in the previous step, and predicts the occurrence probability of the bin according to the determined context model to perform arithmetic decoding of the bin to generate a symbol corresponding to the value of each syntax element.At this time, the CABAC entropy decoding method can update the context model using the information of the decoded symbol / bin for the context model of the next symbol / bin after determining the context model. Information regarding prediction among the information decoded by the entropy decoding unit (410) is provided to the prediction unit (inter prediction unit (432) and intra prediction unit (431)), and residual values on which entropy decoding is performed by the entropy decoding unit (410), i.e., quantized transform coefficients and related parameter information, can be input to the residual processing unit (420). The residual processing unit (420) can derive a residual signal (residual block, residual samples, residual sample array). In addition, information regarding filtering among the information decoded by the entropy decoding unit (410) can be provided to the filtering unit (450). Meanwhile, a receiving unit (not shown) that receives a signal output from an image / video encoder may be further configured as an internal / external element of the image / video decoder (400), or the receiving unit may be a component of an entropy decoding unit (410). Meanwhile, the image / video decoder according to the present disclosure may be called an image / video decoding device, and the image / video decoder may be divided into an information decoder (image / video information decoder) and a sample decoder (image / video sample decoder). In this case, the information decoder may include an entropy decoding unit (410), and the sample decoder may include at least one of an inverse quantization unit (321), an inverse transformation unit (322), an addition unit (440), a filtering unit (450), a memory (460), an inter prediction unit (432), and an intra prediction unit (431).
[0120] The inverse quantization unit (421) can inverse quantize the quantized transform coefficients and output the transform coefficients. The inverse quantization unit (421) can rearrange the quantized transform coefficients into a two-dimensional block form. In this case, the rearrangement can be performed based on the coefficient scanning order performed in the image / video encoder. The inverse quantization unit (321) can perform inverse quantization on the quantized transform coefficients using quantization parameters (e.g., quantization step size information) and obtain transform coefficients.
[0121] In the inverse transform unit (422), the transform coefficients are inversely transformed to obtain a residual signal (residual block, residual sample array).
[0122] The prediction unit (430) can perform a prediction on the current block and generate a predicted block containing prediction samples for the current block. Based on the prediction information output from the entropy decoding unit (410), the prediction unit can determine whether intra-prediction or inter-prediction is applied to the current block, and can determine a specific intra / inter-prediction mode.
[0123] The prediction unit (420) can generate a prediction signal based on various prediction methods. For example, the prediction unit can apply intra prediction or inter prediction for prediction of a single block, and can also apply intra prediction and inter prediction simultaneously. This can be called combined inter and intra prediction (CIIP). In addition, the prediction unit can be based on an intra block copy (IBC) prediction mode or a palette mode for prediction of a block. The IBC prediction mode or palette mode can be used for content image / video coding such as games, such as screen content coding (SCC). IBC basically performs prediction within the current picture, but can be performed similarly to inter prediction in that it derives a reference block within the current picture. That is, IBC can utilize at least one of the inter prediction techniques described in this document. The palette mode can be viewed as an example of intra coding or intra prediction. When palette mode is applied, information about the palette table and palette index can be signaled by including it in the image / video information.
[0124] The intra prediction unit (431) can predict the current block by referring to samples within the current picture. The referenced samples may be located in the neighborhood of the current block or may be located away from it, depending on the prediction mode. In intra prediction, the prediction modes may include multiple non-directional modes and multiple directional modes. The intra prediction unit (431) can also determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring blocks.
[0125] The inter prediction unit (432) can derive a predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on a reference picture. At this time, in order to reduce the amount of motion information transmitted in the inter prediction mode, the motion information can be predicted in units of blocks, sub-blocks, or samples based on the correlation of the motion information between the neighboring blocks and the current block. The motion information can include a motion vector and a reference picture index. The motion information can further include information on the inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.). In the case of inter prediction, the neighboring blocks can include spatial neighboring blocks existing in the current picture and temporal neighboring blocks existing in the reference picture. For example, the inter prediction unit (432) can construct a motion information candidate list based on the neighboring blocks, and derive the motion vector and / or reference picture index of the current block based on the received candidate selection information. Inter prediction can be performed based on various prediction modes, and information about the prediction can include information indicating the mode of inter prediction for the current block.
[0126] The addition unit (440) can generate a restoration signal (restored picture, restoration block, restoration sample array) by adding the acquired residual signal to the prediction signal (predicted block, prediction sample array) output from the prediction unit (including the inter-prediction unit (432) and / or intra-prediction unit (431)). When there is no residual for the block to be processed, such as when skip mode is applied, the predicted block can be used as the restoration block.
[0127] The addition unit (440) may be referred to as a restoration unit or restoration block generation unit. The generated restoration signal may be used for intra prediction of the next processing target block within the current picture, may be output after filtering as described below, or may be used for inter prediction of the next picture.
[0128] Meanwhile, LMCS (luma mapping with chroma scaling) may be applied during the picture decoding process.
[0129] The filtering unit (450) can improve subjective / objective image quality by applying filtering to the restored signal. For example, the filtering unit (450) can apply various filtering methods to the restored picture to generate a modified restored picture, and transmit the modified restored picture to the memory (460), specifically, the DPB of the memory (460). The various filtering methods can include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, etc.
[0130] The (modified) reconstructed picture stored in the DPB of the memory (460) can be used as a reference picture in the inter prediction unit (432). The memory (460) can store motion information of a block from which motion information is derived (or decoded) within the current picture and / or motion information of blocks within a picture that has already been reconstructed. The stored motion information can be transmitted to the inter prediction unit (432) to be used as motion information of a spatial neighboring block or motion information of a temporal neighboring block. The memory (460) can store reconstructed samples of reconstructed blocks within the current picture and transmit them to the intra prediction unit (431).
[0131] Meanwhile, the VCM decoder (or feature / feature map decoder) may have a structure basically identical / similar to the image / video decoder (400) described above with reference to FIG. 4 in that it performs a series of procedures such as prediction, inverse transformation, and inverse quantization to decode a feature / feature map. However, the VCM decoder is different from the image / video decoder (400) in that it targets a feature / feature map for decoding, and accordingly, the name of each unit (or component) (e.g., DPB, etc.) and its specific operation contents may be different from the image / video decoder (400). The operation of the VCM decoder may correspond to the operation of the VCM encoder, and the specific operation contents will be described in detail later.
[0132] Feature / feature map encoding procedure
[0133] FIG. 5 is a flowchart schematically illustrating a feature / feature map encoding procedure to which embodiments of the present disclosure may be applied.
[0134] Referring to FIG. 5, the feature / feature map encoding procedure may include a prediction procedure (S510), a residual processing procedure (S520), and an information encoding procedure (S530).
[0135] The prediction procedure (S510) can be performed by the prediction unit (320) described above with reference to FIG. 3.
[0136] Specifically, the intra prediction unit (322) can predict the current block (i.e., the set of feature elements to be currently encoded) by referring to feature elements within the current feature / feature map. Intra prediction can be performed based on the spatial similarity of feature elements constituting the feature / feature map. For example, feature elements included in the same region of interest (RoI) within an image / video can be estimated to have similar data distribution characteristics. Accordingly, the intra prediction unit (322) can predict the current block by referring to the restored feature elements within the region of interest including the current block. At this time, the referenced feature elements may be positioned adjacent to the current block or spaced apart from the current block depending on the prediction mode. Intra prediction modes for feature / feature map encoding can include a plurality of non-directional prediction modes and a plurality of directional prediction modes. Non-directional prediction modes may include prediction modes corresponding to, for example, the DC mode and the planar mode of an image / video encoding procedure. Furthermore, directional modes may include prediction modes corresponding to, for example, the 33 directional modes or the 65 directional modes of an image / video encoding procedure. However, this is merely an example, and the types and number of intra-prediction modes may be set / changed in various ways depending on the embodiment.
[0137] The inter prediction unit (321) can predict the current block based on a reference block (i.e., a set of referenced feature elements) specified by motion information on a reference feature / feature map. Inter prediction can be performed based on the temporal similarity of feature elements constituting the feature / feature map. For example, temporally consecutive features can have similar data distribution characteristics. Therefore, the inter prediction unit (321) can predict the current block by referring to the restored feature elements of features that are temporally adjacent to the current feature. At this time, the motion information for specifying the referenced feature elements can include a motion vector and a reference feature / feature map index. The motion information can further include information regarding the inter prediction direction (e.g., L0 prediction, L1 prediction, Bi prediction, etc.). In the case of inter prediction, neighboring blocks may include spatial neighboring blocks existing in the current feature / feature map and temporal neighboring blocks existing in the reference feature / feature map. The reference feature / feature map including the reference block and the reference feature / feature map including the temporal neighboring blocks may be the same or different. The temporal neighboring blocks may be referred to as collocated reference blocks, and the reference feature / feature map including the temporal neighboring blocks may be referred to as collocated feature / feature maps. The inter prediction unit (321) may construct a motion information candidate list based on the neighboring blocks and generate information indicating which candidate is used to derive the motion vector and / or reference feature / feature map index of the current block.Inter prediction can be performed based on various prediction modes. For example, in the case of skip mode and merge mode, the inter prediction unit (321) can use the motion information of the surrounding blocks as the motion information of the current block. In the case of skip mode, unlike the merge mode, a residual signal may not be transmitted. In the case of motion vector prediction (MVP) mode, the motion vector of the surrounding blocks can be used as a motion vector predictor, and the motion vector of the current block can be indicated by signaling the motion vector difference. In addition to the intra prediction and inter prediction described above, the prediction unit (320) can generate a prediction signal based on various prediction methods.
[0138] The prediction signal generated by the prediction unit (320) can be used to generate a residual signal (residual block, residual feature elements) (S520). The residual processing procedure (S520) can be performed by the residual processing unit (330) described above with reference to FIG. 3. In addition, (quantized) transform coefficients can be generated through a transformation and / or quantization procedure for the residual signal, and the entropy encoding unit (340) can encode information about the (quantized) transform coefficients as residual information in the bitstream (S530). In addition to the residual information, the entropy encoding unit (340) can encode information necessary for feature / feature map restoration, such as prediction information (e.g., prediction mode information, motion information, etc.), in the bitstream.
[0139] Meanwhile, the feature / feature map encoding procedure may further include a procedure (S530) for encoding information for feature / feature map restoration (e.g., prediction information, residual information, partitioning information, etc.) and outputting it in the form of a bitstream, as well as a procedure for generating a restored feature / feature map for the current feature / feature map and a procedure (optional) for applying in-loop filtering to the restored feature / feature map.
[0140] The VCM encoder can derive (modified) residual feature(s) from the quantized transform coefficient(s) through inverse quantization and inverse transformation, and can generate a restored feature / feature map based on the predicted feature(s) and the (modified) residual feature(s) which are the outputs of step S510. The restored feature / feature map generated in this way can be identical to the restored feature / feature map generated by the VCM decoder. If an in-loop filtering procedure is performed on the restored feature / feature map, a modified restored feature / feature map can be generated through the in-loop filtering procedure on the restored feature / feature map. The modified restored feature / feature map can be stored in a decoded feature buffer (DFB) or memory, and can be used as a reference feature / feature map in a subsequent feature / feature map prediction procedure. In addition, (in-loop) filtering-related information (parameters) can be encoded and output in the form of a bitstream. Through the in-loop filtering procedure, noise that may occur during feature / feature map coding can be removed, and the performance of feature / feature map-based tasks can be improved. Furthermore, by performing the in-loop filtering procedure in both the encoder and decoder stages, the consistency of prediction results can be guaranteed, the reliability of feature / feature map coding can be improved, and the amount of data transmission for feature / feature map coding can be reduced.
[0141] Feature / feature map decoding procedure
[0142] FIG. 6 is a flowchart schematically illustrating a feature / feature map decoding procedure to which embodiments of the present disclosure may be applied.
[0143] Referring to FIG. 6, the feature / feature map decoding procedure may include an image / video information acquisition procedure (S610), a feature / feature map restoration procedure (S620 to S640), and an in-loop filtering procedure (S650) for the restored feature / feature map. The feature / feature map restoration procedure may be performed based on a prediction signal and a residual signal obtained through the inter / intra prediction (S620) and residual processing (S630), inverse quantization for quantized transform coefficients, and inverse transformation) processes described in the present disclosure. A modified restored feature / feature map may be generated through the in-loop filtering procedure for the restored feature / feature map, and the modified restored feature / feature map may be output as a decoded feature / feature map. The decoded feature / feature map is stored in the decoded feature buffer (DFB) or memory, and can be used as a reference feature / feature map in the inter prediction procedure during subsequent decoding of the feature / feature map. In some cases, the in-loop filtering procedure described above may be omitted. In this case, the reconstructed feature / feature map can be output as a decoded feature / feature map, and can be stored in the decoded feature buffer (DFB) or memory, and can be used as a reference feature / feature map in the inter prediction procedure during subsequent decoding of the feature / feature map.
[0144] Feature extraction methods and data distribution characteristics
[0145] Embodiments of the present disclosure propose a method for generating a prediction process and a related bitstream necessary for compressing an activation (feature) map generated in a hidden layer of a deep neural network.
[0146] Input data input into a deep neural network goes through the associative process of multiple hidden layers, and the computational results of each hidden layer are output as features / feature maps with various sizes and number of channels depending on the type of deep neural network being used and the location of the hidden layer within the deep neural network.
[0147] FIG. 7 is a diagram illustrating an example of a feature extraction and restoration method to which embodiments of the present disclosure can be applied.
[0148] Referring to FIG. 7, a feature extraction network (710) can extract an intermediate layer activation (feature) map of a deep neural network from a source image / video and output an extracted feature map. The feature extraction network (710) can be a set of consecutive hidden layers from the input of the deep neural network.
[0149] The encoding device (720) can compress the output feature map and output it in the form of a bitstream, and the decoding device (730) can restore the (compressed) feature map from the output bitstream. The encoding device (720) may correspond to the encoding unit (12) of FIG. 1, and the decoding device (720) may correspond to the decoding unit (22) of FIG. 1. The task network (740) can perform a task based on the restored feature map.
[0150] The number of channels in the feature map that is the compression target of VCM may vary depending on the network used for feature extraction and the extraction location, and may be greater than the number of channels in the input data.
[0151] FIG. 8 is a diagram illustrating an example of a method for segmenting an image to which embodiments of the present disclosure may be applied. As an example, the diagram illustrates CTUs, slices, and tiles within an image.
[0152] The video / image coding method according to this document can be performed based on the following partitioning structure. Procedures such as prediction, residual processing ((inverse) transformation, (inverse) quantization, etc.), syntax element coding, and filtering can be performed based on CTUs, CUs (and / or TUs, PUs) derived based on the partitioning structure of Fig. 8. The block partitioning procedure can be performed in an encoding device, and partitioning-related information can be encoded and transmitted to a decoding device in the form of a bitstream. The decoding device can derive a block partitioning structure of the current picture based on the partitioning-related information obtained from the bitstream, and perform a series of procedures for image decoding (e.g., prediction, residual processing, block / picture restoration, in-loop filtering, etc.) based on the block partitioning structure. The CU size can be the same as the TU size, and multiple TUs can exist within the CU area. Meanwhile, the CU size can generally represent the luma component (sample) CB size. TU size can generally represent the luma component (sample) TB size. The chroma component (sample) CB or TB size can be derived based on the luma component (sample) CB or TB size according to the component ratio according to the color format (chroma format, e.g., 4:4:4, 4:2:2, 4:2:0, etc.) of the picture / video, and conversion / inverse conversion can be performed in TU (TB) units.
[0153] In addition, in the coding of video / images according to this document, the image processing unit may have a hierarchical structure. One picture may be divided into one or more CUs, and one or more CUs may be grouped and distinguished into one or more tiles, bricks, slices, and / or tile groups. One slice may include one or more bricks. One brick may include one or more CTU rows within the tile. A slice may include an integer number of bricks of the picture. One tile group may include one or more tiles. One tile may include one or more CTUs. The CTUs may be divided into one or more CUs. A tile group may include an integer number of tiles according to a tile raster scan within the picture. A slice header may carry information / parameters applicable to the corresponding slice (blocks within the slice). A picture header may carry information / parameters applicable to the corresponding picture (or blocks within the picture). When the encoding / decoding device has a multi-core processor, the encoding / decoding procedure for the tile, slice, brick, and / or tile group can be processed in parallel. In this document, the terms slice and tile group may be used interchangeably. That is, the tile group header may be called a slice header. Here, the slice may have one of the following types: I slice, P slice, and B slice.
[0154] In an encoding device, the tile / tile group, brick, slice, maximum and minimum coding unit sizes may be determined based on the characteristics of the video image (e.g., resolution) or in consideration of coding efficiency or parallel processing, and information about this or information that can derive this may be included in the bitstream.
[0155] A decoding device can obtain information indicating whether the tile / tile group, brick, sliat, or CTU within a tile of the current picture is divided into multiple coding units. Efficiency can be improved by ensuring that this information is obtained (transmitted) only under certain conditions.
[0156] The above slice header (slice header syntax) may include information / parameters that can be commonly applied to the slices. The APS (APS syntax) or PPS (PPS syntax) may include information / parameters that can be commonly applied to one or more pictures. The SPS (SPS syntax) may include information / parameters that can be commonly applied to one or more sequences. The VPS (VPS syntax) may include information / parameters that can be commonly applied to multiple layers. The DPS (DPS syntax) may include information / parameters that can be commonly applied to the entire video. The DPS may include information / parameters related to the concatenation of CVS (coded video sequence).
[0157] In this document, the upper level syntax may include at least one of the APS syntax, PPS syntax, SPS syntax, VPS syntax, DPS syntax, picture header syntax, and slice header syntax.
[0158] Additionally, for example, information regarding the division and configuration of the above tiles / tile groups / bricks / slices, etc., can be configured in the encoding section through the above-mentioned upper-level syntax and transmitted to the decoding device in the form of a bitstream.
[0159] FIG. 9 is a diagram showing an example of a VCM video encoding / decoding system, and FIG. 10 is a diagram showing another example of a VCM video encoding / decoding system. As an example, FIG. 9 and FIG. 10 can be used to expand / redesign a video coding system (e.g., FIG. 1) so that only a portion of a video source can be used or necessary portions / information can be acquired from the video source according to the request and purpose of a user or machine, and the surrounding environment. In other words, FIG. 9 and FIG. 10 can be related to VCM (Video coding for machines).
[0160] VCM (Video coding for machines) can mean encoding / decoding the entire video, part of the video, and / or necessary information (features) from the video based on the request, purpose, or surrounding environment of the user and / or machine. In VCM, the target of encoding can be the video itself, or it can be information referred to as features extracted from the video based on the request, purpose, or surrounding environment of the user and / or machine, or it can mean a set of a series of information over time.
[0161] Referring to FIG. 9, the VCM system may include a video encoder and a video decoder for VCM. A source device (FIG. 1) may transmit encoded video information to a receiving device via a storage medium or a network. The users of the devices may be humans and / or machines, respectively.
[0162] Referring to FIG. 10, the VCM system may include a video encoder and a video decoder for VCM. A source device may transmit encoded video information (features) to a receiving device via a storage medium or a network. The users of the devices may be humans and / or machines, respectively.
[0163] For example, the process of extracting information, or features, from an image can be called feature extraction. Feature extraction can be performed on both video / image capture devices and / or video / image generation devices. Features can be information extracted / processed from an image based on the user and / or machine's request, purpose, or surrounding environment, and can refer to a collection of information over time.
[0164] A video encoder for VCM can perform a series of procedures, such as prediction, transformation, and quantization, to compress and code the entire image and / or a portion of the image and / or features efficiently. The encoded data can be output in the form of a bitstream.
[0165] A video decoder for VCM can decode video / images by performing a series of procedures such as inverse quantization, inverse transformation, and prediction corresponding to the operation of an encoding device, i.e., an encoder.
[0166] Decoded images and / or features can be rendered. They can also be used to perform tasks for users or machines. Examples of tasks include AI and computer vision tasks such as facial recognition, activity recognition, and lane detection.
[0167] The present disclosure presents various embodiments related to the acquisition and coding of all and / or portions of an image for VCM. Unless otherwise stated, the embodiments may be performed in combination with each other. The methods / embodiments of the present disclosure can be applied to methods disclosed in the VCM (Video Coding for Machines) standard.
[0168]
[0169] VCM hierarchy
[0170] VCM can be based on a hierarchical structure consisting of a feature coding layer, a neural network (feature) abstraction layer, and a feature extraction layer. Fig. 11 is a diagram illustrating an example of a VCM hierarchical structure, and Fig. 12 is a diagram illustrating an example of a VCM bitstream composed of encoded abstract features and NNAL information.
[0171] As an example, referring to FIG. 11, the VCM hierarchy may be composed of a feature extraction layer (1110), a neural network (feature) abstraction layer (1120), and a feature coding layer (1130).
[0172] The feature extraction layer (1110) refers to a layer for extracting features from an input source, and may also include the results of the extraction. The feature coding layer (1130) refers to a layer for compressing the extracted features, and may also include the results of the compression.
[0173] The neural network abstraction layer (1120) can abstract information generated by the feature extraction layer (1110) (e.g., information about extracted features / feature maps) and pass it to the feature coding layer (1130). The neural network abstraction layer (1120) can hide the internals of the feature extraction layer (1110) through information abstraction and provide a consistent feature interface function. Accordingly, even if the compression target changes due to a change in the tool (e.g., CNN, DNN, etc.), the feature coding layer (1130) can perform a consistent feature coding procedure. In the present disclosure, the neural network abstraction layer (NNAL) may also be referred to as a feature abstraction layer.
[0174] The interface between the feature extraction layer (1110) and the neural network abstraction layer (1120) and the interface between the feature coding layer (1130) and the neural network abstraction layer (1120) can be defined in advance, and the operation in the neural network abstraction layer (1120) can be set to be changed later.
[0175] Referring to FIG. 12, a bitstream configured as illustrated may be referred to as an NNAL (Neural Network Abstraction Layer) unit. An NNAL unit may be an independent feature restoration unit. The input features for a single NNAL unit may be extracted from the same layer within a neural network. Accordingly, the input features for a single NNAL unit may be forced to have the same characteristics. For example, the same feature extraction method may be applied to the input features for a single NNAL unit.
[0176] An NNAL unit may include an NNAL unit header and an NNAL unit payload. The NNAL unit header may include all information necessary to utilize the encoded feature for a task. The NNAL unit payload may include abstracted feature information. The NNAL unit payload may include a group header and group data. The group header may include configuration information of feature group data, such as information about the temporal order, number, and common properties of feature channels constituting the feature group. A feature channel may mean an encoded feature unit. The group data may include a plurality of feature channels and coding instructions, and each feature channel may include type information, prediction information, side information, and residual information. In this case, the type information may indicate an encoding method, and the prediction information may indicate a prediction method. In addition, the side information may indicate additional information necessary for decoding (e.g., entropy coding, quantization-related information, etc.), and the residual information may include information about encoded feature elements (i.e., a set of feature value information).
[0177] Example
[0178] Embodiments of the present disclosure may relate to a feature / feature map encoding procedure and a feature / feature map decoding procedure, and may relate to a process of encoding / decoding a compressed bitstream for performing a machine task. As an example, according to an embodiment of the present disclosure, in order to generate a compressed bitstream for a feature / feature map extracted from a deep neural network, each channel data of a sub-decoded feature / feature map may be divided into a Region of Interest (ROI) and a Non-Important Region (Non-ROI) for performing a machine task. According to an embodiment of the present disclosure, region information may be required to restore the divided important and non-important regions, and a partial coding method may be proposed that omits encoding of a non-important region of a corresponding channel during encoding and restores the non-important region to a specific value during decoding. The method(s) can reduce the size of the bitstream more efficiently by limiting the coding target area when coding the channel data of the feature / feature map, while enabling the performance of machine tasks with a similar level of accuracy after encoding / decoding.
[0179] Meanwhile, when describing embodiments of the present disclosure, features (or feature maps) are referred to for clarity of explanation, but it is self-evident that embodiments of the present disclosure can be applied to features, feature maps, and images.
[0180] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings.
[0181] As an example, FIG. 13 is an example of visualizing multiple channel data in a feature / feature map according to an embodiment of the present disclosure, and is an example related to a process of generating a compressed bitstream for a feature / feature map extracted from a deep neural network for performing a machine task. More specifically, FIG. 13 (a) is an example of an input image of a deep neural network, and FIG. 13 (b) is an example of visualizing multiple channel data in a feature / feature map extracted from the input image. As in the example of FIG. 13 (b), a feature / feature map extracted from a single input image may be composed of multiple channels, and there may be differences in channel data distribution by region within each channel. In the present disclosure, in order to generate a compressed bitstream for a feature / feature map extracted from a deep neural network for performing a machine task, each channel data of an encoded / decoded feature / feature map can be distinguished by utilizing the differences in channel data distribution by region. For example, each channel data can be divided into a Region of Interest (ROI) and a Non-Important Region (Non-ROI) based on specific criteria such as whether an object is included and / or the frequency of the region when performing a machine task, and the encoding of the non-important region of the corresponding channel can be omitted during encoding using the region information, and the non-important region can be restored to a specific value during decoding. As an example, in order to generate a compressed bitstream for a feature / feature map extracted from a deep neural network for performing a machine task, a partial subcoding / decoding method can be proposed, in which each channel data of a sub-decoded feature / feature map is divided into a Region of Interest (ROI) and a Non-Important Region (Non-ROI) when performing a machine task using the difference in the distribution of data in each channel within the feature / feature map, and the encoding of the non-important region of the corresponding channel can be omitted during encoding using the region information, and the non-important region can be restored to a specific value during decoding.
[0182] FIG. 14 is a diagram showing an example of region division and region data distribution of feature / feature map channel data according to an embodiment of the present disclosure. More specifically, (a) of FIG. 14 is an example of visualizing one channel in a feature / feature map by dividing it into multiple regions of the same size according to an embodiment of the present disclosure, and (b) is an example of a histogram showing the data distribution of the entire channel data, and (b)-1 and (b)-2 are examples of histograms showing the channel data distribution of the regions indicated as b-(1) and b-(2) in (a), respectively. In the case of (b)-1, it can be seen that the mean of the data is similar to the mean of the entire channel in (b), and the variance is relatively small compared to the variance of the entire channel data, whereas in the case of (b)-2, the mean of the data is different from the mean of the entire channel, and the variance is also relatively large compared to the variance of the entire channel data. Therefore, the channel data of region (b)-1 may have a smaller impact on the performance of the machine task than the channel data of region (b)-2. Therefore, region b-(1) can be classified as a non-critical region, region b-(2) as a critical region, and other regions that are not given as examples can also be classified based on the same criteria. The example of dividing channel data into multiple regions of the same size here is for the convenience of the example, and the actual division may be performed in various forms of unequal sizes. In addition, the example of using the mean and variance of each region to separate the channel data into critical and non-critical regions here is also for the convenience of the example, and in reality, other criteria may be applied, and it is obvious that such an example is also included in the embodiments of the present disclosure.
[0183] According to this embodiment, by efficiently reducing the size of the compressed bitstream, the encoding target area can be reduced during channel data encoding, and the decoding process can be performed more efficiently during decoding. Furthermore, while further reducing the size of the compressed bitstream, it is possible to perform machine tasks with a similar level of accuracy after encoding / decoding.
[0184] FIG. 15 is an example showing a partial encryption / decryption method according to a critical area and a non-critical area presented in one embodiment of the present disclosure.
[0185] For example, the encoding side may have original channel data (1501) for features / feature maps of an image. In this regard, a region classification process (1502) may be performed to classify important regions and non-important regions based on the entire channel data (1501). For example, regions classified as non-important regions according to the region-by-region distribution of channel data may have a relatively small impact on machine task performance, so that encoding of channel data for the corresponding non-important regions may be omitted during encoding and only the important regions may be encoded. For example, the important region (1506) may be encoded (1505). That is, information about the important region may be encoded into a bitstream (1500). Meanwhile, a representative value (e.g., a statistical value, e.g., an average value) of the channel data may be derived (1503) based on the entire channel data (1501), and the average value may be encoded (1504) into a bitstream (1500).
[0186] In this regard, the decoding side can obtain an encoded bitstream (1500) and perform decoding on the channel data. For example, during decoding, the critical region is decoded based on information about the encoded critical region, but the channel data for the non-critical region can be decoded in a different manner from the critical region. Based on the bitstream, partial decoding (1510) of the channel data can be performed. For example, first, the critical region can be restored (1511) based on information about the critical region obtained from the bitstream. Meanwhile, a representative value (e.g., an average value) for the channel data obtained from the bitstream can be decoded (1512), and the non-critical region can be restored (1513) based on the representative value. Accordingly, the entire channel data can be restored (1514) based on the restored critical region and the restored non-critical region.
[0187] As an example, the representative value (e.g., average value) of the channel data being encoded or decoded may be the representative value (e.g., average value) of the entire channel data, but may also be the representative value (e.g., average value) of the channel data of a non-critical area.
[0188] Meanwhile, Tables 1 and 2 below are examples of necessary information that can be signaled when applying the partial encoding / decoding method presented in this embodiment. Table 1 is an example of syntax for signaling whether the partial encoding / decoding method of the channel data of this example has been used within a video sequence, and Table 2 is an example of syntax for indicating whether there is a CU (Coding Unit) to which partial encoding / decoding has been applied within each channel, a syntax for signaling a replacement value to restore CUs whose encoding has been omitted, and a syntax for indicating whether each CU is a CU whose coding has been omitted.
[0189]
[0190] As an example, Table 1 is a table illustrating an example of syntax that may be included in a parameter set (e.g., a sequence parameter set) according to an embodiment of the present disclosure. As an example, a parameter set (e.g., a sequence parameter set, SPS) may include information indicating whether partial coding of channel data according to an embodiment of the present disclosure is performed as described above. As an example, the information may be expressed as a syntax sps_ccs_enabled_flag (e.g., a first syntax) and may indicate whether partial coding of channel data is used within a video sequence. If the syntax is a first value (e.g., 0), it may indicate that partial coding is not used, and if it is a second value (e.g., 1), it may indicate that partial coding is used.
[0191] Meanwhile, in Table 1, for the sake of clarity of explanation, only examples in which syntax is included in a sequence parameter set are described, but it is obvious that it may also be included in a picture parameter set (PPS), a picture header, a slice header, etc., and such embodiments are also included in the present disclosure.
[0192]
[0193] As an example, Table 2 is a table for explaining an example of syntax according to an embodiment of the present disclosure. As an example, syntaxes channel_ccs_enabled_flag[channel_idx], channel_ccs_val[channel_idx], cu_ccs_skip_flag[channel_idx][cu_idx], and / or channel_coding_unit(channel_idx, cu_idx) may be signaled. In addition, the syntax may be signaled by being included in a parameter set of a certain unit (e.g., pic_channel_data).
[0194] As an example, there may be a pic_channel_data signaling unit that may include the syntaxes disclosed in the table above. For example, the unit may be an example of a syntax unit for channel data within a single picture of a video sequence. Multiple channel data may be coded within the unit.
[0195] As an example, a syntax may be signaled to indicate whether there is a coding unit (CU) for which partial coding is applied for each region among the coding units (CUs) for channel data and thus encoding is omitted. As an example, the syntax may be referred to as channel_ccs_enabled_flag[channel_idx] (e.g., a second syntax), and the variable channel_idx may be an index for indicating channel data, and may be a variable for indicating which channel data index (channel_idx) the CU corresponds to. If the syntax is a first value (e.g., 0), it may indicate that partial coding is not used for any CU of all channel data, and if it is a second value (e.g., 1), it may indicate that there is a CU for which partial coding is used for specific channel data. In addition, the second syntax may be signaled based on the value of the first syntax. As an example, a second syntax may be signaled only if the value of the first syntax is a certain value (e.g., 1).
[0196] For example, if there is a coding unit in which partial coding is applied by region and encoding is omitted, a representative value (e.g., an average value) of channel data for restoring the coding unit may be signaled. As an example, the syntax may be referred to as channel_ccs_val[channel_idx] (e.g., the third syntax), and since the variable channel_idx is the same as described above, a duplicate description is omitted. Accordingly, the third syntax may indicate a representative value of channel data for restoring a coding unit in which partial coding is used and coding is omitted among the coding units for the channel data corresponding to the channel data index (channel) idx. The third syntax may be signaled based on the value of the second syntax. As an example, the third syntax may be signaled only when the value of the second syntax is a specific value (e.g., 1). Additionally, as an example, the representative value (e.g., average value) to be encoded or decoded may be a representative value (e.g., average value) of the entire channel data, but may also be a representative value (e.g., average value) of the channel data in a non-critical region. In this case, a coding unit that was omitted from encoding due to partial coding may be restored based on the representative value of the entire channel data or the representative value of the channel data in the non-critical region.
[0197] As an example, information for specifying a coding unit for which partial coding is used may be signaled. The information may be referred to, for example, as syntax cu_ccs_skip_flag[channel_idx][cu_idx] (e.g., the fourth syntax). Since the variable channel_idx is the same as described above, a duplicate description will be omitted. The variable cu_idx is a coding unit index for specifying a coding unit existing in a channel corresponding to a channel data index (channel_idx), and may indicate whether coding of the coding unit has been skipped by a partial coding method. In other words, the fourth syntax may be information indicating whether channel data partial coding has been applied to a CU corresponding to the index syntax cu_idx for specifying a coding unit existing in a channel corresponding to the index syntax channel_idx for specifying channel data. If the value of the fourth syntax is the first value (e.g., 1), it may indicate that partial coding has been applied to the corresponding CU (coding unit), i.e., the corresponding CU is included in a non-critical area and thus coding of the corresponding CU has been omitted. Therefore, on the decoding side, when restoring the corresponding CU, the data value of the corresponding CU can be derived based on the value of the third syntax channel_ccs_val[channel_idx] described above. Meanwhile, the fourth syntax may be signaled based on the values of the first syntax and / or the second syntax. For example, it may be signaled only when the first syntax is a specific value (e.g., 1) and the second syntax is a specific value (e.g., 1).
[0198] As an example, information for specifying a coding unit for which partial coding is not used may be signaled. The information may be referred to as, for example, syntax channel_coding_unit(channel_idx, cu_idx) (e.g., the fifth syntax), and since the variables channel_idx and cu_idx are the same as those described above, their redundant descriptions are omitted. In other words, the fifth syntax may be an example of a unit for coding channel data of a CU corresponding to the index syntax cu_idx, which specifies a coding unit existing in a channel corresponding to the index syntax channel_idx that specifies channel data. As an example, the fifth syntax may be signaled based on the values of the first syntax, the second syntax, and / or the fourth syntax. As an example, it may be signaled when the value of at least one of the first syntax, the second syntax, or the fourth syntax is a specific value (e.g., 0). As another example, it may not be signaled if at least one of the first syntax, the second syntax, or the fourth syntax is a specific value (e.g., 1).
[0199] Here, the unit of the area where coding is omitted, that is, the unit where coding can be omitted because it is included in a non-critical area, is given as a CU (coding unit), but this is for the convenience of example, and the unit of omission of subcoding / decoding can be any other unit such as a slice, a tile, a coding tree unit (CTU, coding tree unit), a coding unit (CU), a sub-coding unit (sub-CU), and an area composed of a plurality of such units, and it is obvious that such cases are also included in one embodiment of the present disclosure.
[0200] According to an embodiment of the present disclosure, the size of the bitstream can be efficiently reduced by not coding data in a non-critical area, while enabling machine task execution at a level similar to that on the encoding side, thereby improving coding efficiency and reducing overhead. Here, when encoding / decoding channel data, the average value is encoded / decoded and used as a representative value of the entire data of the corresponding channel as a value to replace the entire data of the non-critical area, for the convenience of example, and in some cases, other values can be encoded / decoded and used, and a predetermined value can be replaced without a separate encoding / decoding, and it is obvious that this is also included in an embodiment of the present disclosure.
[0201] FIG. 16 is an example showing a partial coding method for each region according to another embodiment of the present disclosure.
[0202] For example, the encoding side may have original channel data (1601) for features / feature maps of an image. In this regard, a region classification process (1602) may be performed to classify important regions and non-important regions based on the entire channel data (1601). For example, regions classified as non-important regions according to the region-by-region distribution of channel data may have a relatively small impact on machine task performance, so that encoding of channel data for the corresponding non-important regions may be omitted during encoding and only the important regions may be encoded. For example, the important region (1606) may be encoded (1605). That is, information about the important region may be encoded into a bitstream (1600). Meanwhile, a representative value (e.g., an average value) of the entire channel data may be derived (1603) based on the entire channel data (1601), and the average value may be encoded (1604) into a bitstream (1600). In addition, unlike Fig. 15, a representative value (e.g., an average value) of channel data within a non-critical region can be derived (1607) and a differential value (e.g., representative value of channel data within a non-critical region - representative value of entire channel data or representative value of entire channel data - representative value of channel data within a non-critical region) can be derived (1608) in relation to the representative value of entire channel data. The corresponding differential value can be encoded into a bitstream (1600).
[0203] In this regard, the decoding side can obtain an encoded bitstream (1600) and perform decoding on the channel data. For example, during decoding, the critical region is decoded based on information about the encoded critical region, but the channel data for the non-critical region can be decoded in a different manner from the critical region. Based on the bitstream, partial decoding (1610) of the channel data can be performed. For example, the critical region can be restored (1611) based on information about the critical region obtained from the bitstream. Meanwhile, a representative value (e.g., an average value) for the channel data obtained from the bitstream can be decoded (1612), and a differential value calculated based on the representative value of the channel data can be decoded (1613), so that the non-critical region can be restored (1614) based on the representative value and the differential value for the channel data. For example, a representative value to be applied to the non-critical region can be derived by adding the representative value and the differential value for the channel data. Once the representative value is derived, the same representative value can be applied to the entire non-critical region. Meanwhile, as an example, the representative value (e.g., the average value) to be encoded or decoded may be the representative value (e.g., the average value) of the entire channel data, but may also be the representative value (e.g., the average value) of the channel data in the non-critical region. Thereafter, the entire channel data can be restored (1615) based on the restored critical region and the restored non-critical region. In this case, the coding unit whose encoding was omitted due to the use of partial coding can be restored based on the representative value of the entire channel data or the representative value of the channel data in the non-critical region. As an example, if the representative value of the channel data to be decoded is the representative value of the entire channel data, the difference value may be a value derived from the representative value of the channel data in the non-critical region minus the representative value of the entire channel data.However, as another example, if the representative value of the channel data to be decoded is the representative value of the channel data within the non-critical region, the differential value may be a value derived from the representative value of the entire channel data - the representative value of the channel data within the non-critical region. In this case, the coding unit, for which encoding was omitted due to partial coding, may be restored based on the representative value of the entire channel data or the representative value of the channel data within the non-critical region, and may be restored further based on the differential value.
[0204] Meanwhile, Tables 3 and 4 below are examples of necessary information that can be signaled when applying the partial encoding / decoding method presented in this embodiment. Table 3 is an example of syntax for signaling whether the partial encoding / decoding method of the channel data of this example has been used within a video sequence, and Table 4 is an example of syntax for indicating whether there is a CU (Coding Unit) to which partial encoding / decoding has been applied within each channel, a syntax for signaling a value that can be used to restore CUs with omitted encoding, and a syntax for indicating whether each CU is a CU with omitted encoding.
[0205]
[0206] As an example, Table 3 is a table for explaining an example of syntax that may be included in a parameter set (e.g., a sequence parameter set) according to an embodiment of the present disclosure. As an example, a parameter set (e.g., a sequence parameter set, SPS) may include information indicating whether partial coding of channel data according to an embodiment of the present disclosure is performed as described above. As an example, the information may be expressed as a syntax sps_ccs_enabled_flag (e.g., a first syntax) and may indicate whether partial coding of channel data is used within a video sequence. Since the same content as described with reference to Table 1 above may be applied to this, a duplicate description will be omitted.
[0207]
[0208] As an example, Table 4 is a table for explaining an example of syntax according to an embodiment of the present disclosure. As an example, syntax channel_ccs_enabled_flag[channel_idx], channel_ccs_val[channel_idx], cu_ccs_skip_flag[channel_idx][cu_idx], cu_ccs_delta_val[channel_idx][cu_idx], and / or channel_coding_unit(channel_idx, cu_idx) may be signaled. In addition, the syntax may be signaled by being included in a parameter set of a certain unit (e.g., pic_channel_data).
[0209] As an example, there may be a pic_channel_data signaling unit that may include the syntaxes disclosed in the table above. Since this is the same as described above, a duplicate description will be omitted.
[0210] As an example, a syntax may be signaled to indicate whether there are coding units (CUs) for which partial coding is applied for each region among channel data and thus encoding is omitted. As an example, the syntax may be referred to as channel_ccs_enabled_flag[channel_idx] (e.g., the second syntax). Since this is the same as described above, a duplicate explanation is omitted.
[0211] For example, if there is a coding unit where encoding is omitted due to partial coding applied by region, a representative value (e.g., an average value) of channel data for restoring the coding unit may be signaled. As an example, the syntax may be referred to as channel_ccs_val[channel_idx] (e.g., the third syntax). Since this is the same as described above, a duplicate explanation is omitted.
[0212] As an example, information for specifying a coding unit using partial coding may be signaled. This information may be referred to, for example, as the syntax cu_ccs_skip_flag[channel_idx][cu_idx] (e.g., the fourth syntax). This is the same as described above, so a duplicate description is omitted.
[0213] As an example, information about a differential value for restoring a coding unit for which partial coding is used may be signaled. The information may be referred to, for example, as syntax cu_ccs_delta_val[channel_idx][cu_idx] (e.g., the sixth syntax). Since the variables channel_idx and cu_idx are the same as those described above, their redundant descriptions are omitted. In other words, the sixth syntax may represent a differential value calculated based on a channel data representative value (e.g., a representative value, an average value) signaled by the third syntax (e.g., channel_ccs_val[channel_idx]) of the CU when encoding of a specific CU corresponding to cu_idx existing in a channel corresponding to channel_idx is omitted due to channel data partial coding. For example, the representative value of the channel data to be decoded (e.g., the average value), that is, the value indicated by the third syntax, may be the representative value of the entire channel data (e.g., the average value), but may also be the representative value of the channel data in the non-critical region (e.g., the average value). Therefore, as an example, if the value indicated by the third syntax is the representative value of the entire channel data, the differential value that can be expressed by the sixth syntax may be a value derived from the representative value of the channel data in the non-critical region - the representative value of the entire channel data. However, as another example, if the value indicated by the third syntax is the representative value of the channel data in the non-critical region, the differential value that can be expressed by the sixth syntax may be a value derived from the representative value of the entire channel data - the representative value of the channel data in the non-critical region. In this case, a coding unit whose encoding was omitted due to the use of partial coding may be restored based on the representative value of the entire channel data or the representative value of the channel data in the non-critical region. Additionally, the sixth syntax can be signaled based on the value of the fourth syntax.As an example, if the value of the fourth syntax is a specific value (e.g., 1), the sixth syntax can be obtained from the bitstream.
[0214] As an example, information may be signaled to identify coding units for which partial coding is not used. This information may be referred to, for example, as the syntax channel_coding_unit(channel_idx, cu_idx) (e.g., syntax 5). Since this is the same as described above, a duplicate description will be omitted.
[0215] Here, the unit of the area where coding is omitted, that is, the unit where coding can be omitted because it is included in a non-critical area, is given as a CU (coding unit), but this is for the convenience of example, and the unit of omission of subcoding / decoding can be any other unit such as a slice, a tile, a coding tree unit (CTU, coding tree unit), a coding unit (CU), a sub-coding unit (sub-CU), and an area composed of a plurality of such units, and it is obvious that such cases are also included in one embodiment of the present disclosure.
[0216] According to an embodiment of the present disclosure, the size of the bitstream can be efficiently reduced by not coding data in a non-critical area, while enabling machine task execution at a level similar to that on the encoding side, thereby improving coding efficiency and reducing overhead. Here, when encoding / decoding channel data, the average value is encoded / decoded and used as a representative value of the entire data of the corresponding channel as a value to replace the entire data of the non-critical area, for the convenience of example, and in some cases, other values can be encoded / decoded and used, and a predetermined value can be replaced without a separate encoding / decoding, and it is obvious that this is also included in an embodiment of the present disclosure.
[0217] Meanwhile, it is obvious that the name of the syntax, the form of the syntax (e.g., flag), and the signaling order of the syntax described with reference to FIGS. 15 and 16 and Tables 1 to 4 above may be changed, and this is also included in the present disclosure.
[0218] FIG. 17 is a diagram illustrating a feature decoding method that can be performed by a feature (image) decoding device according to one embodiment of the present disclosure. As an example, FIG. 17 may be performed based on the embodiment described with reference to other drawings above, or based on the syntax described with reference to other tables.
[0219] According to an example of a feature decoding method performed by a feature decoding device, information about a channel within a feature may be acquired from a bitstream (S1710), and the channel may be restored (S1720) based on the information about the corresponding channel. For example, the information about the channel may include information about whether to code according to the importance of each region of the channel. Here, whether to code according to the importance of each region of the channel may mean the partial coding for each region described above. For example, based on the information about whether to code indicating that only the important region of the channel is coded, the non-important region may be restored based on a representative value for the channel data. The representative value for the channel data may be an average value for the channel data. For example, the representative value for the channel data may be a representative value for the entire channel data (e.g., an average value) or a representative value for the channel data of a non-important region (e.g., an average value). Meanwhile, the representative value for the channel data may be acquired from the bitstream. That is, it may be explicitly signaled. Also, as an example, based on the information about whether to code indicates that only the critical region of the channel is coded, the non-critical region can be restored based on the representative value of the channel data of the non-critical region or the representative value of the (entire) channel data plus the differential value. Meanwhile, the representative value of the channel data of the non-critical region can be the average value of the channel data of the non-critical region. Also, as an example, the differential value can be obtained from the bitstream. Also, the non-critical region can be restored based on the representative value of the channel data of the non-critical region plus the differential value. As another example, the non-critical region can be restored based on the representative value of the entire channel data plus the differential value.
[0220] According to the embodiment of Fig. 17, it is possible to efficiently perform machine tasks through a compressed bitstream and improve coding efficiency.
[0221] Meanwhile, since FIG. 17 is a drawing illustrating one embodiment of the present disclosure, some steps may be changed, the order of some steps may be changed, some steps may be deleted, or some steps may be added. It is self-evident that all such cases are included in the present disclosure.
[0222] FIG. 18 is a diagram illustrating a feature encoding method that can be performed by a feature (image) encoding device according to one embodiment of the present disclosure. As an example, FIG. 18 may be performed based on an embodiment described with reference to another drawing above, or based on a syntax described with reference to another table.
[0223] As an example, information about a channel within a feature may be determined (S1810), and the information about the channel may be encoded into a bitstream (S1820). The information about the channel may include information about whether to code according to the importance of each region of the channel. In addition, although not included in the drawing, the step of determining information about the channel within a feature may further include a step of determining whether to code according to the importance of each region of the channel within the feature. Here, whether to code according to the importance of each region of the channel may mean the partial coding for each region described above. Meanwhile, based on coding only the important region of the channel, a representative value for the channel data may be encoded into a bitstream. Meanwhile, based on coding only the important region of the channel, a difference value between the representative values for the channel data may be encoded into a bitstream. Meanwhile, based on coding only the important region of the channel, non-important regions may be restored based on the representative value for the channel data. The representative value for the channel data may be an average value for the channel data. For example, the representative value for channel data may be a representative value for the entire channel data (e.g., an average value) or a representative value for the channel data of a non-critical region (e.g., an average value). Meanwhile, the representative value for the channel data may be encoded in the bitstream, i.e., may be explicitly signaled. Furthermore, as an example, based on coding only the critical region of the channel, the non-critical region may be restored based on the representative value of the channel data of the non-critical region or the sum of the representative value of (all) channel data and the differential value. Meanwhile, the representative value of the channel data of the non-critical region may be the average value of the channel data of the non-critical region. Furthermore, as an example, the differential value may be encoded in the bitstream. Furthermore, the non-critical region may be restored based on the sum of the representative value of the channel data of the non-critical region and the differential value.As another example, non-critical areas may be restored based on the sum of the representative value and the differential value of the entire channel data.
[0224] According to the embodiment of Fig. 18, it is possible to efficiently perform machine tasks through a compressed bitstream and improve coding efficiency.
[0225] Meanwhile, since FIG. 18 is a drawing illustrating one embodiment of the present disclosure, some steps may be changed, the order of some steps may be changed, some steps may be deleted, or some steps may be added. It is self-evident that all such cases are included in the present disclosure.
[0226] Meanwhile, although not depicted in the drawing, according to one embodiment of the present disclosure, a medium on which a bitstream generated by a feature encoding method is recorded may be disclosed. In this case, the feature encoding method may include a step of determining information about channels within a feature and a step of encoding information about the channels into a bitstream. Since other aspects are the same as described above, a redundant description will be omitted.
[0227] Additionally, although not depicted in the drawings, one embodiment of the present disclosure may disclose a method for transmitting a bitstream generated by a feature encoding method. The feature encoding method may include a step of determining information about a channel within a feature and a step of encoding information about the channel into a bitstream. Since other aspects are the same as those described above, a redundant description will be omitted.
[0228] All names of the syntax elements described above are arbitrarily assigned for clarity of explanation and are not intended to limit the names of the syntax elements. Furthermore, each syntax element may be referred to by information with different names. Furthermore, while some syntax elements may be obtained from the bitstream, they may also be derived from other syntax elements, which may also be included in embodiments of the present disclosure.
[0229] Additionally, the bitstream generated by the feature (image) encoding method may be stored in a non-transitory computer-readable recording medium.
[0230] Additionally, as another example, a bitstream generated by a feature (image) encoding method may be transmitted to another device (e.g., a feature (image) decoding device, etc.). In this case, the method for transmitting the bitstream may include a process for transmitting the bitstream.
[0231] All names of the syntax elements described above are arbitrarily assigned for clarity of explanation and do not limit the names of the syntax elements. In addition, the first syntax element to the sixth syntax element may be referred to as first information to sixth information, respectively. In addition, the first syntax element to the sixth syntax element may be obtained from the bitstream, but may also be derived from other syntax elements, which may also be included in embodiments of the present disclosure.
[0232] Additionally, the bitstream generated by the image encoding method may be stored in a non-transitory computer-readable recording medium.
[0233] Additionally, as another example, a bitstream generated by a video encoding method may be transmitted to another device (e.g., a video decoding device, etc.). In this case, the method for transmitting the bitstream may include a process for transmitting the bitstream.
[0234] While the exemplary methods of this disclosure are presented as a series of operations for clarity of description, this is not intended to limit the order in which the steps are performed, and individual steps may be performed simultaneously or in different orders, if desired. To implement a method according to this disclosure, additional steps may be included in addition to the steps illustrated, some steps may be excluded and the remaining steps included, or some steps may be excluded and additional steps included.
[0235] In the present disclosure, a video encoding device or video decoding device performing a predetermined operation (step) may perform an operation (step) of checking the conditions or circumstances under which the operation (step) is performed. For example, if it is described that a predetermined operation is performed when a predetermined condition is satisfied, the video encoding device or video decoding device may perform an operation of checking whether the predetermined condition is satisfied and then perform the predetermined operation.
[0236] The various embodiments of the present disclosure are not intended to list all possible combinations but rather to illustrate representative aspects of the present disclosure, and the matters described in the various embodiments may be applied independently or in combination of two or more.
[0237] The embodiments described in this disclosure may be implemented and performed on a processor, microprocessor, controller, or chip. For example, the functional units depicted in each drawing may be implemented and performed on a computer, processor, microprocessor, controller, or chip. In this case, information (e.g., information on instructions) or algorithms for implementation may be stored on a digital storage medium.
[0238] In addition, the decoder (decoding device) and encoder (encoding device) to which the embodiment(s) of the present disclosure are applied may be included in a multimedia broadcasting transmitting and receiving device, a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video conversation device, a real-time communication device such as a video communication, a mobile streaming device, a storage medium, a camcorder, a video-on-demand (VoD) service providing device, an OTT video (Over the top video) device, an Internet streaming service providing device, a three-dimensional (3D) video device, a VR (virtual reality) device, an AR (argumente reality) device, a video phone video device, a transportation terminal (e.g., a vehicle (including an autonomous vehicle) terminal, a robot terminal, an airplane terminal, a ship terminal, etc.), and a medical video device, and may be used to process a video signal or a data signal. For example, OTT video (Over the top video) devices may include game consoles, Blu-ray players, Internet-connected TVs, home theater systems, smartphones, tablet PCs, and DVRs (Digital Video Recorders).
[0239] In addition, the processing method to which the embodiment(s) of the present disclosure are applied can be produced in the form of a computer-executable program and can be stored in a computer-readable recording medium. Multimedia data having a data structure according to the embodiment(s) of the present document can also be stored in a computer-readable recording medium. The computer-readable recording medium includes all types of storage devices and distributed storage devices in which computer-readable data is stored. The computer-readable recording medium can include, for example, a Blu-ray disc (BD), a universal serial bus (USB), a ROM, a PROM, an EPROM, an EEPROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device. In addition, the computer-readable recording medium includes a medium implemented in the form of a carrier wave (e.g., transmission via the Internet). In addition, a bitstream generated by an encoding method can be stored in a computer-readable recording medium or transmitted via a wired or wireless communication network.
[0240] Additionally, the embodiments of the present disclosure may be implemented as a computer program product by program code, and the program code may be executed on a computer by the embodiments of the present disclosure. The program code may be stored on a computer-readable carrier.
[0241] FIG. 19 is a diagram illustrating an example of a content streaming system to which embodiments of the present disclosure can be applied.
[0242] Referring to FIG. 19, a content streaming system to which an embodiment of the present disclosure is applied may largely include an encoding server, a streaming server, a web server, a media storage, a user device, and a multimedia input device.
[0243] The encoding server compresses content input from multimedia input devices, such as smartphones, cameras, and camcorders, into digital data, generates a bitstream, and transmits it to a streaming server. Alternatively, if multimedia input devices, such as smartphones, cameras, and camcorders, generate the bitstream directly, the encoding server may be omitted.
[0244] A bitstream can be generated by a video encoding method and / or a video encoding device to which an embodiment of the present disclosure is applied, and a streaming server can temporarily store the bitstream during the process of transmitting or receiving the bitstream.
[0245] A streaming server transmits multimedia data to a user device based on a user request via a web server, and the web server can act as an intermediary, informing the user of available services. When a user requests a desired service from the web server, the web server transmits the request to the streaming server, which then transmits the multimedia data to the user. The content streaming system may include a separate control server, in which case the control server may control commands and responses between each device within the content streaming system.
[0246] A streaming server can receive content from a media repository and / or encoding server. For example, when receiving content from an encoding server, the content can be received in real time. In this case, the streaming server can store the bitstream for a certain period of time to provide a smooth streaming service.
[0247] Examples of user devices include mobile phones, smart phones, laptop computers, digital broadcasting terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), navigation devices, slate PCs, tablet PCs, ultrabooks, wearable devices (e.g., smartwatches, smart glasses, head mounted displays (HMDs)), digital TVs, desktop computers, and digital signage.
[0248] Each server within a content streaming system can be operated as a distributed server, in which case the data received from each server can be processed in a distributed manner.
[0249] FIG. 20 is a diagram illustrating another example of a content streaming system to which embodiments of the present disclosure can be applied.
[0250] Referring to FIG. 20, in an embodiment such as VCM, depending on the performance of the device, the user's request, the characteristics of the task to be performed, etc., the task may be performed on the user terminal or on an external device (e.g., a streaming server, an analysis server, etc.). In this way, in order to transmit the information required for performing the task to the external device, the user terminal may directly or through an encoding server generate a bitstream containing the information required for performing the task (e.g., information such as the task, neural network, and / or purpose).
[0251] The analysis server can decrypt encoded information received from the user terminal (or encoding server) and then perform a task requested by the user terminal. The analysis server can transmit the results obtained through the task performance back to the user terminal or to another linked service server (e.g., a web server). For example, the analysis server can perform a task to determine fire and transmit the results obtained to a fire-related server. The analysis server may include a separate control server, in which case the control server can control commands / responses between each device associated with the analysis server and the server. In addition, the analysis server can request desired information from the web server based on information about the tasks the user device wishes to perform and can perform. When the analysis server requests a desired service from the web server, the web server can transmit this request to the analysis server, and the analysis server can transmit data corresponding to the request to the user terminal. In this case, the control server of the content streaming system can control commands / responses between each device within the streaming system.
[0252] Embodiments according to the present disclosure can be used for image encoding / decoding.
Claims
1. In a feature decoding method performed by a feature decoding device, A step of obtaining information about a channel within a feature from a bitstream; and A step of restoring the channel based on information about the channel; including: A feature decoding method, wherein the information about the above channel includes information about whether to code according to the importance of each area of the above channel.
2. In paragraph 1, A feature decoding method, wherein the non-critical region is restored based on a representative value for the channel data, based on the information indicating whether the above coding is performed or not, indicating that only the critical region of the channel is coded.
3. In paragraph 2, A feature decoding method wherein the representative value for the above channel data is the average value for the above channel data.
4. In paragraph 2, A feature decoding method in which a representative value for the above channel data is obtained from a bitstream.
5. In paragraph 2, A feature decoding method, wherein the non-critical region is further restored based on the difference value between the representative value of the channel data of the non-critical region and the representative value for the channel data, based on the information indicating whether the above coding is performed.
6. In paragraph 5, A feature decoding method, wherein the representative value of the channel data of the above non-critical area is the average value of the channel data of the above non-critical area.
7. In paragraph 5, A feature decoding method in which the above difference value is obtained from a bitstream.
8. In paragraph 5, A feature decoding method in which the above non-critical area is restored based on a representative value of the channel data of the above non-critical area or a value obtained by adding the representative value of the channel data and the difference value.
9. In a feature encoding method performed by a feature encoding device, A step of determining information about a channel within a feature; and A step of encoding information about the above channel into a bitstream; including: A feature encoding method, wherein the information about the above channel includes information about whether to code according to the importance of each region of the above channel.
10. In paragraph 9, A feature encoding method in which a representative value for the channel data is encoded into a bitstream based on coding only the significant region of the channel.
11. In paragraph 10, A feature encoding method in which the difference between representative values for the channel data is encoded into a bitstream based on coding only the significant areas of the channel.
12. In a medium in which a bitstream generated by a feature encoding method is recorded, the feature encoding method, A step of determining information about a channel within a feature; and A step of encoding information about the above channel into a bitstream; including: A medium in which information about the above channel includes information about whether the channel is coded according to the importance of each area.
13. In a method of transmitting a bitstream, A step of transmitting a bitstream generated by a feature encoding method; including: The above feature encoding method is, A step of determining information about a channel within a feature; and A step of encoding information about the above channel into a bitstream; including: A method in which the information about the above channel includes information about whether the channel is coded according to the importance of each area.
Citation Information
Patent Citations
Using skip block mask to reduce bitrate from monitoring camera
JP2021061580A
Method and Apparatus for Generating Video Bit Stream for Streaming High Resolution Video
KR1020180004029A
Face recognition automatic opening automatic door apparatus
KR1020220137482A
Video transmission method, video transmission device, video reception method, and video reception device
WO2021201642A1
Method and device for coding machine vision data by using reduction of feature map
WO2022211409A1
