Feature map encoding apparatus, feature map encoding method, feature map decoding apparatus, feature map decoding method

By assigning channel IDs to feature maps and packaging them into frames for encoding and decoding, the problem of transmitting and storing large amounts of feature map information is solved, achieving efficient feature map encoding and decoding.

CN123187445APending Publication Date: 2026-11-27JVC KENWOOD CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202580028587.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-12-27
Filing Date
2025-04-08
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Feature maps contain a large amount of information, making them unsuitable for transmission and storage.

Method used

A feature map encoding device is used to assign channel IDs to feature maps of multiple channels, package them into a packaged feature frame, and encode them using feature map encoding information to generate a bit stream; a decoding device decodes the encoded bit stream to generate floating-point feature maps of multiple channels.

Benefits of technology

It enables efficient encoding and decoding of feature maps with a small processing load, reducing storage and transmission requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123187445A_ABST
    Figure CN123187445A_ABST
Patent Text Reader

Abstract

In a feature map encoding device for encoding a multi-scale feature map, a channel ID for determining a channel is set for a feature map of a plurality of channels of an encoding object, the feature maps of the plurality of channels are packed to generate one packed feature frame, and feature map encoding information including the channel ID for determining the channel is encoded.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This involves the encoding and decoding of feature maps in neural networks. Background Technology

[0002] As a neural network technology for image recognition, such as object detection at various scales, region segmentation for each object, or object tracking, FPN (Feature Pyramid Network) is known in non-patent document 1. In FPN, multiple feature maps at various scales are generated from the image to be processed, and various image recognition methods are performed using the feature maps.

[0003] FPN for image recognition generates multiple feature maps from an image, and its structure utilizes CNN (Convolutional Neural Network). CNN reads the image, including convolution and pooling, and can be divided into a feature extraction unit (backbone network) that generates feature maps, and a recognition unit (head) composed of layered fully connected layers that generates output suitable for tasks such as object detection, instance segmentation, and object tracking. FPN utilizes the backbone network of CNN.

[0004] The feature extraction unit of FPN will Figure 3 The convolution processing unit 301, activation processing unit 302 and pooling processing unit 303 shown are configured as a basic unit, and the typical structure is a layered structure that repeats this basic unit.

[0005] Figure 4 The structure of the FPN is shown. The FPN consists of the following parts: a bottom-up processing unit 322 that uses a CNN backbone network to generate multi-scale feature maps composed of multiple layers; and a top-down processing unit 324 that uses the reverse structure of the CNN backbone network to aggregate feature quantities from deep feature maps to shallow feature maps. The bottom-up processing unit 322 repeats the basic unit... Figure 3 While performing convolution processing 301, activation processing 302, and pooling processing 303, the resolution of the feature maps is successively reduced by half to generate a pyramid of multi-layer feature maps. On the other hand, the top-down processing 324 adds the feature maps with the resolution corresponding to that of the bottom-up processing 322, while simultaneously enlarging the resolution of the feature maps to the same resolution as the input image, generating a pyramid of feature maps. That is, the FPN generates multiple feature maps for each layer's image 326, which is the object of feature extraction processing.

[0006] The convolution processing unit 301 performs convolution processing on the data (image or feature map) to be processed using multiple predetermined filters (kernels). In the convolution processing of the convolution processing unit 301, the entire data to be processed is subjected to predetermined filtering while sliding at predetermined intervals. The sliding interval is called the stride. The convolution processing unit 301 can determine the stride based on the amount of data to be processed. For example, the convolution processing unit 301 can determine a stride of 1 when the amount of data to be processed is less than a predetermined value, and a stride of 2 when the amount is greater than the predetermined value. Multiple predetermined filters are prepared in each layer, and multiple feature maps are generated by generating a feature map for each filter. Channels are set as the unit of feature map. If the number (types) of predetermined filters is set to N (N types), N (N channels) feature maps are generated.

[0007] The activation processing unit 302 performs activation processing that performs a nonlinear transformation on the feature map output from the convolution processing unit 301. Here, the function used in the activation processing is referred to as the activation function. The activation processing unit 302 uses the ReLU (Rectified Linear Unit) function or the Sigmoid function as the activation function.

[0008] The pooling processing unit 303 performs a process of replacing local values ​​of the feature map output from the activation processing unit 302 with representative values ​​to downsample the feature map.

[0009] On the other hand, it has the following function: in neural network-based recognition, it uses feature maps from multiple channels of each layer to perform the task.

[0010] In image recognition, feature maps of multiple channels in each layer are convolved at a predetermined size based on the feature map scale, and the probability of the object category is calculated for each pixel.

[0011] Prior art literature Non-patent literature Non-patent literature 1: Tsung-Yi Lin, Piotr Dollar, Ross Girshick, Kaiming He, Bharath Hariharan, and Serge Belongie. Feature Pyramid Networks for ObjectDetection. In CVPR, 2017. Summary of the Invention

[0012] Feature maps contain a large amount of information, making them unsuitable for transmission and storage. In view of the above-mentioned problems, this embodiment aims to provide a technique for encoding and decoding feature maps.

[0013] To address the aforementioned issues, the present invention provides a feature map encoding apparatus, characterized by comprising: a channel management unit for setting channel IDs for feature maps of multiple channels of an encoding object; a packaging unit for packaging the feature maps of multiple channels to generate a packaged feature frame; a feature map encoding information encoding unit for encoding feature map encoding information to obtain a bitstream of feature map encoding information; and a feature map internal encoding unit for encoding the packaged feature frame and generating a bitstream, wherein the feature map encoding information includes information indicating the number of channels and a channel ID used to determine the channels.

[0014] Another aspect of the present invention is a feature map decoding device for decoding a bitstream after multi-scale feature maps are encoded. It is characterized by comprising: an internal feature map decoding unit for decoding the bitstream and generating packed feature frames; and an unpacking unit for unpacking the packed feature frames and generating floating-point feature maps of multiple channels. The feature map encoding information includes information representing the number of channels and a channel ID used to determine the channels.

[0015] According to this embodiment, feature maps can be encoded and decoded efficiently with a small processing load. Attached Figure Description

[0016] Figure 1 This is a block diagram illustrating the structure of the feature map encoding device 100.

[0017] Figure 2 This is a block diagram illustrating the structure of the feature map decoding device 200.

[0018] Figure 3 It is a block diagram used to illustrate the processing that serves as the basic unit in each layer of FPN.

[0019] Figure 4 This is a diagram used to illustrate the structure of FPN.

[0020] Figure 5 This is a block diagram illustrating the detailed structure of the feature map reduction section 102.

[0021] Figure 6 This is a block diagram used to illustrate the detailed structure of the feature map restoration part 203.

[0022] Figure 7 This is a block diagram illustrating the detailed structure of the feature map transformation unit 103.

[0023] Figure 8 This is a block diagram illustrating the detailed structure of the feature map inverse transformation unit 202.

[0024] Figure 9 This is a block diagram illustrating the detailed structure of the coding section 104 inside the feature map.

[0025] Figure 10 This is a block diagram illustrating the detailed structure of the decoding unit 201 inside the feature map.

[0026] Figure 11 It is a graph used to illustrate the number of channels, width, and height of feature maps x1, x2, and x3.

[0027] Figure 12 This is a diagram illustrating the state of packing feature maps from multiple channels into a packed feature frame.

[0028] Figure 13 This is a diagram illustrating the flipping process when packing feature maps from multiple channels into a packed feature frame.

[0029] Figure 14 This diagram illustrates the layers and units processed in the feature map encoding apparatus and feature map decoding apparatus of this embodiment.

[0030] Figure 15 This is a flowchart illustrating the feature map encoding processing steps related to the channel ID involved in the first embodiment.

[0031] Figure 16 This is a flowchart illustrating the feature map decoding processing steps related to the channel ID involved in the first embodiment.

[0032] Figure 17 This is an example of the syntax rules for the channel IDs of each channel involved in the first implementation.

[0033] Figure 18 This is another example of the syntax rules for the channel IDs of each channel involved in the first implementation.

[0034] Figure 19 This is a flowchart illustrating the encoding process steps of the channel ID involved in the first embodiment.

[0035] Figure 20 This is a flowchart illustrating the decoding process steps of the channel ID involved in the first embodiment.

[0036] Figure 21 This is another example illustrating the state of packing feature maps from multiple channels into a packed feature frame.

[0037] Figure 22 This is an example of the syntax rules for the channel IDs of each channel involved in the second implementation.

[0038] Figure 23 This is another example of the syntax rules for the channel IDs of each channel involved in the second implementation.

[0039] Figure 24This is a flowchart illustrating the encoding process steps for the channel ID involved in the second embodiment.

[0040] Figure 25 This is a flowchart illustrating the decoding process steps of the channel ID involved in the second embodiment.

[0041] Figure 26 This is another example illustrating the state of packing feature maps from multiple channels into a packed feature frame.

[0042] Figure 27 This is a flowchart illustrating the feature map encoding processing steps related to the channel ID involved in the third embodiment.

[0043] Figure 28 This is a flowchart illustrating the feature map decoding process related to the channel ID involved in the third embodiment.

[0044] Figure 29 This is a diagram illustrating an example of how the feature maps of the active channels are packaged into a single frame.

[0045] Figure 30 This is an example of the syntax rules for feature map encoding information involved in the third implementation.

[0046] Figure 31 This is another example of the syntax rules for feature map encoding information involved in the third implementation.

[0047] Figure 32 This is a flowchart illustrating the encoding processing steps of the feature map encoding information involved in the third embodiment.

[0048] Figure 33 This is a flowchart illustrating the decoding processing steps of the feature map encoding information involved in the third embodiment.

[0049] Figure 34 This is an example of the syntax rules for feature map encoding information involved in the fourth implementation.

[0050] Figure 35 This is another example of the syntax rules for feature map encoding information involved in the fourth implementation.

[0051] Figure 36 This is a flowchart illustrating the encoding processing steps of the feature map encoding information involved in the fourth embodiment.

[0052] Figure 37 This is a flowchart illustrating the decoding processing steps of the feature map encoding information involved in the fourth embodiment. Detailed Implementation

[0053] Define the technologies and technical terms used in this implementation.

[0054] <Features and Feature Maps> In a convolutional neural network (CNN), filters are used to perform convolution operations on the portion of data in the input layer image (data of the object to be extracted for feature extraction) after changing its position and scanning, and the filter coefficients. The result of the convolution operation is set as a feature quantity or feature map.

[0055] Packaging The process of arranging two or more frames (images) in a flat manner to combine them into a single frame (image) is called frame packing. In this application, the process of combining feature maps from multiple channels into a single frame is called packing. Figure 12 This is a diagram representing an example of frame packing.

[0056] <data type> Set the data type for integer values ​​to integer type, and set the data type for decimal values ​​to floating-point type.

[0057] <Layer, Unit> use Figure 14 This section explains the layers and units processed in the feature map encoding apparatus and feature map decoding apparatus of this embodiment. Figure 14 181 is a sequence of packed feature frames (feature frames that are packed by combining feature maps of multiple channels into one frame) or feature maps of all channels that are continuously packed over time, and is set as a sequence layer or sequence unit. Figure 14 182 is a sequence of feature maps of a channel that continues over time, and is set as a sequence layer or sequence unit of each channel. Figure 14 183 is a packaged feature frame or feature map of all channels at the same time, set as a frame layer or frame unit. Figure 14 184 is a feature map of a channel at a certain time, which is set as the feature layer of each channel or the feature map unit of each channel.

