Method, apparatus and system for encoding and decoding tensors
The method and system for encoding and decoding tensors using video compression standards address the computational complexity of CNNs by enabling efficient compression and transmission, facilitating distributed processing across edge devices and cloud servers.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- CANON KK
- Filing Date
- 2025-10-15
- Publication Date
- 2026-04-30
AI Technical Summary
Existing CNNs require high computational complexity, which is challenging for edge devices, necessitating distributed processing across edge devices and cloud servers, and there is a need for efficient compression of intermediate tensor data to facilitate transmission over bandwidth-limited networks.
A method and system for encoding and decoding tensors using video compression standards like VVC, allowing for flexible and efficient compression of intermediate tensor data, enabling distributed processing of CNNs across edge devices and cloud servers.
Enables efficient compression and transmission of tensor data, allowing complex CNNs to be executed on edge devices with reduced computational burden on cloud servers, improving flexibility and reducing bandwidth costs.
Smart Images

Figure AU2025051166_30042026_PF_FP_ABST
Abstract
Description
METHOD, APPARATUS AND SYSTEM FOR ENCODING AND DECODING TENSORS REFERENCE TO RELATED APPLICATION(S)
[0001] This application claims the benefit under 35 U.S.C. §119 of the filing date of Australian Patent Application No. 2024227664, filed 25 October 2024, hereby incorporated by reference in its entirety as if fully set forth hereinTECHNICAL FIELD
[0002] The present invention relates generally to digital video signal processing and, in particular, to a method, apparatus and system for encoding and decoding tensors for a convolutional neural network. The present invention also relates to a computer program product including a computer readable medium having recorded thereon a computer program for encoding and decoding tensors for a convolutional neural network using video compression technology.BACKGROUND
[0003] Convolutional neural networks (CNNs) are an emerging technology addressing, among other things, use cases involving machine vision such as object detection, instance segmentation, obj ect tracking, human pose estimation, and action recognition. Applications for CNNs can involve use of ‘edge devices’, with sensors and some processing capability, coupled to application servers as part of a ‘cloud’. CNNs can require relatively high computational complexity, more than can typically be afforded either in computing capacity or power consumption by an edge device. Executing a CNN in a distributed manner has emerged as one solution to running leading-edge networks using limited capability edge devices without requiring all computational complexity to be incurred within cloud servers whilst edge devices have potentially under-utilised inferencing resources. In other words, distributed processing allows legacy edge devices to still provide the capability of leading-edge CNNs by distributing processing between the edge device and other processing means, such as cloud servers. Such a distributed network architecture may be referred to as ‘collaborative intelligence’ (CI) and offers benefits such as re-using a partial result from a first portion of the network with severaldifferent second portions, perhaps with each portion being optimised for a different task. CI architectures introduce a need for efficient compression of tensor data, for transmission over a network such as a WAN.
[0004] CNNs typically include many layers, such as convolution layers and fully connected layers, with data passing from one layer to the next in the form of ‘tensors’. Splitting a CNN across different devices introduces a need to compress the intermediate multi-dimensional tensor data that passes from one layer to the next within the CNN in order to facilitate transmission of the intermediate tensor data between portions of the CNN over a network having bandwidth limitations or costs. Compression of such tensors may be referred to as ‘feature compression’ and the intermediate tensor data is often referred to as ‘features’ or ‘feature maps’. Features or feature maps are generally a collection of two-dimensional (2D) arrays of values which, when combined into a 3D (or 4D) data structure form a tensor, with each feature map corresponding to one ‘channel’ of the tensor. Intermediate tensor data represents a partially processed form of input such as an image frame or video frame, encountered within a neural network. Although a unit of data to be processed in a neural network is typically a tensor, operations performed may be described in relation to a feature map, in which case it is understood that the operation is to be performed to each feature map in the tensor. International Organisation for Standardisation / International Electrotechnical Commission Joint Technical Committee 1 / Subcommittee 29 / Working Groups 4 (ISO / IEC JTC 1 / SC 29 / WG 4), also known as the “Moving Picture Experts Group” (MPEG) Video coding are tasked with developing a standard for feature compression, known as the ‘feature coding for machines’ (FCM) standard. Previously WG 2 ‘MPEG Technical Requirements’ had completed a ‘Call for Proposals’ which received responses that demonstrated significant outperformance over feature compression results achieved using state-of-the-art standardised video compression technology directly applied to the tensors.
[0005] CNNs typically require weights for each of the layers to be predetermined in a training stage, where a very large amount of training data is passed through the CNN and a result determined by the network undergoing training being compared to ground truth associated with the training data. Ground truth can include bounding boxes, tracking IDs, and instance segmentation maps or masks. Discrepancy between the obtained and desired result is expressed as a Toss’ and measured with a Toss function’ . When training data includes ground truth, typically the loss function used is the ‘task loss’, that is, the difference between the network output and the provided ground truth. An example training dataset is the ‘Openimages’collection of images with bounding boxes and segmentation masks. Using the determined loss, a process for updating network weights, such as stochastic gradient descent (SGD), is performed. Network weight update typically involves a process of back-propagation of ‘gradients’ that begins at the output layer of the network and proceeds backward to terminate when the input layer to the network is updated, propagating through intermediate, or ‘hidden’, layers of the network. Gradients are indicative of deltas to be applied to network weights and are themselves updated as part of the back propagation process. The rate of weight update is set by a Teaming rate’ hyperparameter, typically set to facilitate the training process in finding a global minima in terms of loss (i.e., highest possible task performance for the network architecture and training data) while avoiding the training process becoming ‘stuck’ in a local minima. Becoming stuck in a local minima corresponds to obtaining sub-optimal task performance for the network architecture and being incapable of finding new weight values that could lead to higher task performance. Network weights are repeatedly updated by supplying input data and ground truth data organised into ‘batches’ to iteratively refine the network performance until further improvement in accuracy is no longer achievable. The learning rate may be altered during the course of training using, for example, the “Adam optimizer”, to reduce the learning rate over time, enabling a ‘fine tuning’ of the weights later in the training process where a smaller learning rate is applied. An iteration through the entire training dataset forms one ‘epoch’ of training and training typically requires performing multiple epochs to achieve a high level of performance for the task. Weights for a trained network are then available for deployment, and the network operates in a mode where weights are fixed and gradients for weight update are omitted. The process of executing a pretrained CNN with an input and progressively transforming the input into an output according to a topology of the CNN is commonly referred to as ‘inferencing’.
[0006] Generally, a tensor is an array of elements having four dimensions, namely: batch, channels, height and width. The first dimension, ‘batch’, is typically of size one when inferencing on video data and indicates that one frame is passed through a CNN as one batch. When training a network, the value of the batch dimension may be increased so that multiple frames are passed through the network in a single batch from which the network weights are updated, according to a predetermined ‘batch size’ . A multi-frame video may be passed through as a single tensor with the batch dimension increased in size according to the number of frames of a given video. However, for practical considerations relating to memory consumption and access, inferencing on video data is typically performed on a frame-wise basis. The ‘channels’ dimension indicates the number of concurrent ‘feature maps’ included ina given tensor and the height and width dimensions indicate the size of the feature maps in the given tensor. Channel count varies through the layers of a CNN according to the network architecture. Feature map size also varies, depending on subsampling or upsampling occurring in specific network layers, such as resulting from convolutions with stride set to values other than one, such as two or one half.
[0007] The overall complexity of the CNN tends to be relatively high, with relatively large numbers of multiply-accumulate (MAC) operations being performed and numerous intermediate tensors being written to and read from memory, along with reading weights for performance of each layer of the CNN. As such, dividing a neural network into portions allows implementation of more complex networks even in systems containing less capable edge devices, without requiring cloud servers to bear the full burden of performing the network.
[0008] Feature compression may benefit from existing video compression standards, such as ISO / IEC 23090-2 “Versatile Video Coding” (VVC) / H.266, developed by the Joint Video Experts Team (JVET), a joint activity by ISO / IEC and ITU-T. VVC is anticipated to address ongoing demand for ever-higher compression performance, especially as video formats increase in capability (for example, with higher resolution and higher frame rate) and to address increasing market demand for service delivery over WANs, where bandwidth costs are relatively high. VVC is implementable in contemporary silicon processes and offers an acceptable trade-off between achieved performance versus implementation cost. The implementation cost may be considered for example, in terms of one or more of silicon area, CPU processor load, memory utilisation and bandwidth. Other video compression standards, such as ISO / IEC 23008-2 “High Efficiency Video Coding” (HEVC) / H.265 or ISO / IEC 14496-15, “Advanced Video Coding” may also be used for feature compression applications. Other standards such as AV-1, developed by the Alliance for Open Media (AOMedia) may also be used.
[0009] Video data includes a sequence of frames of image data, each frame including one or more colour channels. Where feature map data is to be represented in a packed frame, generally a monochrome frame having luminance only and no chroma channels is adequate. When only luma samples are present, the resulting monochrome frames are said to use a “4:0:0 chroma format”.
[0010] The VVC standard specifies a ‘block based’ architecture, in which frames are firstly divided into an array of square regions known as ‘coding tree units’ (CTUs). In VVC, CTUs generally occupy 128x128 luma samples. Other possible CTU sizes when using the VVC standard are 32x32 and 64x64. However, CTUs at the right and bottom edge of each frame may be smaller in area, with implicit splitting occurring to ensure coding blocks remain in the frame. Associated with each CTU is a ‘coding tree’ defining a decomposition of the area of the CTU into a set of blocks, also referred to as ‘coding units’ (CUs). Blocks applicable to only the luma channel or only the chroma channels are referred to as ‘coding blocks’ (CBs). A prediction of the contents of a coding block is held in a ‘prediction block’ (PB) or ‘prediction unit’ (PU) and a residual block defining an array of sample values to be additively combined with the PB or PU is referred to as a ‘transform block’ (TB) or ‘transform unit’ (TU), owing to the typical use of a transformation process in the generation of the TB or TU. In the case of HEVC, the CTU size may be 64x64, 32x32, or 16x16 luma samples. In the case of advanced video coding (AVC), a “Macroblock” is the analogue of a CTU and has a size of 16x16 luma samples.
[0011] Notwithstanding the above distinction between ‘units’ and ‘blocks’, the term ‘block’ may be used as a general term to refer to areas or regions of a frame for which operations are applied to all colour channels.
[0012] For each CU, a prediction unit (PU) of the contents (sample values) of the corresponding area of frame data is generated (a ‘prediction unit’). Further, a representation of the difference (or ‘spatial domain’ residual) between the prediction and the contents of the area as seen at input to the encoder is formed. The difference in each colour channel may be transformed and coded as a sequence of residual coefficients, forming one or more TUs for a given CU. The applied transform may be a Discrete Cosine Transform (DCT) or other transform, applied to each block of residual values. The transform is applied separably, (i.e., the two-dimensional transform is performed in two passes, one horizontally and one vertically). The block is firstly transformed by applying a one-dimensional transform to each row of samples in the block. Then, the partial result is transformed by applying a one-dimensional transform to each column of the partial result to produce a final block of transform coefficients that substantially decorrelates the residual samples. Transforms of various sizes are supported by the VVC standard, including transforms of rectangular-shaped blocks, with each side dimension being a power of two. Transform coefficients are quantised for entropy encoding into a bitstream.
[0013] PBs or PUs in VVC may be generated using either an intra-frame prediction or an inter-frame prediction process. Intra-frame prediction involves the use of previously processed samples in a frame being used to generate a prediction of a current block of data samples in the frame. Inter-frame prediction involves generating a prediction of a current block of samples in a frame using a block of samples obtained from one or two previously decoded frames. The block of samples obtained from a previously decoded frame is offset from the spatial location of the current block according to a motion vector, which often has filtering applied. Intra-frame prediction blocks can be (i) a uniform sample value (“DC intra prediction”), (ii) a plane having an offset and horizontal and vertical gradient (“planar intra prediction”), (iii) a population of the block with neighbouring samples applied in a particular direction (“angular intra prediction”) or (iv) the result of a matrix multiplication using neighbouring samples and selected matrix coefficients.
[0014] Encoders and decoders conforming to different video encoding standards may be used to compress intermediate feature maps from a first portion (a ‘backbone’) of a neural network separated into two portions. In compression, the feature maps from the backbone are arranged into a frame and quantised from a floating-point domain to a sample domain suitable for compression as video data. Neural network layers, such as convolutions, batch normalisations, and activation functions, may be applied to reduce the dimensionality of the tensors prior to compression using a video compression standard such as VVC. Dimensionality reduction of tensors reduces the volume of data to be compressed, improving compression efficiency and reducing the runtime of the VVC encoding and decoding stages. Dimensionality reduction introduces complexity offsetting the reduction in runtime seen in the VVC encoding. Some implementations use refinement parameters, which may be signalled in terms of high level syntax. However, existing solutions of signalling can incur a relatively large overhead cost in signalling refinement parameters. A need exists to support the use of encoders and decoders conforming to various video encoding standards to improve flexibility and multi -encoder compatibility of FCM implementations.SUMMARY
[0015] It is an object of the present invention to substantially overcome, or at least ameliorate, one or more disadvantages of existing arrangements.
[0016] One aspect of the present disclosure provides a method of decoding a bitstream to produce tensors for use by a network portion, the method comprising: decoding one or moreframes from the bitstream, wherein each frame contains feature maps and each frame is identified by an order count; determining a first order count for a first parameter set of a plurality of parameter sets contained in a structure in the bitstream, wherein the first parameter set in the structure corresponds to at least a frame having the first order count; and producing tensors for the network portion from the plurality of frames and the determined order count of the parameter set.
[0017] Another aspect of the present disclosure provides a method of encoding one or more feature frames to a bitstream, the method comprising: encoding a plurality of parameter sets into a structure of the bitstream, the plurality of parameter sets including a first parameter set comprising a first syntax element used to derive a first order count associated with the first parameter set; producing feature frames from one or more tensors; and encoding the feature frames into the bitstream, wherein the first parameter set in the structure corresponds to at least a frame having the first order count.
[0018] Another aspect of the present disclosure provides a decoder for decoding a bitstream to produce tensors for use by a network portion, the decoder configured to: decode one or more frames from the bitstream, wherein each frame contains feature maps and each frame is identified by an order count; determine a first order count for a first parameter set of a plurality of parameter sets contained in a structure in the bitstream, wherein the first parameter set in the structure corresponds to at least a frame having the first order count; and produce tensors for the network portion from the plurality of frames and the determined order count of the parameter set.
[0019] Another aspect of the present disclosure provides a non-transitory computer-readable storage medium which stores a program for executing a method of decoding a bitstream to produce tensors for use by a network portion, the method comprising: decoding one or more frames from the bitstream, wherein each frame contains feature maps and each frame is identified by an order count; determining a first order count for a first parameter set of a plurality of parameter sets contained in a structure in the bitstream, wherein the first parameter set in the structure corresponds to at least a frame having the first order count; and producing tensors for the network portion from the plurality of frames and the determined order count of the parameter set.
[0020] Another aspect of the present disclosure provides an encoder for encoding a plurality of tensors to a bitstream, the encoder configured to: encode a plurality of parameter sets into a structure of the bitstream, the plurality of parameter sets including a first parameter set comprising a first syntax element used to derive a first order count associated with the first parameter set; produce feature frames from one or more tensors; and encode the feature frames into the bitstream, wherein the first parameter set in the structure corresponds to at least a frame having the first order count.
[0021] Another aspect of the present disclosure provides a non-transitory computer-readable storage medium which stores a program for executing a method of encoding a plurality of tensors to a bitstream, the method comprising: encoding a plurality of parameter sets into a structure of the bitstream, the plurality of parameter sets including a first parameter set comprising a first syntax element used to derive a first order count associated with the first parameter set; producing feature frames from one or more tensors; and encoding the feature frames into the bitstream, wherein the first parameter set in the structure corresponds to at least a frame having the first order count.
[0022] Other aspects are also disclosed.BRIEF DESCRIPTION OF THE DRAWINGS
[0023] At least one embodiment of the present invention will now be described with reference to the following drawings and an appendix, in which:
[0024] Fig. l is a schematic block diagram showing a distributed machine task system;
[0025] Figs. 2A and 2B form a schematic block diagram of a general-purpose computer system upon which the distributed machine task system of Fig. 1 may be practiced;
[0026] Fig. 3A is a schematic block diagram showing functional modules of a backbone portion of a CNN;
[0027] Fig. 3B is a schematic block diagram showing a residual block of Fig. 3 A;
[0028] Fig. 3C is a schematic block diagram showing a residual unit of Fig. 3A;
[0029] Fig. 3D is a schematic block diagram showing a CBL module of Fig. 3 A;
[0030] Fig. 4 is a schematic block diagram showing functional modules of an alternative backbone portion of a CNN;
[0031] Fig. 5 is a schematic block diagram of a tensor encoder;
[0032] Fig. 6 is a schematic block diagram showing a multi-scale feature fusion stage for a tensor compressor;
[0033] Fig. 7 shows a picture structure with low delay and one level of temporal interpolation;
[0034] Fig. 8 is a schematic block diagram showing functional modules of a video encoder;
[0035] Figs. 9A & 9B are schematic block diagrams showing an arrangement of regions or subpictures for holding compressed feature map data from compressed tensor data;
[0036] Fig. 10 is a schematic block diagram showing a bitstream structure with a container for coded feature frame data;
[0037] Fig. 11 is a schematic block diagram showing a feature frame metadata;
[0038] Fig. 12 is a schematic block diagram showing a tensor decoder;
[0039] Fig. 13 is a schematic block diagram showing functional modules of a video decoder;
[0040] Fig. 14 is a schematic block diagram showing an implementation of a configurable feature reconstruction module performing a decoder network topology;
[0041] Fig. 15 is a schematic block diagram showing an embodiment of a multi-scale feature reconstruction stage;
[0042] Fig. 16A is a schematic block diagrams showing a head portion of a CNN;
[0043] Fig. 16B is a schematic block diagram showing an upscaler module of Fig. 16A;
[0044] Fig. 16C is a schematic block diagram showing a detection module of Fig. 16A;
[0045] Fig. 17 is a schematic block diagram showing an alternative head portion of a CNN;
[0046] Fig. 18 shows a method for performing a first portion of a CNN, selecting a feature map compression standard, compressing tensors using the selected feature map compressor, and encoding resulting compressed tensors into a bitstream;
[0047] Fig. 19 shows a method for decoding a bitstream, determining a selected feature map compression standard, reconstructing tensors according to a selected feature map compression standard, and performing a second portion of the CNN; and
[0048] Appendix A shows syntax structures for signalling a feature coding for a machine vision model parameter set (FCM VMPS), a sequence parameter set (FCM SPS), and a picture parameter set (FCM PPS).DETAILED DESCRIPTION INCLUDING BEST MODE
[0049] Where reference is made in any one or more of the accompanying drawings to steps and / or features, which have the same reference numerals, those steps and / or features have for the purposes of this description the same function(s) or operation(s), unless the contrary intention appears.
[0050] A distributed machine task system may include an edge device, such as a network camera or smartphone producing intermediate compressed data. The distributed machine task system may also include a final device, such as a server farm based (‘cloud’) application, operating on the intermediate compressed data to produce a task result. Additionally, the edge device functionality may be embodied in the cloud and the intermediate compressed data may be stored for later processing, potentially for multiple different tasks depending on need.
[0051] A convenient form of intermediate compressed data is a compressed video bitstream, owing to the availability of high-performing compression standards and implementations thereof. Video compression standards typically operate on integer samples of some given bit depth, such as 10 bits, arranged in planar arrays. Colour video has three planar arrays, corresponding, for example, to colour components Y, Cb, Cr, or R, G, B, depending on application. CNNs typically operate on floating point data in the form of tensors but may also operate on integer data, also forming tensors. Tensors generally have a relatively smaller spatial dimensionality compared to incoming video data upon which the CNN operates while having more channels than the three channels typical of colour video data, for example 128, 256, or 512 channels.
[0052] Tensors typically have the following dimensions: frames, channels, height, and width. For example, a tensor of dimensions [1, 256, 76, 136] would be said to contain floating-point or integer values for one frame comprising an array of two-hundred and fifty-six (256) feature maps (channels), each of size 136x76. For video data, inferencing is typically performed one frame at a time (frame or 'batch’ value of 1), rather than using tensors containing multiple frames. VVC, HEVC, and AVC support a division of a picture into ’slices’, or contiguous sequences of coded CTUs or Macroblocks in the case of AVC. A feature codec may include stages to reduce the dimensionality of intermediate tensors encountered at a given ‘ split point’ between two network portions. The reduced-dimensionality tensors are then packed into frames and coded with a conventional video codec, or ‘inner codec’ . Several different compression standards may be used for the ‘inner codec’, reflecting availability in deployments, various complexity / performance trade-offs, or other criteria. A bitstream format capable of containing coded data for various inner codecs used for feature compression is thus desirable.
[0053] Fig. l is a schematic block diagram showing functional modules of a distributed machine task system 100, capable of performing a machine task network in a distributed manner. The division of a particular neural network into two portions requires specifying a ‘ split point’ in the network. Layers in the network from the input layer up to the split point are performed in a first device and the resulting intermediate tensor(s) are compressed. Layers from the split point up to the last layer in the network are performed using decompressed tensor(s) from the first device as input to the layer(s) immediately following the split point. At the split point there may be one or more tensors that need to be compressed for conveyance over a communication channel with limited bandwidth compared to the bandwidth requirement for transmission of uncompressed tensors. Where a ‘feature pyramid network’ (FPN) is in use, it is common for layers in the FPN to be related in width and height such that a given layer is half the width and half the height of an adjacent layer among the layers. FPN architectures may also involve the width and height halving alternatively from one layer to the next layer. In some architectures, multiple tensors of the same width and height are produced within the FPN. An FPN may occur relatively early in the neural network topology, resulting in a necessity for a split point to occur within the FPN in order for a useful division of the network workload across the edge device and the cloud to be achieved. When a split occurs within the FPN of the machine task network, performance of a variety of machine task networks where layers up to the split point are common among the machine task networks (‘shared backbone’ architecture) may be achieved. Where a split point occurs within the FPN, tensor compression methods may exploit redundancies across the FPN layers to improve compression performance. Compressionmethods applicable to the various network topologies used in contemporary CNNs are therefore beneficial for application in a wide range of scenarios.
[0054] The system 100 may be used for implementing methods for decorrelating, packing and quantising feature maps into planar frames for encoding and decoding feature maps from encoded data for various neural networks. Various neural networks may be split at different points and may result in intermediate tensors of various number and dimensionality. A feature compression scheme capable of adapting to different types of intermediate data and capable of providing different quality reconstruction results in advantageous flexibility. Moreover, the system 100 provides flexibility to interface neural networks of various architectures and for various applications subjected to splitting into portions (e.g., for distributed execution).
[0055] The system 100 includes a source device 110 for generating frame data 113, typically in RGB444 format. The frame data 113 is passed to a prefilter 114 to produce filtered frame data 115. The filtered frame data 115 is passed to a CNN backbone 116 to produce tensors 117. The tensors 117 are passed to a tensor encoder 118, which produces an encoded bitstream 121. The prefilter 114 implements filtering such as a 2D Gaussian filter with a 3 *3 kernel size and sigma value of 1.0, in each colour channel. Alternatively, a colour space conversion into YUV4:2:0 followed by conversion back to RGB444 format. In another arrangement, the prefilter 114 implements a conversion into grayscale. In general, the prefilter smooths out high-frequency noise, in luma or in chroma or in both luma and chroma, present in the frame data 113 that may manifest as noise even in layers deep in the CNN. Noise in layers in the CNN, especially at the split point, may degrade achievable compression performance for feature compression. The system 100 also includes a destination device 140 for decoding tensor data in the form of a received bitstream 143. The destination device 140 may be used for decoding the tensor data (or tensors) for content (e.g., of audio data, video data, image data, and textual data) of the bitstream 143.
[0056] A communication channel 130 is used to communicate the encoded bitstream 121 from the source device 110 to the destination device 140. In some arrangements, the source device 110 and destination device 140 may either or both comprise respective mobile telephone handsets (e.g., “smartphones”) or network cameras and cloud applications. The communication channel 130 may be a wired connection, such as Ethernet, or a wireless connection, such as WiFi or 5G, including connections across a Wide Area Network (WAN). The communication channel 130 may also be implemented across ad-hoc connections. Moreover, the sourcedevice 110 and the destination device 140 may comprise applications where encoded video data is captured on some computer-readable storage medium, such as a hard disk drive in a file server or memory. Although the system 100 is described as including a video source 112, which would provide the frame data 113 for a neural network targeting a computer vision application, other types of source data, such as audio or text, may be input to a suitable neural network implemented in the CNN backbone 116 and a CNN head 150. The CNN backbone 116 may also be referred to as a neural network first portion or NN part 1. The CNN head 150 may also be referred to as a neural network second portion or NN part 2.
[0057] As shown in Fig. 1, the source device 110 includes the video source 112, the prefilter 114, the CNN backbone 116, the tensor encoder 118, and a transmitter 122. The video source 112 typically comprises a source of captured video frame data (shown as 113), such as an image capture sensor, a previously captured video sequence stored on a non-transitory recording medium, or a video feed from a remote image capture sensor. The video source 112 may also be an output of a computer graphics card, for example, displaying the video output of an operating system and various applications executing upon a computing device (e.g., a tablet computer). Examples of source devices 110 that may include an image capture sensor as the video source 112 include smart-phones, video camcorders, professional video cameras, and network video cameras. The video source 112 may produce independent images or may produce temporally sequential images, i.e., a video.
[0058] The neural network implemented in the CNN backbone 116 and the CNN head 150 may depend on the application. For example, a ‘YOLOv3’ network may be used as one part of an object tracking system and a ‘FasterRCNN’ network may be used as an object detection system. The number and dimensionality of tensors 117 depends on a particular network performed in the system 100 and the split point of the particular network.
[0059] The CNN backbone 116 receives the filtered video frame data 115 and performs specific layers of an overall CNN, such as layers corresponding to the ‘backbone’ of the CNN, outputting tensors 117. The backbone layers of the CNN may produce multiple tensors as output, for example, corresponding to different spatial scales of an input image represented by the video frame data 113 when splitting the network within the FPN. An FPN may result in three tensors, corresponding to three layers, output from the backbone 116 as the tensors 117 (e.g., if a ‘YOLOv3’ network is performed by the system 100), with varying spatial resolution and channel count. When the system 100 is performing networks such as ‘Faster RCNN X101-FPN’ or ’Mask RCNN X101-FPN’ the tensors 117 may include tensors for four layers (P2-P5). Use of a FPN results in a plurality of tensors forming a hierarchical representation for a single frame to be encoded to (and decoded from) the bitstream when the split point of the network occurs within the FPN, as described hereafter. The tensor encoder 118 produces the encoded bitstream 121 from the tensors 117.
[0060] The bitstream 121 is supplied to the transmitter 122 for transmission over the communications channel 130 or the bitstream 121 is written to storage 132 for later use.
[0061] The source device 110 supports a particular network for the CNN backbone 116. However, the destination device 140 may use one of several networks for the head CNN 150. In using one of several networks for the head CNN 150, partially processed data in the form of packed feature maps may be stored for later use in performing various tasks without needing to again perform the operation of the CNN backbone 116.
[0062] The bitstream 121 is transmitted by the transmitter 122 over the communication channel 130 as encoded data. The bitstream 121 can in some implementations be stored in a storage memory 132, where the storage 132 is a non-transitory storage device such as a “Flash” memory or a hard disk drive, until later being transmitted over the communication channel 130 (or in-lieu of transmission over the communication channel 130). For example, encoded video data may be served upon demand to customers over a wide area network (WAN) for a video analytics application.
[0063] The destination device 140 includes a receiver 142, a tensor decoder 146, the CNN head 150, and a CNN task result buffer 152. The receiver 142 receives encoded video data from the communication channel 130 and passes the bitstream 143 to the tensor decoder 146. The tensor decoder 146 outputs decoded tensors 149, which are supplied to the CNN head 150. The CNN head 150 receives the tensors 149 and performs the later layers of the neural network that began with the CNN backbone 116 to produce atask result 151. The task result 151 is stored in the task result buffer 152. The contents of the task result buffer 152 may be presented to the user (e.g., via a graphical user interface), or provided to an analytics application where some action is decided based on the task result, which may include summary level presentation of aggregated task results to a user. It is also possible for the functionality of each of the source device 110 and the destination device 140 to be embodied in a single device, examples of which include mobile telephone handsets and tablet computers and cloud applications.
[0064] As seen in Fig. 1, the system 100 also comprises a tensor codec repository 180. The codec repository 180 may include network topologies covering a variety of neural networks and associated split points, and reconstruction fidelity levels. The network topologies may be stored in in the tensor codec repository 180 for future reference (or use). The tensor codec repository 180 may be accessed ‘out of band’ or separately stored in each of the source device 110 and the destination device 140. In other words, the tensor codec repository 180 may be accessed over a network by the source device 110 and the destination device 140 rather than via the bitstream 143. A network topology identifier 174 and 176 may be sent by the tensor encoder 118 and the tensor decoder 146, respectively, to the tensor codec repository 180. The network topology identifiers 174 and 176 may be used for determining a given network topology from the bitstream 143.
[0065] As a result of a request for a given network topology, a network topology 172 and 178 may be returned by the tensor codec repository 180 to the tensor encoder 118 and the tensor decoder 146, respectively. As described in detail below, the information including the network topology identifier 178 may be decoded and used by the tensor decoder 146 for producing decoded tensors using the determined network topology. The tensor codec repository 180 may be accessible via public file repository or within a private network accessible to the source device 110 and the destination device 140. A given network topology defines the composition and interconnection of a set of machine-learning primitive operations including convolutions, batch normalisations, activation functions, and concatenations. A network topology may be available for a split point. However, with mismatch in the supported dimensionality, in particular the spatial dimensions of the feature maps may differ from those provided by CNN backbone 116. Moreover, the data type provided from the CNN backbone 116 and supplied to the CNN head 150 may differ from that used internally by the network topology. For example, integer inferencing is commonly used due to its reduced complexity compared to floating-point inferencing. Where a network topology is available but configured to use floating-point inferencing, an adaptation between integer and floating-point domains is needed to couple the network topology implemented in the tensor encoder 118 and the tensor decoder 146 with the CNN backbone 116 and the CNN head 150.
[0066] The video source 112 can provide vision model parameters 113a to the tensor encoder 118, as described hereafter. The vision model parameters 113a include the spatial resolution of the frame data 113, used for bounding boxes (an example of the task result 151) to be scaled to correspond to the resolution of the frame data 113.
[0067] The arrangements described allow a different ‘inner codec’ to be selected and used based on implementation requirements. In the context of the arrangements described, the ‘inner codec’ relates to the functionality for encoding tensors reduced in dimensionality compared to the tensors 117 from the CNN backbone 116 (or a feature pyramid) for transmission between the source device 110 and the destination device 140. The ‘inner codec’ also relates to the functionality for correspondingly decoding a bitstream to produce compressed tensors after reception at the destination device 140, where the compressed tensors will be further processed to produce tensors 149, restored in dimensionality to correspond to the tensors 117. The ‘inner codec’ generates and decodes a bitstream in the examples described. In other implementations, a different encoded output, for example a packed frame may be used.
[0068] Notwithstanding the example devices mentioned above, each of the source device 110 and destination device 140 may be configured within a general-purpose computing system, typically through a combination of hardware and software components. Fig. 2A illustrates such a computer system 200, which includes: a computer module 201; input devices such as a keyboard 202, a mouse pointer device 203, a scanner 226, a camera 227, which may be configured as the video source 112, and a microphone 280; and output devices including a printer 215, a display device 214 and loudspeakers 217. An external Modulator-Demodulator (Modem) transceiver device 216 may be used by the computer module 201 for communicating to and from a communications network 220 via a connection 221. The communications network 220, which may represent the communication channel 130, may be a (WAN), such as the Internet, a cellular telecommunications network, or a private WAN. Where the connection 221 is a telephone line, the modem 216 may be a traditional “dial-up” modem. Alternatively, where the connection 221 is a high capacity (e.g., cable or optical) connection, the modem 216 may be a broadband modem. A wireless modem may also be used for wireless connection to the communications network 220. The transceiver device 216 may provide the functionality of the transmitter 122 and the receiver 142 and the communication channel 130 may be embodied in the connection 221.
[0069] The computer module 201 typically includes at least one processor unit 205, and a memory unit 206. For example, the memory unit 206 may have semiconductor random access memory (RAM) and semiconductor read only memory (ROM). The computer module 201 also includes a number of input / output (VO) interfaces including: an audio-video interface 207 that couples to the video display 214, loudspeakers 217 and microphone 280; an I / O interface 213 that couples to the keyboard 202, mouse 203, scanner 226, camera 227 and optionally a joystickor other human interface device (not illustrated); and an interface 208 for the external modem 216 and printer 215. The signal from the audio-video interface 207 to the computer monitor 214 is generally the output of a computer graphics card. In some implementations, the modem 216 may be incorporated within the computer module 201, for example within the interface 208. The computer module 201 also has a local network interface 211, which permits coupling of the computer system 200 via a connection 223 to a local-area communications network 222, known as a Local Area Network (LAN). As illustrated in Fig. 2A, the local communications network 222 may also couple to the wide network 220 via a connection 224, which would typically include a so-called “firewall” device or device of similar functionality. The local network interface 211 may comprise an Ethernet™ circuit card, a Bluetooth™ wireless arrangement or an IEEE 802.11 wireless arrangement; however, numerous other types of interfaces may be practiced for the interface 211. The local network interface 211 may also provide the functionality of the transmitter 122 and the receiver 142 and communication channel 130 may also be embodied in the local communications network 222.
[0070] The I / O interfaces 208 and 213 may afford either or both of serial and parallel connectivity, the former typically being implemented according to the Universal Serial Bus (USB) standards and having corresponding USB connectors (not illustrated). Storage devices 209 are provided and typically include a hard disk drive (HDD) 210. Other storage devices such as a floppy disk drive and a magnetic tape drive (not illustrated) may also be used. An optical disk drive 212 is typically provided to act as a non-volatile source of data. Portable memory devices, such optical disks (e.g. CD-ROM, DVD, Blu ray Disc™), USB-RAM, portable, external hard drives, and floppy disks, for example, may be used as appropriate sources of data to the computer system 200. Typically, any of the HDD 210, optical drive 212, networks 220 and 222 may also be configured to operate as the video source 112, or as a destination for decoded video data to be stored for reproduction via the display 214. The source device 110 and the destination device 140 of the system 100 may be embodied in the computer system 200.
[0071] The components 205 to 213 of the computer module 201 typically communicate via an interconnected bus 204 and in a manner that results in a conventional mode of operation of the computer system 200 known to those in the relevant art. For example, the processor 205 is coupled to the system bus 204 using a connection 218. Likewise, the memory 206 and optical disk drive 212 are coupled to the system bus 204 by connections 219. Examples of computerson which the described arrangements can be practised include IBM-PC’s and compatibles, Sun SPARCstations, Apple Mac™ or alike computer systems.
[0072] The tensor encoder 118, the tensor decoder 146 and methods to be described, may be implemented as one or more software application programs 233 executable within the computer system 200. In particular, the tensor encoder 118, the tensor decoder 146 and the steps of the described methods are effected by instructions 231 (see Fig. 2B) in the software 233 that are carried out within the computer system 200. The software instructions 231 may be formed as one or more code modules, each for performing one or more particular tasks. The software may also be divided into two separate parts, in which a first part and the corresponding code modules performs the described methods and a second part and the corresponding code modules manage a user interface between the first part and the user.
[0073] The software may be stored in a computer readable medium, including the storage devices described below, for example. The software is loaded into the computer system 200 from the computer readable medium, and then executed by the computer system 200. A computer readable medium having such software or computer program recorded on the computer readable medium is a computer program product. The use of the computer program product in the computer system 200 preferably effects an advantageous apparatus for implementing the source device 110 and the destination device 140 and the described methods.
[0074] The software 233 is typically stored in the HDD 210 or the memory 206. The software is loaded into the computer system 200 from a computer readable medium, and executed by the computer system 200. Thus, for example, the software 233 may be stored on an optically readable disk storage medium (e.g., CD-ROM) 225 that is read by the optical disk drive 212.
[0075] In some instances, the application programs 233 may be supplied to the user encoded on one or more CD-ROMs 225 and read via the corresponding drive 212, or alternatively may be read by the user from the networks 220 or 222. Still further, the software can also be loaded into the computer system 200 from other computer readable media. Computer readable storage media refers to any non-transitory tangible storage medium that provides recorded instructions and / or data to the computer system 200 for execution and / or processing. Examples of such storage media include floppy disks, magnetic tape, CD-ROM, DVD, Blu-ray Disc™, a hard disk drive, a ROM or integrated circuit, USB memory, a magneto-optical disk, or a computer readable card such as a PCMCIA card and the like, whether or not such devices are internal orexternal of the computer module 201. Examples of transitory or non-tangible computer readable transmission media that may also participate in the provision of the software, application programs, instructions and / or video data or encoded video data to the computer module 201 include radio or infra-red transmission channels, as well as a network connection to another computer or networked device, and the Internet or Intranets including e-mail transmissions and information recorded on Websites and the like.
[0076] The second part of the application program 233 and the corresponding code modules mentioned above may be executed to implement one or more graphical user interfaces (GUIs) to be rendered or otherwise represented upon the display 214. Through manipulation of typically the keyboard 202 and the mouse 203, a user of the computer system 200 and the application may manipulate the interface in a functionally adaptable manner to provide controlling commands and / or input to the applications associated with the GUI(s). Other forms of functionally adaptable user interfaces may also be implemented, such as an audio interface utilizing speech prompts output via the loudspeakers 217 and user voice commands input via the microphone 280.
[0077] Fig. 2B is a detailed schematic block diagram of the processor 205 and a “memory” 234. The memory 234 represents a logical aggregation of all the memory modules (including the storage devices 209 and semiconductor memory 206) that can be accessed by the computer module 201 in Fig. 2A.
[0078] When the computer module 201 is initially powered up, a power-on self-test (POST) program 250 executes. The POST program 250 is typically stored in a ROM 249 of the semiconductor memory 206 of Fig. 2A. A hardware device such as the ROM 249 storing software is sometimes referred to as firmware. The POST program 250 examines hardware within the computer module 201 to ensure proper functioning and typically checks the processor 205, the memory 234 (209, 206), and a basic input-output systems software (BIOS) module 251, also typically stored in the ROM 249, for correct operation. Once the POST program 250 has run successfully, the BIOS 251 activates the hard disk drive 210 of Fig. 2A. Activation of the hard disk drive 210 causes a bootstrap loader program 252 that is resident on the hard disk drive 210 to execute via the processor 205. This loads an operating system 253 into the RAM memory 206, upon which the operating system 253 commences operation. The operating system 253 is a system level application, executable by the processor 205, to fulfilvarious high level functions, including processor management, memory management, device management, storage management, software application interface, and generic user interface.
[0079] The operating system 253 manages the memory 234 (209, 206) to ensure that each process or application running on the computer module 201 has sufficient memory in which to execute without colliding with memory allocated to another process. Furthermore, the different types of memory available in the computer system 200 of Fig. 2A need to be used properly so that each process can run effectively. Accordingly, the aggregated memory 234 is not intended to illustrate how particular segments of memory are allocated (unless otherwise stated), but rather to provide a general view of the memory accessible by the computer system 200 and how such memory is used.
[0080] As shown in Fig. 2B, the processor 205 includes a number of functional modules including a control unit 239, an arithmetic logic unit (ALU) 240, and a local or internal memory 248, sometimes called a cache memory. The cache memory 248 typically includes a number of storage registers 244-246 in a register section. One or more internal busses 241 functionally interconnect these functional modules. The processor 205 typically also has one or more interfaces 242 for communicating with external devices via the system bus 204, using the connection 218. The memory 234 is coupled to the bus 204 using the connection 219.
[0081] The application program 233 includes a sequence of instructions 231 that may include conditional branch and loop instructions. The program 233 may also include data 232 which is used in execution of the program 233. The instructions 231 and the data 232 are stored in memory locations 228, 229, 230 and 235, 236, 237, respectively. Depending upon the relative size of the instructions 231 and the memory locations 228-230, a particular instruction may be stored in a single memory location as depicted by the instruction shown in the memory location 230. Alternately, an instruction may be segmented into a number of parts each of which is stored in a separate memory location, as depicted by the instruction segments shown in the memory locations 228 and 229.
[0082] In general, the processor 205 is given a set of instructions which are executed therein. The processor 205 waits for a subsequent input, to which the processor 205 reacts to by executing another set of instructions. Each input may be provided from one or more of a number of sources, including data generated by one or more of the input devices 202, 203, data received from an external source across one of the networks 220, 202, data retrieved from oneof the storage devices 206, 209 or data retrieved from a storage medium 225 inserted into the corresponding reader 212, all depicted in Fig. 2A. The execution of a set of the instructions may in some cases result in output of data. Execution may also involve storing data or variables to the memory 234.
[0083] The tensor encoder 118, the tensor decoder 146 and the described methods may use input variables 254, which are stored in the memory 234 in corresponding memory locations 255, 256, 257. The tensor encoder 118, the tensor decoder 146 and the described methods produce output variables 261, which are stored in the memory 234 in corresponding memory locations 262, 263, 264. Intermediate variables 258 may be stored in memory locations 259, 260, 266 and 267.
[0084] Referring to the processor 205 of Fig. 2B, the registers 244, 245, 246, the arithmetic logic unit (ALU) 240, and the control unit 239 work together to perform sequences of microoperations needed to perform “fetch, decode, and execute” cycles for every instruction in the instruction set making up the program 233. Each fetch, decode, and execute cycle comprises:a fetch operation, which fetches or reads an instruction 231 from a memory location 228, 229, 230;a decode operation in which the control unit 239 determines which instruction has been fetched; andan execute operation in which the control unit 239 and / or the ALU 240 execute the instruction.
[0085] Thereafter, a further fetch, decode, and execute cycle for the next instruction may be executed. Similarly, a store cycle may be performed by which the control unit 239 stores or writes a value to a memory location 232.
[0086] Each step or sub-process in the methods of Figs. 18 and 19, to be described, is associated with one or more segments of the program 233 and is typically performed by the register section 244, 245, 246, the ALU 240, and the control unit 239 in the processor 205 working together to perform the fetch, decode, and execute cycles for every instruction in the instruction set for the noted segments of the program 233.
[0087] Fig. 3A is a schematic block diagram 300 showing functional modules of a backbone portion 310 of a CNN. The diagram 300 which may serve as an implementation of the CNN backbone 116 when the system 100 is configured to perform a ‘YOLOv3’ network. The backbone portion 116 is sometimes referred to as ‘DarkNet-53’, although different backbones are also possible, resulting in a different number of and dimensionality of layers of the tensors 117 for each frame. In one implementation, the backbone portion 310 may be used as a person detector for the purpose of object tracking.
[0088] As shown in Fig. 3 A, the prefiltered video data 115 is passed to a resizer module 304 The resizer module 304 resizes each frame of the video data 115 to a resolution suitable for processing by the CNN backbone 310, producing resized frame data 312. If the resolution of the video data 113 is already suitable for the CNN backbone 310, operation of the resizer module 304 is not needed. The resized frame data 312 is passed to a convolutional batch normalisation leaky rectified linear (CBL) module 314 to produce tensors 316. TheCBL module 314 contains modules as described with reference to a CBL module 360 as shown in Fig 3D.
[0089] The CBL module 360 takes as input a tensor 361 of the resized frame data 312. The tensor 361 is passed to a convolutional layer 362 to produce tensor 363. If the convolutional layer 362 has a stride of one, the tensor 363 has the same spatial dimensions as the tensor 361. If the convolution layer 362 has a larger stride, such as two, the tensor 363 has smaller spatial dimensions compared to the tensor 361, for example, halved in width and height for the stride of two. Regardless of the stride, the size of channel dimension of the tensor 363 may vary compared to the channel dimension of the tensor 361 for a particular CBL block. The tensor 363 is passed to a batch normalisation module 364, which outputs a tensor 365. The batch normalisation module 364 normalises the input tensor 363 and applies a scaling factor and an offset value to produce the output tensor 365. The scaling factor and offset value are derived from a training process. The tensor 365 is passed to a leaky rectified linear activation (“LeakyReLU”) module 366 to produce a tensor 367. The module 366 provides a ‘leaky’ activation function whereby positive values in the tensor are passed through and negative values are severely reduced in magnitude, for example, to 0. IX their former value.
[0090] Returning to Fig. 3A, the tensor 316 is passed from the CBL block 314 to a residual block module 320, such as a ‘resl+2+8’ module (also referred to as a resl 1 module) containing a concatenation of three residual blocks, each residual block containing one (1) residual unit, two (2) residual units, and eight (8) residual units, respectively. The spatial resolution of thetensors is halved horizontally and halved vertically in each of the residual blocks (see Fig. 3B) by a convolution with stride equal to two in a CBL block 344.
[0091] A residual block is described with reference to a ResBlock 340 as shown in Fig. 3B. The ResBlock 340 receives a tensor 341. The tensor 341 is zero-padded by a zero-padding module 342 to produce a tensor 343. The tensor 343 is passed to the CBL module 344 to produce a tensor 345. The CBL module 344 contains a convolution (for example 362) with a stride parameter set to two, resulting in the tensor 345 having half the width and half the height of the tensor 343. The tensor 345 is passed to a residual unit 346. The residual unit 346 contains a series of concatenated residual units, based on the number of residual block (for example, eleven (11) units for the block 320). The last residual unit of the residual units 346 outputs a tensor 347.
[0092] A residual unit is described with reference to a ResUnit 350 as shown in Fig. 3C. The ResUnit 350 takes a tensor 351 as input. The tensor 351 is passed to a CBL module 352 to produce a tensor 353. The tensor 353 is passed to a second CBL unit 354 to produce a tensor 355. An add module 356 sums the tensor 355 with the tensor 351 to produce a tensor 357. The add module 356 may also be referred to as a ‘ shortcut’ as the input tensor 351 substantially influences the output tensor 357. For an untrained network, ResUnit 350 acts to pass-through tensors. As training is performed, the CBL modules 352 and 354 act to deviate the tensor 357 away from the tensor 351 in accordance with training data and ground truth data.
[0093] Returning to Fig. 3A, the Resl 1 module 320 outputs a tensor 322. The tensor 322 is output from the backbone module 310 as one of the layers and also provided to a Res8 module 324. The Res8 module 324 is a residual block (i.e., 340), which includes eight residual units (i.e. 350). The Res8 module 324 produces a tensor 326. The tensor 326 is passed to a Res4 module 328 and output from the backbone module 310 as one of the layers. The Res4 module is a residual block (i.e., 340), which includes four residual units (i.e., 350). The Res4 module 328 produces a tensor 329. The tensor 329 is output from the backbone module 310 as one of the layers. Collectively, the layer tensors 322, 326, and 329 are output as the tensors 117 and may be referred to as layers 0-2 or L0, LI, and L2, respectively. The backbone CNN 310 may take as input a video frame of resolution 1088x608 and produce three tensors, corresponding to three layers, with the following dimensions: [1, 256, 76, 136], [1, 512, 38, 68], [1, 1024, 19, 34], Another example of the three tensors 117 corresponding to three layers may be [1, 512, 34, 19], [1, 256, 68, 38], [1, 128, 136, 76] which are respectively separated at layer index 75, 90,and 105 when the layers are enumerated according to the Y0L0v3 software implementation of the backbone 300 and a head 1200.
[0094] Each of the Resl 1 320, Res8324 and Res4328 operates in a similar manner to ResBlock 340. Each of the CBL 314, the CBL 344 and the CBL 354 operate in a similar manner to the CBL 360.
[0095] Fig. 4 is a schematic block diagram showing functional modules of an alternative backbone portion 400 of a CNN, which may serve as an implementation of the CNN backbone 116 when the system 100 is configured to perform a “FasterRCNN” or “MaskRCNN” ResNet 101 network. Prefiltered frame data 115 is input and passes through a stem network 408, a res2 module 412, a res3 module 416, a res4 module 420, and a res5 module 424 via tensors 409, 413, 417, 421, 425 respectively. The backbone portion 400 may be used as part of a general object detector or for instance segmentation, with various classes of object supported.
[0096] The stem network 408 includes a convolution with a kernel size of 7x7 and a stride of two (2) and a max pooling operation. The res2 module 412, the res3 module 416, the res4 module 420 and the res5 module 424 perform convolution operations, such as LeakyReLU activations. Each module 412, 416, 420 and 424 also performs one halving of the width and height of the processed tensors via a stride setting of two. Each of the tensors 413, 417, 421 and 425 are passed from the res modules 412, 416, 520 and 424 to one of 1x1 lateral convolution modules 446, 444, 442 and 440 respectively. The modules 446, 444, 442, and 440 produce tensors 447, 445, 443 and 441 respectively. The tensor 441 is passed to a 3x3 output convolution module 470, which produces an output tensor P5471.
[0097] The tensor 441 is also passed to upsampler module 450 to produce an upsampled tensor 451. A summation module 460 sums the tensors 443 and 451 to produce a tensor 461. The tensor 461 is passed to an upsampler module 452 and a 3x3 lateral convolution module 472. The module 472 outputs a P4 tensor 473. The upsampler module 452 produces an upsampled tensor 453. A summation module 462 sums tensors 445 and 453 to produce a tensor 463. The tensor 463 is passed to a 3x3 lateral convolution module 474 and an upsampler module 454. The module 474 outputs a P3 tensor 475. The upsampler module 454 outputs an upsampled tensor 455. A summation module 464 sums the tensors 447 and 455 to produce tensor 465, which is passed to a 3x3 lateral convolution module 476. The module 476 outputs a P2 tensor 477. The upsampler modules 450, 452, and 454 use nearest neighbour interpolationfor low computational complexity. The tensors 471, 473, 475, and 477 form the output tensors 117 of the CNN backbone 400. Although Fig. 4 shows a particular backbone portion of the Faster RCNN network architecture (a ‘P-layer split point), different divisions into backbone and head are possible. Splitting the network at tensor 409 is termed a ‘stem’ split point.Splitting the network at tensors 447, 445, 443, and 441 is termed a ‘C-layer’ split point.
[0098] Fig. 5 is a schematic block diagram 500 of an example implementation of the tensor encoder 118 using a configurable tensor compressor stage 530, and a selectable video encoder 542, also referred to as the "inner codec". The video encoder 542 implements one of several video standards, such as AVC, HEVC, or VVC. The video encoder 542 may also implement a customised compression method, such as lossless CAB AC encoding of each quantised value in the input tensors 117, using an algorithm such as ISO / IEC 15938-17, also known as “deepCABAC”.
[0099] Figs. 10 and 11 are a schematic block diagrams showing a bitstream structure 1000 with a container for coded feature frame data 10200. The bitstream structure 1000 provides a “box-like” structure, that is, a structure in which each block of syntax (or “box”) is prefixed with an identifier and a length field. Synchronisation to detect the start of the bitstream structure 1000, or to enter at random-access points, is outside the scope of the bitstream structure 1000 itself. That is, synchronisation is performed by external means, such as a bitstream transmission start indication provided by the transmitter 122. An FCM_VPS 1010 includes signalling indicating which compression standard is to be used as the inner codec. For the indicated compression standard, a most-capable profile indication and a most-capable level indication is also signalled in the FCM VPS 1010. The used profile and level of the compression standard in the inner codec must not exceed the values signalled in the FCM_VPS 1010. An FCM_RSD (FCM restoration data) 10100 includes signalling to configure the modules of the tensor encoder 118 and tensor decoder 146 other than the inner codec, discussed with reference to Figs. 5 and 12 respectively.[000100] The FCM_RSD 10100 includes a header HDR 10110 containing a fixed 32-bit code identifying that the FCM_RSD 10100 contains restoration parameters followed by a 32-bit length code SZ 10112 that signals a length, such as the bit length or byte length of the entirely of the FCM_RSD 10100. An FCM_VMPS 10120 or “FCM vision model parameter set” signals information needed by the CNN head 150 to complete performance of the machine task, as shown in Appendix A. An FCM_SPS 10130 or “FCM sequence parameter set” signals information needed to configure the tensor decoder 146 in the current sequence of coded featureframes to produce the tensors 149, with syntax as shown in Appendix A. An FCM_IPPS 10140 or “FCM independent picture parameter set” signals parameters used by the tensor decoder 146 and is associated with at least one coded feature frame in the FCM CFD 10200, or “FCM coded feature data” box. The FCM IPPS 10140 may be parsed independently of other picturelevel signalling in the FCM_RSD 10100 but may be dependent on the FCM_SPS 10130. An FCM_DPPS 10150 or “FCM dependent picture parameter set” signals parameters used by the tensor decoder 146 and is associated with at least one coded feature frame in the FCM CFD 10200 that is subsequent in decoding order to the feature frame associated with the FCM IPPS 10140.[000101] In a case where contents of the FCM_RSD 10100 do not fully occupy the data area afforded by the value of the SZ 10112, an FCM_GAP 10160 identifying the non-occupied area size is present in the in the FCM_RSD 10100. In low-latency applications it may be desirable to provide sufficient space in the FCM_RSD 10100 for FCM_IPPS 10140 and FCM_DPPS 10150 instances for a plurality of frames without knowing (a) the number of frames or (b) the exact FCM IPPS or FCM DPPS contents at the time of allocation space for the FCM_RSD 10100. In such low-latency applications, feature frames may be coded in the FCM_CFD 10200 at resulting data buffered until the FCM_RSD 10100 is sufficiently full to transmit via the transmitter 122, with some quantity of unused bytes corresponding to the FCM GAP 10160.[000102] Fig. 11 shows an example 1100 corresponding to the FCM_RSD 10100 of Fig. 10. In the example of Fig. 11, the FCM_IPPS 10140 signals an (absolute) picture order count (POC) 1120 of a corresponding feature frame in the FCM CFD 10200 as a 32-bit integer value. The POC is a value that is associated with each one of the feature frames in the bitstream, and Each feature frame has specific POC. Also, the POC may be a value corresponding to an output order of the feature frame. The FCM IPPS 10140 signals a delta POC mechanism 1122 (dpoc idx in Appendix A), used to derive the POC values for any FCM DPPS instances, such as FCM DPPS 10150, present in the FCM RSD 10100. The delta POC mechanism may be as per the following examples:[000103] Mechanism 0 (indicated by dpoc_idx equal to zero): Each FCM_DPPS explicitly signals a 32-bit POC value (e.g. POC 1120). In other words, the FCM DPPS 10150 behaves like an FCM IPPS 10140.[000104] Mechanism 1 (indicated by dpoc idx equal to one): Each FCM_DPPS 10150 includes an explicit delta POC 1140 with respect to the previous FCM_DPPS or FCM_IPPS present in the FCM RSD 10100. The allowable range of the delta POC 1140 may be restricted to correspond to match the needed range for reconstructing POC order resulting from random access GOP structures from feature frames in coded order. Delta POC 1140 may be coded as a variable-length codeword such as signed exponential Golomb coding, or as a fixed-length codeword with one bit, such as the MSB, used as sign bit (or as twos-complement coding within the fixed-length codeword). If the fixed-length codeword is used to represent the delta POC, the fixed-length codeword length needs to be shorter than the full POC value for a compression efficiency advantage. For example, the fixed-length codeword for the delta POC has 8-bits (one byte), and this is smaller than the 32-bits required for an absolute POC value (POC 1120) .[000105] Mechanism 2 (indicated by dpoc_idx equal to two): Each FCM_DPPS POC 1140 is derived as a constant delta, such as +1, from the POC 1120 of the previous FCM DPPS or FCM_IPPS. For all-intra coding and low-delay picture structure, the monotonically increasing POC may be used for minimal signalling overhead.[000106] Returning to Fig. 10, an FCM_CFD (FCM coded frame data) 10200 box contains coded feature frames from the inner codec, i.e., video encoder 542 described with reference to Fig. 5. When the inner codec conforms to a compression standard such as H.264 / AVC, H.265 / HEVC, or H.266 / VVC, the FCM_CFD 10200 includes a sequence parameter set (SPS) 10210, one or more picture parameter sets (PPSs), such as a PPS 10220. The SPS and any PPSs pertain to the coded feature frames, defining profile (collection of coding tools) and level (maximum sample and bitrate) of the inner codec, and further parameters applicable to enabled coding tools. The FCM_CFD 10200 also includes an intra (I) slice 10230 corresponding to a random-access point in the bitstream 121 and located at the beginning of the FCM_CFD 10200, and the FCM_CFD 10200 includes at least one uni-predicted or bi-predicted (P or B) slice, such as P slice 10240. The I slice 10230 contains a one coded feature frame as a sequence of CTUs or macroblocks partitioned such as into a collection of intra-predicted CUs according to a coding tree. In this embodiment, a POC associated with the coded feature frame in the I slice 10230 is also signalled in the I slice 10230 (e.g. signalled in the slice header of the I slice 10230). The P slice 10240 contains one coded feature frame, specifically the P slice 10240 contains CUs for the one coded feature frame which are inter-predicted from other coded feature frames (i.e., slices) in the current FCM_CFD 10200 or in preceding FCM_CFDs, within limits of a decoded picture buffer (DPB) present in the inner codec (i.e., in both the encoder 542and decoder 1204). A POC associated with the one coded feature frame in the P slice 10240 is also signalled in the P slice 10240. in one arrangement, a single feature frame is in a single slice (i.e. one feature frame per one slice), although it is possible to use multiple slices for one coded feature frame. In each slice, a coded feature frame is identified by a specific POC signalled in the slice header for the slice. The POC 1120 coded for the FCM IPPS 10140 or derived for the FCM_DPPS 10150 associates parameters coded therein with the coded feature frame identified by the same POC signalled in the I-slice or the P-slice in theFCM CFD 10200.[000107] In one arrangement, it is required that POCs 1120 of the FCM_IPPS 10140 or the FCM DPPS 10150, i.e., within the FCM_RSD 10100, correspond only to POCs found within the FCM_CFD 10200. The bitstream 121 may contain numerous pairs of FCM RSDs and FCM_CFDs, each of which has FCM PPS metadata first applied to corresponding (by POC) coded feature frames within the pair, i.e., not spanning from one pair to the next pair. Within theFCM CFD 10200, each element (SPS 10210, PPS 10220, 1 slice 10230, or P slice 10240) is coded with a prefix header and size field. As an example, I slice 10230 includes header HDR 10232 that identifies the type of element independently of any compression-standard specific header that may be contained in a NAL unit header . A size SZ 10234 indicates the size contents of the element, such as the size of the I slice 10230 in bytes. Contents subsequent to the SZ 10234 are specific for the compression standard used for the inner codec. In the case of H.264 / AVC, H.265 / HEVC, and H.266 / VCC, a three-byte NAL unit start code 10236 containing the byte sequence 0x000001, a NAL unit header 10238 with one or two bytes in length, and a NAL unit payload 10240 are present. The NAL unit start code 10236 may be omitted as delineation between NAL unit payloads is already provided by the SZ 10234.[000108] As shown in Figs. 10 and 11, the structure 1000 contains a plurality of parameter sets (such as FCM VPS, FCM RSD and FCM CFD). The FCM IPPS 1040 can be considered to provide a first parameter set of a plurality of parameter sets of the bitstream 121. The POC 1120 can be considered to provide a first syntax element specifying a value of a first order count corresponding to the first syntax element. Similarly, the DCM_DPPS 10150 can be considered to provide a second parameter set of the plurality of parameter sets and the DPOC 1140 to provide a second syntax element used to derive a second order count corresponding to a second parameter set.[000109] A refinement mechanism applies the refinement to the feature maps in the fused domain and in the restored domain. Referring to Fig. 11, mean in the fused domain is coded asMUI 1131a and 1131b. Mean in the restored domain is coded as MU2 1134a and 1134b. Standard deviation in the fused domain is coded as SIGMA1 1132a and 1132b. Standard deviation in the restored domains is coded as SIGMA2 1136a and 1136b. Values 1131a, 1131b, 1132a, 1132b, 1134a, 1134b, 1136a, and 1136b are coded using 16-bit floating-point values, such as IEEE-754 16-bit floating point representation or “brain float” representation from Google™, which affords more bits for the exponent at the expense of fewer bits available for the mantissa. Signalling of MUI 1131a and SIGMA1 1132a may be conditional on update flag UF1 1130a. Likewise, update flag UF1 1130b may condition signalling of MUI 113 lb and SIGMA1 1132b and update flag UF2 1133a may condition signalling of MU2 1134a and SIGMA2 1136a and update flag UF2 1133b may condition signalling of MU2 1134b and SIGMA2 1136b. An alternative to the explicit flags UF1 1130a, 1130b and UF2 1133a, 1133b is to periodically update the mean (mu) and standard deviation (sigma) values based on a POC modulo value. In other words, an update flag may be encoded to (or decoded from) a FCM PPS (FCM IPPS or FCM DPPS) of the bitstream, the update flag indicating whether refinement parameters (mean and sigma) are to be updated. Update periodicity in the fused and restored domains may differ and may be set to correspond to the periodicity of coding intra frames (I slices) in the bitstream 121, known as the ‘intra period’ of the GOP structure used in the inner codec.[000110] In an arrangement of the source device 110 and the destination device 140 the fused-domain refinement parameters 564 and restored-domain refinement parameters 506 are signalled only in FCM_IPPS 10140 and FCM_DPPS 10150 having a POC divisible by a fused-domain periodicity fused_domain_update_period (signalled in the FCM_SPS 10130) and a restored-domain periodicity restored_domain_update_period (signalled in theFCM_SPS 10130) with a remainder of zero, known as a ‘periodic update’ of the refinement parameters. For example, with a refinement period of 64, opportunity to update the refinement parameters is available for pictures with POC of 0, 64, 128, 192, and so on. When periodic update of the refinement parameters is performed, an FCM_IPPS 10140 with a POC of zero is required in the bitstream 121 so that the first pictures up to the refinement periods for fused-and restored-domains are available. The fused- and restored-domain parameters are only updated with an FCM_IPPS 10140 or FCM_DPPS 10150 with POC divisible by the fused- or restored-domain update period. In other words, it is not mandatory to update the refinement parameters at each opportunity.[000111] In an arrangement of the source device 110 and the destination device 140, a fused-domain refinement period update flag and a restored-domain refinement period update flag arecoded in the FCM_IPPS 10140 and the FCM_DPPS 10150, each providing an opportunity to update the refinement period at any POC value. When updating the refinement period, the modulo remainder is relative to the POC at which the update occurred. For example, if the FCM IPPS or FCM DPPS at POC 10 indicates a refinement period of 32, then fused-domain and restored-domain refinement parameters are able to be updated from POC 10, 42, 74, 106, and so on, in addition to a mandatory parameter establishment at POC 0. Separate periods may be defined for the fused- and restored-domains or a single period may apply to both domains.[000112] Fig. 18 shows a method 1800 for performing a first portion of a CNN, prefiltering tensors, compressing tensors using the selected feature reduction topology, and encoding resulting compressed tensors using a video encoder (encoder portion of the “inner codec”) conforming to a selected video compression standard. The tensor encoder 118 (and the example implementation 500) and the method 1800 may be implemented as one or more software application programs 233 executable within the computer system 200. The tensor encoder 118 and the method 1800 may be effected by instructions 231 (see Fig. 2B) in the software 233 that are carried out within the computer system 200. The software instructions 231 may be formed as one or more code modules, each for performing one or more particular tasks. The method 1800 commences at a perform prefilter step 1805.[000113] At the step 1805 the prefilter module 114, under execution of the processor 205, performs a smoothing filter operation on a frame of the frame data 113 to produce smoothed frame data 115. The filtering performed at the step 1805 may be a 2D Gaussian filter with a small kernel size such as 3x3 and sigma value of 1.0. Alternative filtering may smooth only in the chroma channels, such as by conversion to YUV420 colour space, following by conversion back to RGB444, a format typically expected as input to the NN part 1 116.[000114] In some implementations, a tensor compressor selector 510, under execution of the processor 205, selects a set of mechanisms that may be used for compressing and decompressing intermediate tensors.[000115] Control in the processor 205 progresses from the step 1805 to a perform neural network first portion step 1810.At the step 1810, the CNN backbone 116, under execution of the processor 205, performs the first portion of a neural network using filtered frame data 115 from the prefilter module 114 as input, outputting the tensors 117. The step 1810 generates or produces the tensors 117, eachof the tensors containing at least one feature map. Control in the processor 205 progresses from the step 1810 to a select inner codec step 1820.[000116] At the step 1820, the processor 205 selects one video compression standard out of a plurality of video compression standards. AVC, HEVC, and VVC may be options for selection at step 1820 and the video compression standard selected may be dependent on considerations such as the capabilities of the source device 110 and the destination device 140. A capabilities negotiation may take place between the source device 110 and the destination device 140 whereby a selection is made such that the same compression standard is used in each device, prioritising VVC over HEVC and HEVC over AVC. Selection at step 1820 may be constrained based on a profile of the FCM standard, such that a smaller set of compression standards is available, such as HEVC and AVC, from which one is selected based on the aforementioned capabilities negotiation step. Rather than selecting a repurposed video codec for compressing features, specific FCM profiles may select a customised approach such as compressing quantized values of features using deepCABAC, with or without prediction of values within a feature map or from one feature map to another. Such customised approaches may be targeted applications where achieving low bitrate is a secondary consideration compared to achieving very low complexity, for example. In typical use, the selection of the step 1820 is performed one time and thus does not change during the course of encoding one bitstream. Other arrangements may select a different inner codec during coding of the bitstream 121 provided that the switch from one inner codec to a different inner codec is made prior to encoding a new group-of-pictures (GOP), i.e., prior to a new “intra random access picture” (IRAP) or “instantaneous decoder refresh” (IDR) picture. Control in the processor 205 progresses from the step 1820 to a derive restored-domain refinement parameters step 1830.[000117] At the step 1830, when the refinement is enabled (fcm_sps_refinement_bypass_flag is set to 0), a refinement parameter extraction unit 504 (Fig. 5) derives the mean (mu) and the standard deviation (sigma) over all tensors in the tensors 117, over all channels in each tensor such that a single mean and a single standard deviation value is computed for the tensors 117 corresponding to one frame. In one arrangement, the mean for all tensors in the tensors 117 is the average value of all elements of all feature maps of all tensors in the tensors 117. Also, the standard deviation for all tensors in the tensors 117 is the standard deviation for all elements of all feature maps of all tensors in the tensors 117. The mean and sigma of these tensors are known as “restored domain” refinement parameters 506 and are computed periodically, such as once every 32 or 64 frames, which may correspond to the intra period in a GOP structure used in the video encoder 542. The terminology “restored domain” is due to the dimensionality ofthe tensors 117 subject to parameter extraction matching the dimensions of the tensors 149, provided to the CNN head 150. In a case where the restored-domain mean and standard deviation are coded in the FCM IPPS 10140, the restored-domain mean is coded as MUI 1131a and the restored-domain standard deviation is coded as SIGMA1 1132a. In a case where the restored-domain mean and standard deviation are coded in the FCM_DPPS 10150, the restored-domain mean is coded as MUI 1131b and the restored-domain standard deviation is coded as SIGMA1 1132b. Control in the processor 205 progresses from the step 1830 to a a perform tensor downsampling step 1840.[000118] At the step 1840, a tensor downsampler 520 (Fig. 5) performs a temporal decimation operation on the tensors 117 to produced temporal downsampled tensors 524. When a downsampling ratio of two is selected, tensors of every alternate (e.g., feature frames with an odd picture order count) are dropped, resulting in a halving of the frame rate of feature frames for the tensors 524 compared to the frame rate of the frame data 113. Other downsampling ratios, such as three to one, four to one are possible with signalling to support any integer ratio. However, a maximum limit, such as an example maximum ratio of four, is typically needed to prevent the need for excessive tensor buffering. The downsampling ratio is signalled in the FCM_IPPS 10140 when fcm_pps_temporal_upsampling_enabled_flag is equal to one, allowing the ratio to altered during the course of one bitstream. The tensor downsampler 520 may be configured into an active state, where tensor downsampling is performed, or into a bypass state, where the tensors 117 are propagated to the tensors 524 with no alteration. Configuration of the tensor downsampler 520 into active or bypassed state may be predetermined, e g., by user configuration, or may be altered during operation of the source device 110, such as in response to available bandwidth of the communications channel 130 or the level of detected activity such as the number of bounding boxes in the task result 151. The fcm_pps_temporal_upsampling_enabled_flag in the FCM IPPS 10140 or FCM DPPS 10150 is encoded (see 18110 below) regardless of the value of the fcm_sps_temporal_upsampling_enabled_flag in the FCM SPS 10130 to avoid a parsing dependency of the FCM_IPPS 10140 on the FCM_SPS 10130. However, the fcm_pps_temporal_upsampling_enabled_flag is not permitted to be enabled (1) when the fcm_sps_temporal_upsampling_enabled_flag is set to disabled (0). Control in the processor 205 progresses from the step 1840 to a perform tensor reduction step 1850.[000119] At the step 1850, the tensor compressor 530 (or ‘feature reduction module’), under execution of the processor 205, compresses the tensors 524 to produce compressed tensor 532. The compressed tensor 532 are fewer in number than the tensors 524 and reduced indimensionality (i.e., reduced in either or both of channel count and feature map width and height). The compressed tensor 532 form a representation of the tensors 524 that may be referred to as the ‘reduced domain’ or ‘fused domain’ or ‘feature-reduced domain’ and the operation of the tensor compressor 530 may be referred to as ‘feature reduction’. The tensor compressor 530 may implement the instantiated tensor compressor 512 in the form of precompiled ‘byte code’ or machine code or other form more amenable to direct execution by the processor 205, including by an inferencing engine as part of or associated with the processor 205, such as a graphics processing unit (GPU). The step 1850 operates to produce the tensor 532 from the tensors produced at step 1840. The tensor downsampler 520 may be configured into an ‘active’ state where the instantiated tensor compressor 512 is used to produce the tensor 532 or into a ‘bypass’ state where the tensors 524 are passed along as the tensor 532 without modification. When in the active state, the tensor 532 have at least a smaller tensor count, a smaller channel count, or a smaller spatial size compared to the tensors 524. Control in the processor 205 progresses from the step 1850 to a derive fused-domain refinement parameters step 1860.[000120] At the step 1860, when the refinement is enabled (fcm_sps_refmement_bypass_flag is set to 0), a refinement parameter extraction unit 562, under execution of the processor 205, produces a mean (mu) and standard deviation (sigma) value for the fused-domain tensor, i.e., for the tensor 532. For example, an average value of all elements of all feature maps of the tensors 532 is derived as the mean for the tensors 532, and a standard deviation of all elements of all feature maps of the tensors 532 is derived as the standard deviation for the tensor 532. In a case where the fused-domain mean and the fused-domain standard deviation are coded in the FCM_IPPS 10140, the fused-domain mean is coded as MU2 1134a and the fused-domain standard deviation is coded as SIGMA2 1136a. In a case where the fused-domain mean and the fused-domain standard deviation are coded in the FCM_DPPS 10150, the fused-domain mean is coded as MU2 1134b and the fused-domain standard deviation is coded as SIGMA2 1136b. The mean and standard deviation are 16-bit values, derived over the scope of all channels of the tensor 532, forming fused-domain refinement parameters 564. The unit 562 operates periodically, such as every 32 or 64 frames or when an intra picture is coded by the video encoder 542. Control in the processor 205 progresses from the step 1860 to a quantise tensors step 1870.[000121] At the step 1870, a quantiser module 534, under execution of the processor 205, when configured into an ‘active’ (not ‘bypass’) state quantises floating-point values in the compressed tensor 532 to produce quantised compressed tensor 536. The quantisedcompressed tensor 536 have integer values and occupy a range within a sample range as defined by the operational bit depth of the video encoder 542. For example, when encoding video using 8-bit, or 10-bit samples, integer values in the interval [0, 255] or [0, 1023], respectively, are permitted. Quantisation firstly normalises a value of each element of all feature maps in the tensor 532 into a [0.0, 1.0] floating-point range, resulting in one minimum and one maximum floating-point value for the tensor 532. A tensor normalised into the [0.0, 1.0] range is then converted and rescaled into an integer sample range, such as [0, 1023] or [0, 255], the minimum and maximum floating-point values for the first normalisation form a quantisation range 526. Information used to derive the quantisation range 526 is signalled in FCM PPS (FCM IPPS or FCM DPPS) when the fused-domain and restored-domain refinement are bypassed (fcm_sps_refmement_bypass_flag is set equal to one or each of restored_feat_refine_flag and fused_feat_refine_flag are set equal to zero). The information comprises qr_min_exp, qr_min_exp_sign, qr_min_mantissa, qr_min_mantissa_sign, qr_max_exp, qr_max_exp_sign, qr_max_mantissa, qr_max_mantissa_sign, as described with reference to Appendix A. The range for the second normalisation (to integer sample range) is dependent on the bit-depth of the video encoder 542. The normalisation to integer range may operate on a minimum and a maximum value that is updated from one frame to the next such that the minimum value is either decreased based on the current tensor 532 or retains the same value as derived for the previous tensor 532 (i.e., the tensors from the previous performance of the step 1860). The maximum value of the integer range is either increased based on the current tensor 532 or retains the same value as computed for the previous tensor 532. The quantiser module 534 can be configured into a ‘bypass’ state where the tensor 532 are passed along as the tensor 536. Configuration into the ‘bypass’ state may be applied when the tensor 532 already contain integer values or when the selected video encoder 542 is capable of encoding tensor values in floating-point format. Control in the processor 205 progresses from the step 1870 to a pack tensors step 1880.[000122] The fused-domain and restored-domain refinement tools (504 and 562 and 1272 and 1282, to be described) act to derive the mean and standard deviation across all feature maps of tensors in the encoder 500. The restored-domain refinement parameters 506 are produced by the module 504 acting on the tensors 117 received from the CNN backbone 116. The fused-domain refinement parameters 564 are produced by the module 562 acting on the tensors 532 that are output from the tensor compressor 530. The parameters 506 and 564 are coded by the metadata encoder 544 into the bitstream 121 as mu and sigma values, described with reference to Fig. 11. In the decoder, the mean and standard deviation are used to perform a mean shiftand a multiplicative scaling of all feature maps in the fused domain, i.e., by the module 1272 acting on the tensor 1220 to produce the tensor 1224 and in the restored domain, i.e., by the module 1282 acting on the tensors 1280 to produce the tensors 149. When the modules 1272 and 1282 are bypassed, an alternative is to perform inverse quantisation by the module 1218, whereby the tensor 1216 is scaled according to a quantisation range, decoded from the FCM_IPPS 10140 or the FCM_DPPS 10150 to produce the tensor 1220. In other words, to avoid two adjustments, either the inverse quantiser 1218 or both the fused-domain and restored domain refinement modules 1272 and 1282 need to be bypassed on the decoder side (see Fig.12). Hence, when the fcm_sps_refmement_bypass_flag is set to zero (or at least one of the fused_feat_refine_flag and the restored_feat_refine_flag are set to one), i.e., the two stages of the refinement can be performed, fcm_sps_inverse_quantisation_bypass_flag shall be set to one (inverse quantisation is bypassed). Also, when fcm_sps_inverse_quantisation_bypass_flag is set to zero (inverse quantisation can be performed), the fcm_sps_refmement_bypass_flag shall be set to one (or both of the fused feat refine flag and the restored feat refine flag are set to zero), i.e., the two stages of the refinement is bypassed. Both of inverse quantisation and the two stages of the refinement can be bypassed. If inverse quantisation is bypassed and the two stages of refinement are also bypassed, tensor output from the decoder 1200 will always be within a range of [0.0, 1.0] for floating-point values, which although providing an operable system may not be a useful configuration in terms of coupling the decoder 1200 to the CNN head 150 due to the exercised magnitude of the tensors 149 being far from the value encountered during training of the CNN head 150.[000123] At the step 1880, a packer module 538, under execution of the processor 205, packs the feature maps of the tensor 536 into a frame, forming a packed feature frame 540. Operation of the packer module 538 generally results in placement of the two-dimensional feature maps into an arrangement as described with reference to Fig. 9B. When multiple tensors are present as the tensor 536, a frame 900b is of sufficient size to hold feature maps for all the tensors in the tensor 536. Control in the processor 205 progresses from the step 1880 to an encode FCM VPS step 1890.[000124] At the step 1890, a metadata encoder 544, under execution of the processor 205, encodes an identifier indicative of the selection of which inner codec to use from step 1820 to FCM metadata 548, such as part of the FCM_VPS 1010. The identifier may be a one-byte enumeration of various video compression standards. A bitstream must contain the FCM_VPS 1010 prior to the FCM CFD 10200 to enable parsing of the contents of theFCM CFD 10200. Control in the processor 205 progresses from the step 1890 to an encode FCM_VMPS step 1895.[000125] At the step 1895 the metadata encoder 544, under execution of the processor 205, encodes the FCM_VMPS 10120 into the FCM_RSD 10100, which forms part of the bitstream 121. Included in the FCM_VMPS 10120 are parameters used by the CNN head 150 to complete performance of the machine task. Dimensions of the frame data 113 may be included, as feature map dimensions do not correspond to the original frame data size due to resizing operations, such as performed by the module 304. Control in the processor 205 progresses from the step 1895 to an encode FCM_SPS step 18100.[000126] At the step 18100, the metadata encoder 544 encodes sequence-level parameters needed for the FCM decoder into the FCM sequence parameter set 10130 as part of the FCM_RSD 10100. The FCM_SPS 10130 includes tensor information specifying the dimensionality of the compressed tensor 532 and the placement of feature maps as packing information for the compressed tensor 532 into the feature frame 540. The tensor information includes a maximum channel count and a used channel count. The frame area for a region must be sufficient for the tensor within the region to be packed up to the maximum channel count, i.e., the maximum number of feature maps , and feature restoration corresponding to feature compression performed at step 1850, and temporal upsampling step, corresponding to downsampling performed at step 1840, are also included in the FCMSPS 1114. Control in the processor 205 progresses from the step 18100 to an encode FCM IPPS step 18110.[000127] At the step 18110, the metadata encoder 544, under execution of the processor 205, encodes the quantisation range 526 for the compressed tensor 532 into an FCM_ZPPS 10140, as additional FCM metadata 548. The quantization range 526 is only coded when the fused-domain and restored-domain refinement operation performed by modules 504 and 562, respectively, are bypassed (fcm_sps_refinement_bypass_flag is set to one). Appendix A shows an example syntax structure for information encoded at operation of the step 18110.Quantisation ranges are used in the bitstream 121 to enable inverse quantisation to the correct range by the destination device 140 when fused-domain and / or restored-domain refinement is not performed. The quantisation range signalled in the FCM IPPS 10140 is effective from the feature frame, coded in the FCM_CFD 10200, with the corresponding POC value which is the same as the POC of the FCM IPPS 10140. The FCM IPPS 10140 may explicitly encode the picture order count (POC) 1120. Parameters (syntax elements) in the FCM IPPS 10140 areeffective for one or more tensors derived the feature frames with POCs which are from that POC signalled in the FCM IPPS10140 to a POC value obtained by subtracting one from the POC of another FCM IPPS or F CM DPP S 10150, having updated parameters, following the FCM IPPS. For example, if a POC of 0 is signalled as the POC 1120 in the given FCM IPPS having predetermined parameters in the FCM RSD and a POC of n (n is an integer value greater than 0) is associated with next another FCM IPPS or next FCM DPPS, having updated parameters, following the given FCM IPPS in the FCM RSD in decoding order, then the predetermined parameters in the given FCM IPPS are effective for the one or more tensors derived from the one or more feature frame with the POC of 0 to n- 1. Control in the processor 205 progresses from the step 18110 to an encode FCM_DPPS step 18120.[000128] At the step 18120 the metadata encoder 544, under execution of the processor 205, encodes the FCM_DPPS 10150 into the FCM_RSD 10100, forming part of the bitstream 121. The POC 1120 of the feature frame to which the FCM_DPPS 10150 applies may be signalled via a delta POC mechanism (such as 1140), relative to the preceding FCM DPPS or FCM_IPPS in the FCM_RSD 10100. Control in the processor 205 progresses from the step 18120 to an encode one or more feature frames step 18130.[000129] At the step 18130, the video encoder 542 (selected at operation of the step 1801 and having a corresponding identifier encoded at step 1802), under execution of the processor 205, compresses a one or more feature frame 540 to produce a compressed one or more compressed feature frames, forming video bitstream 546. The encoder 542 is selected to embody one compression approach out of multiple compression approaches in accordance with the selection of step 1820. In the case of the use of H.266 / VVC, operation of the video encoder 542 is described with reference to Fig. 8. In the case of H.265 / HEVC or H.264 / AVC, operation involves generally subsets of the functional modules as described with reference to Fig. 8. The first packed feature frame 540 to be coded results in the SPS 10210 and the PPS 10220, followed by the IRAP picture (I slice) 10230 (referred to as an ‘instantaneous decoder refresh’ picture I H.264 / AVC) as shown in Fig. 10. When using a low-delay coding configuration a subsequent picture would be coded as inter-picture 1124. In the case of a customised compression approach, a method such as directly compressing each value in the tensor 536 using an arithmetic coder such as deepCABAC or variable-length coding such as exponential Golomb coding may be applied, with the frame packing step 1880 omitted. At the step 18130, a bitstream encapsulate 550 operates to merge the video bitstream 546 and the encoded metadata 548 into format of the bitstream 121.[000130] In some instances, a tensor compressor 510 selects a set of mechanisms that may be used for compressing and decompressing tenors at 530 and outputs a selected tensor decompressor 512 and associated metadata 520 with a weight selection 516. A tensor codec repository 514 and the tensor weight repository 518 (each part of the repository 180) may be populated accordingly. A tensor structural description 522 is output from the tensor codec repository 514 to the encoder 544 based on the selected tensor decompressor 512 and a tensor structural description 524w is output from the tensor weight repository 518 to the encoder 544 based on the selected tensor decompressor 512. The method 1800 terminates and processing progresses to the next instance of the source data 113 (e g., the next frame from the video source 112).[000131] The steps 1890 to 18120 operate to encode a structure (such as the structure 1000) to the bitstream 121. As described in relation to Figs. 10 and 11, the structure includes an order count for each of a plurality of parameter sets (10120, 10130, 10140, 10150). Each of the parameter sets in the structure encoded at steps 18110 and 18120 (FCM_IPPS 10140 and FCM DPPS 10150) corresponds to one or more feature frames containing one of feature maps of the tensor 532. The step 18130 can be considered to encode the plurality of tensors to the bitstream by encoding each feature frame to the bitstream based on the order count.[000132] Fig. 6 is a schematic block diagram 600 showing one type of multi-scale feature fusion (MSFF) module 600, which may serve as the tensor compressor 530. The MSFF module 600 takes the tensors 117 and produces a compressed tensor 532, having reduced dimensionality compared to the tensors 117 and thus resulting in a reduction in bitrate when encoded as part of a packed frame. The MSFF module 600 uses trained network layers and requires a corresponding module in the tensor decoder 146 to restore tensor dimensionality so the tensors 149 may be supplied to the CNN head 150. The MSFF module 600 takes four tensors as input and requires each one the tensors to have two-hundred and fixty-six (256) channels, so that the MSFF module 600 is compatible with the P-layers of the FasterRCNN or MaskRCNN networks. However, variants of the MSFF module 600 compatible with different numbers of layers and different channel counts are possible.[000133] The MSFF module 600 produces one tensor as output with sixty-four (64) channels and a feature map size corresponding to the P5 layer seen at the input, however variants with different channel count are also possible. Each variant of the MSFF module 600 requires different weights to be used for proper operation. Where several variants of the MSFF module 600 are able to be used in the system 100 for a given network, the packing format maybe set to a worst-case feature map count of the compressed tensors of the currently used decoder network topology, and the actual used channel count may be updated at runtime as part of the tensor information.[000134] The MSFC module 600 includes an MSFF block 610 shown in Fig. 6, which produces a single tensor from the plurality of tensors 117 using one or more downsampling filters. The MSFF block 610, under execution of the processor 205, combines each tensor of a first set of tensors (i.e., 602, 603, 604, 605), to produce a combined tensor 629. The combined tensor 629 forms a representation of the FPN layer tensors. Downsample modules 622a, 622b, and 622c operate on the tensors having larger spatial scale, i.e., P4604 at (2h, 2w, 256), and P3 603 at (4h, 4w, 256), and P2602 at (8h, 8w, 256), respectively. Modules 622a, 622b, and 622c perform downsampling to match the spatial scale of the smallest tensor, i.e., P5 605 at (h, w, 256), producing downscaled P5 tensors 623a, 623b, 623c, respectively. A concatenation module 624 performs a channel-wise concatenation of the tensors 605, 623a, 623b, and 623c to produce concatenated tensor 625, of dimensions (h, w, 1024). The concatenated tensor 625 is passed to a squeeze and excitation (SE) module 626 to produce a tensor 627. The SE module 626 sequentially performs a global pooling, a fully-connected layer with reduction in channel count, a rectified linear unit activation unit, a second fully-connected layer restoring the channel count, and a sigmoid activation function to produce a scaling tensor. The tensor 625 is scaled according to the scaling tensor to produce the output as the tensor 627. The SE block 626 is capable of being trained to adaptively alter the weighting of different channels in the tensor passed through, based on the first fully -connected layer output.[000135] The first fully-connected layer output reduces each feature map for each channel to a single value. Each single value is passed through a non-linear activation unit (ReLU) to create a conditional representation of the single value, suitable for weighting of other channels, with restoration to the full channel count performed by the second fully-connected layer. The SE block 626 is thus capable of extracting non-linear inter-channel correlation in producing the tensor 627 from the tensor 625, to a greater extent than is possible purely with convolutional (linear) layers. The tensor 627 is passed to a convolutional layer 628. The convolutional layer 628 implements one or more convolutional layers to produce the combined tensor 629, with channel count reduced to F channels, typically 256 channels (i.e., F = 256). Further reduction in the channel count is achieved by a single-scale feature compression (SSFC) module 650.[000136] The SSFC module 650 receives the tensor 629 and applies a convolution 652 to reduce the channel count from F (256) down to C’ (nominally set to 64 channels) to producetensor 653. The tensor 653 is then passed to a batch normalisation module 654 to produce batch normalised tensor 655, which is passed to a hyperbolic tangent activation layer 656 to produce the compressed tensor 532. The output of the MSFC module 600 is a one tensor per frame with a fixed feature map size and fixed channel count.[000137] Fig. 7 is a schematic block diagram showing an example picture (feature frame) structure 700 with one level of temporal interpolation added to a low-delay bi-predicted coding structure. The video encoder 542 may be configured to implement the picture structure 700, providing an alternative to the use of the temporal downsampler 520 and a temporal upsampler 1260, described with reference to Fig. 12. The picture structure 700 operates such that odd-numbered pictures, by picture order count (POC) refer to the immediately preceding and following pictures for inter prediction, via list 0 (L0) and list 1 (LI), respectively. For example, POC #1 refers to POC #0 and POC #2. This requires POC #2 to be decoded prior to POC #1, resulting in one frame of structural delay implicit in the picture structure 700. Then, each even-numbered POC includes a reference to the previous picture with an even-numbered POC, for example POC #2 refers to POC #0. To assist with coding of relatively stable scenes, past reference to pictures of POC # modulus 8 equal to 0 are also kept, up to a limit, such as the last two or three such pictures. For example, POC # 6 also refers to POC #0 and POC #14 (i.e., belonging to the subsequent GOP) refers to POC #8 (first picture of the second GOP) and POC #0 (first picture of the first GOP). Each picture with an even-numbered POC references the previous even-numbered POC and pictures with POC modulus 8 of the current and as many previous GOPs as possible up to a limit, such as the decoded picture buffer size limitation of six pictures (in HEVC) or eight pictures (in VVC), with one picture slot reserved for the current picture, resulting in a maximum of five or seven reference pictures, respectively. The GOP structure shown in Fig. 7 repeats every eight frames, so where prior references with negative numbers are shown (e.g., -8 or -16), these are to be interpreted as references to preceding GOPs. In the case of pictures with even-numbered POCs, both reference lists include the same set of preceding pictures with the same ordering.[000138] Fig. 8 is a schematic block diagram showing functional modules of a video encoder 800 which may be implemented as the video encoder 542. The video encoder 542 may be implemented using a general -purpose computer system 200, as shown in Figs. 2A and 2B, where the various functional modules may be implemented by dedicated hardware within the computer system 200, by software executable within the computer system 200 such as one or more software code modules of the software application program 233 resident on the hard disk drive 205 and being controlled in its execution by the processor 205. Alternatively, the videoencoder 542 may be implemented by a combination of dedicated hardware and software executable within the computer system 200. The video encoder 542 and the described methods may alternatively be implemented in dedicated hardware, such as one or more integrated circuits performing the functions or sub functions of the described methods. Such dedicated hardware may include graphic processing units (GPUs), digital signal processors (DSPs), application-specific standard products (ASSPs), application-specific integrated circuits (ASICs), FPGAs or one or more microprocessors and associated memories. In particular, the video encoder 542 comprises modules 810-890 which may each be implemented as one or more software code modules of the software application program 233.[000139] Although the video encoder 542 of Fig. 8 is an example of a versatile video coding (WC) video encoder, other video codecs may also be used to perform the processing stages described herein. For example, HEVC or AVC or other types of encoders may be used. The examples described generate a bitstream of encoded data. If other codecs were used, some implementations may pack data into a different format such as a frame format or the like. The video encoder 800 receives frame data 712, each frame including one or more colour channels. The frame data 712 corresponds to the feature frame 540 in packed form of feature maps of the tensor, as implemented at the step 1890. The frame data 712 may be in any chroma format and bit depth supported by the profile in use, for example 4:0:0, 4:2:0 for the “Main 10” profile of the VVC standard, at eight (8) to ten (10) bits in sample precision.[000140] As seen in Fig. 8, a block partitioner 810 firstly divides the frame data 712 into CTUs, generally square in shape and configured such that a particular size for the CTUs is used. The maximum enabled size of the CTUs may be 32x32, 64x64, or 128x128 luma samples for example, configured by a ‘sps_log2_ctu_size_minus5’ syntax element present in the ‘sequence parameter set’ (i.e., the SPS 1118). The ‘sps_log2_ctu_size_minus5’ syntax element uses values 0, 1, and 2 to correspond to CTU sizes of 32x32, 64x64, and 128x128, respectively The CTU size also provides a maximum CU size, as a CTU with no further splitting will contain one CU. Ternary splitting is prohibited when a CU has one or more dimensions of length 128 luma samples. As a consequence, processing may fully handle each 64x64 quadrant of the 128x128 before progressing from one quadrant to the next quadrant. Large CUs such as 64x128 are processed as a pair of 64x64 regions. As a result of quadrant-based processing (sometimes referred to as “virtual pipeline data units” or “VPDUs”), internal storage in the video encoder 800, and a corresponding video decoder 1204 (also referred to as a picture decoder), is only needed for 64x64 samples even when the CTU size is configured as 128x128.Feature maps are typically smaller than video frame size, due to use of intervening pooling operations or convolution operations with stride parameter greater than one. Feature maps do not require the large CU sizes provided by VVC. Use of a 32x32 CTU size provides sufficient flexibility in block structure to efficiently encode structural detail found in feature maps with a smaller amount of memory required for intermediate storage in the memory 206, i.e., storage for partially decoded data from a bitstream 1206 (Fig. 12) but prior to a frame buffer 1396 (Fig.13), to be described. The bitstream 1206 corresponds to the bitstream 143. Use of a smaller CTU size reduces the variety of CU sizes that are able to be tested in the block partitioner 810, reducing runtime. Constraining the CTU size to 32x32 indicates a reduced memory consumption in the video decoder 1204 required for decoding the bitstream 1206 (143) however the worst-case of 128x128 would need to be supported should such a bitstream be encountered. One instance of the FCM_SPS 10130 is needed prior to the first picture in the bitstream 121 and also at any subsequent entry points (or ‘random access points’) into the bitstream 121 from which decoding can commence. The block partitioner 810 further divides each CTU into one or more CBs according to a luma coding tree and a chroma coding tree. The luma channel may also be referred to as a primary colour channel. Each chroma channel may also be referred to as a secondary colour channel. The CBs have a variety of sizes, and may include both square and non-square aspect ratios. However, in the VVC standard, CBs, CUs, PUs, and TUs always have side lengths that are powers of two. Thus, a current CB, represented as 812, is output from the block partitioner 810, progressing in accordance with an iteration over the one or more blocks of the CTU, in accordance with the luma coding tree and the chroma coding tree of the CTU.[000141] The CTUs resulting from the first division of the frame data 712 may be scanned in raster scan order and may be grouped into one or more ‘slices’ . A slice may be an ‘intra’ (or ‘I’) slice. An intra slice (I slice) indicates that every CU in the slice is intra predicted.Generally, the first picture in a coded layer video sequence (CLVS) contains only I slices, and is referred to as an ‘intra picture’. The CLVS may contain periodic intra pictures, forming ‘random access points’ (i.e., intermediate frames in a video sequence upon which decoding can commence). Alternatively, a slice may be uni- or bi-predicted (‘P’ or ‘B’ slice, respectively), indicating additional availability of uni- and bi-prediction in the slice, respectively.[000142] The video encoder 542 encodes sequences of pictures (feature frames) according to a picture structure. One picture structure is Tow delay’, in which case pictures using interprediction may only reference pictures occurring previously in the sequence. Low delayenables each picture to be output as soon as the picture is decoded, in addition to being stored for possible reference by a subsequent picture. Another picture structure is ‘random access’, whereby the coding order of pictures differs from the display order. Random access allows inter-predicted pictures to reference other pictures that, although decoded, have not yet been output. A degree of picture buffering is needed so the reference pictures in the future in terms of display order are present in the decoded picture buffer, resulting in a latency of multiple frames.[000143] When a chroma format other than 4:0:0 is in use, in an I slice, the coding tree of each CTU may diverge below the 64x64 level into two separate coding trees, one for luma and another for chroma. Use of separate trees allows different block structure to exist between luma and chroma within a luma 64x64 area of a CTU. For example, a large chroma CB may be collocated with numerous smaller luma CBs and vice versa. In a P or B slice, a single coding tree of a CTU defines a block structure common to luma and chroma. The resulting blocks of the single tree may be intra predicted or inter predicted.[000144] In addition to a division of pictures into slices, pictures may also be divided into ‘tiles’. A tile is a sequence of CTUs covering a rectangular region of a picture. CTU scanning occurs in a raster-scan manner within each tile and progresses from one tile to the next. A slice can be either an integer number of tiles, or an integer number of consecutive rows of CTUs within a given tile.[000145] For each CTU, the video encoder 542 as shown in Fig. 8 operates in two stages. In the first stage (referred to as a ‘search’ stage), the block partitioner 810 tests various potential configurations of a coding tree. Each potential configuration of a coding tree has associated ‘candidate’ CBs. The first stage involves testing various candidate CBs to select CBs providing relatively high compression efficiency with relatively low distortion. The testing generally involves a Lagrangian optimisation whereby a candidate CB is evaluated based on a weighted combination of rate (i.e., coding cost) and distortion (i.e., error with respect to the input frame data 712). ‘Best’ candidate CBs (i.e., the CBs with the lowest evaluated rate / distortion) are selected for subsequent encoding into the bitstream portion 121. Included in evaluation of candidate CBs is an option to use a CB for a given area or to further split the area according to various splitting options and code each of the smaller resulting areas with further CBs, or split the areas even further. As a consequence, both the coding tree and the CBs themselves are selected in the search stage.[000146] The video encoder 542 produces a prediction block (PB), indicated by an arrow 820, for each CB, for example, CB 812. The PB 820 is a prediction of the contents of the associated CB 812. A subtracter module 822 produces a difference, indicated as 824 (or ‘residual’, referring to the difference being in the spatial domain), between the PB 820 and the CB 812. The difference 824 is a block-size difference between corresponding samples in the PB 820 and the CB 812. The difference 824 is transformed, quantised and represented as a transform block (TB), indicated by an arrow 836. The PB 820 and associated TB 836 are typically chosen from one of many possible candidate CBs, for example, based on evaluated cost or distortion.[000147] A candidate coding block (CB) is a CB resulting from one of the prediction modes available to the video encoder 542 for the associated PB and the resulting residual. When combined with the predicted PB in the video encoder 542, the TB 836 reduces the difference between a decoded CB and the original CB 812 at the expense of additional signalling in a bitstream.[000148] Each candidate coding block (CB) (i.e., prediction block (PB) in combination with a transform block (TB)), has an associated coding cost (or ‘rate’) and an associated difference (or ‘distortion’). The distortion of the CB is typically estimated as a difference in sample values, such as a sum of absolute differences (SAD), a sum of squared differences (SSD) or a Hadamard transform applied to the differences. The estimate resulting from each candidate PB may be determined by a mode selector 886 using the difference 824 to determine a prediction mode 887. The prediction mode 887 indicates the decision to use a particular prediction mode for the current CB, for example, intra-frame prediction or inter-frame prediction. Estimation of the coding costs associated with each candidate prediction mode and corresponding residual coding may be performed at significantly lower cost than entropy coding of the residual.Accordingly, a number of candidate modes may be evaluated to determine an optimum mode in a rate-distortion sense even in a real-time video encoder.[000149] Determining a preferred mode in terms of rate-distortion is typically achieved using a variation of Lagrangian optimisation. Lagrangian or similar optimisation processing can be employed to both select a preferred partitioning of a CTU into CBs (by the block partitioner 810) as well as the selection of a prediction mode from a plurality of possibilities. Through application of a Lagrangian optimisation process of the candidate modes in the mode selector module 886, the intra prediction mode with the lowest cost measurement is selected as a ‘best’mode. The lowest cost mode includes a selected secondary transform index 888, which is encoded in the bitstream 121 by an entropy encoder 838.[000150] In the second stage of operation of the video encoder 542 (referred to as a ‘coding’ stage), an iteration over the determined coding tree(s) of each CTU is performed in the video encoder 542. For a CTU using separate trees, for each 64x64 luma region of the CTU, a luma coding tree is firstly encoded followed by a chroma coding tree. Within the luma coding tree, only luma CBs are encoded and within the chroma coding tree only chroma CBs are encoded. For a CTU using a shared tree, a single tree describes the CUs (i.e., the luma CBs and the chroma CBs) according to the common block structure of the shared tree.[000151] The entropy encoder 838 supports bitwise coding of syntax elements using variablelength and fixed-length codewords, and an arithmetic coding mode for syntax elements.Portions of the bitstream such as ‘parameter sets’, for example, the SPS, the picture parameter set (PPS), and the picture header (PH) use a combination of fixed-length codewords and variable-length codewords. Slices, also referred to as contiguous portions, have a slice header that uses variable length coding followed by slice data, which uses arithmetic coding. The slice header defines parameters specific to the current slice, such as slice-level quantisation parameter offsets, and may include an instance of the PH. The slice data includes the syntax elements of each CTU in the slice. Use of variable length coding and arithmetic coding requires sequential parsing within each portion of the bitstream. The portions may be delineated with a start code to form ‘network abstraction layer units’ or ‘NAL units’.Arithmetic coding is supported using a context-adaptive binary arithmetic coding process.[000152] Arithmetically coded syntax elements consist of sequences of one or more ‘bins’. Bins, like bits, have a value of ‘ 0’ or ‘ 1 ’ . However, bins are not encoded in a bitstream portion 716 (corresponding to the bitstream 546) as discrete bits. Bins have an associated predicted (or ‘likely’ or ‘most probable’) value and an associated probability, known as a ‘context’. When the actual bin to be coded matches the predicted value, a ‘most probable symbol’ (MPS) is coded. Coding a most probable symbol is relatively inexpensive in terms of consumed bits in the bitstream portion 121, including costs that amount to less than one discrete bit. When the actual bin to be coded mismatches the likely value, a ‘least probable symbol’ (LPS) is coded. Coding a least probable symbol has a relatively high cost in terms of consumed bits. The bin coding techniques enable efficient coding of bins where the probability of a ‘0’ versus a ‘ 1’ is skewed. For a syntax element with two possible values (i.e., a ‘flag’), a singlebin is adequate. For syntax elements with many possible values, a sequence of bins is needed. The convention for converting values of a syntax element into a sequence of bins is termed ‘binarisation’ . Where the values ‘0’ and ‘ 1 ’ for a bin are equally (or near equally) likely, it is possible to omit use of a context and assume an equiprobable distribution. Bins with a context are termed ‘context-coded bins’ and bins omitting a context are termed ‘bypass-coded bins’. The binarization of a syntax element into one or more bins may result in a combination of context-coded and bypass-coded bins. Unlike directly coding one bit into the bitstream, a bypass-coded bin uses the arithmetic coding engine, which facilitates mixing context-coded and bypass-coded bins into syntax element binarisations.[000153] For a given binarization, the presence of later bins in the sequence may be determined based on the value of earlier bins in the sequence, resulting in variable-length binarisations. Additionally, each bin may be associated with more than one context, with one context selected for use in coding a specific instances of the bin. The selection of a particular context may be dependent on earlier bins in the syntax element, the decoded values of neighbouring syntax elements (i.e., those from neighbouring blocks) and the like. Each time a context-coded bin is encoded, the context that was selected for that bin (if any) is updated in a manner reflective of the new bin value. As such, the binary arithmetic coding scheme is said to be adaptive.[000154] The absence of a context for bypass-coded bins saves memory and reduces complexity, and thus bypass bins are used where the distribution of values for the particular bin is not skewed. One example of an entropy coder employing context and adaption is known in the art as CABAC (context adaptive binary arithmetic coder) and many variants of this coder have been employed in video coding.[000155] A QP controller 890 determines a quantisation parameter 892, used to establish a quantisation step size for use by a quantiser 834 and a dequantiser 840. A larger quantisation step size results in primary transform coefficients 828 being quantised into smaller values, reducing bitrate of the bitstream portion 716 at the expense of a reduction in the fidelity of inverse transform coefficients 846.[000156] The entropy encoder 838 encodes the quantisation parameter 892 and, if in use for the current CB, the LFNST index 888, using a combination of context-coded and bypass-coded bins. The quantisation parameter 892 is encoded at the beginning of each slice and changes in the quantisation parameter 892 within a slice are coded using a ‘delta QP’ syntax element. Thedelta QP syntax element is signalled at most once in each area known as a ‘quantisation group’. The quantisation parameter 892 is applied to residual coefficients of the luma CB. An adjusted quantisation parameter is applied to the residual coefficients of collocated chroma CBs. The adjusted quantisation parameter may include mapping from the luma quantisation parameter 892 according to a mapping table and a CU-level offset, selected from a list of offsets. The secondary transform index 888 is signalled when the residual associated with the transform block includes significant residual coefficients only in those coefficient positions subject to transforming into primary coefficients by application of a secondary transform.[000157] Residual coefficients of each TB associated with a CB are coded using a residual syntax. The residual syntax is designed to efficiently encode coefficients with low magnitudes, using mainly arithmetically coded bins to indicate significance of coefficients, along with lower-valued magnitudes and reserving bypass bins for higher magnitude residual coefficients. Accordingly, residual blocks comprising very low magnitude values and sparse placement of significant coefficients are efficiently compressed. Moreover, two residual coding schemes are present. A regular residual coding scheme is optimised for TBs with significant coefficients predominantly located in the upper-left corner of the TB, as is seen when a transform is applied. A transform-skip residual coding scheme is available for TBs where a transform is not performed and is able to efficiently encode residual coefficients regardless of their distribution throughout the TB.[000158] A multiplexer module 884 outputs the PB 820 from an intra-frame prediction module 864 according to the determined best intra prediction mode, selected from the tested prediction mode of each candidate CB. The candidate prediction modes need not include every conceivable prediction mode supported by the video encoder 542. Intra prediction falls into three types, first, “DC intra prediction”, which involves populating a PB with a single value representing the average of nearby reconstructed samples; second, “planar intra prediction”, which involves populating a PB with samples according to a plane, with a DC offset and a vertical and horizontal gradient being derived from nearby reconstructed neighbouring samples. The nearby reconstructed samples typically include a row of reconstructed samples above the current PB, extending to the right of the PB to an extent and a column of reconstructed samples to the left of the current PB, extending downwards beyond the PB to an extent; and, third, “angular intra prediction”, which involves populating a PB with reconstructed neighbouring samples filtered and propagated across the PB in a particular direction (or ‘angle’). In VVC,sixty-five (65) angles are supported, with rectangular blocks able to utilise additional angles, not available to square blocks, to produce a total of eighty-seven (87) angles.[000159] A fourth type of intra prediction is available to chroma PBs, whereby the PB is generated from collocated luma reconstructed samples according to a ‘cross-component linear model’ (CCLM) mode. Three different CCLM modes are available, each mode using a different model derived from the neighbouring luma and chroma samples. The derived model is used to generate a block of samples for the chroma PB from the collocated luma samples. Luma blocks may be intra predicted using a matrix multiplication of the reference samples using one matrix selected from a predefined set of matrices. This matrix intra prediction (MIP) achieves gain by using matrices trained on a large set of video data, with the matrices representing relationships between reference samples and a predicted block that are not easily captured in angular, planar, or DC intra prediction modes.[000160] The module 864 may also produce a prediction unit by copying a block from nearby the current frame using an ‘intra block copy’ (IBC) method. The location of the reference block is constrained to an area equivalent to one CTU, divided into 64x64 regions known as VPDUs, with the area covering the processed VPDUs of the current CTU and VPDUs of the previous CTU(s) within each row or CTUs and within each slice or tile up to the area limit corresponding to one 128x128 luma samples, regardless of the configured CTU size for the bitstream. This area is known as an ‘IBC virtual buffer’ and limits the IBC reference area, thus limiting the required storage. The IBC buffer is populated with reconstructed samples 854 (i.e., prior to loop filtering), and so a separate buffer to a frame buffer 872 is needed. When the CTU size is 128x128 the virtual buffer includes samples only from the CTU adjacent and to the left of the current CTU. When the CTU size is 32x32 or 64x64 the virtual buffer includes CTUs from up to the four or sixteen CTUs to the left of the current CTU. Regardless of the CTU size, access to neighbouring CTUs for obtaining samples for IBC reference blocks is constrained by boundaries such as edges of pictures, slices, or tiles. Particularly for feature maps of FPN layers having smaller dimensions, use of a CTU size such as 32x32 or 64x64 results in a reference area more aligned to cover a set of previous feature maps. Where feature map placement is ordered based on SAD, SSE or other difference metric, access to similar feature maps for IBC prediction offers coding efficient advantage.[000161] The residual for a predicted block when encoding feature map data is different to the residual seen for natural video. Natural video is typically captured by an image sensor, orscreen content, as generally seen in operating system user interfaces and the like. Feature map residuals tend to contain much detail. The level of detail in feature map residuals is amenable to transform skip coding more than predominantly low-frequency coefficients of various transforms. An intra-predicted luma coding block may be partitioned into a set of equal-sized prediction blocks, either vertically or horizontally, which each block having a minimum area of sixteen (16) luma samples.[000162] Where previously reconstructed neighbouring samples are unavailable, for example at the edge of the frame, a default half-tone value of one half the range of the samples is used. For example, for 10-bit video a value of five-hundred and twelve (512) is used. As no previous samples are available for a CB located at the top-left position of a frame, angular and planar intra-prediction modes produce the same output as the DC prediction mode (i.e. a flat plane of samples having the half-tone value as magnitude).[000163] For inter-frame prediction a prediction block 882 is produced using samples from one or two frames preceding the current frame in the coding order frames in the bitstream by a motion compensation module 880 and output as the PB 820 by the multiplexer module 884. Moreover, for inter-frame prediction, a single coding tree is typically used for both the luma channel and the chroma channels. The order of coding frames in the bitstream may differ from the order of the frames when captured or displayed. When one frame is used for prediction, the block is said to be ‘uni-predicted’ and has one associated motion vector. When two frames are used for prediction, the block is said to be ‘bi-predicted’ and has two associated motion vectors. For a P slice, each CU may be intra predicted or uni-predicted. For a B slice, each CU may be intra predicted, uni -predicted, or bi-predicted.[000164] Frames are typically coded using a ‘group of pictures’ structure, enabling a temporal hierarchy of frames. Frames may be divided into multiple slices, each of which encodes a portion of the frame. A temporal hierarchy of frames allows a frame to reference a preceding and a subsequent picture in the order of displaying the frames. The images are coded in the order necessary to ensure the dependencies for decoding each frame are met. An affine inter prediction mode is available where instead of using one or two motion vectors to select and filter reference sample blocks for a prediction unit, the prediction unit is divided into multiple smaller blocks and a motion field is produced so each smaller block has a distinct motion vector. The motion field uses the motion vectors of nearby points to the prediction unit as ‘control points’. Affine prediction allows coding of motion different to translation with lessneed to use deeply split coding trees. A bi-prediction mode available to VVC performs a geometric blend of the two reference blocks along a selected axis, with angle and offset from the centre of the block signalled. This geometric partitioning mode (“GPM”) allows larger coding units to be used along the boundary between two objects, with the geometry of the boundary coded for the coding unit as an angle and centre offset. Motion vector differences, instead of using cartesian (x, y) offset, may be coded as a direction (up / down / left / right) and a distance, with a set of power-of-two distances supported. The motion vector predictor is obtained from a neighbouring block (‘merge mode’) as if no offset is applied. The current block will share the same motion vector as the selected neighbouring block.[000165] The samples are selected according to a motion vector 878 and reference picture index. The motion vector 878 and reference picture index applies to all colour channels and thus inter prediction is described primarily in terms of operation upon Pus rather than PBs. The decomposition of each CTU into one or more inter-predicted blocks is described with a single coding tree. Inter prediction methods may vary in the number of motion parameters and their precision. Motion parameters typically comprise a reference frame index, indicating which reference frame(s) from lists of reference frames are to be used plus a spatial translation for each of the reference frames, but may include more frames, special frames, or complex affine parameters such as scaling and rotation. In addition, a pre-determined motion refinement process may be applied to generate dense motion estimates based on referenced sample blocks.[000166] Having determined and selected the PB 820 and subtracted the PB 820 from the original sample block at the subtractor 822, a residual with lowest coding cost, represented as 824, is obtained and subjected to lossy compression. The lossy compression process comprises the steps of transformation, quantisation and entropy coding. A forward primary transform module 826 applies a forward transform to the difference 824, converting the difference 824 from the spatial domain to the frequency domain, and producing primary transform coefficients represented by an arrow 828. The largest primary transform size in one dimension is either a 32-point DCT-2 or a 64-point DCT-2 transform, configured by a ‘sps_max_luma_transform_size_64_flag’ in the sequence parameter set. If the CB being encoded is larger than the largest supported primary transform size expressed as a block size (e.g., 64x64 or 32x32), the primary transform 826 is applied in a tiled manner to transform all samples of the difference 824. Where a non-square CB is used, tiling is also performed using the largest available transform size in each dimension of the CB. For example, when a maximum transform size of thirty-two (32) is used, a 64x16 CB uses two 32x16 primarytransforms arranged in a tiled manner. When a CB is larger in size than the maximum supported transform size, the CB is fdled with TBs in a tiled manner. For example, a 128x128 CB with 64-pt transform maximum size is fdled with four 64x64 TBs in a 2x2 arrangement. A 64x128 CB with a 32-pt transform maximum size is fdled with eight 32x32 TBs in a 2x4 arrangement.[000167] Application of the transform 826 results in multiple TBs for the CB. Where each application of the transform operates on a TB of the difference 824 larger than 32x32, e.g., 64x64, all resulting primary transform coefficients 828 outside of the upper-left 32x32 area of the TB are set to zero (i.e., discarded). The remaining primary transform coefficients 828 are passed to the quantiser module 834. The primary transform coefficients 828 are quantised according to the quantisation parameter 892 associated with the CB to produce primary transform coefficients 832. In addition to the quantisation parameter 892, the quantiser module 834 may also apply a ‘scaling list’ to allow non-uniform quantisation within the TB by further scaling residual coefficients according to their spatial position within the TB. The quantisation parameter 892 may differ for a luma CB versus each chroma CB. The primary transform coefficients 832 are passed to a forward secondary transform module 830 to produce transform coefficients represented by the arrow 836 by performing either a non-separable secondary transform (NSST) operation or bypassing the secondary transform. The forward primary transform 826 is typically separable, transforming a set of rows and then a set of columns of each TB. The forward primary transform module 826 uses either a type-II discrete cosine transform (DCT-2) in the horizontal and vertical directions, or bypass of the transform horizontally and vertically, or combinations of a type- VII discrete sine transform (DST-7) and a type- VIII discrete cosine transform (DCT-8) in either horizontal or vertical directions for luma TBs not exceeding 16 samples in width and height. Use of combinations of a DST-7 and DCT-8 is referred to as ‘multi transform selection set’ (MTS) in the VVC standard.[000168] The forward secondary transform of the module 830 is generally a non-separable transform, which is only applied for the residual of intra-predicted CUs and may nonetheless also be bypassed. The forward secondary transform operates either on sixteen (16) samples (arranged as the upper-left 4x4 sub-block of the primary transform coefficients 828) or fortyeight (48) samples (arranged as three 4x4 sub-blocks in the upper-left 8x8 coefficients of the primary transform coefficients 828) to produce a set of secondary transform coefficients. The set of secondary transform coefficients may be fewer in number than the set of primary transform coefficients from which they are derived. Due to application of the secondarytransform to only a set of coefficients adjacent to each other and including the DC coefficient, the secondary transform is referred to as a ‘low frequency non-separable secondary transform’ (LFNST). Such secondary transforms may be obtained through a training process and due to their non-separable nature and trained origin, exploit additional redundancy in the residual signal not able to be captured by separable transforms such as variants of DCT and DST.Moreover, when the LFNST is applied, all remaining coefficients in the TB are zero, both in the primary transform domain and the secondary transform domain.[000169] The quantisation parameter 892 is constant for a given TB and thus results in a uniform scaling for producing residual coefficients in the primary transform domain for a TB. The quantisation parameter 892 may vary periodically with a signalled ‘delta quantisation parameter’. The delta quantisation parameter (delta QP) is signalled once for CUs contained within a given area, referred to as a ‘quantisation group’. If a CU is larger than the quantisation group size, delta QP is signalled once with one of the TBs of the CU. That is, the delta QP is signalled by the entropy encoder 838 once for the first quantisation group of the CU and not signalled for any subsequent quantisation groups of the CU. A non-uniform scaling is also possible by application of a ‘quantisation matrix’, whereby the scaling factor applied for each residual coefficient is derived from a combination of the quantisation parameter 892 and the corresponding entry in a scaling matrix. The scaling matrix may have a size that is smaller than the size of the TB, and when applied to the TB a nearest neighbour approach is used to provide scaling values for each residual coefficient from a scaling matrix smaller in size than the TB size. The residual coefficients 836 are supplied to the entropy encoder 838 for encoding in the bitstream portion 716. Typically, the residual coefficients of each TB with at least one significant residual coefficient of the TU are scanned to produce an ordered list of values, according to a scan pattern The scan pattern generally scans the TB as a sequence of 4x4 ‘subblocks’, providing a regular scanning operation at the granularity of 4><4 sets of residual coefficients, with the arrangement of sub-blocks dependent on the size of the TB. The scan within each sub-block and the progression from one sub-block to the next typically follow a backward diagonal scan pattern. Additionally, the quantisation parameter 892 is encoded into the bitstream portion 716 using a delta QP syntax element, and a slice QP for the initial value in a given slice or subpicture and the secondary transform index 888 is encoded in the bitstream portion 716.[000170] As described above, the video encoder 542 needs access to a frame representation corresponding to the decoded frame representation seen in the video decoder. Thus, theresidual coefficients 836 are passed through an inverse secondary transform module 844, operating in accordance with the secondary transform index 888 to produce intermediate inverse transform coefficients, represented by an arrow 842. The intermediate inverse transform coefficients 842 are inverse quantised by the dequantiser module 840 according to the quantisation parameter 892 to produce the inverse transform coefficients, represented by an arrow 846. The dequantiser module 840 may also perform an inverse non-uniform scaling of residual coefficients using a scaling list, corresponding to the forward scaling performed in the quantiser module 834. The inverse transform coefficients 846 are passed to an inverse primary transform module 848 to produce residual samples, represented by an arrow 850, of the TU. The inverse primary transform module 848 applies DCT-2 transforms horizontally and vertically, constrained by the maximum available transform size as described with reference to the forward primary transform module 826. The types of inverse transform performed by the inverse secondary transform module 844 correspond with the types of forward transform performed by the forward secondary transform module 830. The types of inverse transform performed by the inverse primary transform module 848 correspond with the types of primary transform performed by the primary transform module 826. A summation module 852 adds the residual samples 850 and the PB 820 to produce reconstructed samples (indicated by an arrow 854) of the CU.[000171] The reconstructed samples 854 are passed to a reference sample cache 856 and an inloop filters module 868. The reference sample cache 856, typically implemented using static RAM on an ASIC to avoid costly off-chip memory access, provides minimal sample storage needed to satisfy the dependencies for generating intra-frame PBs for subsequent CUs in the frame. The minimal dependencies typically include a Tine buffer’ of samples along the bottom of a row of CTUs, for use by the next row of CTUs and column buffering the extent of which is set by the height of the CTU. The reference sample cache 856 supplies reference samples (represented by an arrow 858) to a reference sample filter 860. The sample filter 860 applies a smoothing operation to produce filtered reference samples (indicated by an arrow 862) The filtered reference samples 862 are used by the intra-frame prediction module 864 to produce an intra-predicted block of samples, represented by an arrow 866. For each candidate intra prediction mode the intra-frame prediction module 864 produces a block of samples, that is 866. The block of samples 866 is generated by the module 864 using techniques such as DC, planar or angular intra prediction. The block of samples 866 may also be produced using a matrix-multiplication approach with neighbouring reference sample as input and a matrix selected from a set of matrices by the video encoder 800, with the selected matrix signalled inthe bitstream 121 using an index to identify which matrix of the set of matrices is to be used by the video decoder.[000172] The in-loop filters module 868 applies several filtering stages to the reconstructed samples 854. The filtering stages include a ‘deblocking filter’ (DBF) which applies smoothing aligned to the CU boundaries to reduce artefacts resulting from discontinuities. Another filtering stage present in the in-loop filters module 868 is an ‘adaptive loop filter’ (ALF), which applies a Wiener-based adaptive filter to further reduce distortion. A further available filtering stage in the in-loop filters module 868 is a ‘sample adaptive offset’ (SAO) filter. The SAO filter operates by firstly classifying reconstructed samples into one or multiple categories and, according to the allocated category, applying an offset at the sample level.[000173] Filtered samples, represented by an arrow 870, are output from the in-loop filters module 868. The filtered samples 870 are stored in the frame buffer 872. The frame buffer 872 typically has the capacity to store several (e.g., up to sixteen (16)) pictures and thus is stored in the memory 206. The frame buffer 872 is not typically stored using on-chip memory due to the large memory consumption required. As such, access to the frame buffer 872 is costly in terms of memory bandwidth. The frame buffer 872 provides reference frames (represented by an arrow 874) to a motion estimation module 876 and the motion compensation module 880. The reference frames 874 are output as a reconstructed frame 718 of the encoder module 542. In the example of Fig. 8, the reconstructed frame is a result of operation of lossy VVC encoding, that is due to operation of the modules 810 to 890.[000174] The motion estimation module 876 estimates a number of ‘motion vectors’ (indicated as 878), each being a Cartesian spatial offset from the location of the present CB, referencing a block in one of the reference frames in the frame buffer 872. A filtered block of reference samples (represented as 882) is produced for each motion vector. The filtered reference samples 882 form further candidate modes available for potential selection by the mode selector 886. Moreover, for a given CU, the PU 820 may be formed using one reference block (‘uni -predicted’) or may be formed using two reference blocks (‘bi-predicted’). For the selected motion vector, the motion compensation module 880 produces the PB 820 in accordance with a filtering process supportive of sub-pixel accuracy in the motion vectors. As such, the motion estimation module 876 (which operates on many candidate motion vectors) may perform a simplified filtering process compared to that of the motion compensation module 880 (which operates on the selected candidate only) to achieve reduced computationalcomplexity. When the video encoder 542 selects inter prediction for a CU the motion vector 878 is encoded into the bitstream portion 121.[000175] Although the video encoder 542 of Fig. 8 is described with reference to versatile video coding (VVC), other video coding standards or implementations may also employ the processing stages of modules 810-890. The frame data 712 (and bitstream 716) may also be read from (or written to) memory 206, the hard disk drive 210, a CD-ROM, a Blu-ray disk™ or other computer readable storage medium. Additionally, the frame data 712 (and bitstream 716) may be received from (or transmitted to) an external source, such as a server connected to the communications network 220 or a radio-frequency receiver. The communications network 220 may provide limited bandwidth, necessitating the use of rate control in the video encoder 120 to avoid saturating the network at times when the frame data 712 is difficult to compress.[000176] The bitstream 716 may be constructed from one or more slices, representing spatial sections (collections of CTUs) of the frame data 712, produced by one or more instances of the video encoder 542, each producing the bitstream portion 716 and operating in a co-ordinated manner under control of the processor 205. The bitstream portion 716 may also contain one slice that corresponds to one region to be output as a collection of subpictures forming one picture, each being independently encodable and independently decodable with respect to any of the other slices or subpictures in the picture.[000177] Figs. 9A & 9B are schematic block diagrams showing an arrangement for holding or packing compressed feature map data from compressed tensor data 536. A feature map, corresponding to one channel of a tensor, is packed or stored in rectangular area of the frame. The feature maps of each channel are packed typically in a left-to-right manner firstly and top-to-bottom manner secondly filling the frame width in the order of incrementing channel count. Fig. 9A shows a frame 900 that contains a region 910 in which feature maps of a tensor are to be packed. For example, each of the feature maps are packed into the frame 900 so that each feature map is sequentially placed from the left edge to the right edge of the top row of the frame 900, and then sequentially placed from the left edge to the right edge of the next row of the frame 900. Frames containing feature maps packed onto the area of the frame may be referred to as “feature frames”. The size of the frame 900 may be specified in terms of width and height in units of samples, smallest CU width / height, or CTU width / height. Fig. 9B shows the feature frame 900b which corresponds to the frame 900 once feature maps, i.e., feature maps obtained from the tensor 536, are packed. Where the tensor compressor 530 wasconfigured to perform the feature reduction network topology described with reference to Fig. 6, the tensor 536 contains feature maps of the tensor corresponding to the P5 layer, such as a feature map 930.[000178] Fig. 12 is a schematic block diagram 1200 showing an example implementation of the tensor decoder 146. In the example of Fig. 12, the tensor decoder 146 includes a configurable tensor decompressor 1250 and a selectable picture decoder 1204. Fig. 19 shows a method 1900 for decoding a bitstream, including reconstructing tensors according to an indicated tensor decompressor, and performing a second portion of the CNN. In the example described, the method 1900 is configured for decoding an FCM bitstream where the inner coding is performed using one of several compression standards, each of which has a different NAL unit format, affecting signalling of metadata outside the scope of the inner coding stage.[000179] The tensor decoder 1200 (146) and the method 1900 may be implemented as one or more software application programs 233 executable within the computer system 200. The tensor decoder 146 and the method 1900 may be affected by instructions 231 (see Fig. 2B) in the software 233 that are carried out within the computer system 200. The software instructions 231 may be formed as one or more code modules, each for performing one or more particular tasks. The method 1900 begins at a decode FCM VPS step 1910.[000180] At the step 1910, a FCM metadata demultiplexor 1202 receives a bitstream 1206 (corresponding to 143) and passes the FCM_VPS 1010 received in the bitstream 143 to a metadata parser 1208, under execution of the processor 205, to decode the FCM VPS 1010. The FCM_VPS 1010, as described with reference to Appendix A is decoded at step 1910 to select which compression standard is applicable to coded feature frames present in the FCM_CFD 10200. In decoding the FCM_VPS 1010, the step 1910 includes decoding an identifier indicative (inner_codec_identifier) of an inner codec from the FCM_VPS 1010 of the bitstream. Control in the processor 205 progresses from the step 1910 to a decode FCM_VMPS step 1920.[000181] At the step 1920 the demultiplexor 1202 passes the FCM_VMPS 10120 received from the bitstream 143 and contained in the FCM_RSD 10100 to the metadata parser 1208. The FCM_VMPS 10120 is decoded to obtain vision model parameters needed by the CNN head 150 to performance the machine task and produce the task result 151. The metadata parser 1208 decodes the FCM VMPS 10120 in accordance with the syntax structure shown in Appendix A to produce vision model parameters (e.g. output_picture_width and output_picture_height in theexample of Appendix A), which are passed to the CNN head 150. The output_picture_width specifies the width of the frame data 113, and the output_picture_height specifies the height of the frame data 113. The vision model parameters produced at step 1920 correspond to the parameters 113a of Fig. 1. Vision model parameters may include items such as the dimensions of the frame data 113, needed for bounding boxes to be scaled correctly. Control in the processor 205 progresses from the step 1920 to a decode FCM SPS step 1930.[000182] At the step 1930, the metadata parser 1208 parses the FCM_SPS 10130 received from the bitstream 143 via the demultiplexor 1202 to obtain tensor information relating to dimensionality of compressed tensors and placement of feature maps as packing information for each tensor in the bitstream 143. The FCM SPS 10130 is parsed to obtain the information encoded at step 18100. The FCM_SPS 10130 is parsed at step 1930 in accordance with the syntax structure and semantics described with reference to Appendix A, for example. Control in the processor 205 progresses from the step 1930 to a decode FCM IPPS step 1940.[000183] At the step 1940, the metadata parser 1208 parses the FCM IPPS 10140 if received from the bitstream 143 via the demultiplexor 1202. The FCM IPPS 10140 is parsed to obtain information encoded at step 18110. The step 1940 operates to decode and parse information in accordance with the syntax structure and semantics described with reference to Appendix A, for example. For example, if restored-domain and fused-domain refinement operations are bypassed (fcm_sps_refinement_bypass_flag is set to one), the FCM IPPS 10140 may include information relating to quantisation ranges in elements qr min exp, qr min exp sign, qr_min_mantissa, qr_min_mantissa_sign, qr_max_exp, qr_max_exp_sign, qr_max_mantissa, qr_max_mantissa_sign) in the example of Appendix A. The information relating to quantisation ranges can be coded in floating-point format, if fused-domain and restored-domain refinement tools are not bypassed (fcm_sps_refinement_bypass_flag is set to zero), mean and sigma values are decoded for the fused-domain and restored-domain refinement operation when the corresponding update flags are active or when the determined POC matches a periodicity signalled in the FCM_SPS 10130. In a given FCM_RSD 10100, the first encountered picture parameter set is required to be an FCM_IPPS 10140 so that the POC may be determined without reference to contents of earlier FCM_RSD instances present in the bitstream 121. The metadata parser 1208 parses the POC 1120 (poc in the appendix A) from FCM IPPS 10140 and determine the POC associated with the FCM IPPS 10140 based on the POC1102. Parameters (syntax elements described in Appendix A) parsed from the FCM_IPPS are used for one or more tensors derived from the feature frames with POCs which are from the POC of theFCM IPPS to a POC value obtained by subtracting one from the POC of a next FCM PPS (a FCM IPPS or a FCM DPPS), having updated parameters, following the FCM IPPS in the decoding order. For example, if a POC of 0 is decoded from the given FCM IPPS having predetermined parameters in the FCM_RSD and a POC of n (n is an integer value greater than 0) is derived from next another FCM PPS (a FCM IPPS or a FCM DPPS), having updated parameters for the predetermined parameters, following the given FCM IPPS in the FCM RSD in the decoding order, then the predetermined parameters decoded from the given FCM IPPS are effective for one or more tensors derived from the one or more feature frame with the POC of 0 to n-1. Also, the metadata parser 1208 parses a delta POC mechanism 1122 (dpoc_idx in Appendix A) from the FCM IPPS to determine which mechanism is used to derive the POC of the FCM DPPS following the FCM IPPS in the FCM RSD. Control in the processor 205 progresses from the step 1940 to a decode FCM_DPPS step 1950.[000184] At the step 1950 the metadata parser 1208, under execution of the processor 205, decodes the FCM_DPPS 10150 received from the bitstream 143 via the demultiplexor 1202. The metadata parser 1208 derives the POC associated with the FCM DPPS 10150 in accordance with the determined mechanism at step 1940. When Mechanism 0 (indicated by dpoc_idx having a value of 0) is used, the POC associated with the FCM_DPPS 1015 is derived by decoding the syntax element specifying the POC (poc in Appendix A) from the FCM_DPPS 1015. When Mechanism 1 (indicated by dpoc_idx having a value of 1) is used, a delta value (delta_poc) is decoded from the FCM DPPS 1015, and the POC of the FCM DPPS 1015 is derived by adding the delta value to the POC of a previous FCM_DPPS or a previous FCM IPPS preceding the FCM_DPPS 1015 in the FCM RSD 10100. When Mechanism 2 (indicated by dpoc idx having a value of 1) is used, the POC of the FCM DPPS 1015 is derived by adding a predetermined constant value (e g. 1) to the POC of the previousFCM DPPS or a previous FCM IPPS preceding the FCM DPPS 1015 in theFCM_RSD 10100. Parameters (syntax elements described in Appendix A) parsed from the FCM_DPPS are used for one or more tensors derived from the feature frames with POCs which are from the POC of the FCM DPPS to a POC value obtained by subtracting one from the POC of a next FCM IPPS or a next FCM DPPS, having updated parameters, following the FCM DPPS in the decoding order. For example, if a POC of 5 is decoded from the given FCM_DPPS having predetermined parameters and a POC of n (n is an integer value greater than 5) is derived from next another FCM IPPS or a next FCM DPPS, having updated parameters for the predetermined parameters, following the given FCM DPPS in the decoding order, then the predetermined parameters decoded from the given FCM DPPS are applied forthe one or more tensors derived from the one or more feature frame with the POC of 5 to n- 1. Control in the processor 205 progresses from the step 1950 to a decode one or more feature frames step 1960.[000185] At the steps 1910 to 1950, the it demultiplexor 1202, configured to parse NAL unit headers in accordance with the selected inner codec, passes data 1207 to the metadata parser 1208. The demultiplexor 1202 is able to distinguish NAL units for the metadata parser (for example 1207 can be any of F ACM VPS, FCM_VMPS, FCM_SPS, and FCM_IPPS and FCM_DPPS). The step 1940 operates to decode a first syntax element specifying a value of a first order count (POC 1120) for an FCM IPPS parameter set. The step 1950 operates to decode a second syntax to derive a second order count (DPOC 1140) for an FCM DPP S parameter set. As noted in relation to Mechanisms 0 to 2 in relation to Fig. 11, the second syntax to derive the second order count can be (i) explicitly decoded from the FCM_DPPS (for example as a 32-bit explicit POC), (ii) explicitly decoded as an increment such as “+1” for delta POC DPC 1140), or (iii) derived as a constant delta relative to FCM_PPS, such as +1, such that a second syntax element need not be determined for every feature frame. Accordingly, the second order count can depend on the second syntax element and / or the order count of the first parameter set (FCM_IPPS). The second syntax element is inferred as “+1” relative to a previous FCM_PPS in the same container for coded feature frame data as described in relation to Mechanism 2.[000186] At the step 1960, the picture decoder 1204, under execution of the processor 205, decodes one or more coded feature frames from the FCM CFD 10200 in thebitstream 1206(143) to produce one or more decoded feature frame 1210, provided fcm_sps_inner_decoding_bypass_flag was set to disabled (i.e., zero, or do not bypass the inner decoding step). Operation of the picture decoder 1204 is described with reference to Fig. 13. Iterations of the step 1960 operate to decode a plurality of feature frames from the bitstream, each feature frame containing a feature map to be provided to the CNN head 150. Also, the picture decoder 1204 identifies a POC for each feature frame by decoding information of POC from a corresponding header for the feature frame, for example, the picture decoder 1204 decodes a feature frame from I slice 10230 and identifies the POC for the feature frame by decoding the POC from the slice header for the I slice 10230. Each feature frame is identified by the POC. Control in the processor 205 progresses from the step 1960 to an unpack tensors step 1970.[000187] At the step 1970, an unpacker 1214, under execution of the processor 205, reads feature maps from the decoded feature frame 1210 in accordance with the packing format as determined at the step 1940 in decoding the FCM VMPS 1112 and described with reference to Figs. 9A & 9B. For the tensor, a number of feature maps are decoded, the number corresponding to the number of used channels in the tensor as signalled in the tensor information. Aspects of the tensor information used for packing and unpacking are reduced-domain tensor dimensionality and placement of each reduced-domain tensor in the decoded feature frame 1210. Feature maps of the feature frame are unpacked to produce the tensor. The number of feature maps ( the number of channels) to decode the tensor is decoded from the bitstream 143 as a ‘channel count’. The unpacker 1214 outputs the tensor 1216 by unpacking the feature maps in the decoded feature frame 1210 (e.g. 900B in Fig 9B) The tensor 1216 corresponds to the tensor 536. In this embodiment, when the refinement is enabled (fcm_sps_refinement_bypass_flag is set to 0), the tensor 1216 are passed along as the tensor 1220 without the process of inverse quantiser 1218 Due to use of the video decoder 1204, the tensors 1216 contain integer elements in the range afforded by the bit depth in use in the video decoder 1204. Control in the processor 205 progresses from the step 1970 to an apply fused-domain refinement step 1980.[000188] At the step 1980, when the fused-domain refinement is enabled (fcm_sps_refmement_bypass_flag is set to zero or fused_feat_refine_flag is equal to one), a fused-domain refinement module 1272, under execution of the processor 205, applies the fused-domain refinement for the tensor 1270 based on the decoded fused-domain mu (mean) and sigma (standard deviation) values. In one arrangement, the fused-domain refinement module 1272 performs the fused-domain refinement for the tensor 1270 by the following equation (1), to produce the tensor 1224. / Xr^ l^xrf\Xf = - - - - X <T + / Z (1)\ °xT{ / In above equation, ^-denotes elements of all feature maps in the tensor 1270.represents the decoded fused-domain mu (mean) and the fused-domain sigma (standard deviation), respectively. - denotes elements of all feature maps in the refined tensor 1224. The value of n.% and the value of o$rfare obtained by decoding the value 1131a and the value 1132a at step 1940. Or, the value of m and the valueof are obtained by decoding the value 1131b and the value 1132b at step 1950. Control in the processor 205 progresses from the step 1980 to a perform tensor restoration step 1990.[000189] The decoded fused-domain mu (mean) and the decoded fused-domain sigma (standard deviation) values are used for the refinement for the tensor 1270 which is derived from one or more feature frames. Specifically, if (a) the fused-domain mu (the value 1131a) and the fused-domain sigma (1132a) are decoded from the FCM_IPPS 10140, (b) a POC of 0 is decoded from the FCM_IPPS 10140, (c) a POC of n (n is an integer value greater than 0) is derived from the FCM_DPPS 10150 following the FCM_IPPS10140 in the decoding order, and (d) updated fused-domain mu (i.e. the value 1131b) and updated fused-domain sigma (i.e. the value 1132b) are decoded from the FCM_DPPS 10150, then the fused-domain mu (the value 1131a) and the fused-domain sigma (1132a) decoded from the FCM IPPS 10140 are used for the fused-domain refinement for the tensor 1270 which is produced from the one or more feature frames with the POC of 0 to n-1. In a similar manner, if (a) the fused-domain mu (the value 1131b) and the fused-domain sigma (1132b) are decoded from the FCM_DPPS 10150 in the FCM RSD 10100, (b) a POC of 64 is derived for the FCM DPPS 10150, (c) a POC of m (m is an integer value greater than 64) is derived for a next FCM IPPS or a next FCM DPPS following the FCM_DPPS 10150 in the FCM_RSD 10100 in the decoding order, and (d) another updated fused-domain mu and another fused-domain sigma are decoded from the next FCM IPPS or the next FCM DPPS, then the fused-domain mu (the value 113 lb) and the fused-domain sigma (1132b) decoded from the FCM DPPS 10150 are used for the fused-domain refinement for the tensor 1270 which is produced from the one or more feature frames with the POC of 64 to m-1.[000190] At the step 1990 a tensor decompressor 1250 executes a predetermined network topology that converts a tensor in a reduced domain (a ‘fused tensor) into one or more tensors 1254 in a restored domain, corresponding to the dimensionality of the tensors 117 and 149. Control in the processor 205 progresses from the step 1990 to a perform tensor upsampling step 19100. At step 1990, a tensor compressor repository 1232 receives decompressor information 1230 from the metadata parser 1208 and generates decompressor network topology information 1238. Further, a tensor compressor weight repository 1236 receives weight information 1234 from the metadata parser 1208 and generates the tensor weight information 1240. Use of the information 1238 and 1240 by the decompressor 1250 is described in relation to Fig. 14.[000191] At the step 19100, a temporal upsampler 1260, under execution of the processor 205, performs a temporal upsampling (interpolation) for the tensor 1254 to produce the tensors 1280. The temporal upsampler is active when fcm_pps_temporal_upsampling_enabled_flag is set toindicate application of temporal upsampling, in accordance with the ratio indicated by temporal_upsampling_ratio_minus2. Each temporal upsampling operation takes two temporally consecutive sets of tensors from the tensors 1254, and produces one or more intermediate tensors which are interleaved with the tensors 1254 forming the tensorsl280. Due to use of the tensors from 1254 from two consecutive frames to produce an to produce intermediate (i.e., temporally interpolated) tensors, structural delay is introduced when temporal upsampling is enabled, hence temporal upsampling is suited to applications that can tolerate a degree of latency. Control in the processor 205 progresses from the step 19100 to a apply restored-domain refinement step 19110.[000192] At the step 19110 the restored-domain refinement module 1282 performs the refinement for all tensors of the tensors 1280 to output tensors 149 in accordance with the decoded restored-domain mu (mean) (e.g., the value 1134a or the value 1134b) and the restored-domain sigma (standard deviation) (e.g., the value 1136a or the value 1136b). In one arrangement, the restored-domain refinement module 1282 performs the restored-domain refinement for the tensors 1280 by the following equation (2), to produce the tensors 149. / Z^ - Sn=l / i(^)\ ~ \ ~- . X + Hy (2)\\ / / In above equation, x”rdenotes elements of all feature maps in a n-th tensor of the tensors 1280 (e.g. n is in the range of 1 to the number of tensors 1280). ^(x^) denotes the mean for the n-th tensor of the tensors 1280, and this value is calculated by the restored-domain refinement module 1282. a2(x”r) denotes the square of the standard deviation of the n-th tensor of the tensors 1280, and this value is calculated by the restored-domain refinement module 1282. ( / zx, <7X) represents the decoded restored-domain mu (mean) and the restored-domain sigma (standard deviation), respectively. xndenotes elements of all feature maps in the refined n-th tensor of the tensors 149. For example, the value of p.xand the value of axare obtained by decoding the value 1134a and the value 1136a at step 1940. Or, the value of p.xand the value of dxare obtained by decoding the value 1134b and the value 1136b at step 1950.[000193] The decoded restored-domain mu (mean) and the decoded restored-domain sigma (standard deviation) values are used for the refinement for the tensors 1280 which is based on one or more feature frames to be input to the unpacker 1214. Specifically, if (a) the restored-domain mu (the value 1134a) and the restored-domain sigma (1136a) are decoded from the FCM IPPS 10140, (b) a POC of 0 is decoded from the FCM IPPS 10140, (c) a POC of n (n isan integer value greater than 0) is derived from the FCM_DPPS 10150 following the FCM_IPPS10140 in the decoding order, and (d) an updated restored-domain mu (the value 1134b) and updated restored-domain sigma (the value 1136b) are decoded from the FCM DPPS 10150, then the restored-domain mu (the value 1134a) and the restored-domain sigma (1136a) decoded from the FCM IPPS 10140 are used for the restored-domain refinement for the tensors 1280 which is produced from the one or more feature frames with the POC of 0 to n-1. In a similar manner, if (a) the restored-domain mu (the value 1134b) and the restored-domain sigma (1136b) are decoded from the FCM_DPPS10150 in the FCM_RSD10100, (b) a POC of 64 is derived for the FCM_DPPS 10150, (c) a POC of m (m is an integer value greater than 64) is derived for a next FCM IPPS or a next FCM DPPS following the FCM DPPS 10150 in the FCM_RSD 10100 in the decoding order, and (d) another updated restored-domain mu and another restored -domain sigma are decoded from the next FCM IPPS or the next FCM DPPS, then the restored-domain mu (the value 1134b) and the restored-domain sigma (1136b) decoded from the FCM DPPS 10150 are used for the restored-domain refinement for the tensors 1280 which is produced from the one or more feature frames with the POC of 64 to m-1.[000194] The fused-domain and restored-domain refinement tools (1272 and 1282) act to adjust magnitude of values of samples in the encoder 500, affecting tensors 506 and 564, as does the inverse quantiser 1218 which affects the tensor 1220. To avoid two adjustments, either the inverse quantiser 1218 or both the fused-domain and restored domain refinement modules 1272 and 1282 need to be bypassed. Setting at least one of the two SPS flagsfem sps refinement bypass flag and fem sps inverse quantisation bypass flag to one ensures that either inverse quantisation or the two stages of refinement are performed and not both. If inverse quantisation is bypassed and the two stages of refinement are also bypassed, tensor output from the decoder 1200 will always be within a range of [0.0, 1.0] for floatingpoint values, which although providing an operable system may not be a useful configuration in terms of coupling the decoder 1200 to the CNN head 150 due to the exercised magnitude of the tensors 149 being far from the value encountered during training of the CNN head 150[000195] Control in the processor 205 progresses from the step 19110 to a perform neural network second portion step 19120.[000196] When the fused-domain and restored-domain refinement tools are disabled or bypassed, the following inverse quantisation may be performed by the inverse quantiser 1218. Then inverse quantiser 1218, under execution of the processor 205, performs inverse quantisation on the integer tensor 1216 to produce inverse quantised tensor 1220, provided fcm_sps_inverse_quantisation_bypass_flag is set to zero (i.e., do not bypass inverse quantisation). The inverse quantiser 1218 convert the integer tensor 1216 into the tensor 1220 using a quantisation range so that a value of feature maps of integer tensor 1216 is converted into a floating-point value. To perform inverse quantisation, the quantisation range is decoded from the FCM IPPS or FCM DPPS in the bitstream. The quantisation ranges indicate a maximum and minimum value (or lower and upper bound) used in the floating-point domain at the output tensor 1220. The inverse quantiser 1218 operates to decode the quantisation range and produce one or more floating-point tensor (1220) from the integer tensor produced at the unpacker 1214. The quantisation range indicates a range of values, and the tensor 1220 are produced so that a value of each element of each feature map of the tensor 1220 has a value within the quantisation range. The quantisation range may be obtained by the syntax elements (qr_min_exp, qr_min_exp_sign, qr_min_mantissa, qr_min_mantissa_sign, qr_max_exp, qr_max_exp_sign, qr_max_mantissa, qr_max_mantissa_sign, as described with reference to Appendix A) parsed from the FCM IPPS or FCM DPPS. The quantisation range derived from a given FCM PPS (FCM IPPS or FCM DPPS) is used for the inverse-quantisation for the integer tensor 1216 which is derived from the one or more feature frames with POCs which are from the POC of the given FCM_PPS( FCM IPPS or FCM DPPS) to a value of subtracting one from the POC of next FCM PPS (FCM IPPS or FCM DPPS), having parameters for deriving updated quantisation range, in the decoding order. For example, if a POC of 0 is decoded from the FCM_IPPS 10140 having parameters (syntax elements) for deriving the quantisation range and a POC of n (n is an integer value greater than 0) is derived from next FCM DPPS 10150, having updated parameters for deriving updated quantisation range, following the given FCM_IPPS 10140 in the decoding order, then the quantisation range derived from the FCM IPPS 10140 is applied for inverse-quantisation for the integer tensor 1216 which is derived from the feature frames with the POC of 0 to n-1.[000197] At the step 19120, the CNN head 150, under execution of the processor 205, performs the remaining layers of the neural network implemented by the system 100, using the tensors 149 as input and decoded from the FCM_VMPS 10120. The method 1900 terminates and the processor 205 may reinvoke the method 1900 upon receiving the next packed frame in the bitstream 143.[000198] Fig. 13 is a schematic block diagram 1300 showing functional modules of an example implementation of the video decoder 1204. The video decoder 1204 may be implemented as one or more software application programs 233 executable within the computer system 200. The video decoder 1204 may be effected by instructions 231 (see Fig. 2B) in the software 233 that are carried out within the computer system 200. The software instructions 231 may be formed as one or more code modules, each for performing one or more particular tasks.[000199] The bitstream 1206 (corresponding to 143) is input to an entropy decoder module 1320. The entropy decoder module 1320 extracts syntax elements from the bitstream 143 by decoding sequences of ‘bins’ and passes the values of the syntax elements to other modules in the video decoder 1204. The entropy decoder module 1320 uses variablelength and fixed length decoding to decode SPS, PPS or slice header using an arithmetic decoding engine to decode syntax elements of the slice data as a sequence of one or more bins. Each bin may use one or more ‘contexts’, with a context describing probability levels to be used for coding a ‘one’ and a ‘zero’ value for the bin. Where multiple contexts are available for a given bin, a ‘context modelling’ or ‘context selection’ step is performed to choose one of the available contexts for decoding the bin. The process of decoding bins forms a sequential feedback loop, where each slice may be decoded in entirety by a given entropy decoder 1020 instance.[000200] The entropy decoder module 1320 applies an arithmetic coding algorithm, for example ‘context adaptive binary arithmetic coding’ (CAB AC), to decode syntax elements from the bitstream 143. The decoded syntax elements are used to reconstruct parameters within the video decoder 1204. Parameters include residual coefficients (represented by an arrow 1324), a quantisation parameter 1374, a secondary transform index 1370, and mode selection information such as an intra prediction mode (represented by an arrow 1358). The mode selection information also includes information such as motion vectors, and the partitioning of each CTU into one or more CBs. Parameters are used to generate PBs, typically in combination with sample data from previously decoded CBs.[000201] The residual coefficients 1324 are passed to an inverse secondary transform module 1336 where either a secondary transform is applied or no operation is performed (bypass) according to a secondary transform index. The inverse secondary transform module 1336 produces reconstructed transform coefficients 1332. That is, the module 1336 produces primary transform domain coefficients from secondary transform domain coefficients.The reconstructed transform coefficients 1332 are input to a dequantiser module 1328. The dequantiser module 1328 performs inverse quantisation (or ‘scaling’) on the residual coefficients 1332, that is, in the primary transform coefficient domain, to create reconstructed intermediate transform coefficients, represented by an arrow 1340, according to the quantisation parameter 1374. The dequantiser module 1328 may also apply a scaling matrix to provide non-uniform dequantization within the TB, corresponding to operation of the dequantiser module 840. Should use of a non-uniform inverse quantisation matrix be indicated in the bitstream 1206, the video decoder 1204 reads a quantisation matrix from the bitstream 143 as a sequence of scaling factors and arranges the scaling factors into a matrix. The inverse scaling uses the quantisation matrix in combination with the quantisation parameter to create the reconstructed intermediate transform coefficients 1340.[000202] The reconstructed transform coefficients 1340 are passed to an inverse primary transform module 1344. The module 1344 transforms the coefficients 1340 from the frequency domain back to the spatial domain. The inverse primary transform module 1344 applies inverse DCT-2 transforms horizontally and vertically, constrained by the maximum available transform size as described with reference to the forward primary transform module 826. The result of operation of the module 1344 is a block of residual samples, represented by an arrow 1348. The block of residual samples 1348 is equal in size to the corresponding CB. The residual samples 1348 are supplied to a summation module 1350.[000203] At the summation module 1350, the residual samples 1348 are added to a decoded PB (represented as 1352) to produce a block of reconstructed samples, represented by an arrow 1356. The reconstructed samples 1356 are supplied to a reconstructed sample cache 1360 and an in-loop filtering module 1388. The in-loop filtering module 1388 produces reconstructed blocks of frame samples, represented as 1392. The frame samples 1392 are written to the frame buffer 1396. The frame buffer 1396 outputs feature frames 1210.[000204] The reconstructed sample cache 1360 operates similarly to the reference sample cache 856 of the video encoder 542. The reconstructed sample cache 1360 provides storage for reconstructed samples needed to intra predict subsequent CBs without the memory 206 (e g., by using the data 232 instead, which is typically on-chip memory). Reference samples, represented by an arrow 1364, are obtained from the reconstructed sample cache 1360 and supplied to a reference sample filter 1368 to produce filtered reference samples indicated by arrow 1372. The filtered reference samples 1372 are supplied to an intra-frame predictionmodule 1376. The module 1376 produces a block of intra-predicted samples, represented by an arrow 1380, in accordance with the intra prediction mode parameter 1358 signalled in the bitstream 1206 and decoded by the entropy decoder 1320. The intra prediction module 1376 supports the modes of the encoder-side module 864, including IBC and MIP. The block of samples 1380 is generated using modes such as DC, planar or angular intra prediction.[000205] When the prediction mode of a CB is indicated to use intra prediction in the bitstream 143, the intra-predicted samples 1380 form the decoded PB 1352 via a multiplexor module 1384. Intra prediction produces a prediction block (PB) of samples, which is a block in one colour component, derived using ‘neighbouring samples’ in the same colour component. The neighbouring samples are samples adjacent to the current block and by virtue of being preceding in the block decoding order have already been reconstructed. Where luma and chroma blocks are collocated, the luma and chroma blocks may use different intra prediction modes. However, the two chroma CBs share the same intra prediction mode.[000206] When the prediction mode of the CB is indicated to be inter prediction in the bitstream 1206, a motion compensation module 1334 produces a block of inter-predicted samples, represented as 1338. The block of inter-predicted samples 1338 are produced using a motion vector, decoded from the bitstream 143 by the entropy decoder 1320, and reference frame index to select and filter a block of samples 1398 from the frame buffer 1396. The block of samples 1398 is obtained from a previously decoded frame stored in the frame buffer 1396. For bi-prediction, two blocks of samples are produced and blended together to produce samples for the decoded PB 1352. The frame buffer 1396 is populated with filtered block data 1392 from the in-loop filtering module 1388. As with the in-loop filtering module 868 of the video encoder 542, the in-loop filtering module 1388 applies any of the DBF, the ALF and SAO filtering operations. Generally, the motion vector is applied to both the luma and chroma channels, although the filtering processes for sub-sample interpolation in the luma and chroma channel are different.[000207] Fig. 14 is a schematic block diagram showing an implementation 1400 of a configurable feature reconstruction module performing a decoder network topology, which may serve as the tensor decompressor 1250. A model 1405, in the example of Fig. 14 an ONNX model 1405 of the decoder network topology to be performed as the decompressor 1250 receives the tensor decompressor network topology information 1238 and the tensor weight information 1240. The structure of the tensor decompressor 1250 is selected by the ONNXmodel 1405 based on the information 1238. The weights for the tensor decompressor 1250 are selected by the ONNX model 1405 based on the information 1240. Based on the selections at the model 1405, a decompression model 1410 executes. In the example of Fig. 14, an ONNX runtime model 1410 executes to receive the compressed tensors 1224 and output the decompressed tensors 1254. As indicated in Fig. 14, resources required to run the ONNX model 1410 may be allocated from one or more resources, such as one or more of a CPU 1420, an FPGA 1424, a vector processing unit (VPU) 1428, a GPU 1432 and an interface model DirectML1436. Each of the resources 1420, 1424, 1428, 1432 and 1436 can be implemented on the module 201 or can be executed across one or more similar devices.[000208] Fig. 15 is a schematic block diagram showing a tensor decompressor 1500 using a multi-scale feature reconstmction stage, which may used in the tensor decompressor 1250. In particular, the decompressor 1500 can be implemented as the runtime model 1410 of Fig. 14. The tensor decompressor 1500 includes a single-scale feature compression (SSFC) decompressor 1510. The SSFC decompressor 1510 receives the tensor 1224 having a reduced channel count, such as 64 channels, and passes the tensor 1224 to a convolution layer 1512, which outputs a tensor 1513 having a restored channel count, such as 256 channels. The tensor 1513 is passed to a batch normalisation module 1514 to produce a tensor 1515. The tensor 1515 is passed to a PreLU module 1516 to produce a tensor 1520. The tensor decompressor 1500 includes a MSFR module 1530. The MSFR module 1530 operates to produce a plurality of tensors from the tensor 1520 produced by execution of step 19120, described with reference to Fig. 19, using one or more trained convolutional layers. Upsample modules 1532, 1534, and 1536 upsample the tensor 1520 horizontally and vertically by factors of two, four, and eight, respectively, to produce tensors 1533, 1535, and 1537. The tensor 1537 forms one (P’2, 1557) output from the MSFR module 1530 and is passed to a downsample module 1542.[000209] The downsample module 1542 downsamples the tensor 1537 by a factor of two horizontally and vertically to produce a tensor 1543 having the same dimensionality as the tensor 1535. The tensor 1543 is provided to a convolution layer 1548 which outputs a tensor 1549. A summation module 1554 adds the tensors 1535 and 1549 to produce a tensor 1555 as an output (P’3) of the MSFR module 1530.[000210] A downsample module 1540 downsamples the tensor 1535 by a factor of two horizontally and vertically to produce a tensor 1541 having the same dimensionality as thetensor 1533. The tensor 1541 is provided to a convolution layer 1546 which outputs a tensor 1547. A summation module 1552 adds the tensors 1533 and 1547 to produce a tensor 1553 as an output (P’4) of the MSFR module 1530.[000211] A downsample module 1538 downsamples the tensor 1533 by a factor of two horizontally and vertically to produce a tensor 1539 having the same dimensionality as the tensor 1520. The tensor 1539 is provided to a convolution layer 1544 which outputs a tensor 1545. A summation module 1550 adds the tensors 1520 and 1545 to produce a tensor 1551 as an output (P’ 5) of the MSFR module 1530. The tenors P’2 1557, P’3 1555, P’4 1553 and P’5 1551 form the tensors 1254 of Fig. 12.[000212] Fig. 16A is a schematic block diagram showing an example implementation 1600 of the head portion 150 of a CNN for object detection, corresponding to a portion of a “YOLOv3” network excluding the “DarkNet-53” backbone portion. The CNN head portion 150 of Fig. 16A can be used when the CNN backbone is implemented as in Fig. 3A for example.Depending on the task to be performed in the destination device 140, different networks may be substituted for the CNN head portion 150. Incoming tensors 149 are separated into the tensor of each layer (i.e., tensors 1610, 1620, and 1634). The tensor 1610 is passed to a CBL module 1612 to produce tensor 1614. The tensor 1614 is passed to a detection module 1616 and an upscaler module 1622. The detection module outputs bounding boxes 1618, in the form of a detection tensor. The bounding boxes 1618 are passed to a non-maximum suppression (NMS) module 1648.[000213] To produce bounding boxes addressing co-ordinates in the original video data 113, prior to resizing for the backbone portion of the network 116, scaling by the original video width and height is performed at the upscaler module 1622. The upscaler module 1622 receives the tensor 1614 and the tensor 1620 and produces an upscaled tensor 1624, which is passed to a CBL module 1626. The CBL module 1626 produces a tensor 1628 as output. The tensor 1628 is passed to a detection module 1630 and an upscaler module 1636. The detection module 1630 produces a detection tensor 1632, which is supplied to the NMS module 1648.[000214] The upscaler module 1636 is another instance of the module 1622. The upscaler module 1636 receives the tensor 1628 and the tensor 1634 and outputs an upscaled tensor 1638. The upscaled tensor 1638 is passed to a CBL module 1640, which outputs a tensor 1642 to a detection module 1644. The detection module 1644 produces a detection tensor 1646, which is supplied to the NMS module 1648.[000215] The CBL modules 1612, 1626, and 1640 each contain a concatenation of five CBL modules (e.g., CBL model 360 shown in Fig. 3D). The upscaler modules 1622 and 1636 are each instances of an upscaler module 1660 as shown in Fig. 16B. The module 1648 receives the tensors 1618, 1632 and 1646 and outputs the task result 151.[000216] As shown in Fig. 16B, the upscaler module 1660 accepts a tensor 1662 (for example the tensor 1614 of Fig. 16A) as an input. The tensor 1662 is passed to a CBL module 1666 (having structure of the module 360) to produce a tensor 1668. The tensor 1668 is passed to an upsampler 1670 to produce an upsampled tensor 1672. A concatenation module 1674 produces a tensor 1676 by concatenating the upsampled tensor 1672 with a second input tensor 1664 (for example the tensor 1620 input to the upscaler 1622 in Fig. 16A).[000217] The detection modules 1616, 1630, and 1644 are instances of a detection module 1680 as shown in Fig. 16C. The detection module 1680 receives a tensor 1682. The tensor 1682 is input to a CBL module 1684 having structure of the module 360. The CBL module 1684 generates a tensor 1686. The tensor 1686 is passed to a convolution module 1688, which implements a detection kernel to output a tensor 1690. In some arrangements, the detection kernel applies a 1 x 1 kernel to produce the output on feature maps at each of the three layers of the tensor. The detection kernel is 1 x 1 x (B x (5 + C) ), where B is the number of bounding boxes a particular cell can predict, typically three (3), and C is the number of classes, which may be eighty (80), resulting in a kernel size of two-hundred and fifty five (255) detection attributes (i.e. tensor 1290). The constant “5” represents four boundary box attributes (box centre x, y and size scale x, y) and one object confidence level (“objectness”). The result of a detection kernel has the same spatial dimensions as the input feature map, but the depth of the output corresponds to the detection attributes. The detection kernel is applied at each layer, typically three layers, resulting in a large number of candidate bounding boxes. A process of non-maximum suppression is applied by the NMS module 1648 to the resulting bounding boxes to discard redundant boxes, such as overlapping predictions at similar scale, resulting in a final set of bounding boxes as output for object detection.[000218] Fig. 17 is a schematic block diagram showing a head portion 1700 of a CNN. The head portion 1700 can be implemented as the CNN head portion 150 where the CNN backbone 116 is implemented as the backbone 400 for example. The head portion 1700 forms part of an overall network known as ‘Faster RCNN’ and includes a feature network (i.e., backbone portion 400), a region proposal network, and a detection network. Input to the head portion 1700 are the tensors 149, which include P2-P6 layer tensors 1710, 1712, 1714, 1716,and 1718. The P2-P5 layer tensors 1710, 1712, 1714, and 1716, correspond to the P2 to P5 outputs 477, 475, 473, and 471 of Fig. 4. The P2-P6 tensors 1710, 1712, 1714, 1716, and 1718 are input to a region proposal network (RPN) head module 1720. The P6 tensor 1718 is produced by a max pool module 1742, operating on P5 tensor 1716 to perform a 2><2 max pooling operation. The RPN head module 1720 performs a convolution on the input tensors, generating an intermediate tensor. The intermediate tensor is fed into two subsequent sibling layers, (i) one for classifications and (ii) one for bounding box, or ‘region of interest’ (ROI), regression. A resultant output is classification and bounding boxes 1722. The classification and bounding boxes 1722 are passed to an NMS module 1724. The NMS module 1724 prunes out redundant bounding boxes by removing overlapping boxes with a lower score to produce pruned bounding boxes 1726. The bounding boxes 1726 are input to a region of interest (ROI) pooler 1728. The ROI pooler 1728 uses some of the layer tensors of the tensor 149 (described further hereafter) and the bounding boxes 1726 to produce fixed-size feature maps from various input size maps using max pooling operations. In the max pooling operation a subsampling takes the maximum value in each group of input values to produce one output value in the output tensor.[000219] Input to the ROI pooler 1728 are the P2-P5 feature maps 1710, 1712, 1714, and 1716, and region of interest proposals 1726. Each proposal (ROI) from 1726 is associated with a portion of the feature maps (1710-1716) to produce a fixed-size map. The fixed-size map is of a size independent of the underlying portion of the feature map 1710-1716. One of the feature maps 1710-1716 is selected such that the resulting cropped map has sufficient detail, for example, according to the following rule: floor(4 + log2(sqrt(box_area) / 224)), where 224 is the canonical box size. The ROI pooler 1728 operates to crop incoming feature maps according to the proposals 1726 producing a tensor 1730.[000220] The tensor 1730 is fed into a fully connected (FC) neural network head 1732. The FC head 1732 performs two fully connected layers to produce class score and bounding box predictor delta tensor 1734. The class score is generally an 80-element tensor, each element corresponding to a prediction score for the corresponding object category. The bounding box prediction deltas tensor is an 80x4 = 320 element tensor, containing bounding boxes for the corresponding object categories. Final processing is performed by an output layers module 1736, receiving the tensor 1734 and performing a filtering operation to produce a filtered tensor 1738. Low-scoring (low classification) objects are removed from further consideration. A non-maximum suppression module 1740 receives the filtered tensor 1738 and removes overlapping bounding boxes by removing the overlapped box with a lowerclassification score, resulting in an inference output tensor 1742, corresponding to the tensor 151.[000221] Referring to Appendix A, the weights information may include a ‘no_weights_flag’, indicating that the decoder network topology to be used does not require any weights in order to operate.[000222] In an arrangement of the source device 110 and the destination device 140, network weights are signalled in the bitstream 121 as a delta relative to another set of network weights (the ‘base weights’) that are known to the system 100 or may be obtained via external means, such as from the tensor codec repository 180. The base weights may be indicated via reference using an identifier number stored in the bitstream 121. Signalling of network weights as a delta relative to other network weights may be accomplished using a syntax such as ‘MPEG Incremental Neural Network Representation’, under development as part of ISO / IEC 15938-17.[000223] Previous solutions used a container structure in which each FCM PPS (corresponding to VCM NAL PRD) included a separate 32-bit POC. As multiple FCM PPS instances could be included in one VCM_RDS, previous solutions incurred high overhead cost for refinement parameters due to numerous instances of POC coding due to the FCM PPS. Methods presented herein enable efficient representation of tensors in a format being amenable to compression using contemporary block-based compression standards such as VVC, HEVC, AVC or other standards. Metadata related to the fused-domain and restored-domain refinement and feature restoration is represented in a manner that alleviates excessive overhead in associating the metadata for pictures with specific coded feature frames by virtue of delta POC coding and inference mechanisms. Overhead is further amortised across a plurality of coded feature frames rather than wrapping each coded feature frame and associated metadata in separate containers. Block-based compression, although not intuitively applicable to data such as compressed feature maps or coefficients for projecting basis vectors to reconstruct feature maps, uncover additional unexpected redundancy in blocks such as by use of various transforms including trained secondary transforms. Although methods presented herein are described with reference to the ‘Faster RCNN’ and ‘Y0L0v3’ network architectures and specific divisions of these networks into ‘backbone’ and ‘head’ portions, the methods are applicable to any neural network operating on multi-dimensional tensor data and are applicable to different divisions of such networks into ‘backbone’ and ‘head’ portions.[000224] It should be noted that although the source device 110 and the destination device 140 are described with reference to the video source 112 comprising video and image data, other types of content such as audio data or textual data may also be supplied as input to neural networks applicable to such types of input and the resulting intermediate feature maps may be compressed and decompressed by the modules 118 and 146 with suitable encoder and decoder network topologies respectively.[000225] In an arrangement where the tensor compressor 530 performs a principal component analysis (PCA) method such as singular value decomposition (SVD) the resulting basis vectors tensor and coefficients tensor are coded in the feature frame 900. The tensor decompressor 1250 performs a projection (matrix multiplication) to produce the tensors 1254 from the basis vectors tensor and coefficients tensor. When PCA methods are used for the modules 530 and 1250, fused-domain refinement is not performed (i.e., is bypassed) however restored-domain refinement may be enabled.[000226] Arrangements may perform a datatype conversion on the tensor 149 to match the expected datatype of values in tensors to be supplied to the CNN head 150, see the output_datatype_idc syntax element described with reference to Appendix A for example output datatypes. Datatype conversion is performed as the final step of the tensor decoder 146, i.e., datatype conversion is performed on the result of the module 1282 if restored-domain refinement is enabled, or on the result of the module 1280 (i.e., output of the temporal upsampler module 1260) if restored-domain refinement is disabled, or, if the temporal upsampler module 1260 is also disabled or bypassed then datatype conversion is performed on the tensors 1254 from the tensor decompressor module 1250. Where a floating-point output format is shorter than the internal format used in the module 1200 prior to datatype conversion, for example output format is floatl6 or bfloatl6 and internal forma is float32, the exponent of each value in the tensor is clipped into the smaller range afforded by the output format and the mantissa of each value in the tensor is truncated, with rounding, to the smaller precision.[000227] Available datasets with ground truth for training for processes such as detection, segmentation, tracking training include the Openimage, COCO, PedTrackPP (A collection of videos from “Pexels” and “Pixabay” content websites, with additional ground-truth), and PWD datasets. The arrangements described can use training techniques known in the machine vision industries, such as adaptive learning rate methods (for example the Adam optimizer), supervised learning methods, unsupervised learning methods, regression analysis and the likeINDUSTRIAL APPLICABILITY[000228] The arrangements described are applicable to the computer and data processing industries and particularly for the digital signal processing for the encoding and decoding of signals such as video and image signals, achieving high compression efficiency.[000229] Some implementations described use of an inserted NAL unit that identifies the compression approach used for coding feature maps and consequently also the NAL unit header format used for NAL units in the bitstream, including those related to tensor quantisation, reduction and restoration operations, i.e., operations outside the scope of packed feature frame coding. Accordingly, such implementations allow several different compression standards to be indicated in an FCM bitstream for ‘inner coding’ of packed feature frames, while supporting signalling of higher-level metadata needed to decode the FCM bitstream. Allowing compression standard used to be indicated in an FCM bitstream provides improved flexibility in implementation, including ability to be back-compatible with longer-existing standards such as AVC, compatibility with more recent standards such as HEVC or VVC and further flexibility to allow use of custom or other compression standards, unspecified’ values, which will not be used in future.[000230] The foregoing describes only some embodiments of the present invention, and modifications and / or changes can be made thereto without departing from the scope and spirit of the invention, the embodiments being illustrative and not restrictive.APPENDIX AAn example FCM VMPS, FCM SPS, and FCM PPS message format and associated semantics for representing metadata associated with tensor decompressor structure, tensor packing, and complexity indication in a bitstream are as follows:FCM vision model parameter setfem vmps( payloadSize ) { Descriptor output_pi cture_wi dth u(v) output_picture_height u(v) }FCM video parameter setfcm_vps( payloadSize ) { Descriptor inner codec identifier UTF-8 inner codec max profile UTF-8 inner codec max level UTF-8 }FCM Sequence parameter setfcm_sps( payloadSize ) { Descriptor fcm sps inner decoding bypass flag u(l) fem sps inverse quantisation bypass flag u(l) fem sps feature restoration bypass flag u(l) fcm_sps_temporal_upsampling_enabled_ flag u(l) / / Global refinement enablementfem sps refinement bypass flag u(l) / / Separate fused and restored domain refinement enablementfused feat refine flag u(l) restored feat refine flag u(l) set level flag u(l) if( set_level_flag )fcm level u(8) update decoder flag u(l) if( update_decoder_flag = = 1 ) {no weights flag u(l) explicit signal decoder flag u(l) if( explicit_signal_decoder_flag ) {explicit decoder compression idc u(2) explicit decoder format idc u(4) explicit decoder format version idc ue(v) explicit decoder payload len ue(v) for( i = 0; i < explicit_decoder_payload_len; i ++ )decoder_payload[ i ] u(8) register decoder idc flag u(l) if( register_decoder_idc_flag )decoder idc ue(v) } else {ue(v) or string or registered decoder idcL U ID}}if( !no_weights_flag ) {update weights flag u(l) if( update_weights_flag ) {explicit signal weights flag u(l) if( explicit_signal_weights_flag ) {explicit weights idc ue(v) explicit weights payload len ue(v) for( i = 0; i < explicit_weights_payload_len; i++ )weights_payload[ i ] u(8)}}}set region ent flag u(l) if( set_region_cnt_flag )region ent ue(v) set region packing flag u(l) if( set_region_packing_flag ) {for( i = 0; i < region_cnt; i++ ) {top_left_rsctuaddr[ i ] u(v) top right rsetuaddrf i ] u(v) bottom_left_rsctuaddr[ i ] u(v) bottom_right_rsctuaddr[ i ] u(v) horizontal_packing_flag[ i ] u(l) }}set reduced tensor info flag u(l) if( set_reduced_tensor_info_flag )for( i = 0; i < region_cnt; i++ ) {region_tensor_cnt[ i ] ue(v) for( j = 0; j < region tensor cnt[ i ]; j++ ) { reduced_tensor_batch_size[ i ][ j ] ue(v) reduced_tensor_max_channels[ i ][ j ] ue(v) reduced_tensor_width[ i ] [ j ] ue(v) reduced_tensor_height[ i ] [ j ] ue(v) }}}update tensor channels flag u(l) if( update_tensor_channels_flag )for( i = 0; i < region_cnt; i++ )for( j = 0; j < region_tensor_cnt[ i ] ) { update_tensor_channel_flag[ i ][ j ] u(l) if( update_tensor_channel_flag )tensor channel cnt ue(v) }}}if( !fcm_sps_refinement_bypass_flag ) {fused domain update period ue(v) restored domain update period ue(v) }}FCM picture parameter set (FCM IPPS and FCM DPPS)fcm_ipps ( payloadSize ) Descriptor / * following only in fcm_ipps * / poc (1120) u(32) dpoc idx (1122) u(8) / * following in both fcm_ipps and fcm_dpps * / fcm pps temporal upsampling enabled flag u(l) if( fcm pps temporal upsampling enabled flag ) { temporal_upsampling_ratio_minus2 ue(v) terminate sequence flag u(l) if( terminate_sequence_flag )trailing picture cnt ue(v) }quantization range update flag u(l) if( quantization_range_update_flag ) {qr mantissa len ue(v) for( i = 0; i < region_cnt; i++ )for( j = 0; j < region_tensor_cnt[ i ] ) {qr min expf i ][j ] ue(v) qr_min_exp_sign[ i ][ j ] u(l)qr_min_mantissa[ i ][ j ] u(b) qr_min_mantissa_sign[ i ][j ] u(l) qr_max_exp[ i ][ j ] ue(v) qr_max_exp_sign[ i ][ j ] u(l) qr_max_mantissa[ i ][ j ] u(b) qr_max_mantissa_sign[ i ][ j ] u(l) }if (fused_feat_refine_flag){fused parameter update (1130a) u(l) if( fused_parameter_update ) {fused feat mean (1131a) float(16) fused feat std (1132a) float(16) }}if (restored_feat_refine_flag){restored parameter update (1133a) u(l) if( restored_parameter_update ) {restored feat mean (1134a) float(16) restored feat std (1136a) float(16) }}output datatype update flag u(l) if( output_datatype_update_flag ) {output datatype idc ue(v) if( output_datatype_idc == 0 ) {output datatype exponent len ue(v) output datatype mantissa len ue(v) output datatype implicit mantissa flag u(l) if( output_implicit_mantissa_flag ) { output data implicit mantissa value u(b) }}}}fcm_dpps( payloadSize ) Descriptor / * following only in fcm_dpps * / if (dpoc_idx = 0){poc u(32) }if (dpoc_idx = 1){delta_poc (1140) se(v) or u(8) } / * following in both fcm_ipps and fcm_dpps * / fcm pps temporal upsampling enabled flag u(l) if( fcm_pps_temporal_upsampling_enabled_flag ) { temporal_upsampling_ratio_minus2 ue(v) terminate sequence flag u(l) if( terminate_sequence_flag )trailing picture cnt ue(v) }quantization range update flag u(l) if( quantization_range_update_flag ) {qr mantissa len ue(v) for( i = 0; i < region_cnt; i++ )for( j = 0; j < region_tensor_cnt[ i ] ) {qr min expf i ][j ] ue(v) qr_min_exp_sign[ i ][ j ] u(l) qr_min_mantissa[ i ][ j ] u(b) qr_min_mantissa_sign[ i ][j ] u(l) qr_max_exp[ i ][ j ] ue(v) qr_max_exp_sign[ i ][ j ] u(l) qr_max_mantissa[ i ][ j ] u(b) qr_max_mantissa_sign[ i ][ j ] u(l) }if (fused_feat_refine_flag){fused parameter update (1130b) u(l) if( fused_parameter_update ) {fused feat mean (113 lb) float(16) fused feat std (1132b) float(16) }}if (restored_feat_refine_flag){restored parameter update (1133b) u(l) if( restored_parameter_update ) {restored feat mean (1134b) float(16) restored feat std (1136b) float(16) }}output datatype update flag u(l) if( output_datatype_update_flag ) {output datatype idc ue(v) if( output_datatype_idc == 0 ) {output datatype exponent len ue(v) output datatype mantissa len ue(v) output datatype implicit mantissa flag u(l) if( output_implicit_mantissa_flag ) { output data implicit mantissa value u(b) }}output scaling enable flag u(l) if( output_scaling_enable_flag ) {for( i = 0; i < restored_tensor_cnt; i++ ) {qr_second_min_exp[ i ] ue(v) qr_second_min_exp_sign[ i ] u(l) qr_second_min_mantissa[ i ] u(b) qr_second_min_mantissa_sign[ i ] u(l) qr_second_max_exp[ i ] ue(v) qr_second_max_exp_sign[ i ] u(l)qr_second_max_mantissa[ i ] u(b) qr_second_max_mantissa_sign[ i ] u(l) }}}Where u(n) refers to a fixed-length codeword n bits in length and ue(v) refers to an unsigned exponential Golomb variable-length codeword.FCM VPS semantics:inner codec identifier indicates a video compression standard to be used for the video encoder 542 and the video decoder 1204. The standard may be identified via a publicly known “four CC” or four-character code used to identify compression standards. Alternatively, an enumeration of standards may be used, or full ISO / IEC specification names may be used.inner codec max profile indicates the maximum profile of the standard identified by the inner_codec_identifier that may be used bu the video encoder 542 and the video decoder 1204. The profile may be identified by a string as used in the selected video compression standard, with an layered definition of profiles assumed such that a given profile may specify a constraint such that less-capable profiles may also be used and more-capable profiles may not be used by the modules 542 and 1204.inner codec max level indicates the maximum level of the profile of the standard identified by the inner_codec_identifier and the inner_codec_max_profile syntax elements. The level specifies a maximum luma sample rate and bitrate upper limit, and its definition is taken from the respective standard.FCM SPS and FCM PPS semantics:fcm_sps_inner_decoding_bypass_flag set equal to one indicates that the inner decoding (module 1204) is not performed and when equal to zero indicates that the inner decoding is performed.fcm_sps_inverse_quantisation_bypass_flag set equal to one indicates that the inverse quantisation (module 1218) is not performed and when equal to zero indicates that the inverse quantisation is performed.fcm_sps_feature_restoration_bypass_flag set equal to one indicates that the feature restoration (module 1250) is not performed and when equal to zero indicates that the feature restoration is performed.fcm sps temporal upsampling enabled flag set equal to one indicates that temporal interpolation or upsampling (module 1260) may be performed according to the most recently signalled temporal_upsampling_ratio, when set to zero indicates that the temporal upsampling is not performed.poc specifies the picture order count of the coded feature frame to which parameters in the present FCM IPPS of the present FCM DPPS are activated, poc is coded as a 32-bit fixed-length codeword Activated parameters remain in effect for feature frames with higher POC values until deactivated by parameters activated from another FCM PPS with a higher POC value.dpoc idx specifies the mechanism of deriving POC of FCM DPPS instances subsequent to the present FCM_IPPS in the FCM_RSD , as described with reference to Figs. 10 and 11. When dpoc idx is set to zero, the mechanism 0 is used to derive POC for the current FCM DPPS. When dpoc_idx is set to one, the mechanism 1 is used to derive POC for the currentFCM DPPS. When dpoc idx is set to two, the mechanism 2 is used to derive POC for the current FCM DPPS.delta_poc specifies a delta value for determining the POC of the current FCM DPPS relative to the POC of the previous FCM DPPS or FCM IPPS present within the FCM RSD. Delta_poc may be coded as a 2s complement value in a fixed-length codeword, such as 8 bits or as a signed exponential Golomb value (se(v)).fcm pps temporal upsampling enabled flag set equal to one indicates that temporal interpolation or upsampling (module 1260) is performed according to the most recently signalled temporal_upsampling_ratio, when set to zero indicates that the temporal upsampling is not performed. It is a requirement of bitstream conformance that whenfcm_sps_temporal_upsampling_enabled_flag is equal to zero, fcm_pps_temporal_upsampling_enabled flag is also equal to zero.Global refinement eftaWcwcw / fcm sps refinement bypass flag set equal to one indicates that the fused-domain and restored-domain refinement tool are bypassed (i.e, 504, 562, 1260, and 1282). fcm_sps_refinement_bypass_flag set equal to zero indicates that the fused-domain and restored-domain refinement tool are not bypassed.It is a requirement of bitstream conformance that:If fcm_sps_refinement_bypass_flag is set equal to zero, then fcm_sps_inverse_quantisation_bypass_flag shall be equal to one.Also, if fcm_sps_inverse_quantisation_bypass_flag is set equal to zero, then fcm_sps_refmement_bypass_flag shall be to one.Separate fused and restored domain refinement enablementfused_feat_refine_flag set equal to one indicates that the fused-domain refinement tool (i.e., 562 and 1272) are active, and when set equal to zero, fused-domain refinement tool is bypassed. restored_feat_refine_flag set equal to one indicates that the restored-domain refinement tool (i.e., 504 and 1282) are active, and when set equal to zero, restored-domain refinement tool is bypassed.It is a requirement of bitstream conformance that:If at least one of restored_feat_refme_flag and fused_feat_refine_flag is set equal to one, then fcm_sps_inverse_quantisation_bypass_flag shall be equal to one.Also, if fcm_sps_inverse_quantisation_bypass_flag is set equal to zero, then both of restored_feat_refine_flag and fused_feat_refine_flag shall be to zero.fused_domain_update_period signals the periodicity of updating the fused-domain mu and sigma values (i.e., 113 la / 113 lb and 1132a / l 132b), that is, feature frame POC modulo fused_domain_update_period equal to zero indicates an update of the mu and sigma values if an FCM IPPS or an FCM DPPS is coded with the indicated POC.restored_domain_update_period signals the periodicity of updating the restored-domain mu and sigma values (i.e., 1134a / l 134b and 1136a / l 136b), that is, feature frame POC modulofused_domain_update_period equal to zero indicates an update of the mu and sigma values if an FCM IPPS or an FCM DPPS is coded with the indicated POC.temporal_upsampling_ratio_minus2 signals the integer upsampling ratio minus 2, i.e., a value of zero signals an upsampling ratio of two, a value of one signals an upsampling ratio of three, and so on.terminate sequence flag is set to one when temporal upsampling is enabled and the source device 110 is terminating encoding of the bitstream and wishes to signal zero or more ‘trailing pictures’, i.e., pictures to be output from the temporal upsampler 1260 produced using only one previous picture and no forward reference to the next picture output from the picture decoder 1204. Each trailing picture is a duplicate of the most recently decoded picture.trailing picture cnt signals how many trailing pictures to output before termination of the bitstream 121. The values of trailing_picture_cnt must be between zero and temporal upsampling ratio minus one. For example, when the temporal upsampling ratio is set to two (temporal_upsampling_ratio_minus2 equal to zero), trailing_picture_cnt is permitted to be zero or one.set_level_flag equal to one indicates that the tensor decompression complexity indication is to be signalled in this instance of the FCM decoder info SEI message.fcm_level signals the complexity indication for any tensor decompressors to be performed in the decoder. The complexity indication provides a worst-case limit on the complexity of any instantiated tensor decompressor. It is a requirement of bitstream conformance that the tensor decompression complexity indication is signalled prior to use of the FCM decoder, e.g., signalled with the first frame of packed tensor data in the bitstream. The following table shows permitted maximum values for complexity aspects for given fcvcm_level values:fcm level MAC count Weight count 0 <5M <1M 1 <15M <5M 2 <50M <10M 3-254 (reserved for future use) (reserved for future use) 255update_decoder_flag equal to one indicates that the FCM decoder is to be updated, effective from this instance of the FCMM decoder info SEI message onwards.no_weights_flag equal to one indicates that the FCM decoder does not include any trained elements (e.g., convolutions) and therefore does not require any weights.explicit signal decoder flag equal to one indicates that the FCM decoder architecture is signalled explicitly in this instance of the FCM decoder info SEI message. When equal to zero, this instance of the FCM decoder info SEI message instead references a previously signalled FCM decoder architecture or references an FCM decoder architecture obtained by external means, e g., a predetermined architecture or an architecture available from a publicly accessible registry.explicit_decoder_compression_idc specifies the compression technique (if any) applied to the payload containing the representation of the FCM decoder architecture, in accordance with the following table:explicit decoder compression idc Compression method0 None1 DEFLATE2 LZMA3 Reserved for future useexplicit_decoder_format_idc specifies the format in which the FCM decoder architecture is encoded, with the following formats supported:explicit decoder format idc Decoder representation format 0 ONNX1 NNEX2 Pytorch3 Variable-length scheme 4-15 Reserved for future useexplicit_decoder_format_version_idc specifies the version of the format in which the FCVCM decoder architecture is encoded. For each supported format, a separate enumeration of explicit decoder format version idc values to versions Of the format is specified.explicit_decoder_payload_len specifies the length of the payload containing the FCM decoder representation in bytes, after application of Compression (if applicable).decoder_payload[ i ] specifies the ith byte of the FCM decoder representation.register decoder idc flag equal to one indicates that the FCM decoder representation signalled in this instance of the FCM decoder info SEI message is to be registered (retained) in the decoder for potential future reference.decoder_idc specifies an index value for addressing the FCM decoder representation in a registry of retained FCM decoder architectures.explicit_signal_weights_flag equal to one indicates that weights associated with the signalled FCM decoder representation are included in this instance of the FCM decoder info SEI message.explicit_weights_idc specifies an index for the weights signalled in this instance of the FCM decoder info SEI message.explicit_weights_payload_len specifies the length of the weights payload in the FCM decoder info SEI message.weights_payload[ i ] specifies the ith byte of the weights payload in the FcM decoder info SEI Message.register_weights_idc_flag equal to one specifies that the weights signalled in this instance of the FCVCM decoder info SEI message are stored in the FCM decoder for potential future reference.registered_decoder_idc specifies an index coded as a null-terminated Unicode (UTF-8) string or with a signalled length to address an FCM decoder representation that is either known to the decoder by external means or was registered with the FCM decoder in an earlier instance of the FCM decoder info SEI Message. The registered_decoder_idc may be signalled as an index, as a variable-length string, or a universally unique identifier (UUID), or other mechanism that enables the decoder network topology to be uniquely identified. Signalling of the registered_decoder_idc may also select associated weights to be used with the selected decoder network topology.set region cnt flag equal to one indicates that this instance of the FCM decoder info SEI message signals a count of regions into which the current and subsequent pictures are to be divided.region_cnt indicates a count of regions into which the current and subsequent pictures are to be divided. Each region is rectangular in shape and aligned to CTU boundaries. Each region is populated with feature Maps from one or more Tensors.set_region_packing_flag equal to one indicates that this instance of the FCM decoder info SEI message specifies a division of the current picture into one or more rectangular regions. This division remains in effect until the next instance of an FCM decoder info SEI message with set_region_packing_flag equal to one.top_left_rsctuaddr[ i ] specifies the address in raster-scan order of the CTU in the top-left position in the ith region.top_right_rsctuaddr[ i ] specifies the address in raster-scan order of the CTU in the top-right position in the ith region.bottom_left_rsctuaddr[ i ] specifies the address in raster-scan order of the CTU in the bottomleft position in the ith region.bottom_right_rsctuaddr[ i ] specifies the address in raster-scan order of the CTU in the bottom-right position in the ith region.horizontal_packing_flag[ i ] equal to one specifies when the packing or unpacking progresses from one feature maps of one tensor to feature maps of the next tensor within the ith region, packing will continue long in a left-to-right manner. When equal to zero, upon progressing from feature maps of one tensor to feature maps of the next tensor, packing of feature maps advances to the leftmost position in the current region and below the previously packed feature maps within the current region. The value one may be used where multiple tensors, each containing few (e.g., one) feature maps are to be packed, requiring a region generally larger in width than in height and generally smaller frame area for the regions.explicit cropping enabled flag equal to one specifies that the FCM decoder may crop the decoded tensors from the feature restoration module 1250 to match the required dimensions of the restored-domain tensors according to the crop_* syntax elements (the ‘cropping parameters’). When cropping_enabled_flag is equal to zero, it is a requirement of bitstream conformance that the tensors resulting from the feature restoration module 1250 match the required dimensions of the restored-domain tensors.set_reduced_tensor_info_flag equal to one specifies that the number of tensors in the defined regions and dimensions of the reduced-domain tensors is signalled in this instance of the FCM decoder info SEI message.region_tensor_cnt[ i ] specifies the number of reduced-domain tensors to be packed in the ith region.reduced_tensor_batch_size[ i ][ j ] specifies the batch size of the jth tensor in the reduced domain being packed into the ith region.reduced_tensor_max_channels[ i ] [ j ] specifies the maximum number of feature maps (i.e., channels) of the jth tensor in the reduced domain being packed in the ith region.reduced_tensor_width[ i ] [ j ] specifies the width of feature maps of the jth tensor in the reduced domain being packed in the ith region.reduced_tensor_height[ i ][ j ] specifies the height of feature maps of the jth tensor in the reduced domain being packed in the ith region.set_restored_tensor_info_flag equal to one specifies that the number of and dimensionality of tensors output from the FCM decoder, i.e., tensors in the restored domain, is specified in this instance of the FCM decoder info SEI message.restored_tensor_cnt specifies the number of restored-domain tensors output from the FCM decoder.restored_tensor_batch_size[ i ] specifies the batch size in the ith restored-domain tensor output from the FCM decoder.restored_tensor_channels[ i ] specifies the number of channels in the ith restored-domain tensor output from the FCM decoder.restored_tensor_width[ i ] specifies the width of the ith restored-domain tensor output from the FCM decoder.restored_tensor_height[ i ] specifies the height of the ith restored-domain tensor output from the FCM decoder.update_tensor_channels_flag equal to one indicates that the flags to update packed number of feature maps for each tensor in each region are to be signalled in this instance of the FCM decoder info SEI message.update_tensor_channel_flag[ i ][ j ] equal to one indicates that the packed number of feature maps for the jth tensor in the ith region is to be signalled in this instance of the FCM decoder info SEI message.tensor_channel_cnt[ i ][ j ] specifies the packed number of feature maps (i.e., channels) for the jth tensor of the ith region. When tensor_channel_cnt[ i ][ j] is not signalled and tensor_max_channels[ i ][ j] is signalled, the value is inferred to be equal to the corresponding tensor_max_channels[ i ][ j ]. When tensor_channel_cnt[ i ][ j ] is not signalled or inferred in the current instance of the FCM decoder info SEI message, the value remains in effect from the previous instance of the FCM decoder SEI message (if available), otherwise the value is inferred as 0.qr_mantissa_len specifies the number of bits to be used to encode the mantissa portion of the reduced-domain quantisation range.qr_min_exp[ i ][ j ] specifies the exponent portion of the lower bound of the reduced-domain quantisation range for the jth tensor in the reduced domain being packed in the ith region. qr_min_exp_sign[ i ][ j ] specifies the sign of the exponent portion of the lower bound of the reduced-domain quantisation range for jth tensor in the reduced domain being packed in the ith region.qr_min_mantissa[ i ][ j ] specifies the fraction portion of the lower bound of the reduced-domain quantisation range for the jth tensor in the reduced domain being packed in the ith region, with a bit width as specified by qr_mantissa_len.qr_min_mantissa_sign[ i ][ j ] specifies the sign of the fraction portion of the lower bound of the reduced-domain quantisation range for the jth tensor in the reduced domain being packed in the ith region.qr_max_exp[ i ][ j ] specifies the exponent portion of the upper bound of the reduced-domain quantisation range for the jth tensor in the reduced domain being packed in the ith region. qr_max_exp_sign[ i ][ j ] specifies the sign of the exponent portion of the upper bound of the reduced-domain quantisation range for jth tensor in the reduced domain being packed in the ith region.qr_max_mantissa[ i ][ j ] specifies the fraction portion of the upper bound of the reduced-domain quantisation range for the jth tensor in the reduced domain being packed in the ith region, with a bit width as specified by qr_mantissa_len.qr_max_mantissa_sign[ i ][ j ] specifies the sign of the fraction portion of the upper bound of the reduced-domain quantisation range for the jth tensor in the reduced domain being packed in the ith region. output datatype update flag equal to one specifies that this instance of the FCM decoder SEI message updates the datatype of the FCM decoder output tensors and / or their range.output_datatype_idc equal to zero specifies a custom data format for the FCM decoder output and other values indicating floating-point or integer data formats, such as floatl6, bfloatl6, float32, or float64.output datatype exponent len specifies the length of the exponent for a custom output data format, with a value of zero indicating an integer rather than floating-point output format. output_datatype_mantissa_len specifies the length of the mantissa for a custom output data format when the exponent length is nonzero or the number of bits for a custom output data format when the exponent length is equal to zero.output_datatype_implicit_mantissa_flag equal to one specifies that tensors output from the FCM decoder all use a mantissa value rather than using a mantissa signalled on a per-element basis for each output tensor.output_data_implicit_mantissa_value when present signals the implicit mantissa used for all elements of all output tensors from the FCM decoder.
Claims
CLAIMS1. A method of decoding a bitstream to produce tensors for use by a network portion, the method comprising:decoding one or more frames from the bitstream, wherein each frame contains feature maps and each frame is identified by an order count;determining a first order count for a first parameter set of a plurality of parameter sets contained in a structure in the bitstream, wherein the first parameter set in the structure corresponds to at least a frame having the first order count; andproducing tensors for the network portion from the plurality of frames and the determined order count of the parameter set.
2. The method according to claim 1 wherein the first order count for the first parameter set is determined by:decoding, from the first parameter set, a first syntax element specifying a value of the first order count corresponding to the first parameter set.
3. The method according to claim 2, wherein a second order count for a second parameter set of the plurality of parameter sets is determined by decoding, from the second parameter set, a second syntax element used to derive the second order count.
4. The method according to claim 2, wherein a second order count for a second parameter set of the plurality of parameter sets is determined by inferring the second order count by adding a predetermined value to the first order count.
5. The method according to claim 3, wherein the second syntax element is a delta picture order count (POC) coded as a signed syntax element.
6. The method according to claim 5, wherein the delta POC is one of an exponential Golomb coding, and as a fixed-length codeword with one bit used as sign bit.
7. The method according to claim 1, further comprising decoding refinement parameters from the bitstream, the refinement parameters coded based on the determined order count modulo a refinement period.
8. The method according to claim 1, wherein a refinement period is decoded from a dependent picture parameter set and an independent picture parameter set of the bitstream.
9. The method according to claim 1, further comprising decoding an update flag from a picture parameter set of the bitstream, the update flag indicating whether refinement parameters are to be updated.
10. The method according to claim 1, further comprising decoding information relating to a quantisation range from a picture parameter set of the plurality of parameter sets.
11. The method according to claim 10, wherein minimum and maximum of the quantisation range are coded in floating point format.
12. The method according to claim 1, further comprising decoding an identifier indicative of an inner codec from one of the plurality of parameter sets.
13. A method of encoding one or more feature frames to a bitstream, the method comprising:encoding a plurality of parameter sets into a structure of the bitstream, the plurality of parameter sets including a first parameter set comprising a first syntax element used to derive a first order count associated with the first parameter set;producing feature frames from one or more tensors; andencoding the feature frames into the bitstream, wherein the first parameter set in the structure corresponds to at least a frame having the first order count.
14. A decoder for decoding a bitstream to produce tensors for use by a network portion, the decoder configured to:decode one or more frames from the bitstream, wherein each frame contains feature maps and each frame is identified by an order count;determine a first order count for a first parameter set of a plurality of parameter sets contained in a structure in the bitstream, wherein the first parameter set in the structure corresponds to at least a frame having the first order count; andproduce tensors for the network portion from the plurality of frames and the determined order count of the parameter set.
15. A non-transitory computer-readable storage medium which stores a program for executing a method of decoding a bitstream to produce tensors for use by a network portion, the method comprising:decoding one or more frames from the bitstream, wherein each frame contains feature maps and each frame is identified by an order count;determining a first order count for a first parameter set of a plurality of parameter sets contained in a structure in the bitstream, wherein the first parameter set in the structure corresponds to at least a frame having the first order count; andproducing tensors for the network portion from the plurality of frames and the determined order count of the parameter set.
16. An encoder for encoding a plurality of tensors to a bitstream, the encoder configured to: encode a plurality of parameter sets into a structure of the bitstream, the plurality of parameter sets including a first parameter set comprising a first syntax element used to derive a first order count associated with the first parameter set;produce feature frames from one or more tensors; andencode the feature frames into the bitstream, wherein the first parameter set in the structure corresponds to at least a frame having the first order count.
17. A non-transitory computer-readable storage medium which stores a program for executing a method of encoding a plurality of tensors to a bitstream, the method comprising:encoding a plurality of parameter sets into a structure of the bitstream, the plurality of parameter sets including a first parameter set comprising a first syntax element used to derive a first order count associated with the first parameter set;producing feature frames from one or more tensors; andencoding the feature frames into the bitstream, wherein the first parameter set in the structure corresponds to at least a frame having the first order count.