WO2023167514A1 - System and method for training artificial intelligence models for in-loop filters - Google Patents
System and method for training artificial intelligence models for in-loop filters Download PDFInfo
- Publication number
- WO2023167514A1 WO2023167514A1 PCT/KR2023/002883 KR2023002883W WO2023167514A1 WO 2023167514 A1 WO2023167514 A1 WO 2023167514A1 KR 2023002883 W KR2023002883 W KR 2023002883W WO 2023167514 A1 WO2023167514 A1 WO 2023167514A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- cluster
- clusters
- block features
- predefined block
- models
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/119—Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/80—Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation
- H04N19/82—Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation involving filtering within a prediction loop
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N20/00—Machine learning
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/117—Filters, e.g. for pre-processing or post-processing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/17—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
- H04N19/176—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/42—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/80—Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation
Definitions
- the present invention generally relates to image processing.
- the present invention relates to a system and method for training Artificial Intelligence (AI) models for in-loop filters for video compression.
- AI Artificial Intelligence
- Codecs are compression technologies used to compress and decompress a signal or a data steam.
- the signal or the data stream may be associated with images, audios, videos, and the like.
- the codecs include two components i.e., an encoder to compress and a decoder to decompress the signal or the data stream.
- AI Artificial Intelligence
- model selection is performed by using a set of approaches, such as slice types-based approach, quantization parameter-based approach, and the like.
- the problem with the conventional solutions of applying the AI based In-loop filters in the codecs is the use of signalling in a bit stream and the use of multiple models to cover multiple codec parameter variations, such as slice type, quantization parameter, and the like.
- the conventional solutions are required to perform a model selection operation by using the set of approaches which increases complexity and memory requirement.
- Figure 1A illustrates a block diagram 100 depicting a process of performing an in-loop filtering by using codec parameters, as per an existing technique.
- an in-loop filter model is selected for video block-1 104 from the multiple models 106.
- the multiple models may be model 1, model 2, ⁇ model n.
- the selected in-loop filter model is then applied on encoded video block 1 104.
- a parameter-1 108 is obtained on applying the selected in loop filter model on the video block 1-104.
- the parameter-1 108 is the model index of the in-loop filter model which is used based on the error pattern and other low-lying features of the video block-1 104.
- step 110 error pattern analysis and model selection operation are performed for obtaining parameter-2 112 which specifies the model selected for further post processing of the block based on above features.
- These parameters i.e., parameter 1 108 and parameter-2 112 are then signaled to the decoder, as bit streams.
- the decoder uses the parameters signaled in the bitstream to create a decoded video block-2 114.
- the video block-2 114 utilizes the signaled parameters-1 and-2 for video codec.
- the parameter 1 108 is utilized for in loop filtering and parameter-2 112 is utilized for error pattern correction.
- the conventional approach requires the codec to signal codec parameter in the bit stream specific to the in-loop filtering.
- the use of parameter signaling in the bit stream requires codec specification changes and results in lesser gains.
- Figure 1B illustrates a block diagram 116 depicting the multiple codec parameter variations, as per an existing technique.
- the slice type 118 maybe I slice 120, B slice 122, and the like.
- the Quantization Parameter (QP) 124 may be 0, 1... up to max quantization parameter.
- Table 1 shows an exemplary scenario related to a model for each combination of a codec parameter 1 i.e., the slice type and a codec parameter 2 i.e., the QP.
- Codec parameter 1 Codec parameter 2 Model index I Slice QP 0-10 Model 1 I Slice QP 10-20 Model 2 I Slice QP 20-30 Model 3 I Slice QP 30-40 Model 4 I Slice QP 40-50 Model 5 B Slice QP 0-10 Model 6 B slice QP 10-20 Model 7 B Slice QP 20-30 Model 8 B Slice QP 30-40 Model 9 ... ... Model M
- a method for training Artificial Intelligence (AI) models for In-loop filters includes generating a training dataset by passing a video through a codec pipeline. Further, the method includes extracting one or more predefined block features from the training dataset. The method includes creating a plurality of clusters based on the extracted one or more predefined block features from the training dataset. Furthermore, the method includes dividing the plurality of clusters into a sub-plurality of clusters based on the extracted one or more predefined block features and an intra-cluster variation threshold. The method includes passing the sub-plurality of clusters separately into a plurality of AI models based on the extracted one or more predefined block features.
- AI Artificial Intelligence
- a method for performing in-loop filtering in a video codec includes obtaining one or more blocks from the video codec at an in-loop filtering stage. The one or more blocks are obtained after a reconstructed frame is constructed. The reconstructed frame is outputted or stored in a reference buffer. Each of the one or more blocks represents a dimension of one or more images in pixels. Further, the method includes extracting one or more predefined block features associated with each of the one or more blocks based on a set of inherent characteristics associated with the one or more blocks. The method includes training a plurality of AI models based on the extracted one or more predefined block features. Furthermore, the method includes performing an in-loop filtering on the one or images by using the trained plurality of AI models.
- a system for training AI models for In-loop filters comprises a memory and one or more processors communicatively coupled to the memory. Further, the one or more processors are configured to generate a training dataset by passing a video through a codec pipeline. Further, the one or more processors are configured to extract one or more predefined block features from the training dataset. The one or more processors are configured to create a plurality of clusters based on the extracted one or more predefined block features from the training dataset. Furthermore, the one or more processors are configured to divide the plurality of clusters into a sub-plurality of clusters based on the extracted one or more predefined block features and an intra-cluster variation threshold. The one or more processors are configured to pass the sub plurality of clusters separately into a plurality of AI models based on the extracted one or more predefined block features.
- a system for performing in-loop filtering in a video codec comprises a memory and one or more processors communicatively coupled to the memory. Further, the one or more processors are configured to obtain one or more blocks from the video codec at an in-loop filtering stage. The one or more blocks are obtained after a reconstructed frame is constructed. The reconstructed frame is outputted or stored in a reference buffer. Each of the one or more blocks represents a dimension of one or more images in pixels. Furthermore, the one or more processors are configured to extract one or more predefined block features associated with each of the one or more blocks based on a set of inherent characteristics associated with the one or more blocks.
- the one or more processors are configured to train a plurality of AI models based on the extracted one or more predefined block features. Additionally, the one or more processors are configured to perform an in-loop filtering on the one or images by using the trained plurality of AI models.
- Figure 1A illustrates a block diagram depicting a process of performing an in-loop filtering by using codec parameters, as per an existing technique
- Figure 1B illustrates a block diagram depicting multiple codec parameter variations, as per an existing technique
- Figure 2 illustrates a block diagram of a system for training Artificial Intelligence (AI) models for In-loop filters, according to an embodiment of the present disclosure
- Figure 3 illustrates a block diagram of modules of the system for training the AI models for In-loop filters, according to an embodiment of the present disclosure
- Figure 4 illustrates a schematic representation depicting training of the AI models for In-loop filters, according to an embodiment of the present disclosure
- Figure 5 illustrates a schematic representation depicting splitting the cluster into the sub-plurality of clusters, according to an embodiment of the present disclosure
- Figure 6 illustrates a block diagram depicting model inferencing during an encoding operation and a decoding operation, according to an embodiment of the present disclosure
- Figure 7 illustrates a block diagram depicting clustering of a training dataset based on one or more predefined block features, according to an embodiment of the present disclosure
- Figure 8 illustrates a flow diagram depicting a method for training Artificial Intelligence (AI) models for In-loop filters, according to an embodiment of the present disclosure.
- Figure 9 illustrates a flow diagram depicting a method for performing the in-loop filtering in the video codec, according to another embodiment of the present disclosure.
- any terms used herein such as but not limited to “includes,” “comprises,” “has,” “consists,” and grammatical variants thereof do NOT specify an exact limitation or restriction and certainly do NOT exclude the possible addition of one or more features or elements, unless otherwise stated, and furthermore must NOT be taken to exclude the possible removal of one or more of the listed features and elements, unless otherwise stated with the limiting language “MUST comprise” or “NEEDS TO include.”
- Figure 2 illustrates a block diagram 200 of a system 202 for training Artificial Intelligence (AI) models for In-loop filters, according to an embodiment of the present disclosure.
- the system 202 may be included within a User Equipment.
- the system 202 may be configured to operate as a standalone device or a system.
- the user equipment may be a cellular phone, tablet, drone, camera, smart watch, and the like.
- the system 202 may include one or more processors/ controllers 204, an Input/Output (I/O) interface 206, modules 208, a transceiver 210, and a memory 212.
- processors/ controllers 204 may include one or more processors/ controllers 204, an Input/Output (I/O) interface 206, modules 208, a transceiver 210, and a memory 212.
- I/O Input/Output
- the one or more processors/controllers 204 may be operatively coupled to each of the respective I/O interface 206, the modules 208, the transceiver 210 and the memory 212.
- the one or more processors/controllers 204 may include at least one data processor for executing processes in Virtual Storage Area Network.
- the one or more processors/controllers 204 may include specialized processing units such as, integrated system (bus) controllers, memory management control units, floating point units, graphics processing units, digital signal processing units, etc.
- the one or more processors/controllers 204 may include a central processing unit (CPU), a graphics processing unit (GPU), or both.
- the one or more processors/controllers 204 may be one or more general processors, digital signal processors, application-specific integrated circuits, field-programmable gate arrays, servers, networks, digital circuits, analog circuits, combinations thereof, or other now known or later developed devices for analyzing and processing data.
- the one or more processors/controllers 204 may execute a software program, such as code generated manually (i.e., programmed) to perform the desired operation.
- the one or more processors/controllers 204 may be disposed in communication with one or more input/output (I/O) devices via the respective I/O interface 206.
- the I/O interface 206 may employ communication code-division multiple access (CDMA), high-speed packet access (HSPA+), global system for mobile communications (GSM), long-term evolution (LTE), WiMax, or the like, etc.
- the system 202 may communicate with one or more I/O devices, specifically, the user devices associated with the human-to-human conversation.
- the input device may be an antenna, microphone, touch screen, touchpad, storage device, transceiver, video device/source, etc.
- the output devices may be a printer, fax machine, video display (e.g., cathode ray tube (CRT), liquid crystal display (LCD), light-emitting diode (LED), plasma, Plasma Display Panel (PDP), Organic light-emitting diode display (OLED) or the like), audio speaker, etc.
- CTR cathode ray tube
- LCD liquid crystal display
- LED light-emitting diode
- PDP Plasma Display Panel
- OLED Organic light-emitting diode display
- the one or more processors/controllers 204 may be disposed in communication with a communication network via a network interface.
- the network interface may be the I/O interface 206.
- the network interface may connect to the communication network to enable connection of the system 202 with the outside environment.
- the network interface may employ connection protocols including, without limitation, direct connect, Ethernet (e.g., twisted pair 10/100/1000 Base T), transmission control protocol/internet protocol (TCP/IP), token ring, IEEE 802.11a/b/g/n/x, etc.
- the communication network may include, without limitation, a direct interconnection, local area network (LAN), wide area network (WAN), wireless network (e.g., using Wireless Application Protocol), the Internet, etc.
- the memory 212 may be communicatively coupled to the one or more processors/controllers 204.
- the memory 212 may be configured to store data, instructions executable by the one or more processors/controllers 204.
- the memory 212 may communicate via a bus within the system 202.
- the memory 212 may include, but not limited to, a non-transitory computer-readable storage media, such as various types of volatile and non-volatile storage media including, but not limited to, random access memory, read-only memory, programmable read-only memory, electrically programmable read-only memory, electrically erasable read-only memory, flash memory, magnetic tape or disk, optical media and the like.
- the memory 212 may include a cache or random-access memory for the one or more processors/controllers 204. In alternative examples, the memory 212 is separate from the one or more processors/controllers 204 such as a cache memory of a processor, the system memory, or other memory.
- the memory 212 may be an external storage device or database for storing data.
- the memory 212 may be operable to store instructions executable by the one or more processors/controllers 204. The functions, acts or tasks illustrated in the figures or described may be performed by the programmed processor/controller for executing the instructions stored in the memory 212.
- processing strategies may include multiprocessing, multitasking, parallel processing, and the like.
- the modules 208 may be included within the memory 212.
- the memory 212 may further include a database 214 to store data.
- the modules 208 may include a set of instructions that may be executed to cause the system 202 to perform any one or more of the methods /processes disclosed herein.
- the modules 208 may be configured to perform the steps of the present disclosure using the data stored in the database 214 to train the AI models for In-loop filters as discussed herein.
- each of the modules 208 may be a hardware unit which may be outside the memory 212.
- the memory 212 may include an operating system 216 for performing one or more tasks of the system 202, as performed by a generic operating system 216 in the communications domain.
- the transceiver 210 may be configured to receive and/or transmit signals to and from the system 202.
- the database 214 may be configured to store the information as required by the modules 208 and the one or more processors/controllers 204 for training the AI models for In-loop filters.
- the I/O interface 206 may enable input and output to and from the system 202 using suitable devices such as, but not limited to, display, keyboard, mouse, touch screen, microphone, speaker and so forth.
- the present invention also contemplates a computer-readable medium that includes instructions or receives and executes instructions responsive to a propagated signal. Further, the instructions may be transmitted or received over the network via a communication port or interface or using a bus (not shown).
- the communication port or interface may be a part of the one or more processors/controllers 204 or may be a separate component.
- the communication port may be created in software or may be a physical connection in hardware.
- the communication port may be configured to connect with a network, external media, the display, or any other components in the system 202, or combinations thereof.
- the connection with the network may be a physical connection, such as a wired Ethernet connection or may be established wirelessly.
- the additional connections with other components of the system 202 may be physical or may be established wirelessly.
- the network may alternatively be directly connected to the bus.
- the architecture and standard operations of the operating system 216, the memory 212, the database 214, the one or more processors/controllers 204, the transceiver 210 and the I/O interface 206 are not discussed in detail.
- FIG. 3 illustrates a block diagram 300 of modules 208 of the system 202 for training the AI models for In-loop filters, according to an embodiment of the present disclosure.
- the illustrated embodiment of Figure 3 also depicts a sequence flow of process among the modules 208 for performing in-loop filtering in the video codec which is performed to remove codec artifacts during the compression.
- the modules 208 may include, but not limited to, a generation module 302, an extraction module 304, a creation module 306, a division module 308, an execution module 310, an obtaining module 312, a training module 314, and a splitting module 316.
- the modules 208 may be implemented by way of suitable hardware and/or software applications.
- the generation module 302 is configured to generate a training dataset by passing a video or one or more images through a codec pipeline.
- the video codec pipeline is a hardware, software or a combination thereof that compresses and decompresses a digital video.
- the codec pipeline is a fixed function hardware video codec responsible for decoding and encoding High Efficiency Video Coding (HEVC) video streams associated with the video.
- the training dataset corresponds to one or more blocks of fixed sizes associated with the video. In an exemplary embodiment of the present disclosure, each of the one or more blocks represents a dimension of the video in pixels.
- the extraction module 304 is configured to extract one or more predefined block features from the training dataset.
- the one or more predefined block features include an error band, a standard deviation, a mean of the one or more blocks, and the like.
- the data creation module 306 is configured to create a plurality of clusters based on the extracted one or more predefined block features from the training dataset. For example, the training dataset is divided to create the plurality of clusters based on the error band. In an embodiment of the present disclosure, the plurality of clusters may be unequal in size.
- the division module 308 is configured to divide the plurality of clusters into a sub-plurality of clusters based on the extracted one or more predefined block features and an intra-cluster variation threshold. In an embodiment of the present disclosure, the division module 308 determines if a cluster from the plurality of clusters have a variation within the cluster in comparison to other clusters of the plurality of clusters. The variation is determined based on an intra-cluster sparsity. If the variation is above the intra-cluster variation threshold, the division module 308 splits the cluster into the plurality of sub-clusters.
- the training module 314 is configured to obtain a set of cluster centroids for the sub-plurality of clusters upon dividing the plurality of clusters.
- Each of the set of cluster centroids is representation of a segregated cluster of the training dataset.
- the cluster of the training dataset is segregated based on the one or more predefined block features.
- the training module 314 trains a plurality of AI models for each of the sub-plurality of clusters based on the one or more predefined block features and the obtained set of cluster centroids.
- the plurality of AI models correspond to deep learning based in-loop filters.
- the execution module 310 is configured to pass the sub-plurality of clusters separately into the plurality of AI models based on the extracted one or more predefined block features. In passing the sub-plurality of clusters separately into the plurality of AI models, the execution module 310 identifies a closest cluster centroid with respect to one or more blocks associated with the video based on the extracted one or more predefined block features.
- the closest cluster centroid is a cluster centroid from the set of cluster centroids associated with the sub-plurality of clusters of the training dataset.
- each of the one or more blocks represents a dimension of the video in pixels.
- the execution module 310 selects a trained AI model for the identified closest cluster centroid from the trained plurality of AI models based on the extracted one or more predefined block features. Furthermore, the execution module 310 performs the in-loop filtering on the video by applying the selected trained AI model for the identified closest cluster centroid. In an embodiment of the present disclosure, the trained AI model is applied for the identified closest cluster centroid during an encoding operation and a decoding operation of the video.
- the execution module 310 calculates the distance between each of the one or more blocks and the set of cluster centroids. Further, the execution module 310 identifies the closest cluster centroid for each of the one or more blocks based on the calculated distance and the extracted one or more predefined block features.
- the system 202 is configured to perform the in-loop filtering in the video codec.
- base codec is Versatile Video Coding (VVC) i.e., VVC Test model (VTM) 11.0.
- VVC Versatile Video Coding
- VTM VVC Test model 11.0.
- the system 202 includes the obtaining module 312 configured to obtain the one or more blocks from the video codec at an in-loop filtering stage.
- the one or more blocks are obtained after a reconstructed frame is constructed before an AI based In loop filtering stage.
- the reconstructed frame is outputted or stored in a reference buffer.
- the reconstructed frames are received before the in-loop filtering stage of the video codec.
- each of the one or more blocks represents a dimension of one or more images in pixels.
- the one or more blocks are extracted before in-loop filtering stage.
- the extraction module 304 is configured to extract the one or more predefined block features associated with each of the one or more blocks based on a set of inherent characteristics associated with the one or more blocks.
- the set of inherent characteristics include mean of error, variance, edge strengths, and the like.
- the set of inherent characteristics are unassociated with a set of codec parameters, such as slice type, quantization parameter, and the like.
- the one or more predefined block features include an error band, a standard deviation, a mean of the one or more blocks, and the like.
- the one or more predefined block features includes more information associated with the one or more blocks in comparison to the set of codec parameters.
- the training module 314 is configured to train a plurality of AI models based on the extracted one or more predefined block features.
- the training module 314 In training the plurality of AI models based on the extracted one or more predefined block features, the training module 314 generates a training dataset by passing the one or more images through a codec pipeline before the in-loop filtering stage.
- the training dataset corresponds to the one or more blocks of fixed sizes associated with the one or more images.
- the training module 314 clusters the generated training dataset into a plurality of clusters based on the one or more predefined block features associated with the one or more images.
- the one or more predefined block features may be the error band, the standard deviation, and the like.
- the training module 314 obtains a set of cluster centroids for the plurality of clusters.
- each of the set of cluster centroids is representation of a segregated cluster of the training dataset.
- the cluster of the training dataset is segregated based on the one or more predefined block features.
- the training module 314 trains the plurality of AI models for each of the plurality of clusters based on the one or more predefined block features and the obtained set of cluster centroids.
- the plurality of AI models are trained on specific features of the plurality of clusters.
- the training of AI models is performed based on quantization error pattern or any other predefined image feature of the one or more blocks, such that AI models may be trained for the one or more blocks with specific predefined block features.
- the current invention focuses on prominent error bands i.e., error ranges with high probability, by subdividing those regions to have more models representing them. Details on training the plurality of AI models have been elaborated in subsequent paragraphs of the present description with reference to Figure 4.
- the execution module 310 is configured to perform an in-loop filtering on the one or images by using the trained plurality of AI models.
- the execution module 310 identifies a closest cluster centroid with respect to the one or more blocks based on the extracted one or more predefined block features.
- the closest cluster centroid is a cluster centroid from a set of cluster centroids associated with the plurality of clusters of the training dataset.
- the execution module 310 selects a trained AI model for the identified closest cluster centroid from the trained plurality of AI models based on the extracted one or more predefined block features.
- the execution module 310 performs in-loop filtering on the one or more images by applying the selected trained AI model for the identified closest cluster centroid.
- the selected trained AI model is applied for the identified closest cluster centroid during an encoding operation and a decoding operation of the one or more images.
- model inferencing during in-loop filter application using cluster centroids avoids the requirement for signaling any codec parameter in the bit stream to indicate a model index.
- the trained AI model is selected from the plurality of AI models based on the extracted one or more predefined block features of the one or more blocks for inferencing during encoding and decoding without the requirement to pass any parameters in bit stream. Details on selecting the trained AI model and inferencing at an encoder and a decoder have been elaborated in subsequent paragraphs of the present description with reference to Figure 6.
- the execution module 310 is configured to calculate a distance between each of the one or more blocks and the set of cluster centroids. Further, the execution module 310 identifies the closest cluster centroid for each of the one or more blocks based on the calculated distance and the extracted one or more predefined block features.
- the splitting module 316 determines if a cluster from the plurality of clusters have a variation within the cluster in comparison to other clusters of the plurality of clusters. The variation is determined based on an intra-cluster sparsity. Further, the splitting module 316 splits the cluster into a sub-plurality of clusters of upon determining that the plurality of clusters have the variation in comparison to the other clusters. Details on splitting the cluster into the sub-plurality of clusters have been elaborated in subsequent paragraphs of the present description with reference to Figure 5. The splitting of the cluster into the sub-plurality of clusters enables the data associated with the training dataset to be more specific. In an embodiment of the present disclosure, the sub-plurality of clusters are separately passed into the plurality of AI models based on the extracted one or more predefined block features for performing the in-loop filtering on the one or more images.
- Figure 4 illustrates a schematic representation 400 depicting training of a plurality of AI models for In-loop filters, according to an embodiment of the present disclosure.
- the training dataset 402 is divided into the plurality of clusters based on the one or more predefined block features associated with the one or more images.
- the plurality of clusters are cluster-1 403A, cluster-2 403B, cluster-3 403C, and cluster-4 403D.
- the training dataset 402 is split in patches of fixed sizes for training the plurality of AI models.
- the training dataset is split unequally based on the one or more predefined block features.
- the one or more predefined block features may be the error band.
- the set of cluster centroids are obtained for the plurality of clusters.
- each of the set of cluster centroids is representation of the cluster segregated based on the training dataset 402.
- the set of cluster centroids may be a cluster centroid-1 404A, a cluster centroid-2 404B, a cluster centroid-3 404C, and cluster centroid-4 404D.
- the plurality of AI models are trained for each of the plurality of clusters based on the one or more predefined block features and the obtained set of cluster centroids.
- the plurality of AI models may be AI model-1 406A, AI model-2 406B, AI model-3 406C, and AI model-4 406D.
- Figure 5 illustrates a schematic representation 500 depicting splitting the cluster into the sub-plurality of clusters, according to an embodiment of the present disclosure.
- the training dataset 502 is divided into the plurality of clusters based on the one or more predefined block features, such as the error band.
- the training dataset 502 is split unequally based on the error band.
- the plurality of clusters are cluster-1 504A, cluster-2 504B, and cluster-3 504C. Further, it is determined that the cluster-1 504A has more variation in comparison to other clusters of the plurality of clusters based on the intra-cluster sparsity.
- the cluster-1 504A is split into a cluster-1a 504D and a cluster-1b 504E.
- the set of cluster centroids are obtained for the plurality of clusters and the sub-plurality of clusters.
- the set of cluster centroids may be a cluster centroid-1a 506A, a cluster centroid-1b 506B, a cluster centroid-2 506C, and a cluster centroid-3 506D.
- the plurality of AI models are trained for each of the plurality of clusters based on the one or more predefined block features and the obtained set of cluster centroids.
- the plurality of AI models may be AI model-1a 508A, AI model-1b 508B, AI model-2 508C, and AI model-3 508D.
- Figure 6 illustrates a block diagram 600 depicting model inferencing during the encoding operation and the decoding operation, according to an embodiment of the present disclosure.
- 602 represents an encoder and 604 represents a decoder 604.
- a distance between the one or more blocks 606 and the set of cluster centroids is calculated.
- the set of cluster centroids may be a cluster centroid-1 608A, a cluster centroid-2 608B, and the like.
- the closest cluster centroid for each of the one or more blocks 606 is identified by the encoder 602 based on the calculated distance.
- the identified closest cluster centroid is a representative of the one or more blocks 606.
- a trained AI model is selected for the identified closest cluster centroid from the trained plurality of AI models. Further, the in-loop filtering is performed on the one or more blocks at the encoder 602 by applying the selected trained AI model for the identified closest cluster centroid.
- current AI model give a result of 6.9% BD Rate gain on class C sequences defined by common test condition of Moving Picture Experts Group (MPEG).
- MPEG Moving Picture Experts Group
- a distance between the one or more blocks 612 and the set of cluster centroids is calculated.
- the set of cluster centroids may be a cluster centroid-1 614A, a cluster centroid-2 614B, and the like.
- the closest cluster centroid for each of the one or more blocks 612 is identified by the decoder 604 based on the calculated distance.
- the trained AI model is selected for the identified closest cluster centroid from the trained plurality of AI models.
- the in-loop filtering is performed on the one or more blocks at the decoder 604 by applying the selected trained AI model for the identified closest cluster centroid.
- Table 2 shows an exemplary scenario related to cost of signalling compared to overall for 1 bit using fixed length coding.
- Model Inference Inference block size Cost of signalling compared to overall for 1 bit using fixed length coding With signalling parameters in bit stream VVC codec 32x32 ⁇ 90% With signalling parameters in bit stream VVC codec 64x64 ⁇ 23%
- Figure 7 illustrates a block diagram 700 depicting clustering of a training dataset based on one or more predefined block features, according to an embodiment of the present disclosure.
- the training dataset is divided into the plurality of clusters based on the one or more predefined block features 702 associated with the one or more images, as depicted.
- the plurality of clusters may be cluster-1 704A, cluster-2 704B, .... cluster-N 704N.
- the plurality of AI models are trained for each of the plurality of clusters based on the one or more predefined block features 702 and the set of cluster centroids associated with the plurality of clusters.
- Table 3 shows an exemplary scenario related to an AI model trained for each of the plurality of clusters.
- the codec parameters such as Quantization Parameter (QP), a slice type, and the like
- QP Quantization Parameter
- a slice type a slice type
- the codec parameters are considered independently and separate AI models are trained on the codec parameters.
- the number of AI models required in the conventional approach is huge. Since block characteristics are a better indication of independent features of the one or more images, the one or more predefined block features are used in the current disclosure to train the AI models resulting in lesser number of models.
- Figure 8 illustrates a flow diagram depicting a method for training Artificial Intelligence (AI) models for In-loop filters, according to an embodiment of the present disclosure.
- the method 800 as shown in figure is implemented in a User Equipment (UE). Further, a detailed description of the method 800 is omitted here for the sake of brevity.
- UE User Equipment
- the method 800 includes generating a training dataset by passing a video or one or more images through a codec pipeline.
- the video codec pipeline is a hardware, software or a combination thereof that compresses and decompresses a digital video.
- the codec pipeline is a fixed function hardware video codec responsible for decoding and encoding High Efficiency Video Coding (HEVC) video streams associated with the video.
- the training dataset corresponds to one or more blocks of fixed sizes associated with the video. In an exemplary embodiment of the present disclosure, each of the one or more blocks represents a dimension of the video in pixels.
- the method 800 includes extracting one or more predefined block features from the training dataset.
- the one or more predefined block features include an error band, a standard deviation, a mean of the one or more blocks, and the like.
- the method 800 includes creating a plurality of clusters based on the extracted one or more predefined block features from the training dataset. Details on creating the plurality of clusters of the generated training dataset have been elaborated in previous paragraphs of the present description with reference to Figure 7. For example, the training dataset is divided to create the plurality of clusters based on the error band. In an embodiment of the present disclosure, the plurality of clusters may be unequal in size.
- the method 800 includes dividing the plurality of clusters into a sub-plurality of clusters based on the extracted one or more predefined block features and an intra-cluster variation threshold. Details on dividing the cluster into the sub-plurality of clusters have been elaborated in previous paragraphs of the present description with reference to Figure 5.
- the method 800 includes determining if a cluster from the plurality of clusters have a variation within the cluster in comparison to other clusters of the plurality of clusters. The variation is determined based on an intra-cluster sparsity. If the variation is above the intra-cluster variation threshold, the method 800 includes splitting the cluster into the plurality of sub-clusters.
- the method 800 includes obtaining a set of cluster centroids for the sub-plurality of clusters upon dividing the plurality of clusters.
- Each of the set of cluster centroids is representation of a segregated cluster of the training dataset.
- the cluster of the training dataset is segregated based on the one or more predefined block features.
- the method 800 includes training a plurality of AI models for each of the sub-plurality of clusters based on the one or more predefined block features and the obtained set of cluster centroids. Details on training the plurality of AI models have been elaborated in previous paragraphs of the present description with reference to Figure 4.
- the plurality of AI models correspond to deep learning based in-loop filters.
- the method 800 includes passing the sub-plurality of clusters separately into the plurality of AI models based on the extracted one or more predefined block features.
- the method 800 includes identifying a closest cluster centroid with respect to one or more blocks associated with the video based on the extracted one or more predefined block features.
- the closest cluster centroid is a cluster centroid from the set of cluster centroids associated with the sub-plurality of clusters of the training dataset.
- each of the one or more blocks represents a dimension of the video in pixels.
- the method 800 includes selecting a trained AI model for the identified closest cluster centroid from the trained plurality of AI models based on the extracted one or more predefined block features. Details on selecting the trained AI model have been elaborated in previous paragraphs of the present description with reference to Figure 6. Furthermore, the method 800 includes performing the in-loop filtering on the video by applying the selected trained AI model for the identified closest cluster centroid. In an embodiment of the present disclosure, the trained AI model is applied for the identified closest cluster centroid during an encoding operation and a decoding operation of the video.
- the method 800 includes calculating the distance between each of the one or more blocks and the set of cluster centroids. Further, the method 800 includes identifying the closest cluster centroid for each of the one or more blocks based on the calculated distance and the extracted one or more predefined block features.
- Figure 9 illustrates a flow diagram depicting a method for performing the in-loop filtering in the video codec, according to another embodiment of the present disclosure.
- the method 900 as shown in the figure is implemented in the UE for performing the in-loop filtering. Further, a detailed description of the method 900 is omitted here for the sake of brevity.
- the method 900 includes obtaining the one or more blocks from the video codec at an in-loop filtering stage.
- the one or more blocks are obtained after a reconstructed frame is constructed.
- the reconstructed frame is outputted or stored in a reference buffer.
- the reconstructed frames are received before the in-loop filtering stage of the video codec.
- each of the one or more blocks represents a dimension of one or more images in pixels.
- the one or more blocks are extracted before in-loop filtering stage.
- the method 900 includes extracting the one or more predefined block features associated with each of the one or more blocks based on a set of inherent characteristics associated with the one or more blocks.
- the set of inherent characteristics include mean of error, variance, edge strengths, and the like.
- the set of inherent characteristics are unassociated with a set of codec parameters, such as slice type, quantization parameter, and the like.
- the one or more predefined block features include an error band, a standard deviation, a mean of the one or more blocks, and the like.
- the one or more predefined block features includes more information associated with the one or more blocks in comparison to the set of codec parameters.
- the method 900 includes training a plurality of AI models based on the extracted one or more predefined block features.
- the method 900 includes generating a training dataset by passing the one or more images through a codec pipeline before the in-loop filtering stage.
- the training dataset corresponds to the one or more blocks of fixed sizes associated with the one or more images.
- the method 900 includes clustering the generated training dataset into a plurality of clusters based on the one or more predefined block features associated with the one or more images.
- the one or more predefined block features may be the error band, the standard deviation, and the like.
- the method 900 includes obtaining a set of cluster centroids for the plurality of clusters.
- each of the set of cluster centroids is representation of a segregated cluster of the training dataset.
- the cluster of the training dataset is segregated based on the one or more predefined block features.
- the method 900 includes training the plurality of AI models for each of the plurality of clusters based on the one or more predefined block features and the obtained set of cluster centroids.
- the plurality of AI models are trained on specific features of the plurality of clusters.
- the training of AI models is performed based on quantization error pattern or any other predefined image feature of the one or more blocks, such that AI models may be trained for the one or more blocks with specific predefined block features.
- the current invention focusses on prominent error bands i.e., error ranges with high probability, by subdividing those regions to have more models representing them. Details on training the plurality of AI models have been elaborated in previous paragraphs of the present description with reference to Figure 4.
- the method 900 includes performing an in-loop filtering on the one or images by using the trained plurality of AI models.
- the method 900 includes identifying a closest cluster centroid with respect to the one or more blocks based on the extracted one or more predefined block features.
- the closest cluster centroid is a cluster centroid from a set of cluster centroids associated with the plurality of clusters of the training dataset.
- the method 900 includes selecting a trained AI model for the identified closest cluster centroid from the trained plurality of AI models based on the extracted one or more predefined block features.
- the method 900 includes performing in-loop filtering on the one or more images by applying the selected trained AI model for the identified closest cluster centroid.
- the selected trained AI model is applied for the identified closest cluster centroid during an encoding operation and a decoding operation of the one or more images.
- model inferencing during in-loop filter application using cluster centroids avoids the requirement for signaling any codec parameter in the bit stream to indicate a model index. Further, an inferred cluster is passed back to the reconstruction buffer.
- the trained AI model is selected from the plurality of AI models based on the extracted one or more predefined block features of the one or more blocks for inferencing during encoding and decoding without the requirement to pass any parameters in bit stream. Details on selecting the trained AI model and inferencing at an encoder and a decoder have been elaborated in previous paragraphs of the present description with reference to Figure 6.
- the method 900 includes calculating a distance between each of the one or more blocks and the set of cluster centroids. Further, the method 900 includes identifying the closest cluster centroid for each of the one or more blocks based on the calculated distance and the extracted one or more predefined block features.
- the method 900 includes determining if a cluster from the plurality of clusters have a variation within the cluster in comparison to other clusters of the plurality of clusters. The variation is determined based on an intra-cluster sparsity. Further, the method 900 includes splitting the cluster into a sub-plurality of clusters of upon determining that the plurality of clusters have the variation in comparison to the other clusters. Details on splitting the cluster into the sub-plurality of clusters have been elaborated in previous paragraphs of the present description with reference to Figure 5. The splitting of the cluster into the sub-plurality of clusters enables the data associated with the training dataset to be more specific. In an embodiment of the present disclosure, the sub-plurality of clusters are separately passed into the plurality of AI models based on the extracted one or more predefined block features for performing the in-loop filtering on the one or more images.
- the present invention discloses predefined block feature aware model selection technique for inferencing during encoding and decoding without requirement to pass any codec parameter in bit stream.
- the present invention performs model training based on the one or more predefined block features of the one or more blocks wherein specific models may be trained for blocks with specific features. Further, the present invention divides the clusters with higher variation in sub-clusters creating a hierarchical clustering.
- the present invention uses same model for all slice types i.e., intra, inter, and the like or QPs as the models depend on inherent features of the block rather than codec parameters. This reduces the requirement of the number of models.
- the present invention proposes to use quantization error pattern from encoder and use it at the decoder to further improve the decoded quality of the videos.
- the present invention also avoids having multiple models for combination of codec parameters resulting in a codec parameter agnostic approach.
- the present invention relates to efficient selection of an in-loop filter based on both, the QP as well as quantization error of a particular video block.
- the present invention relates to enhancement of decoded videos and removal of encoding artifacts based on the efficient in loop filter selection and training.
- the present invention uses a quantization error band as the base for training the model to capture the specific variations.
- the present invention selects a quantization error band-based method at each block to better capture the error of that block.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Computation (AREA)
- Medical Informatics (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Artificial Intelligence (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US18/333,067 US20230362367A1 (en) | 2022-03-03 | 2023-06-12 | System and method for training artificial intelligence models for in-loop filters |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| IN202241011598A IN202241011598A (cg-RX-API-DMAC7.html) | 2022-03-03 | 2022-03-03 | |
| IN202241011598 | 2023-02-23 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US18/333,067 Continuation US20230362367A1 (en) | 2022-03-03 | 2023-06-12 | System and method for training artificial intelligence models for in-loop filters |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2023167514A1 true WO2023167514A1 (en) | 2023-09-07 |
Family
ID=87884393
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/KR2023/002883 Ceased WO2023167514A1 (en) | 2022-03-03 | 2023-03-02 | System and method for training artificial intelligence models for in-loop filters |
Country Status (3)
| Country | Link |
|---|---|
| US (1) | US20230362367A1 (cg-RX-API-DMAC7.html) |
| IN (1) | IN202241011598A (cg-RX-API-DMAC7.html) |
| WO (1) | WO2023167514A1 (cg-RX-API-DMAC7.html) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2024116201A1 (en) * | 2022-11-29 | 2024-06-06 | Aarogyaai Innovations Pvt. Ltd. | Classification of lineages and sub-lineages of pathogens |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10382770B2 (en) * | 2017-02-06 | 2019-08-13 | Google Llc | Multi-level machine learning-based early termination in partition search for video encoding |
| US20190273948A1 (en) * | 2019-01-08 | 2019-09-05 | Intel Corporation | Method and system of neural network loop filtering for video coding |
| CN111741300A (zh) * | 2020-05-28 | 2020-10-02 | 杭州师范大学 | 一种视频处理方法 |
| US20210357679A1 (en) * | 2020-05-15 | 2021-11-18 | Equifax Inc. | Clustering techniques for machine learning models |
-
2022
- 2022-03-03 IN IN202241011598A patent/IN202241011598A/en unknown
-
2023
- 2023-03-02 WO PCT/KR2023/002883 patent/WO2023167514A1/en not_active Ceased
- 2023-06-12 US US18/333,067 patent/US20230362367A1/en not_active Abandoned
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10382770B2 (en) * | 2017-02-06 | 2019-08-13 | Google Llc | Multi-level machine learning-based early termination in partition search for video encoding |
| US20190273948A1 (en) * | 2019-01-08 | 2019-09-05 | Intel Corporation | Method and system of neural network loop filtering for video coding |
| US20210357679A1 (en) * | 2020-05-15 | 2021-11-18 | Equifax Inc. | Clustering techniques for machine learning models |
| CN111741300A (zh) * | 2020-05-28 | 2020-10-02 | 杭州师范大学 | 一种视频处理方法 |
Non-Patent Citations (1)
| Title |
|---|
| JIA CHUANMIN; WANG SHIQI; ZHANG XINFENG; WANG SHANSHE; LIU JIAYING; PU SHILIANG; MA SIWEI: "Content-Aware Convolutional Neural Network for In-Loop Filtering in High Efficiency Video Coding", IEEE TRANSACTIONS ON IMAGE PROCESSING, IEEE, USA, vol. 28, no. 7, 1 July 2019 (2019-07-01), USA, pages 3343 - 3356, XP011726694, ISSN: 1057-7149, DOI: 10.1109/TIP.2019.2896489 * |
Also Published As
| Publication number | Publication date |
|---|---|
| US20230362367A1 (en) | 2023-11-09 |
| IN202241011598A (cg-RX-API-DMAC7.html) | 2023-09-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12368887B2 (en) | Secondary transform application for various block sizes | |
| US10743029B2 (en) | Constraints on coding unit partition | |
| US12206855B2 (en) | Superresolution-based coding | |
| WO2023017928A1 (en) | Video recording method and device | |
| US10893286B2 (en) | Methods and apparatus for low-complexity MTS | |
| US20200186838A1 (en) | One-level transform split and adaptive sub-block transform | |
| JP7761077B2 (ja) | デコーダが実行するビデオデコーディングのための方法及び装置、並びにエンコーダが実行するビデオエンコーディングのための方法 | |
| US11750831B2 (en) | Method and apparatus for video coding | |
| US10986334B2 (en) | Method and apparatus for video coding | |
| CN116547964B (zh) | 视频处理方法、装置及存储介质 | |
| CN113316932B (zh) | 编解码方法、装置和设备 | |
| US12418669B2 (en) | Sign coding for one-dimensional transform skip | |
| WO2023051222A1 (zh) | 滤波及编解码方法、装置、计算机可读介质及电子设备 | |
| WO2017043766A1 (ko) | 비디오 부호화, 복호화 방법 및 장치 | |
| JP2024161014A (ja) | ビデオコーディングのための方法および装置 | |
| CN113170210A (zh) | 视频编码和解码中的仿射模式信令 | |
| WO2015174715A1 (ko) | 이미지 패치를 이용한 해상도 스케일링 장치 및 그 방법 | |
| WO2011090352A2 (ko) | 영역 기반의 부호화/복호화 장치 및 방법 | |
| US12137249B2 (en) | Method, apparatus and medium for decoding or encoding | |
| US20230362367A1 (en) | System and method for training artificial intelligence models for in-loop filters | |
| CN114731447B (zh) | 用于视频解码的方法和设备 | |
| EP4531395A1 (en) | Encoding mode prediction method and apparatus, electronic device and storage medium | |
| WO2024119821A1 (zh) | 视频数据处理方法、装置、存储介质、设备和程序产品 | |
| WO2024128644A1 (en) | Method, and electronic device for processing a video | |
| CN116965036A (zh) | 用于快速矢量化转置的自适应环路滤波器系数的布置 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23763712 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 23763712 Country of ref document: EP Kind code of ref document: A1 |