[0058] (First Implementation) This invention describes the feature map encoding device 100 and the feature map decoding device 200 involved in the first embodiment of the present invention.

[0059] Figure 1 This is a block diagram of the feature map encoding apparatus 100 according to the first embodiment. The feature map encoding apparatus 100 of the embodiment includes a feature map reduction unit 102, a feature map transformation unit 103, and a feature map internal encoding unit 104. The feature map encoding apparatus 100 is an apparatus that encodes the feature map generated by the neural network feature extraction unit 101 to generate a bit stream and outputs it.

[0060] The neural network feature extraction unit 101 reads the image as the object of feature extraction, generates a feature map through FPN-based convolution, activation, and pooling processes, and provides it to the feature map reduction unit 102. In this embodiment, three-layer multi-scale feature maps of x1, x2, and x3 are generated.

[0061] The feature map reduction unit 102 converts the three-layer multi-scale feature maps x1, x2, and x3 obtained from the neural network feature extraction unit 101 into a single-layer single-scale feature map xf, and provides it to the feature map transformation unit 103. Details about the feature map reduction unit 102 will be provided later. Figure 5 Please provide a detailed explanation.

[0062] The feature map transformation unit 103 performs packing and quantization processing on the floating-point single-scale feature map xf provided by the feature map reduction unit 102, converts it into an integer-type packed feature frame, and provides it together with the feature map encoding information used at this time to the feature map internal encoding unit 104.

[0063] Detailed information about the feature map transformation unit 103 will be provided using... Figure 7 Please provide a detailed explanation.

[0064] The feature map internal encoding unit 104 encodes the integer-type packetized feature frames provided by the feature map transformation unit 103 using image encoding standards such as VVC, HEVC, and AV1, generating a bitstream of encoded packetized feature frames. This bitstream is then multiplexed with the bitstream of encoded feature map information provided by the feature map transformation unit 103, and the multiplexed bitstream is output. The output bitstream is provided to the feature map decoding device 200 or the like via a network.

[0065] Detailed information about the internal coding section 104 of the feature map will be provided using... Figure 9 Please provide a detailed explanation.

[0066] Figure 2 It is shown that... Figure 1 The block diagram shows the structure of the feature map decoding apparatus 200 according to an embodiment of the present invention, corresponding to the feature map encoding apparatus 100. The feature map decoding apparatus 200 of the embodiment includes a feature map internal decoding unit 201, a feature map inverse transformation unit 202, and a feature map restoration unit 203. Furthermore, the feature map decoding apparatus 200 is a device that receives a bitstream encoded by the feature map encoding apparatus 100, decodes the bitstream to generate three-layer multi-scale feature maps x1up, x2up, and x3up, and provides them to the neural network recognition unit 204.

[0067] The feature map internal decoding unit 201 separates the bit stream after the feature map encoding information is encoded and the bit stream after the packaged feature frames are encoded from the multiplexed bit stream output by the feature map internal encoding unit 104 of the feature map encoding device 100. It then decodes the bit stream after the packaged feature frames are encoded using image encoding standards such as VVC, HEVC, and AV1 to generate integer packaged feature frames, which are then provided to the feature map inverse transformation unit 202.

[0068] Detailed information about the feature map internal decoding unit 201 will be provided using... Figure 10 Please provide a detailed explanation.

[0069] The feature map inverse transformation unit 202 performs inverse quantization and unpacking processing on the integer-type packed feature frames provided by the feature map internal decoding unit 201, converts them into floating-point single-scale feature maps xr, and provides them to the feature map restoration unit 203.

[0070] Detailed information about the inverse transform unit 202 of the feature map will be provided using... Figure 8 Please provide a detailed explanation.

[0071] The feature map restoration unit 203 converts the single-scale feature map xr provided by the feature map inverse transformation unit 202 into three-layer multi-scale feature maps x1up, x2up, and x3up, and provides them as the output of the feature map decoding device 200 to the neural network recognition unit 204.

[0072] Detailed information about feature map restoration part 203 will be provided using... Figure 6 Please provide a detailed explanation.

[0073] The neural network recognition unit 204 performs recognition processing such as object recognition, location or landscape recognition, and person / biological recognition based on the three-layer multi-scale feature maps x1up, x2up, and x3up provided by the feature map restoration unit 203.

[0074] <About feature map reduction and feature map restoration> The feature map reduction unit 102 has the function of transforming the multi-layer, multi-scale feature map obtained from the neural network feature extraction unit 101 into a single-layer, single-scale feature map.

[0075] use Figure 5 The feature map reduction section 102 is described in detail. The feature map reduction section 102 includes a first feature map reduction section 501, a first channel junction section 502, a second feature map reduction section 503, a second channel junction section 504, a third feature map reduction section 505, a first filling section 506, a second filling section 507, a third filling section 508, and a channel management section 509. Figure 5 The feature map reduction unit 102 is a structural example of transforming a three-layer multi-scale feature map into a single-scale feature map.

[0076] The feature map reduction unit 102 inputs three multi-scale feature maps—first feature map x1, second feature map x2, and third feature map x3—and converts them into a single-layer, single-scale feature map xf, which is then provided to the feature map transformation unit 103. Here, the index of the representation layer is set to n, the number of channels in the nth layer is set to Cn, the width of the feature map is set to Wn, and the height of the feature map is set to Hn. In this embodiment, the values ​​of Cn, Wn, and Hn for each layer are as follows: Figure 11 As shown in the figure. Here, H and W represent the width and height of the image from which feature extraction is performed, respectively.

[0077] The first filling unit 506 has the function of filling the first feature map x1 to generate a first filled feature map x1pad. The filling size is determined in the first filling unit 506 such that the width and height of x1pad are multiples of 64. The number of channels of x1pad is the same as that of x1, which is 256.

[0078] The second filling unit 507 has the function of performing back-filling on the second feature map x2 to generate a second filled feature map x2pad. The filling size is determined in the second filling unit 507 such that the width and height of x2pad are multiples of 32. The number of channels in x2pad is the same as that in x2, which is 256.

[0079] The third filling section 508 has the function of performing back-filling on the third feature map x3 to generate a third filled feature map x3pad. The filling size is determined in the third filling section 508 such that the width and height of x3pad are multiples of 16. The number of channels in x3pad is the same as that in x3, which is 256.

[0080] In the first filling section 506, the second filling section 507, and the third filling section 508, the left filling size is the same as the right filling size, and the upper filling size is the same as the lower filling size. That is, the feature maps x1, x2, and x3 are respectively positioned at the center of x1pad, x2pad, and x3pad.

[0081] The first feature map reduction unit 501 performs spatial convolution and channel convolution on the first filled feature map x1pad obtained from the first filling unit 506 to generate a first intermediate feature map y1. Let y1 have 192 channels, a width of Wx1pad / 2, and a height of Hx1pad / 2. Here, Wx1pad and Hx1pad are the width and height of the first filled feature map x1pad, respectively.

[0082] The first channel junction 502 has the following function: it combines the first intermediate feature map y1 obtained from the first feature map reduction section 501 with the second filled feature map x2pad obtained from the second filling section 507 in the channel direction to generate an intermediate feature map y1Cx2pad. Since y1 has 192 channels and x2pad has 256 channels, the intermediate feature map y1Cx2pad has 448 channels (192+256).

[0083] The second feature map reduction unit 503 performs spatial and channel-oriented convolution on the intermediate feature map y1Cx2pad obtained from the first channel junction unit 502 to generate a second intermediate feature map y2. Let y2 have 192 channels, a width of Wy1Cx2pad / 2, and a height of Hy1Cx2pad / 2. Here, Wy1Cx2pad and Hy1Cx2pad are the width and height of the intermediate feature map y1Cx2pad, respectively.

[0084] The second channel junction 504 combines the second intermediate feature map y2 obtained from the second feature map reduction section 503 with the third filled feature map x3pad obtained from the third filling section 508 in the channel direction to generate an intermediate feature map y2Cx3pad. Since the intermediate feature map y2 has 192 channels and x3pad has 256 channels, the total number of channels for y1Cx2pad is 448 (192+256).

[0085] The third feature map reduction unit 505 performs spatial and channel-oriented convolution on the intermediate feature map y2Cx3pad obtained from the second channel junction unit 504 to generate a third intermediate feature map y3. Let y3 have 192 channels, a width of Wy2Cx3pad / 2, and a height of Hy2Cx3pad / 2. Here, Wy2Cx3pad and Hy2Cx3pad are the width and height of the intermediate feature map y2Cx3pad, respectively.

[0086] The channel management unit 509 assigns an inherent ID (hereinafter referred to as channel ID) to each channel used to determine the encoded object. Simultaneously, it assigns a predetermined order to each channel of the third intermediate feature map y3 and outputs it as a single-scale feature map xf. The channel ID of each channel and the corresponding single-scale feature map xf are then provided to the feature map transformation unit 103. In cases where the number of channels is large and it is desired to reduce the amount of information, the number of channels in the third intermediate feature map y3 can be reduced as needed to obtain a single-scale feature map xf. In this embodiment, convolution or sampling is performed on the third intermediate feature map y3 with 192 channels, and a predetermined order is assigned to each channel to obtain a single-scale feature map xf with 64 channels. Furthermore, in this embodiment, the channel ID of each channel in the single-scale feature map xf with the predetermined order is assigned an integer value that increments sequentially from 0. Additionally, in this embodiment, the channel ID is set to an integer value that increments sequentially from 0, but the channel ID is not limited to this; any non-repeating integer value is acceptable. For example, when assigning channel IDs to each channel of the third intermediate feature map y3 with integer values ​​that start from 0 and increase sequentially, reducing unimportant channels and retaining only important channels as the single-scale feature map xf, the channel IDs of the retained channels of the third intermediate feature map y3 can also be directly used as the channel IDs of the single-scale feature map xf.

[0087] The feature map restoration unit 203 has the function of converting the single-scale feature map xr obtained from the feature map inverse transformation unit 202 into three-layer multi-scale feature maps x1up, x2up, and x3up.

[0088] use Figure 6 Detailed description of feature map restoration unit 203. Feature map restoration unit 203 includes an 8x magnification unit 601, a 4x magnification unit 602, a 2x magnification unit 603, a first feature map mixing unit 604, a second feature map mixing unit 605, a first fill release unit 606, a second fill release unit 607, and a third fill release unit 608.

[0089] The feature map restoration unit 203 determines the channels of the single-scale feature map xr based on the channel IDs of each channel provided by the feature map inverse transformation unit 202.

[0090] The 8x magnification unit 601 performs the following functions: it performs transpose convolution on the single-scale feature map xr obtained from the feature map inverse transformation unit 202 in the spatial direction and convolution in the channel direction, thereby magnifying the feature map and reducing the channels to generate an intermediate feature map z1. The number of channels in z1 is 196. Let the width and height of the single-scale feature map xr be xrwidth and xrheight, respectively, then the width and height of z1 are xrwidth×8 and xrheight×8, respectively. Here, xrwidth×8 and xrheight×8 are the same as the width and height of the first padding unit 506 output of the feature map reduction unit 102, i.e., the width and height of the first filled feature map x1pad.

[0091] The 4x magnification unit 602 performs the following functions: it performs transpose convolution on the single-scale feature map xr obtained from the feature map inverse transform unit 202 in the spatial direction and convolution in the channel direction, thereby magnifying the features and reducing the channels to generate an intermediate feature map z2. The number of channels in z2 is 196. The width and height of z2 are xrwidth×4 and xrheight×4, respectively. Here, rwidth×4 and xrheight×4 are the same as the width and height of the output of the second padding unit 507 of the feature map reduction unit 102, i.e., the second filled feature map x2pad.

[0092] The 2x magnification unit 603 performs the following functions: it performs transpose convolution on the single-scale feature map xr obtained from the feature map inverse transformation unit 202 in the spatial direction and convolution in the channel direction, thereby magnifying the feature map and reducing the channels to generate an intermediate feature map z3. The number of channels in z3 is 196. The width and height of z3 are xrwidth×2 and xrheight×2, respectively. Here, rwidth×2 and xrheight×2 are the same as the width and height of the output of the third padding unit 508 of the feature map reduction unit 102, i.e., the third filled feature map x3pad.

[0093] The first feature map mixing unit 604 has the following function: using the intermediate feature map z1 obtained from the 8x magnification unit 601, it generates an intermediate feature map z2up that improves the quality of the intermediate feature map z2 obtained from the 4x magnification unit 602.

[0094] The second feature map mixing unit 605 has the following function: using the intermediate feature map z2up obtained from the first feature map mixing unit 604, it generates an intermediate feature map z3up that improves the quality of the intermediate feature map z3 obtained from the 2x magnification unit 603.

[0095] The fill removal unit 606 has the following function: it removes the fill from the intermediate feature map z1 obtained from the 8x magnification unit 601 and generates a first output feature map x1up. The width and height of x1up are the same as the width and height of the first feature map x1 input to the feature map reduction unit 102.

[0096] The fill removal unit 607 has the following function: it removes the fill from the intermediate feature map z2up obtained from the first feature map mixing unit 604 to generate a second output feature map x2up. The width and height of x2up are the same as the width and height of the second feature map x2 input to the feature map reduction unit 102.

[0097] The fill removal unit 608 has the following function: it removes the fill from the intermediate feature map z3up obtained from the second feature map mixing unit 605 to generate a third output feature map x3up. The width and height of x3up are the same as the width and height of the third feature map x3 input to the feature map reduction unit 102.

[0098] In the first fill-removal section 606, the second fill-removal section 607, and the third fill-removal section 608, similarly to the first fill-in section 506, the second fill-in section 507, and the third fill-in section 508 of the feature map reduction section 102, the left fill-in size is the same as the right fill-in size, and the upper fill-in size is the same as the lower fill-in size. That is, each output feature map x1up, x2up, and x3up is positioned at the center of each intermediate feature map z1, z2up, and z3up, respectively, and the fill-in on the top, bottom, left, and right sides is removed.

[0099] <About feature map transformation and inverse feature map transformation> The feature map transformation unit 103 has the following functions: it performs packing and quantization processing on the floating-point single-scale feature map xf with multiple channels provided by the feature map reduction unit 102, and converts it into an integer-type packed feature frame for use in the feature map internal encoding unit 104.

[0100] use Figure 7 The feature map transformation unit 103 on the encoding side is described in detail. The feature map transformation unit 103 includes a packing unit 701, a feature map quantization unit 702, and a feature map encoding information encoding unit 703.

[0101] In the packaging unit 701, a packaged feature frame is generated by summarizing the feature maps of multiple input channels into a single frame.

[0102] Figure 12 This is a diagram illustrating the channel IDs of the feature maps of each channel when multiple channel feature maps are packaged into a single packaged feature frame. Figure 12The numbers in the diagram represent the channel IDs of each channel. Starting from the top left corner of the packaged feature frame, the feature maps of each channel are sequentially arranged into a packaged feature frame according to the raster scanning order from left to right and from top to bottom. This raster scanning order is the common raster scanning order of the packaging unit 701 and the corresponding unpacking unit 801. Hereinafter, the order in which the feature maps of each channel are arranged sequentially from left to right and from top to bottom starting from the top left corner of the packaged feature frame will be defined as the predetermined raster scanning order.

[0103] In this embodiment, since the channel IDs of each channel are assigned integer values ​​starting from 0 and increasing sequentially according to a predetermined order, such as... Figure 12 As shown, the channel ID values ​​of each channel packed into the packaged feature frame are set to integer values ​​that increase sequentially from 0, starting from the top left corner and following a predetermined raster scan order. Figure 12 The numbers in the diagram represent both the channel ID of each channel and the predetermined raster scan order.

[0104] In addition, feature maps from multiple channels can be configured at any position in the packaged feature frame for packaging. Figure 21 This is a diagram illustrating the channel IDs of each channel when multiple channel feature maps are configured in arbitrary positions and packaged into a single packaged feature frame. Figure 21 In the example, channel IDs for each channel in a predetermined order are assigned integer values ​​that start from 0 and increase sequentially, and the packed feature maps for each channel are configured at arbitrary positions within the packed feature frames. For example, by configuring highly correlated channels within a frame adjacent to each other based on the average value of elements in the feature maps of each channel or the values ​​of elements near the feature map boundaries, coding efficiency can be improved.

[0105] Next, we will illustrate an example of packing feature maps of multiple channels with channel IDs that are set to non-repeating integer values ​​that are not incremented from 0 into a single packed feature frame. Figure 26 This is a diagram illustrating the channel IDs of multiple channels when their feature maps, each with a unique integer channel ID, are packaged into a single packaged feature frame. Figure 26 In the example, the channel IDs assigned to each channel in a predetermined order are not integer values ​​that increment sequentially from 0, but rather unique integer values, and the feature maps of each channel are configured in a single packed feature frame. Even in this case, the decoding side can identify channels based on their channel IDs by transmitting the channel IDs of each channel to the decoding side.

[0106] The channel ID and other encoding information of each channel used by the packaging unit 701 are provided to the feature map encoding information encoding unit 703 as feature map encoding information.

[0107] Furthermore, in the packetization unit 701, inversion is performed based on the intra-frame position of the feature map configured for each channel. It can be configured to allow selection of whether to perform inversion and transmit the bitstream from the encoding side to the decoding side.

[0108] use Figure 13 This describes the flipping process when packing feature maps from multiple channels into a packed feature frame. During the flipping, when packing feature maps from each channel, the positions of the features (pixels) in each channel's feature map are reversed in the horizontal (left-right), vertical (up-down), or both horizontal and vertical (up-down-left-right) directions. Figure 13 The feature maps of the four channels A (top left), B (top right), C (bottom left), and D (bottom right) are set as a set. Figure 13 Position A is not flipped. At position B, the feature map is flipped horizontally (left-right). At position C, the feature map is flipped vertically (up-down). At position D, the feature map is flipped both horizontally and vertically (up-down-left-right). When the feature map features of each channel have similar feature distributions, flipping based on the intra-frame position of the configured channel reduces the boundaries between the feature maps of each channel, thus improving coding efficiency.

[0109] The feature map quantization unit 702 has the function of transforming the elements of a floating-point packed feature frame (feature map of all channels) into an N-bit integer type (N is an integer of about 8 to 16) within a predetermined range, and outputting an integer packed feature frame. In this embodiment, it is transformed into a 10-bit integer type from 0 to 1023. The feature map quantization unit 702 determines the minimum and maximum values ​​of the elements of the floating-point packed feature frame, and provides the determined minimum and maximum values ​​of the elements of the floating-point packed feature frame (feature map of all channels) as one of the feature map encoding information to the feature map encoding information encoding unit 703. In order to transform from a floating-point packed feature frame (feature map) to an integer packed feature frame (feature map), a linear transformation is performed so that the minimum floating-point value is equivalent to the minimum integer value and the maximum floating-point value is equivalent to the maximum integer value. For example, when the integer range is represented by 10 bits, the minimum value of the elements of the integer packed feature frame (feature map) is 0, and the maximum value is 1023 (2^32 - 1023 - 1023). 10 -1). For values ​​between the minimum and maximum values, linear quantization is performed.

[0110] In the feature map encoding information encoding unit 703, the feature map encoding information of each channel provided by the packing unit 701 and the feature map quantization unit 702 is encoded and transmitted to the decoding side through the feature map internal encoding unit 104. The encoding of the feature map encoding information of each channel will be described later.

[0111] Next, the feature map inverse transformation unit 202 has the following functions: it performs inverse quantization and unpacking processing on the integer-type packed feature frames provided by the feature map internal decoding unit 201 after decoding by VVC, HEVC, AV1, etc., and inversely transforms them into floating-point single-scale feature maps xr for use in providing them to the feature map restoration unit 203.

[0112] use Figure 8 The detailed structure of the feature map inverse transform unit 202 on the decoding side is explained. The feature map inverse transform unit 202 is the inverse process of the feature map transform unit 103, and includes a feature map encoded information decoding unit 801, a feature map inverse quantization unit 802, and a depackaging unit 803.

[0113] In the feature map encoding information decoding unit 801, the bitstream encoded by the feature map encoding information provided by the feature map internal decoding unit 201 is decoded, and the feature map encoding information of each channel obtained from the decoding result is provided to the feature map inverse quantization unit 802 and the unpacking unit 803. The decoding of the feature map encoding information of each channel will be described later.

[0114] The feature map inverse quantization unit 802 is the inverse process of the encoding-side feature map quantization unit 702, and has the function of converting the elements of the integer-type packed feature frame from integer to floating-point type. In the feature map inverse quantization unit 802, the minimum and maximum floating-point values ​​transmitted as metadata are used to convert the integer-type packed feature frame decoded by the feature map internal decoding unit 201 into a floating-point-type packed feature frame. A linear transformation is performed to make the integer minimum value equivalent to the decimal minimum value and the integer maximum value equivalent to the decimal maximum value. For values ​​between the minimum and maximum values, linear inverse quantization is performed.

[0115] In the unpacking unit 803, feature maps of each channel are extracted from the packed feature frames configured in a single frame according to a predetermined raster scan order, and provided to the feature map restoration unit 203 as single-scale feature maps xr. At this time, starting from the upper left corner of the packed feature frame, feature maps of each channel are extracted sequentially from left to right and from top to bottom according to a predetermined raster scan order. Furthermore, feature map encoding information, such as the channel ID corresponding to the feature map of each channel, provided from the feature map encoding information decoding unit 801, is associated with the extracted feature maps of each channel. By associating the feature maps of each channel with the channel ID, the channel based on the channel ID can be determined. Moreover, when multiple channel feature maps are configured at arbitrary positions in the packed feature frame on the encoding side, they can be reordered as needed.

[0116] <About feature map internal encoding and decoding> use Figure 9The detailed structure of the feature map internal encoding unit 104 is explained below. The feature map internal encoding unit 104 includes a switch 901, a VVC encoding unit 902, an HEVC encoding unit 903, an AV1 encoding unit 904, and a multiplexing unit 905. Switch 901 selects the encoding standard for internal encoding of the feature map transformed by the feature map transformation unit 103. VVC encoding unit 902 encodes the packed feature frames using the VVC standard and outputs a bitstream conforming to the VVC standard. HEVC encoding unit 903 encodes the packed feature frames using the HEVC standard and outputs a bitstream conforming to the HEVC standard. AV1 encoding unit 904 encodes the packed feature frames using the AV1 standard and outputs a bitstream conforming to the AV1 standard.

[0117] In VVC, HEVC, and AV1 standards, images are divided into blocks of predetermined size for encoding.

[0118] Alternatively, you can install only one of VVC, HEVC, or AV1. Furthermore, you can use image encoding methods other than VVC, HEVC, and AV1.

[0119] Furthermore, the multiplexing unit 905 multiplexes the bitstream after the feature map encoding information is encoded and the bitstream after the packaged feature frame is encoded, and outputs them as a multiplexed bitstream.

[0120] Next, use Figure 10 The detailed structure of the feature map internal decoding unit 201 is explained below. The feature map internal decoding unit 201 includes a demultiplexing unit 1005, a switch 1001, a VVC decoding unit 1002, an HEVC decoding unit 1003, and an AV1 decoding unit 1004. The switch 1001 selects the encoding standard for internal decoding based on the information for selecting internal decoding within the input bitstream.

[0121] The demultiplexing unit 1005 demultiplexes the multiplexed bitstream provided from the encoding side, separating the bitstream after the feature map encoding information is encoded and the bitstream conforming to the VVC / HEVC / AV1 standard after the packaged feature frames are encoded.

[0122] VVC decoding unit 1002 decodes the bitstream encoded with packetized feature frames according to the VVC standard to generate packetized feature frames. HEVC decoding unit 1003 decodes the bitstream encoded with packetized feature frames according to the HEVC standard to generate packetized feature frames. AV1 decoding unit 1004 decodes the bitstream encoded with packetized feature frames according to the AV1 standard to generate packetized feature frames.

[0123] In VVC, HEVC, and AV1 standards, decoding is performed according to a predetermined block size.

[0124] Alternatively, you can install only one of VVC, HEVC, or AV1. Furthermore, you can use image encoding methods other than VVC, HEVC, and AV1.

[0125] <Regarding the feature map encoding and decoding processing steps related to channel ID> Next, the feature map encoding process steps related to the channel ID performed by the feature map reduction unit 102, the feature map transformation unit 103, and the feature map internal encoding unit 104 of the encoding map encoding unit 100 will be described. Figure 15 This is a flowchart illustrating the feature map encoding processing steps involved in the channel ID.

[0126] In the channel management unit 509 of the feature map reduction unit 102, a channel ID is set for the feature map of each channel. Figure 15 Step S101).

[0127] Next, in the packing unit 701 of the feature map transformation unit 103, the feature maps of each channel are packed to generate a packed feature frame. Figure 15 Step S102).

[0128] Next, in the feature map quantization unit 702 of the feature map transformation unit 103, the packed feature frames are quantized, transforming the packed feature frames from floating-point type to integer type. Figure 15 Step S103).

[0129] Next, in the feature map encoding information encoding unit 703 of the feature map transformation unit 103, the feature map encoding information such as the number of channels, channel ID, and quantization-related information is encoded to generate a bitstream after the feature map encoding information has been encoded. Figure 15 Step S104).

[0130] Next, the packed feature frames are encoded in the VVC encoding section 902, HEVC encoding section 903, or AV1 encoding section 904 of the feature map internal encoding section 104 to generate a bitstream of the encoded packed feature frames. Figure 15 Step S105).

[0131] Next, in the multiplexing unit 905 of the feature map internal encoding unit 104, the bitstream after the feature map encoding information is encoded and the bitstream after the packaged feature frame is encoded are multiplexed to generate a multiplexed bitstream. Figure 15 Step S106).

[0132] Next, the feature map decoding processing steps related to the channel ID executed by the feature map internal decoding unit 201 and the feature map inverse transformation unit 202 of the encoded map decoding unit 200 will be explained. Figure 16 This is a flowchart illustrating the feature map decoding process involved in the channel ID.

[0133] In the demultiplexing unit 1005 of the feature map decoding unit 201, the multiplexed bitstream output from the encoding side is demultiplexed to separate the bitstream after the feature map encoding information is encoded and the bitstream after the packaged feature frames are encoded. Figure 16 Step S201).

[0134] Next, the VVC decoding unit 1002, HEVC decoding unit 1003, or AV1 decoding unit 1004 of the feature map internal decoding unit 201 decodes the bitstream after the packetized feature frame is encoded, and generates a packetized feature frame. Figure 16 Step S202).

[0135] Next, in the feature map encoding information decoding unit 801 of the feature map inverse transform unit 202, the bit stream after the feature map encoding information is encoded is decoded to generate feature map encoding information such as the number of channels, channel ID, and quantization-related information. Figure 16 Step S203).

[0136] Next, in the feature map inverse quantization unit 802 of the feature map inverse transform unit 202, the packed feature frame is transformed from integer type to floating-point type. Figure 16 Step S204).

[0137] Next, in the unpacking unit 803 of the feature map inverse transform unit 202, the packed feature frames are unpacked to generate feature maps for each channel. Figure 16 Step S205).

[0138] <Regarding the encoding and decoding of channel IDs> Next, the encoding / decoding of the channel ID in the first embodiment, performed by the feature map encoding information encoding unit 703 / feature map encoding information decoding unit 801, will be described in detail.

[0139] In the first embodiment, there is a first mode that explicitly encodes / decodes information related to the channel ID, and a second mode that derives the channel ID without encoding / decoding the information related to the channel ID. The first mode is set as the explicit channel ID mode, and the second mode is set as the implicit channel ID mode.

[0140] The explicit channel ID mode is used when the feature map of each channel is configured at any position in the feature frame, and when the channel ID of each channel is assigned a unique value.

[0141] The implicit channel ID mode is used to assign channel IDs to channels in a predetermined order by incrementing integer values ​​starting from 0, and to configure the feature maps of each channel in a packaged feature frame in a predetermined raster scan order without changing the predetermined channel order.

[0142] Figure 17 The frame unit involved in the first embodiment ( Figure 14 This is an example of the syntax rules for the channel IDs of each channel in (183). Furthermore, Figure 18 The first embodiment involves feature map units in each channel ( Figure 14 An example of the syntax rules for preparing the header and encoding / decoding the channel ID in the header (184).

[0143] The syntax element num_feature_channel represents the number of channels.

[0144] The syntax element `explicit_feature_channel_id_flag` indicates whether the channel ID is explicitly encoded / decoded. A value of 1 (true) indicates that the syntax element `feature_channel_id[n]` representing the channel ID of each channel is explicitly encoded / decoded, corresponding to the explicit channel ID mode. A value of 0 (false) indicates that the channel ID is not explicitly encoded / decoded, but implicitly derived, corresponding to the implicit channel ID mode.

[0145] The variable n is an integer representing the channel index, increasing sequentially from 0 to (channel number - 1). The value of variable n represents the predetermined raster scan order.

[0146] The syntax element `feature_channel_id[n]` represents the channel ID of the nth channel in a predetermined raster scan order. For example, in... Figure 12 In the example shown, the values ​​of feature_channel_id[n] are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, ... in the raster scan order.

[0147] In addition, Figure 21 In the example shown, the values ​​of feature_channel_id[n] are 0, 1, 4, 5, 16, 17, 20, 21, 2, 3, 6, 7, 18, 19, 22, 23, 8, 9, 12, ... in raster scan order. Figure 26 In the example shown, the values ​​of feature_channel_id[n] are 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, ..., 64, 68, 72, ... in the raster scan order.

[0148] In the encoding / decoding of each syntax element, arithmetic encoding is used, that is, symbols with higher occurrence probability are assigned shorter codes, and symbols with lower occurrence probability are assigned longer codes.

[0149] Next, the channel ID encoding process performed by the feature map encoding information encoding unit 703 of the first embodiment will be described. Figure 19 This is a flowchart illustrating the encoding process steps of the channel ID involved in the first embodiment.

[0150] First, the syntax element num_feature_channel, which represents the number of channels of the encoded object, is encoded. Figure 19 (Step S1101). In this embodiment, the value of the syntax element num_feature_channel is 64.

[0151] Next, the syntax element explicit_feature_channel_id_flag, which indicates whether to encode / decode the channel ID, is encoded. Figure 19 Step S1102).

[0152] Next, if the value of the syntax element explicit_feature_channel_id_flag is 1 (true) ( Figure 19 Step S1103 is that, in the case of explicit channel ID mode, the index of each channel is set to n, and the encoding process of the syntax element feature_channel_id[n] is repeated according to the predetermined raster scan order. Figure 19 Step S1105), until n increases from 0 to (channel number - 1), that is, the encoding process of the channel IDs of all channels is completed, and then the process of incrementing the variable n by 1 is performed. Figure 19 Steps S1104 to S1106).

[0153] On the other hand, when the value of the syntax element explicit_feature_channel_id_flag is 0 (false) ( Figure 19 In step S1103 (no), that is, in the case of implicit channel ID mode, the encoding process of the syntax element feature_channel_id[n] representing the channel ID of each channel is omitted. Figure 19 Steps S1104 to S1106 complete the encoding process for this channel ID.

[0154] Next, the channel ID decoding process performed by the feature map encoding information decoding unit 801 of the first embodiment will be described. Figure 20 This is a flowchart illustrating the decoding process steps of the channel ID involved in the first embodiment.

[0155] First, the syntax element num_feature_channel, which represents the number of channels in the encoded object, is decoded. Figure 20 Step S1201). Next, the syntax element explicit_feature_channel_id_flag, which indicates whether to encode / decode the channel ID, is decoded ( Figure 20 Step S1202).

[0156] Next, if the value of the syntax element explicit_feature_channel_id_flag is 1 (true) ( Figure 20 Step S1203 is that, in the case of explicit channel ID mode, the index of each channel is set to n, and the decoding of the syntax element feature_channel_id[n] is repeated according to the predetermined raster scan order. Figure 20 Step S1205) and perform the process of incrementing variable n by 1. Figure 20 Steps S1204 to S1206 are followed until n increases from 0 to (number of channels - 1), meaning the decoding of all channel IDs is completed.

[0157] On the other hand, when the value of the syntax element explicit_feature_channel_id_flag is 0 (false) ( Figure 20 In step S1203 (no), i.e., in implicit channel ID mode, the explicit decoding process of the syntax element feature_channel_id[n] representing the channel ID of each channel is omitted, and the implicit derivation process of the next feature_channel_id[n] is executed. The index of each channel is set to n, and the process of setting the value of n to feature_channel_id[n] and incrementing the variable n by 1 is repeated according to the predetermined raster scan order. Figure 20 Steps S1207 to S1209 are followed until n increases from 0 to (number of channels - 1), meaning the export of channel IDs for all channels is completed.

[0158] In the explicit channel ID mode of the first embodiment, the explicit_feature_channel_id_flag value is set to 1 (true) for encoding on the encoding side, and the syntax element feature_channel_id[n] representing the channel ID of each channel is encoded according to a predetermined raster scan order. On the decoding side, the bitstream in which the explicit_feature_channel_id_flag value is set to 1 (true) is decoded, and the syntax element feature_channel_id[n] representing the channel ID of each channel is decoded according to a predetermined raster scan order, so that the channel can be determined on the decoding side based on the channel ID of each channel.

[0159] In the implicit channel ID mode of the first implementation, the amount of code can be reduced by omitting the explicit encoding / decoding process of the syntax element feature_channel_id[n] that represents the channel ID of each channel.

[0160] In the first implementation, the syntax element `explicit_feature_channel_id_flag` can be set to 1 (true) or 0 (false), but it can also be fixed to 1 (true) or 0 (false), omitting the encoding / decoding process for the syntax element `explicit_feature_channel_id_flag`. When `explicit_feature_channel_id_flag` is fixed to 1 (true), the encoding / decoding process for the syntax element `explicit_feature_channel_id_flag` is omitted. Figure 19 Step S1103 and Figure 20 The conditional judgment in step S1203 always executes the encoding / decoding process of the channel ID. Figure 19 Steps S1104 to S1106 Figure 20 Steps S1204 to S1206). On the other hand, when explicit_feature_channel_id_flag is fixed at 0 (false), the following steps are omitted. Figure 19 Step S1103 and Figure 20 The conditional judgment in step S1203 and the encoding / decoding processing of the channel ID ( Figure 19 Steps S1104 to S1106 Figure 20 In steps S1204 to S1206, the channel ID setting process is performed on the decoding side. Figure 20 Steps S1207 to S1209).

[0161] (Second Implementation) Next, the feature map encoding device 100 and feature map decoding device 200 according to the second embodiment, which are executed by the feature map encoding information encoding unit 703 and the feature map encoding information decoding unit 801, will be described in detail.

[0162] In the feature map encoding information encoding unit 703 of the feature map encoding apparatus 100 of the first embodiment, the syntax element feature_channel_id[n] representing the channel ID of each channel is encoded in the explicit channel ID mode. In the feature map encoding information decoding unit 801 of the feature map decoding apparatus 200 of the first embodiment, the syntax element feature_channel_id[n] representing the channel ID of each channel is decoded in the explicit channel ID mode. The explicit channel ID mode of the first embodiment is set as the first explicit channel ID mode.

[0163] On the other hand, in the feature map encoding information encoding unit 703 of the feature map encoding apparatus 100 of the second embodiment, the difference is that a second explicit channel ID mode is added in addition to the first explicit channel ID mode. In the second explicit channel ID mode, the syntax element feature_channel_id_delta[n] representing the difference of the channel ID of each channel is encoded. In the feature map encoding information decoding unit 801 of the feature map decoding apparatus 200 of the second embodiment, in the second explicit channel ID mode, the syntax element feature_channel_id_delta[n] representing the difference of the channel ID of each channel is decoded, and the channel ID of each channel is derived based on the difference between the channel ID of the channel immediately preceding the predetermined raster scan sequence and the channel ID of each channel.

[0164] Figure 22 This is an example of the syntax rules for the channel IDs of each channel in the frame unit involved in the second embodiment. Furthermore, Figure 23 This is an example of the syntax rules involved in the second embodiment for preparing a header in the feature map unit of each channel and encoding / decoding the channel ID in the header.

[0165] The syntax element num_feature_channel represents the number of channels.

[0166] In the second implementation, the syntax element `explicit_feature_channel_id_flag` indicates whether the channel ID or the difference between channel IDs is explicitly encoded / decoded. A value of 1 for `explicit_feature_channel_id_flag` indicates that the syntax element `feature_channel_id[n]` representing the channel ID of each channel is explicitly encoded / decoded, corresponding to the first explicit channel ID mode. A value of 2 for `explicit_feature_channel_id_flag` indicates that the syntax element `feature_channel_id_delta[n]` representing the difference between channel IDs of each channel is explicitly encoded / decoded, corresponding to the second explicit channel ID mode. A value of 0 for `explicit_feature_channel_id_flag` indicates that the difference between channel IDs is not explicitly encoded / decoded, but implicitly derived, corresponding to the implicit channel ID mode.

[0167] The variable n is a channel index, which increases sequentially from 0 to (channel number - 1). The value of variable n represents the predetermined raster scan order.

[0168] The syntax element `feature_channel_id_delta[n]` represents the difference in channel IDs. Specifically, it represents the difference in channel ID `feature_channel_id[n-1]` between the (n-1)th channel, i.e., the immediately preceding channel, in a predetermined raster scan order. The syntax element `feature_channel_id_delta[n]` is derived from the following formula.

[0169] feature_channel_id_delta[n] = feature_channel_id[n] - feature_channel_id[n-1] Additionally, since the first channel does not have a preceding channel, the channel ID of the preceding channel of the first channel is initialized to 0.

[0170] For example, in Figure 21 In the example shown, the values ​​of feature_channel_id_delta[n] are 0, 1, 3, 1, 11, 1, 3, 1, -19, 1, 3, 1, 11, 1, 3, 1, -15, 1, 3, ... in raster scan order. Figure 26 In the example shown, the values ​​of feature_channel_id_delta[n] are 0, 2, 2, 2, ..., 4, 4, 4, ... in the raster scan order.

[0171] Next, the channel ID encoding process performed by the feature map encoding information encoding unit 703 of the second embodiment will be described. Figure 24 This is a flowchart illustrating the encoding process steps for the channel ID involved in the second embodiment.

[0172] First, the syntax element num_feature_channel, which represents the number of channels of the encoded object, is encoded. Figure 24 Step S1101).

[0173] Next, the explicit_feature_channel_id_flag syntax element, which indicates whether to encode / decode the channel ID or the difference between the channel IDs, is encoded. Figure 24 Step S1102).

[0174] Next, if the value of the syntax element explicit_feature_channel_id_flag is 1 ( Figure 24 Step S1103 is that, in the case of the first explicit channel ID mode, the index of each channel is set to n, and the encoding process of the syntax element feature_channel_id[n] is repeated according to the predetermined raster scan order. Figure 24 Step S1105) and perform the process of incrementing variable n by 1. Figure 24 Steps S1104 to S1106 are followed until n increases from 0 to (number of channels - 1), meaning the encoding of the channel IDs for all channels is completed.

[0175] Next, if the value of the syntax element explicit_feature_channel_id_flag is 2 ( Figure 24 If step S1103 is negative and step S1107 is positive, that is, in the case of the second explicit channel ID mode, the variable feature_channel_id_prev, which represents the channel ID of the channel immediately preceding the predetermined raster scan sequence, is set (initialized) to 0. Figure 24 Step S1108).

[0176] Next, the index of each channel is set to n, and the export process of the syntax element feature_channel_id_delta[n] is repeated according to the predetermined raster scan order. Figure 24 Step S1110) and encoding processing of syntax element feature_channel_id_delta[n] Figure 24Step S1111), until n changes from 0 to (channel number - 1), that is, until the differential encoding of the channel IDs of all channels is completed, and the value of the syntax element feature_channel_id_delta[n] is set to the variable feature_channel_id_prev ( Figure 24 Step S1112), and then increment the variable n by 1 ( Figure 24 Steps S1109 to S1113).

[0177] The syntax element feature_channel_id_delta[n] is derived from the following formula.

[0178] feature_channel_id_delta[n] = feature_channel_id[n] - feature_channel_id_prev Here, feature_channel_id[n] represents the channel ID of the nth channel in the predetermined raster scanning order.

[0179] On the other hand, when the value of the syntax element explicit_feature_channel_id_flag is 0 ( Figure 24 If step S1103 is not true and step S1107 is not true, that is, in the case of implicit channel ID mode, the encoding process of the syntax element feature_channel_id[n] representing the channel ID of each channel is omitted. Figure 24 Steps S1104 to S1106) and the encoding of the syntax element feature_channel_id_delta[n] representing the difference of the channel IDs of each channel ( Figure 24 Steps S1108 to S1113 complete the encoding process for this channel ID.

[0180] Next, the channel ID decoding process performed by the feature map encoding information decoding unit 801 of the second embodiment will be described. Figure 25 This is a flowchart illustrating the decoding process steps of the channel ID involved in the second embodiment.

[0181] First, the syntax element num_feature_channel, which represents the number of channels in the encoded object, is decoded. Figure 25 Step S1201). Next, the explicit_feature_channel_id_flag syntax element, which indicates whether to encode / decode the channel ID or the difference of the channel ID, is decoded ( Figure 25 Step S1202).

[0182] Next, if the value of the syntax element explicit_feature_channel_id_flag is 1 ( Figure 25 Step S1203 is that, in the case of the first explicit channel ID mode, the index of each channel is set to n, and the decoding of the syntax element feature_channel_id[n] is repeated according to the predetermined raster scan order. Figure 25 Step S1205) and perform the process of incrementing variable n by 1. Figure 25 Steps S1204 to S1206 are followed until n increases from 0 to (number of channels - 1), meaning the decoding of all channel IDs is completed.

[0183] Next, if the value of the syntax element explicit_feature_channel_id_flag is 2 ( Figure 25 If step S1203 is negative and step S1210 is positive, that is, in the case of the second explicit channel ID mode, the variable feature_channel_id_prev, which represents the channel ID of the channel immediately preceding the encoding, is set (initialized) to 0. Figure 25 Step S1211).

[0184] Next, the index of each channel is set to n, and the decoding process of the syntax element feature_channel_id_delta[n] is repeated according to the predetermined raster scan order. Figure 25 Step S1213) and the export processing of feature_channel_id[n] Figure 24 Step S1214), and set the value of the syntax element feature_channel_id[n] to the variable feature_channel_id_prev ( Figure 25 Step S1215), and then increment the variable n by 1 ( Figure 25 Steps S1212 to S1216) continue until n increases from 0 to (number of channels - 1), that is, until the differential decoding of the channel IDs of all channels is completed.

[0185] On the other hand, when the value of the syntax element explicit_feature_channel_id_flag is 0 ( Figure 25 If step S1203 is not true and step S1210 is not true, that is, in the case of implicit channel ID mode, the decoding process of feature_channel_id[n] is omitted. Figure 25Steps S1204~S1206), decoding of feature_channel_id_delta[n], and derivation of feature_channel_id[n] Figure 25 Steps S1211 to S1216, similar to the first embodiment, involve implicitly deriving the next feature_channel_id[n]. The index of each channel is set to n, and the process of setting the value of n to feature_channel_id[n] and incrementing the variable n by 1 is repeated according to a predetermined raster scan order. Figure 25 Steps S1207 to S1209 are followed until n increases from 0 to (number of channels - 1), meaning the export of channel IDs for all channels is completed.

[0186] In the second explicit channel ID mode, the encoding side sets the value of explicit_feature_channel_id_flag to 2 for encoding, and encodes the syntax element feature_channel_id_delta[n] representing the difference of the channel ID of each channel according to the predetermined raster scan order. Figure 24 In step S1111), on the decoding side, the bitstream with the value of explicit_feature_channel_id_flag set to 2 is decoded, and the syntax element feature_channel_id_delta[n] representing the difference of the channel ID of each channel is decoded according to a predetermined raster scan order. Figure 25 Step S1213), and export feature_channel_id_delta[n] ( Figure 25 Step S1214), thereby enabling the channel to be determined on the decoding side based on the channel ID of each channel.

[0187] Furthermore, in the second explicit channel ID mode, instead of the syntax element feature_channel_id[n] representing the channel ID of each channel, the syntax element feature_channel_id_delta[n] representing the difference of the channel ID of each channel is encoded on the encoding side. Figure 24 Step S1111), on the decoding side, decodes the syntax element feature_channel_id_delta[n] representing the difference of the channel IDs of each channel. Figure 25 Step S1213), therefore, when the differential code size of the channel ID is less than the code size of the channel ID, the code size can be reduced compared to the first explicit channel ID mode. For example, in Figure 21In the example shown, the values ​​of feature_channel_id_delta[n], representing the difference in channel IDs, are 0, 1, 3, 1, 11, 1, 3, 1, -19, 1, 3, 1, 11, 1, 3, 1, -15, 1, 3, ... in raster scan order, with 1 having the highest probability of occurrence, followed by 3. Figure 26 In the example shown, the values ​​of feature_channel_id_delta[n] representing the channel ID difference are 0, 2, 2, 2, ..., 4, 4, 4, ... in raster scan order, with 2 and 4 having higher probabilities of occurrence. In the arithmetic coding used in this embodiment, symbols with higher occurrence probabilities are assigned shorter codes, and symbols with lower occurrence probabilities are assigned longer codes. Therefore, in Figure 21 or Figure 26 In the example shown, the amount of code can be reduced by selecting the second explicit channel ID mode.

[0188] When there are deviations in the probability of occurrence of the difference value of the channel ID, or when the total amount of code is smaller than the value of the encoded channel ID, the second explicit channel ID mode is selected. Conversely, when the total amount of code is smaller than the value of the encoded channel ID, the first explicit channel ID mode can be selected to reduce the total amount of code.

[0189] Furthermore, in the implicit channel ID mode of the second embodiment, the amount of code can be reduced by omitting the explicit encoding / decoding processing of the syntax element feature_channel_id[n] representing the channel ID of each channel and the syntax element feature_channel_id_delta[n] representing the difference of the channel ID of each channel.

[0190] By employing a structure that allows selection of explicit channel ID mode and implicit channel ID mode, it is possible to differentiate between situations where it is desirable to freely set the channel ID and situations where it is desirable to reduce the amount of code while maintaining the default channel ID.

[0191] The above describes switching between the first explicit channel ID mode and the implicit channel ID mode in the first embodiment, and switching between the first explicit channel ID mode, the second explicit channel ID mode, and the implicit channel ID mode in the second embodiment. However, it is not limited to this; it is also possible to switch between the second explicit channel ID mode and the implicit channel ID mode, or to use only the first explicit channel ID mode, or only the second explicit channel ID mode, or only the implicit channel ID mode.

[0192] (Third Implementation) In the first embodiment, the floating-point single-scale feature maps xf of multiple channels provided by the feature map reduction unit 102 are packaged and encoded into a packaged feature frame. In contrast, in the third embodiment, for the floating-point single-scale feature maps xf of multiple channels provided by the feature map reduction unit 102, the active channels that are to be encoded and the inactive channels that are omitted from the encoding are determined, and only the active channels are packaged into the packaged feature frame for encoding.

[0193] Furthermore, channels that are used as encoding objects in the feature map encoding device 100 on the encoding side and as decoding objects in the feature map decoding device 200 on the decoding side are designated as active channels. On the other hand, channels that are not used as encoding objects on the encoding side but are used to generate feature maps on the decoding side are designated as inactive channels. Inactive channels are treated as feature maps with predetermined elements on the decoding side.

[0194] In the third embodiment, each channel is encoded / decoded to indicate whether it is an active or inactive channel, and this distinction is made.

[0195] <Regarding the feature map encoding and decoding processing steps of the third embodiment> Next, the feature map encoding processing steps performed by the feature map reduction unit 102, feature map transformation unit 103, and feature map internal encoding unit 104 of the encoding map encoding unit 100 of the third embodiment will be described. Figure 27 This is a flowchart illustrating the feature map encoding processing steps involved in the third embodiment.

[0196] First, in the packing section 701 of the feature map transformation unit 103, the importance of the feature maps of each channel is evaluated, and the active and inactive channels are determined. Figure 27 (Step S1001). By omitting the encoding of inactive channels that are considered unimportant channels, encoding efficiency can be improved, while suppressing the encoding degradation of important channels that have a significant impact on image recognition results.

[0197] Next, in the packing section 701 of the feature map transformation section 103, the arrangement order of the feature maps of the activation channels is determined. Figure 27 (Step S1002). The arrangement order of the feature maps of the activated channels can be arbitrarily determined based on the importance of each channel or the correlation between channels. Figure 29An example is shown of a state where feature maps of active channels are packaged into a single feature frame. The total number of channels, the number of active channels, and the number of inactive channels can be arbitrarily set according to the importance of the feature maps. For example, channels with importance exceeding a predetermined threshold can be designated as active channels, and all other channels can be designated as inactive channels. Furthermore, a representative importance score for all channels can be calculated, and channels with importance exceeding the representative importance score can be designated as active channels, while all other channels can be designated as inactive channels. The representative importance score can be statistical information such as the mean or median. In the third embodiment, the total number of channels is 64, the number of active channels is 48, and the number of inactive channels is 16. The encoding / decoding of the channel IDs of active and inactive channels will be described later.

[0198] Next, in the packaging unit 701, the feature maps of each channel are packaged according to the determined arrangement order of the feature maps of the active channels to generate a packaged feature frame. Figure 27 (Step S1003). Inactive channels that are not intended for encoding are discarded. If gaps are generated because the feature maps of all active channels cannot be filled even when they are configured in the packed feature frame, a predetermined value (such as 0) is set in the element of the gap.

[0199] In the packing unit 701, the packed feature frames are provided to the feature map quantization unit 702, and information such as the total number of channels, the number of active channels, the number of inactive channels, the channel ID of each channel, and whether each channel is an active or inactive channel are provided to the feature map encoding information encoding unit 703 as feature map encoding information.

[0200] Next, in the feature map quantization unit 702 of the feature map transformation unit 103, the packed feature frames are quantized, transforming the packed feature frames from floating-point type to integer type. Figure 27 Step S1004).

[0201] Next, the feature map encoding information encoding unit 703 of the feature map transformation unit 103 encodes the feature map encoding information such as the total number of channels, the channel ID of each channel, whether each channel is an active or inactive channel, and quantization-related information, to generate a bitstream after the feature map encoding information has been encoded. Figure 27 (Step S1005). The encoding of the feature map encoding information will be described later.

[0202] Next, the VVC encoding unit 902, HEVC encoding unit 903, or AV1 encoding unit 904 of the feature map internal encoding unit 104 encodes the packed feature frames to generate a bitstream after the packed feature frames are encoded. Figure 27 Step S1006).

[0203] Next, in the multiplexing unit 905 of the feature map internal encoding unit 104, the bitstream after the feature map encoding information is encoded and the bitstream after the packaged feature frame is encoded are multiplexed to generate a multiplexed bitstream. Figure 27 Step S1007).

[0204] Next, the feature map decoding process steps performed by the feature map internal decoding unit 201 and the feature map inverse transformation unit 202 of the coded map decoding unit 200 of the third embodiment will be described. Figure 28 This is a flowchart illustrating the feature map decoding processing steps involved in the third embodiment.

[0205] In the demultiplexing unit 1005 of the feature map decoding unit 201, the multiplexed bitstream output from the encoding side is demultiplexed to separate the bitstream after the feature map encoding information is encoded and the bitstream after the packaged feature frames are encoded. Figure 28 Step S2001).

[0206] Next, in the VVC decoding unit 1002, HEVC decoding unit 1003, or AV1 decoding unit 1004 of the feature map internal decoding unit 201, the bitstream after the packetized feature frame is encoded is decoded to generate a packetized feature frame. Figure 28 Step S2002).

[0207] Next, in the feature map encoding information decoding unit 801 of the feature map inverse transform unit 202, the bit stream after the feature map encoding information is encoded is decoded to generate feature map encoding information such as the total number of channels, the channel ID of each channel, whether each channel is an active or inactive channel, and quantization-related information. Figure 28 (Step S2003). Decoding of the feature map encoded information will be described later.

[0208] Next, in the feature map inverse quantization unit 802 of the feature map inverse transform unit 202, the packed feature frame is transformed from integer type to floating-point type. Figure 28 Step S2004).

[0209] Next, in the unpacking unit 803 of the feature map inverse transform unit 202, the packed feature frames are unpacked to generate feature maps for each active channel. Figure 28 Step S2005). Furthermore, in the unpacking section 803 of the feature map inverse transform section 202, a feature map of the inactive channel is generated ( Figure 28 Step S2006). By setting each element (each pixel) of the feature map of the inactive channel to a predetermined value such as 0, a feature map of the inactive channel is generated.

[0210] <Regarding the encoding / decoding processing of feature map encoding information in the third embodiment> In the third embodiment, active channels and inactive channels that are omitted from encoding are determined. Only the feature maps of active channels are packaged into a packaged feature frame for encoding / decoding. Therefore, in addition to information about the total number of channels, each channel is encoded / decoded with a flag indicating whether it is an active or inactive channel, as well as the channel ID. On the decoding side, this is explicitly or implicitly set by decoding or generating the channel ID of each channel.

[0211] The encoding / decoding of feature map encoding information in the third embodiment, performed by the feature map encoding information encoding unit 703 and the feature map encoding information decoding unit 801, is described in detail.

[0212] Figure 30 The frame unit involved in the third embodiment ( Figure 14 An example of the grammar rules for feature map encoding information in (183). Furthermore, Figure 31 The third embodiment involves feature map units in each channel ( Figure 14 This is an example of the syntax rules for preparing the feature_channel_header and encoding / decoding feature map encoded information in feature_channel_header (184).

[0213] The syntax element `num_feature_channel` represents the total number of channels (the sum of active and inactive channels). `explicit_non_active_channel_info_flag` is a flag indicating whether the feature map encoding information of inactive channels is explicitly encoded / decoded. A value of 1 (true) for the syntax element `explicit_non_active_channel_info_flag` indicates that the feature map encoding information, including the syntax element `feature_channel_id[n]` representing the channel ID of each inactive channel, is explicitly encoded / decoded. A value of 0 (false) for the syntax element `explicit_non_active_channel_info_flag` indicates that the feature map encoding information, including the channel ID of inactive channels, is not explicitly encoded / decoded, but is implicitly set on the decoding side.

[0214] The variable n is an integer representing the channel index, increasing sequentially from 0 to (channel number - 1). The value of variable n represents the predetermined raster scan order.

[0215] The syntax element `active_channel_flag[n]` indicates whether the nth channel in a predetermined raster scan order is an active or inactive channel. A value of 1 (true) for `active_channel_flag[n]` indicates that the nth channel in the predetermined raster scan order is an active channel, and a value of 0 (false) indicates that the nth channel in the predetermined raster scan order is an inactive channel.

[0216] The syntax element feature_channel_id[n] represents the channel ID of the nth channel in the predetermined raster scan order.

[0217] Arithmetic coding is used when encoding / decoding each syntax element, that is, symbols with higher probability of occurrence are assigned shorter codes, and symbols with lower probability of occurrence are assigned longer codes.

[0218] Next, the encoding processing steps of the feature map encoding information involved in the third embodiment will be described. Figure 32 This is a flowchart illustrating the encoding process steps of the feature map encoding information performed by the feature map encoding information encoding unit 703 of the third embodiment.

[0219] First, the syntax element num_feature_channel, which represents the total number of channels of the encoded object, is encoded. Figure 32 (Step S1121). In this embodiment, the value of the syntax element num_feature_channel is 64.

[0220] Next, the syntax element explicit_non_active_channel_info_flag, which indicates whether to encode / decode the feature map encoding information of the inactive channel, is encoded. Figure 32 Step S1123).

[0221] Next, following the predetermined raster scan order, the encoding process of the syntax element active_channel_flag[n] of the nth channel is repeated. Figure 32 Step S1125) and the encoding process of the feature map encoding information of the nth channel, including the syntax element feature_channel_id[n] Figure 32 Steps S1126 to S1127), and then incrementing variable n by 1 ( Figure 32 Steps S1124 to S1129 are followed until n increases from 0 to num_feature_channel-1 (number of channels - 1), meaning the encoding of feature map information for all channels is completed.

[0222] exist Figure 29 In the example, Figure 29 The channel indices n shown are 48, 56, 59, 58, 23, 7, 6, 35, 20, 1, 42, 27, 0, 30, 16, 63, 9, 54, 14, 43, 61, 11, 60, 55, 46, 51, 50, 22, 13, 3, 10, 18, 40, 52, 28, 31, 37, 5, 34, 33, 47, 12, 53, 4, 29, 19, 57, and 25, which represent the active channels. The syntax element `active_channel_flag[n]`, set to 1 (true), is encoded. On the other hand, Figure 29 The numbers 2, 8, 15, 17, 21, 24, 26, 32, 36, 38, 39, 41, 44, 45, 49, and 62 (not shown) represent inactive channels, and the syntax element active_channel_flag[n], which is set to 0 (false), is encoded. Furthermore, in the third embodiment, only the feature maps of the active channels are packaged into the packaged feature frame according to the raster scan order; the feature maps of the inactive channels are not packaged into the packaged feature frame. However, in the encoding / decoding process of the feature map encoding information, it is assumed that the feature maps of the inactive channels are also virtually configured according to the raster scan order after the feature maps of the active channels. Additionally, when the syntax element active_channel_flag[n] is 1 (true), or when the syntax element explicit_non_active_channel_info_flag is 1 (true)... Figure 32 Step S1126 is to perform encoding processing of the feature map encoding information of the nth channel, including the syntax element feature_channel_id[n]. Figure 32 Step S1127). On the other hand, when the syntax element active_channel_flag[n] is 0 (false) and the syntax element explicit_non_active_channel_info_flag is 0 (false), the process of explicitly encoding feature map encoding information including the channel ID of the non-active channel is omitted. Figure 32 No to step S1126).

[0223] Next, the feature map encoding information decoding process performed by the feature map encoding information decoding unit 801 of the third embodiment will be described. Figure 33 This is a flowchart illustrating the decoding processing steps of the feature map encoding information involved in the third embodiment.

[0224] First, the syntax element num_feature_channel, representing the total number of channels, is decoded. Figure 33Step S1221).

[0225] Next, the syntax element explicit_non_active_channel_info_flag, which indicates whether to encode / decode feature map encoding information including the channel ID of inactive channels, is decoded. Figure 33 Step S1223).

[0226] Next, following the predetermined raster scan order, the decoding process of the syntax element active_channel_flag[n] of the nth channel is repeated. Figure 33 Step S1225) and the decoding or setting process of the feature map encoding information of the nth channel, including the syntax element feature_channel_id[n]. Figure 33 Steps S1226 to S1228), and then incrementing variable n by 1 ( Figure 33 Steps S1224 to S1229) continue until n increases from 0 to num_feature_channel-1 (total number of channels - 1), meaning the decoding of feature map encoding information for all channels is complete. Additionally, if the syntax element active_channel_flag[n] is 1 (true), or if the syntax element explicit_non_active_channel_info_flag is 1 (true)... Figure 33 Step S1226 is to perform decoding processing of the feature map encoding information of the nth channel, including the syntax element feature_channel_id[n]. Figure 33 Step S1227). On the other hand, in the case where the syntax element active_channel_flag[n] is 0 (false) and the syntax element explicit_non_active_channel_info_flag is 0 (false) ( Figure 33 (If step S1226 is not selected), the nth channel is set as an inactive channel, and feature map encoding information including channel ID feature_channel_id[n] is set. Figure 33 Step S1228). Here, the channel ID of the inactive channel, feature_channel_id[n], is set to a unique value other than the channel ID of the decoded active channel. Figure 29 In the example, Figure 29The numbers 2, 8, 15, 17, 21, 24, 26, 32, 36, 38, 39, 41, 44, 45, 49, and 62 (not shown) are set as the channel IDs of the inactive channels, respectively, for feature_channel_id[n].

[0227] In addition, each element (pixel) of the feature map of the inactive channel is set to a predetermined value such as 0.

[0228] In the third implementation, the syntax element `explicit_non_active_channel_info_flag` can be set to 1 (true) or 0 (false). Alternatively, `explicit_non_active_channel_info_flag` can be fixed to 1 (true) or fixed to 0 (false), and the encoding / decoding processing of the syntax element `explicit_non_active_channel_info_flag` can be omitted. When `explicit_non_active_channel_info_flag` is fixed to 1 (true), the encoding / decoding processing of the syntax element `explicit_non_active_channel_info_flag` is omitted. Figure 32 Step S1126 and Figure 33 The conditional judgment in step S1226 also performs encoding / decoding processing of feature map encoding information for inactive channels. Figure 32 Step S1127 Figure 33 Step S1227).

[0229] Furthermore, in the third embodiment, the syntax element feature_channel_id[n] representing the channel ID of each channel is encoded according to a predetermined raster scan order. On the decoding side, the syntax element feature_channel_id[n] representing the channel ID of each channel is decoded according to a predetermined raster scan order, thereby enabling the channel to be determined on the decoding side based on the channel ID of each channel. Furthermore, in the third embodiment, by encoding the syntax element active_channel_flag[n] representing whether a channel is active or inactive, and decoding the syntax element active_channel_flag[n] on the decoding side, it is possible to distinguish between active and inactive channels on the decoding side. Additionally, in the feature map encoding / decoding process of the third embodiment, since the encoding / decoding of the feature map encoding information of inactive channels is performed after the encoding / decoding of the feature map encoding information of active channels, after encoding / decoding the syntax element feature_channel_id[n] with a value of 0, the value of subsequent syntax elements feature_channel_id[n] can be set to 0, and the encoding / decoding of the syntax element feature_channel_id[n] can be omitted.

[0230] Furthermore, in the third embodiment, when the channel ID of each channel is set to a value that increases sequentially starting from 0, by setting the value of the syntax element explicit_non_active_channel_info_flag to 0 (false) and setting the value of the syntax element active_channel_flag[n] of the inactive channel to 0 (false), the encoding of the channel ID of the inactive channel can be omitted on the encoding side, and the channel ID of the inactive channel can be generated on the decoding side, thereby reducing the amount of code containing the feature map encoding information including the syntax element feature_channel_id[n].

[0231] (Fourth Implementation) In the fourth embodiment, similarly to the third embodiment, the floating-point single-scale feature maps xf of multiple channels provided by the feature map reduction unit 102 are packaged and encoded into a packaged feature frame. In contrast, in the third embodiment, the active channels and inactive channels that are omitted from the encoding are determined for the floating-point single-scale feature maps xf of multiple channels provided by the feature map reduction unit 102, and only the active channels are packaged into the packaged feature frame for encoding.

[0232] In the third embodiment, each channel is encoded / decoded to indicate whether it is an active or inactive channel. In the fourth embodiment, in addition to the total number of channels, the number of active channels is also encoded / decoded, thereby distinguishing whether each channel is an active or inactive channel on the decoding side.

[0233] <Regarding the feature map encoding / decoding processing steps of the fourth embodiment> Next, for the feature map encoding processing steps performed by the feature map reduction unit 102, feature map transformation unit 103, and feature map internal encoding unit 104 of the encoding map encoding unit 100 of the fourth embodiment, only the points that differ from those of the third embodiment will be described.

[0234] In the feature map encoding information encoding unit 703 of the feature map transformation unit 103 in the fourth embodiment, feature map encoding information such as the total number of channels, the number of active channels, the channel ID of each channel, and quantization-related information is encoded to generate a bitstream after the feature map encoding information is encoded. Figure 27 Step S1005). The encoding of the feature map encoding information in the fourth embodiment will be described later. The processing other than this process is the same as in the third embodiment.

[0235] Next, for the feature map decoding processing steps performed by the feature map internal decoding unit 201 and the feature map inverse transformation unit 202 of the encoding map decoding unit 200 of the fourth embodiment, only the points that differ from those of the third embodiment will be described.

[0236] In the feature map encoding information decoding unit 801 of the feature map inverse transform unit 202, the bit stream after the feature map encoding information is encoded is decoded to generate feature map encoding information such as the total number of channels, the number of active channels, the channel ID of each channel, and quantization-related information. Figure 28 (Step S2003). Decoding of the feature map encoding information in the fourth embodiment will be described later. The processing other than this is the same as in the third embodiment.

[0237] <Regarding the encoding and decoding processing of feature map encoding information in the fourth embodiment> In the third embodiment, each channel is encoded / decoded to indicate whether it is an active or inactive channel and this is distinguished. In the fourth embodiment, in addition to information about the total number of channels, information about the number of active channels is also encoded / decoded. On the decoding side, based on information related to the total number of channels and information related to the number of active channels, each channel is distinguished as an active or inactive channel.

[0238] This document provides a detailed description of the encoding / decoding of feature map encoding information performed by the feature map encoding information encoding unit 703 and the feature map encoding information decoding unit 801 in the fourth embodiment.

[0239] Figure 34 The frame unit involved in the fourth embodiment ( Figure 14 An example of the grammar rules for feature map encoding information in (183). Furthermore, Figure 35 The fourth embodiment relates to the feature map unit in each channel ( Figure 14 This is an example of the syntax rules for preparing the feature_channel_header and encoding / decoding feature map encoded information in feature_channel_header (184).

[0240] The syntax element `num_feature_channel` represents the total number of channels (the sum of active and inactive channels), and the syntax element `num_active_feature_channel` represents the number of active channels. `explicit_non_active_channel_info_flag` is a flag indicating whether feature map encoding information, including the channel IDs of inactive channels, is explicitly encoded / decoded. A value of 1 (true) for `explicit_non_active_channel_info_flag` indicates that feature map encoding information, including the syntax element `feature_channel_id[n]` representing the channel IDs of each inactive channel, is explicitly encoded / decoded. A value of 0 (false) for `explicit_non_active_channel_info_flag` indicates that feature map encoding information, including the channel IDs of inactive channels, is not explicitly encoded / decoded but implicitly derived. The variable `n` is an integer variable, increasing sequentially from 0 to `num_active_feature_channel-1` (number of active channels - 1).

[0241] The syntax element `feature_channel_id[n]`, ranging from 0 to `num_active_feature_channel-1` (number of active channels - 1), represents the channel ID of the nth active channel in the predetermined raster scan order. The syntax element `feature_channel_id[n]`, ranging from `num_active_feature_channel` (number of active channels) to `num_feature_channel-1` (total number of channels - 1), represents the channel ID of the remaining inactive channels besides the active channels.

[0242] Arithmetic coding is used when encoding / decoding each syntax element, that is, symbols with higher probability of occurrence are assigned shorter codes, and symbols with lower probability of occurrence are assigned longer codes.

[0243] Next, the encoding process steps of the feature map encoding information performed by the feature map encoding information encoding unit 703 of the fourth embodiment will be described. Figure 36 This is a flowchart illustrating the encoding processing steps of the feature map encoding information involved in the fourth embodiment.

[0244] First, the syntax element num_feature_channel, representing the total number of channels, is encoded ( Figure 36 (Step S1131). In this embodiment, the value of the syntax element num_feature_channel is 64.

[0245] Next, the syntax element num_active_feature_channel, which represents the number of active channels, is encoded. Figure 36 (Step S1132). In this embodiment, the value of the syntax element num_active_feature_channel is 48.

[0246] Next, the syntax element explicit_non_active_channel_info_flag, which indicates whether to encode / decode the feature map encoding information of the inactive channel, is encoded. Figure 36 Step S1133).

[0247] Next, following the predetermined raster scan order, the encoding process of the syntax element feature_channel_id[n] is repeated. Figure 36 Step S1135), and then increment the variable n by 1 ( Figure 36 Steps S1134 to S1136) continue until n increases from 0 to num_active_feature_channel-1 (number of active channels - 1), meaning the encoding of the feature map encoding information for all active channels is complete.

[0248] Next, if the value of the syntax element explicit_non_active_channel_info_flag is 1 (true) ( Figure 36 Step S1137 is that, according to the predetermined raster scan order, the encoding process of the syntax element feature_channel_id[n] is repeated. Figure 36 Step S1139), and then increment the variable n by 1 ( Figure 36Steps S1138 to S1140 continue until n changes from num_active_feature_channel (number of active channels) to num_feature_channel-1 (total number of channels-1), meaning the encoding of the channel IDs of all non-active channels other than the active channels is completed.

[0249] On the other hand, when the value of the syntax element explicit_non_active_channel_info_flag is 0 (false), the processing of explicitly encoding feature map encoding information, including the channel ID of the inactive channel, is omitted. Figure 36 No to step S1137).

[0250] Next, the feature map encoding information decoding process performed by the feature map encoding information decoding unit 801 of the fourth embodiment will be described. Figure 37 This is a flowchart illustrating the decoding processing steps of the feature map encoding information involved in the fourth embodiment.

[0251] First, the syntax element num_feature_channel, representing the total number of channels, is decoded. Figure 37 Step S1231). Next, the syntax element num_active_feature_channel, representing the number of active channels, is decoded ( Figure 37 Step S1232).

[0252] Next, the syntax element explicit_non_active_channel_info_flag, which indicates whether to encode / decode the feature map encoding information of the inactive channel, is decoded. Figure 37 Step S1233).

[0253] Next, following the predetermined raster scan order, the decoding process of the syntax element feature_channel_id[n] is repeated. Figure 37 Step S1235), and then increment the variable n by 1 ( Figure 37 Steps S1234 to S1236) continue until n increases from 0 to num_active_feature_channel-1 (number of active channels - 1), meaning the decoding of all feature map encoding information related to active channels is complete.

[0254] Next, if the value of the syntax element explicit_non_active_channel_info_flag is 1 (true) ( Figure 37Step S1237 is to repeat the decoding process of the syntax element feature_channel_id[n] according to the predetermined raster scan order. Figure 37 Step S1239), and perform the process of incrementing variable n by 1 ( Figure 37 Steps S1238 to S1240 continue until n changes from num_active_feature_channel (number of active channels) to num_feature_channel-1 (total number of channels-1), meaning the decoding of feature map encoding information, including channel IDs, for all remaining non-active channels other than the active channels is completed.

[0255] On the other hand, when the value of the syntax element explicit_non_active_channel_info_flag is 0 (false) ( Figure 37 (No to step S1237) According to the predetermined raster scanning order, for n from num_active_feature_channel to num_feature_channel-1 (total number of channels-1), that is, all the remaining inactive channels other than the active channels, set the feature map encoding information including the channel ID feature_channel_id[n] of the inactive channels. Figure 37 Step S1242), and perform the process of incrementing variable n by 1 ( Figure 37 Steps S1241 to S1243). Here, the channel ID of the inactive channel, feature_channel_id[n] (where n is from num_active_feature_channel to num_feature_channel-1), is set to a unique value other than the channel ID of the decoded active channel. Figure 29 In the example, Figure 29 The numbers 2, 8, 15, 17, 21, 24, 26, 32, 36, 38, 39, 41, 44, 45, 49, and 62 (not shown) are set as the channel IDs of the inactive channels, feature_channel_id[n] (where n is from num_active_feature_channel to num_feature_channel-1).

[0256] In addition, each element (pixel) of the feature map of the inactive channel is set to a predetermined value such as 0.

[0257] Similar to the third embodiment, in the fourth embodiment, the syntax element `explicit_non_active_channel_info_flag` can also be set to 1 (true) or 0 (false). However, it can also be fixed to 1 (true) or 0 (false), and the encoding / decoding processing of the syntax element `explicit_non_active_channel_info_flag` can be omitted. When `explicit_non_active_channel_info_flag` is fixed to 1 (true), it is not necessary to... Figure 36 Step S1137 and Figure 37 The conditional judgment in step S1237 also performs encoding / decoding processing of feature map encoding information for inactive channels. Figure 36 Steps S1138 to S1140 Figure 37 (Steps S1238 to S1240). Furthermore, similar to the third embodiment, in the fourth embodiment, the syntax element feature_channel_id[n] representing the channel ID of each channel is encoded according to a predetermined raster scan order, and on the decoding side, the syntax element feature_channel_id[n] representing the channel ID of each channel is decoded according to a predetermined raster scan order, thereby enabling the channel to be determined based on the channel ID of each channel on the decoding side.

[0258] Furthermore, in the fourth embodiment, by encoding the syntax element `num_active_feature_channel` representing the number of active channels, and decoding the syntax element `num_active_feature_channel` on the decoding side, it is possible to distinguish between active and inactive channels on the decoding side. In the third embodiment, the syntax element `active_channel_flag[n]` representing whether a channel is active or inactive is encoded / decoded per channel, while in the fourth embodiment, it is encoded / decoded per frame unit ( Figure 14 183) or feature map units of each channel ( Figure 14 In 184), only one syntax element num_active_feature_channel, which represents the number of active channels, is encoded / decoded, thus reducing the amount of code compared to the third implementation.

[0259] Furthermore, in the fourth embodiment, when the channel ID of each channel is set to a value that increases sequentially starting from 0, by setting the value of the syntax element explicit_non_active_channel_info_flag to 0 (false), the encoding of the channel ID of the inactive channel can be omitted on the encoding side, and the channel ID of the inactive channel can be generated on the decoding side, thereby reducing the amount of code containing the feature map encoding information including the syntax element feature_channel_id[n].

[0260] In the first to fourth embodiments, in the frame unit ( Figure 14 183) or feature map units of each channel ( Figure 14 In section 184), the syntax rules for channel IDs are set and encoded / decoded. However, if the channel IDs of each channel or the order of the packets does not change over time, the syntax rules can also be set in the sequence unit (…). Figure 14 181) or sequence units of each channel ( Figure 14 In section 182), the syntax rules for the channel ID are set and encoded / decoded.

[0261] In the first to fourth embodiments, the encoding / decoding of each syntax element uses arithmetic encoding, but is not limited to this. Entropy encoding, variable-length encoding, fixed-length encoding, etc., other than arithmetic encoding can also be used.

[0262] In all the above embodiments, the bitstream output by the feature map encoding device has a specific data format so that it can be decoded according to the encoding method used in the embodiment. Furthermore, the feature map decoding device corresponding to the feature map encoding device is capable of decoding the bitstream of this specific data format.

[0263] To exchange bitstreams between a feature map encoding device and a feature map decoding device, when using a wired or wireless network, the bitstream can be converted into a data format suitable for transmission along the communication path. In this case, a transmitting device can be provided that converts the bitstream output by the feature map encoding device into encoded data suitable for transmission along the communication path and sends it to the network; and a receiving device can receive the encoded data from the network, recover it as a bitstream, and provide it to the feature map decoding device. The transmitting device includes a memory that buffers the bitstream output by the feature map encoding device, a packet processing unit that packets the bitstream, and a transmitting unit that transmits the packetized encoded data over the network. The receiving device includes a receiving unit that receives the packetized encoded data over the network, a memory that buffers the received encoded data, and a packet processing unit that packets the encoded data to generate a bitstream and provides it to the feature map decoding device.

[0264] The aforementioned encoding and decoding processes can, of course, be implemented using hardware transmission, storage, and receiving devices, or through firmware or computer software stored in ROM (Read-Only Memory) or flash memory. This firmware or software program can be provided on a readable recording medium such as a computer, or through a wired or wireless network from a server, or as data broadcast via terrestrial wave or satellite digital broadcasting.

[0265] The present invention has been described above based on embodiments. These embodiments are exemplary, and those skilled in the art will understand that various modifications can be made to the combination of these constituent elements and processing procedures, and such modifications are also within the scope of the present invention.

[0266] Industrial availability This invention can be used for feature map encoding and decoding techniques.

[0267] Symbol Explanation 100 Feature map encoding device; 101 Neural network feature extraction unit; 102 Feature map reduction unit; 103 Feature map transformation unit; 104 Internal feature map encoding unit; 200 Feature map decoding device; 201 Internal feature map decoding unit; 202 Inverse feature map transformation unit; 203 Feature map restoration unit; 204 Neural network recognition unit; 301 Convolution processing unit; 302 Activation processing unit; 303 Pooling processing unit; 322 Bottom-up processing unit; 324 Top-down processing unit; 326 Image of the object to be processed by feature extraction; 501 First feature map reduction unit; 502 First channel binding unit; 503 Second feature map reduction unit; 504 Second channel binding unit; 505 Third feature map reduction unit; 506 First padding unit; 507 Second padding unit; 508 Third padding unit; 509 Channel management unit; 601 8x magnification unit; 602 4x magnification section, 603; 2x magnification section, 604; First feature map mixing section, 605; Second feature map mixing section, 606; First padding removal section, 607; Second padding removal section, 608; Third padding removal section, 701; Packing section, 702; Feature map quantization section, 703; Feature map encoding information encoding section, 801; Feature map encoding information decoding section, 802; Feature map inverse quantization section, 803; Unpacking section, 901; Switch, 902; VVC encoding section, 903; HEVC encoding section, 904; AV1 encoding section, 905; Multiplexing section, 1005; Demultiplexing section, 1001; Switch, 1002; VVC decoding section, 1003; HEVC decoding section, 1004; AV1 decoding section.

Claims

1. A feature map encoding device for encoding multi-scale feature maps, comprising: The channel management department sets channel IDs for the feature maps of multiple channels of the encoded object to determine the channels; The packaging unit packages the feature maps of the multiple channels to generate a packaged feature frame. The feature map encoding information encoding unit encodes the feature map encoding information to obtain the bit stream of the feature map encoding information; as well as The internal encoding unit of the feature map encodes the packaged feature frames to generate a bitstream. The feature map encoding information includes information representing the number of channels and a channel ID used to identify the channels.

2. A feature map encoding method for encoding multi-scale feature maps, comprising: The channel management step involves setting channel IDs for the feature maps of multiple channels of the encoded object to determine the channels. The packaging step involves packaging the feature maps of the multiple channels to generate a packaged feature frame. The feature map encoding information encoding step involves encoding the feature map encoding information to obtain a bitstream of the feature map encoding information; as well as The feature map internal encoding step encodes the packaged feature frames to generate a bitstream; The feature map encoding information includes information representing the number of channels and a channel ID used to identify the channels.

3. A feature map encoding program for encoding multi-scale feature maps, used to enable a computer to execute: The channel management step involves setting channel IDs for the feature maps of multiple channels of the encoded object to determine the channels. The packaging step involves packaging the feature maps of the multiple channels to generate a packaged feature frame. The feature map encoding information encoding step involves encoding the feature map encoding information to obtain a bitstream of the feature map encoding information; as well as The feature map internal encoding step encodes the packaged feature frames to generate a bitstream; The feature map encoding information includes information representing the number of channels and a channel ID used to identify the channels.

4. A feature map decoding apparatus for decoding a bitstream after multi-scale feature maps have been encoded, comprising: The feature map's internal decoding unit decodes the bit stream to generate a packaged feature frame; as well as The unpacking unit unpacks the packaged feature frames to generate floating-point feature maps for multiple channels. The feature map encoding information includes information representing the number of channels and a channel ID used to identify the channels.

5. A feature map decoding method for decoding a bitstream after multi-scale feature maps have been encoded, comprising: The feature map internal decoding step decodes the bit stream to generate a packaged feature frame; as well as The unpacking step involves unpacking the packaged feature frames to generate floating-point feature maps with multiple channels. The feature map encoding information includes information representing the number of channels and a channel ID used to identify the channels.

6. A feature map decoding program for decoding a bitstream after multi-scale feature maps have been encoded, for use by a computer: The feature map internal decoding step decodes the bitstream to generate a packaged feature frame; and The unpacking step involves unpacking the packaged feature frames to generate floating-point feature maps with multiple channels. The feature map encoding information includes information representing the number of channels and a channel ID used to identify the channels.