Electronic device, control method and system of electronic device
By using artificial intelligence encoding and decoding technology in electronic devices, tightly interlocked AI models preprocess images, solving the problem of image detail loss in real-time streaming. This achieves image detail recovery and improved encoding performance while reducing data volume and computational load.
Patent Information
- Application Number
- CN202011123679.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-20
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-10-20
AI Technical Summary
In electronic devices, especially in the case of real-time streaming, details of the original image are lost during preprocessing and cannot be effectively recovered, resulting in a decline in the quality of the restored image provided to the user.
Artificial intelligence encoding and decoding technologies are employed to preprocess images using tightly interlocked AI models, thereby improving compression and encoding performance and restoring lost details by utilizing image feature information.
While reducing the amount of data and computation, it effectively restores the details in the original image and adapts to network conditions for preprocessing, thereby improving coding performance.
Smart Images

Figure CN112887728B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to an electronic device, a control method and a system of the electronic device, and, for example, to an electronic device that performs amplification, a control method and a system of the electronic device. Background Art
[0002] According to the development of electronic technology, various types of electronic devices have been developed and released. In particular, display devices such as mobile devices and TVs, which are most commonly used in recent years, are rapidly developing in recent years.
[0003] In particular, as the content provided to users becomes ultra-high resolution, the amount of computation and data of electronic devices increases exponentially. Therefore, the amount of data sent to the electronic devices is reduced by downscaling, preprocessing, and encoding.
[0004] In this case, although the amount of calculation and the amount of data of the electronic device are reduced, there is a problem that the original image is provided to the user in a state where the details included in the original image are lost. In particular, in the case of real-time streaming, there is a problem that the restored image is provided to the user in a state where the details lost during the preprocessing of the original image are not restored. Summary of the invention
[0005] Embodiments of the present disclosure address the above disadvantages and other disadvantages not described above.
[0006] Embodiments of the present disclosure provide an electronic device, a system, and a control method thereof for improving compression and encoding performance by performing preprocessing by closely interlocking artificial intelligence (AI) encoding and artificial intelligence (AI) decoding with each other and considering feature information of an image.
[0007] According to an example embodiment of the present disclosure, an electronic device includes: a memory configured to include at least one instruction; and a processor configured to be connected to the memory to control the electronic device, and obtain an output image by enlarging an input image using an artificial intelligence model trained to enlarge the image, wherein the processor is configured to control the electronic device to perform the following operations: obtain parameter information of the artificial intelligence model based on preprocessing related information performed on the input image, and enlarge the input image using the artificial intelligence model corresponding to the obtained parameter information.
[0008] The memory may store parameter information mapped to preprocessing-related information corresponding to each of the different preprocessings, and the processor may be configured to: identify parameter information in the stored parameter information corresponding to the preprocessing-related information received together with the input image, and use the artificial intelligence model corresponding to the identified parameter information to enlarge the input image.
[0009] The parameter information stored in the memory may include filter-related information applied to each of the different preprocessings, and the processor may be configured to: identify parameter information in the stored parameter information corresponding to the filter-related information received together with the input image, and use the artificial intelligence model corresponding to the identified parameter information to enlarge the input image.
[0010] The filter-related information applied to each of the different preprocessing may include information on at least one of a type or a strength of a filter applied to each of the different preprocessing.
[0011] The filter-related information applied to each of the different pre-processings may further include information on a difference between an image before applying the filter and an image after applying the filter.
[0012] The processor may be configured to decode the input image and upscale the decoded image using the artificial intelligence model.
[0013] The artificial intelligence model may include a plurality of neural network layers, and the processor may be configured to set parameters corresponding to each of the plurality of neural network layers based on the obtained parameter information.
[0014] According to another example embodiment of the present disclosure, a system includes: a transmitting device including a circuit, configured to: use a first artificial intelligence model trained to reduce an image to reduce an input image and preprocess the reduced image to send the preprocessed image; and a receiving device including a circuit, configured to: use a second artificial intelligence model trained to enlarge an image to enlarge an image to obtain an output image, wherein the transmitting device is configured to: preprocess the reduced image based on feature information of the image obtained from the first artificial intelligence model and send preprocessing related information to the receiving device, and the receiving device is configured to: obtain parameter information of the second artificial intelligence model based on the preprocessing related information received from the transmitting device and use the second artificial intelligence model corresponding to the obtained parameter information to enlarge the image received from the transmitting device.
[0015] The sending device may be configured to further include a communication interface, wherein the communication interface includes a communication circuit, and the sending device may be configured to obtain status information of a network to which the communication interface is connected, and pre-process the reduced image based on the status information of the network and feature information of the image obtained from the first artificial intelligence model.
[0016] The pre-processing related information may include information on at least one of a type or a strength of a pre-processed filter applied to the reduced image.
[0017] The pre-processing related information may also include information on a difference between an image before applying a filter and an image after applying the filter.
[0018] The sending device may be configured to encode the preprocessed image and send the encoded image to the receiving device, and the receiving device may be configured to obtain an output image by decoding the encoded image received from the sending device and upscaling the decoded image using a second artificial intelligence model.
[0019] The sending device may also include a third artificial intelligence model, wherein the third artificial intelligence model is trained to obtain preprocessing-related information of the image using feature information of the image obtained from the first artificial intelligence model, and the processor may be configured to: use the third artificial intelligence model to obtain preprocessing-related information of the reduced image.
[0020] According to another example embodiment of the present disclosure, a method for controlling an electronic device includes: obtaining parameter information of an artificial intelligence model trained to enlarge an image based on preprocessing related information performed on an input image; and obtaining an output image by enlarging the input image using the artificial intelligence model corresponding to the obtained parameter information.
[0021] The step of obtaining the parameter information may include: identifying parameter information corresponding to the preprocessing related information received together with the input image in a memory storing parameter information mapped to preprocessing related information corresponding to each of the different preprocessings, and the step of obtaining the output image may include: using the artificial intelligence model corresponding to the identified parameter information to enlarge the input image.
[0022] The parameter information stored in the memory may include filter-related information applied to each of the different preprocessings, and the step of obtaining the parameter information may include: identifying parameter information in the stored parameter information corresponding to the filter-related information received together with the input image, and the step of obtaining the output image may include: using the artificial intelligence model corresponding to the identified parameter information to enlarge the input image.
[0023] The filter-related information applied to each of the different preprocessing may include information on at least one of a type or a strength of a filter applied to each of the different preprocessing.
[0024] The filter-related information applied to each of the different pre-processings may include information on a difference between an image before applying the filter and an image after applying the filter.
[0025] The step of obtaining the output image may include: decoding the input image and upscaling the decoded image using the artificial intelligence model.
[0026] The artificial intelligence model may include a plurality of neural network layers, and the method may further include setting parameters corresponding to each of the plurality of neural network layers based on the obtained parameter information.
[0027] As described above, according to various exemplary embodiments of the present disclosure, the enlarged image may include details lost during the pre-processing process.
[0028] Furthermore, details included in the original image can be restored while reducing the amount of data and the amount of calculation.
[0029] Furthermore, even in a real-time streaming environment, preprocessing suitable for network conditions can be performed by adaptively using a preprocessing filter.
[0030] Furthermore, details lost due to pre-processing can be easily restored while improving encoding performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The above and other aspects, features and advantages of certain embodiments of the present disclosure will become more apparent from the following detailed description taken in conjunction with the accompanying drawings, in which:
[0032] Figure 1 is a block diagram showing an example configuration of a system according to an embodiment of the present disclosure;
[0033] Figure 2 is a diagram illustrating an example operation of a system according to an embodiment of the present disclosure;
[0034] Figure 3 is a block diagram showing an example configuration of a receiving device according to an embodiment of the present disclosure;
[0035] Figure 4 is a diagram illustrating an example operation of a receiving device according to an embodiment of the present disclosure;
[0036] Figure 5 is a diagram illustrating an example artificial intelligence model according to an embodiment of the present disclosure;
[0037] Figure 6 is a block diagram illustrating an example receiving device according to an embodiment of the present disclosure;
[0038] Figure 7is a block diagram illustrating an example configuration of an example transmitting device according to an embodiment of the present disclosure;
[0039] Figure 8 is a diagram illustrating an example operation of a transmitting device according to an embodiment of the present disclosure;
[0040] Fig. 9 is a diagram illustrating an example AI encoding process and an AI decoding process according to an embodiment of the present disclosure;
[0041] Fig.10 is a block diagram showing an example configuration of an AI decoding device according to an embodiment of the present disclosure;
[0042] Fig.11 is a diagram illustrating an example second deep neural network (DNN) for AI upscaling of a second image according to an embodiment of the present disclosure;
[0043] Fig.12 is a diagram illustrating an example convolution calculation performed by a convolutional layer according to an embodiment of the present disclosure;
[0044] Fig.13 is a diagram showing an example mapping relationship between a plurality of pieces of image-related information and a plurality of pieces of DNN setting information according to an embodiment of the present disclosure;
[0045] Fig.14 is a diagram illustrating an example second image including a plurality of frames according to an embodiment of the present disclosure;
[0046] Fig.15 is a block diagram illustrating an example configuration of an example AI encoding device according to an embodiment of the present disclosure;
[0047] Fig.16 is a diagram illustrating an example first DNN for AI downscaling of an original image according to an embodiment of the present disclosure;
[0048] Fig.17 is a diagram illustrating an example method for training a first DNN and a second DNN according to an embodiment of the present disclosure;
[0049] Fig.18 is a signal flow diagram illustrating an example training process of a first DNN and a second DNN performed by a training apparatus according to an embodiment of the present disclosure;
[0050] Fig.19 is a diagram illustrating an example device for AI downscaling of an original image and an example device for AI upscaling of a second image according to an embodiment of the present disclosure; and
[0051] Fig. 20 is a flowchart illustrating an example method of controlling a receiving device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0052] Hereinafter, the present disclosure will be described in more detail with reference to the accompanying drawings.
[0053] Considering the functions in the present disclosure, currently widely used general terms are selected as the terms used in the embodiments of the present disclosure, but may be changed according to the intention of those skilled in the art or judicial precedents, the emergence of new technologies, etc. In addition, in certain cases, the terms may be arbitrary. In this case, the meanings of these terms may be mentioned in the corresponding description parts of the present disclosure. Therefore, the terms used in the present disclosure should be defined based on the meaning of the terms and the content throughout the present disclosure, rather than being defined based on the simple names of the terms.
[0054] In the present disclosure, expressions “having”, “may have”, “including”, “may include”, etc. indicate the existence of corresponding features (e.g., values, functions, operations, components such as parts, etc.), and do not exclude the existence of additional features.
[0055] The expression “at least one of A and / or B” should be understood to mean any one of “A” or “B” or “A and B”.
[0056] The expressions "first", "second", etc. used in the present disclosure may indicate various components regardless of the order and / or importance of the components. The expressions "first", "second", etc. may be used to distinguish one component from other components and do not limit the corresponding components.
[0057] When referring to any component (e.g., a first component) being (operably or communicatively) coupled / coupled to another component (e.g., a second component) or connected to another component (e.g., a second component), it should be understood that any component is directly coupled / coupled to another component or may be coupled / coupled to another component through other components (e.g., a third component).
[0058] Singular expressions include plural expressions unless the context clearly indicates otherwise. It should also be understood that the terms "comprising" or "consisting of" used in this application specify the presence of features, numbers, steps, operations, components, parts or combinations thereof mentioned in the specification, without excluding the presence of one or more other features, numbers, steps, operations, components, parts or combinations thereof or adding one or more other features, numbers, steps, operations, components, parts or combinations thereof.
[0059] In the present disclosure, a "module" or "device / component" may perform at least one function or operation, and may be implemented by hardware or software, or may be implemented by a combination of hardware and software. In addition, in addition to a "module" or "device / component" that needs to be implemented by specific hardware, multiple "modules" or multiple "device / components" may be integrated in at least one module and implemented as at least one processor (not shown).
[0060] Furthermore, in the present disclosure, an “image” or a “picture” may refer to, for example, a still image, a moving image including a plurality of consecutive still images (or frames), a video, etc., but is not limited thereto.
[0061] In addition, in the present disclosure, "deep neural network (DNN)" may refer to a representative example of an artificial neural network model that simulates brain nerves, for example, and is not limited to an artificial neural network model that uses a specific algorithm.
[0062] In addition, in the present disclosure, 'parameters' may refer to values used in the calculation process of each layer of a neural network, for example, and may include, for example, weights used when applying input values to a predetermined calculation expression. In addition, parameters may be represented in the form of a matrix. Parameters may refer to values set as a result of training, for example, and may be updated by separate training data as needed.
[0063] Furthermore, in the present disclosure, a “first DNN” may refer to, for example, a DNN used for AI downscaling of an image, and a “second DNN” may refer to, for example, a DNN used for AI upscaling of an image.
[0064] In addition, in the present disclosure, "DNN setting information" may refer to, for example, information related to elements of a DNN, and includes the above-mentioned parameters. The DNN setting information may be used to set the first DNN or the second DNN.
[0065] In addition, in the present disclosure, the first artificial intelligence model may refer to, for example, an artificial intelligence model for enlargement of an image, and the second artificial intelligence model may refer to, for example, an artificial intelligence model for reduction of an image.
[0066] In addition, in the present disclosure, an 'original image' may refer to, for example, an image that is a target of AI encoding or an image received by a transmitting device, and a 'first image' or 'reduced image' may refer to, for example, an image obtained as a result of AI reduction of the original image in an AI encoding process. In addition, a 'second image' or 'decoded image' may refer to, for example, an image obtained by first decoding in an AI decoding process, and a 'third image' or 'enlarged image' may refer to, for example, an image obtained by AI enlargement of the second image in an AI decoding process.
[0067] In addition, in the present disclosure, "AI reduction" or "reduction" may refer to, for example, a process of reducing the resolution of an image based on AI, and "first encoding" may refer to, for example, an encoding process by an image compression method based on frequency transformation. In addition, "first decoding" may refer to, for example, a decoding process by an image restoration method based on frequency transformation, and "AI enlargement" or "enlargement" may refer to, for example, a process of increasing the resolution of an image based on AI.
[0068] In the present disclosure, the term "user" may be a person using an electronic device or a device (eg, an artificial intelligence electronic device) using the electronic device.
[0069] Hereinafter, embodiments of the present disclosure will be described in more detail with reference to the accompanying drawings.
[0070] Figure 1 is a block diagram illustrating an example configuration of an example system according to an embodiment of the present disclosure.
[0071] like Figure 1 As shown in , a system 300 according to an embodiment of the present disclosure includes a receiving device 100 and a sending device 200 .
[0072] The system 300 according to the embodiment may include, for example, an image streaming system, and may be implemented by a transmitting device that transmits a real-time image and a receiving device 100 that receives and displays the image. This is an example and the system 300 is not limited thereto.
[0073] The transmitting device 200 according to an embodiment of the present disclosure may be implemented as a server, and may transmit an image to a plurality of electronic devices.
[0074] The transmitting device 200 according to various embodiments of the present disclosure may include, for example, but not limited to, at least one of a smart phone, a tablet personal computer (PC), a mobile phone, an image phone, an e-book reader, a desktop PC, a laptop PC, a netbook computer, a workstation, a server, a personal digital assistant (PDA), a portable multimedia player (PMP), an MP3 player, a medical device, a camera, a virtual reality (VR) implementation device, a wearable device, etc. The wearable device may include, for example, but not limited to, at least one of an accessory-type wearable device (e.g., a watch, a ring, a bracelet, an anklet, a necklace, glasses, contact lenses, a head-mounted device (HMD)), a fabric or clothing integral wearable device (e.g., electronic clothing), a body-attached wearable device (e.g., a skin pad or a tattoo), a bio-implantable circuit, etc. In some embodiments, the electronic device may include, for example, but not limited to, a television, a digital video disk (DVD) player, an audio player, a refrigerator, an air conditioner, a cleaner, an oven, a microwave oven, a washing machine, an air purifier, a set-top box, a home automation control panel, a security control panel, a media box (e.g., HomeSync of Samsung Electronics Co., Ltd.)TM , Apple TV TM or Google TV TM ), game consoles (e.g., Xbox TM , PlayStation TM ), at least one of an electronic dictionary, an electronic key, a camera, an electronic photo frame, etc.
[0075] In another embodiment, the electronic device may include, for example but not limited to, at least one of various medical devices (e.g., various portable medical measuring devices (such as blood glucose meters, heart rate meters, blood pressure meters, thermometers, etc.), magnetic resonance angiography (MRA), magnetic resonance imaging (MRI), computed tomography (CT), photographing devices, ultrasound devices, etc.), navigation devices, global navigation satellite systems (GNSS), event data recorders (EDRs), flight data recorders (FDRs), car infotainment devices, ship electronic equipment (e.g., ship navigation devices, gyro compasses, etc.), avionics equipment, security devices, car head units, industrial or household robots, drones, automatic teller machines (ATMs) of financial institutions, point of sale (POS) of stores, Internet of Things (IoT) devices (e.g., light bulbs, various sensors, sprinkler systems, fire alarms, thermostats, street lights, toasters, fitness equipment, hot water tanks, heaters, boilers, etc.), etc.
[0076] The receiving device 100 according to an embodiment of the present disclosure can display an image. The receiving device 100 can be implemented as, for example, a television (TV), but is not limited thereto, and can be applied without limitation as long as it has a display function, such as, for example, but not limited to, a video wall, a large display (LFD), a digital signage, a digital information display (DID), a projector display, etc. In addition, the receiving device 100 can be implemented in various forms of displays, such as, for example, but not limited to, a liquid crystal display (LCD), an organic light emitting diode (OLED), a liquid crystal on silicon (LCoS), a digital light processing (DLP), a quantum dot (QD) display panel, a quantum dot light emitting diode (QLED), a micro light emitting diode (μLED), a mini LED, etc. The receiving device 100 can be implemented as, for example, but not limited to, a touch screen combined with a touch sensor, a flexible display, a rollable display, a three-dimensional (3D) display, a display with multiple display modules physically connected to each other, etc.
[0077] The receiving device 100 according to an embodiment of the present disclosure may process and display an image received from the transmitting device 200 .
[0078] As another example, the receiving device 100 may also be implemented as various types of electronic devices that do not have a display function.
[0079] The receiving device 100 according to various embodiments of the present disclosure may include, for example, but not limited to, at least one of a smart phone, a tablet personal computer (PC), a mobile phone, an image phone, an e-book reader, a desktop PC, a laptop PC, a netbook computer, a workstation, a server, a personal digital assistant (PDA), a portable multimedia player (PMP), an MP3 player, a medical device, a camera, a virtual reality (VR) implementation device, a wearable device, etc. The wearable device may include, for example, but not limited to, at least one of an accessory-type wearable device (e.g., a watch, a ring, a bracelet, an anklet, a necklace, glasses, contact lenses, or a head-mounted device (HMD)), a fabric or clothing integral wearable device (e.g., electronic clothing), a body-attached wearable device (e.g., a skin pad or a tattoo), a bio-implantable circuit, etc. In some embodiments, the electronic device may include, for example, but not limited to, a television, a digital video disk (DVD) player, an audio player, a refrigerator, an air conditioner, a cleaner, an oven, a microwave oven, a washing machine, an air purifier, a set-top box, a home automation control panel, a security control panel, a media box (e.g., HomeSync of Samsung Electronics Co., Ltd.) TM , Apple TV TM or Google TV TM ), game consoles (such as Xbox TM , PlayStation TM ), at least one of an electronic dictionary, an electronic key, a camera, an electronic photo frame, etc.
[0080] In another embodiment, the electronic device may include, for example but not limited to, at least one of various medical devices (e.g., various portable medical measuring devices (such as blood glucose meters, heart rate meters, blood pressure meters, thermometers, etc.), magnetic resonance angiography (MRA), magnetic resonance imaging (MRI), computed tomography (CT), photographing devices, ultrasound devices, etc.), navigation devices, global navigation satellite systems (GNSS), event data recorders (EDRs), flight data recorders (FDRs), car infotainment devices, ship electronic equipment (e.g., ship navigation devices, gyro compasses, etc.), avionics devices, security devices, car head units, industrial or household robots, drones, automatic teller machines (ATMs) of financial institutions, point of sale (POS) of stores, Internet of Things (IoT) devices (e.g., light bulbs, various sensors, sprinkler systems, fire alarms, thermostats, street lights, toasters, fitness equipment, hot water tanks, heaters, boilers, etc.), etc.
[0081] For example, the receiving device 100 may also be implemented as a set-top box to receive an image from an external electronic device, process the received image, and send the processed image to an external display device having a display function. The receiving device 100 may be the system itself that has established a cloud computing environment. The receiving device 100 is not limited thereto, and any device that processes data using an artificial intelligence model may be applied without limitation.
[0082] Figure 2 is a diagram illustrating an example operation of a system according to an embodiment of the present disclosure.
[0083] Reference Figure 2 , the sending device 200 can pre-process the image and send the pre-processed image to the receiving device 100.
[0084] As an example, the transmitting device 200 may encode an image and transmit the encoded image to the receiving device 100. The transmitting device 200 may obtain the encoded image by preprocessing the image and encoding the preprocessed image to improve the compression and encoding performance of the image. The transmitting device 200 may transmit the encoded image to the receiving device 100.
[0085] For example, in order to remove random noise, which accounts for most of the factors that reduce compression and encoding performance, the transmitting device 200 may perform a preprocessing process of applying, for example, a bilateral filter to the image. The transmitting device 200 may encode the preprocessed image (for example, an image whose edge component is maintained and the noise component is removed according to the application of the bilateral filter) and transmit the encoded image to the receiving device 100.
[0086] Generally, there is an advantage of high encoding efficiency for an image that has been preprocessed in the encoding process of the transmitting device 200 (for example, an image to which a bilateral filter is applied), but there is a problem that texture, details, etc. of the image removed in the preprocessing process are not restored in the decoding process of the receiving device 100. Hereinafter, various embodiments will be described in which the receiving device 100 performs decoding so that the restored image obtained by the receiving device 100 includes texture, details, etc. of the original image.
[0087] Reference Figure 2 , the sending device 200 can send the encoded image to the receiving device 100.
[0088] As the resolution of an image rapidly increases, the throughput of information for encoding / decoding increases, and thus, a method for improving encoding and decoding efficiency of an image is required.
[0089] According to an embodiment of the present disclosure, the transmitting device 200 may use a second artificial intelligence model 2 trained to reduce an image to reduce a high-resolution image (e.g., an original image). The high-resolution image may refer to an ultra-high-definition (UHD) image (e.g., an 8K (8192*4320) UHD image). For example, the transmitting device 200 may use the second artificial intelligence model 2 to reduce the resolution of the input image from 8K resolution to 4K resolution. The transmitting device 200 obtains a low-resolution image by reducing the resolution of the input image, and encodes the low-resolution reduced image. As a result, the amount of calculation and throughput can be greatly reduced compared to the case where encoding is performed on a high-resolution input image.
[0090] The second artificial intelligence model 2 that is learned (e.g., trained) to reduce the image may be referred to as an AI encoder, an AI reducer, etc., but hereinafter, for ease of description, will be collectively referred to as the second artificial intelligence model 2.
[0091] The transmitting device 200 according to the embodiment may preprocess the reduced image and transmit the preprocessed image to the receiving device 100. The transmitting device 200 may preprocess the reduced image based on the feature information of the image obtained from the second artificial intelligence model 2 and transmit the preprocessing related information to the receiving device 100.
[0092] As an example, the sending device 200 may obtain preprocessing-related information based on feature information of the image obtained from the second artificial intelligence model 2, and preprocess the reduced image based on the obtained preprocessing-related information.
[0093] For example, the preprocessing related information may include information about at least one of the type or strength of the filter. The transmitting device 100 according to the embodiment may filter the reduced image based on the information about the type or strength of the filter included in the preprocessing related information. Figure 7 and Figure 8 Describe its description in more detail.
[0094] According to an embodiment of the present disclosure, the transmitting device 200 may encode the preprocessed image. The encoding process may include, for example, but not limited to, a process of predicting the preprocessed image to generate prediction data, a process of generating residual data corresponding to the difference between the preprocessed image and the prediction data, a process of transforming the residual data (which may refer to, for example, spatial domain components) into frequency domain components, a process of quantizing the residual data transformed into frequency domain components, a process of entropy encoding the quantized residual data, etc. Such encoding processing may be implemented by, for example, but not limited to, at least one of an image compression method using frequency transformation (such as, for example, but not limited to, MPEG-2, H.264 Advanced Video Coding (AVC), MPEG-4, High Efficiency Video Coding (HEVC), VC-1, VP8, VP9, AOMediaVideo1 (AV1), etc.).
[0095] The transmitting device 200 may transmit the encoded image and the preprocessing related information to the receiving device 100. For example, the transmitting device 200 may transmit the image data including the encoded image and the preprocessing related information to the receiving device 100 in the form of a bit stream.
[0096] The image data may also include quantization parameter (QP) related information used in the encoding process of the transmitting device 200. The image data according to the embodiment may be generated according to the rules (e.g., syntax) of the image compression method used in the encoding process among the image compression methods using frequency transformation (such as, for example, but not limited to, MPEG-2, H.264 AVC, MPEG-4, HEVC, VC-1, VP8, VP9, and AV1). According to the embodiment, the preprocessing related information may be referred to as metadata, meta information, etc., but hereinafter, for the convenience of description, it will be collectively referred to as preprocessing related information.
[0097] The receiving device 100 according to an embodiment of the present disclosure may receive images with various resolutions and various compressed images. For example, the receiving device 100 may receive, for example but not limited to, at least one of standard definition (SD), high definition (HD), FHD, UHD images, images with UHD or higher resolution, etc. In addition, the receiving device 100 may receive images in the following compressed form: for example but not limited to, Moving Picture Experts Group (MPEG) (e.g., MP2, MP4, MP7, etc.), Joint Picture Coding Experts Group (JPEG), Advanced Video Coding (AVC), H.264, H.265, High Efficiency Video Codec (HEVC), VC-1, VP8, VP9, AOMediaVideo1 (AV1), etc.
[0098] The receiving device 100 may use the first artificial intelligence model 1 learned (e.g., trained) to enlarge the image to enlarge the image received from the sending device 200 and obtain an output image. As an example, the receiving device 100 may enlarge the image reduced by the sending device 200 to obtain a high-resolution image.
[0099] The first artificial intelligence model 1 that is learned (e.g., trained) to magnify an image may be referred to as, for example, an AI decoder, an AI amplifier, etc., but hereinafter, for ease of description, is collectively referred to as the first artificial intelligence model 1.
[0100] The artificial intelligence model is learned (e.g., trained) and may refer to, for example, a basic artificial intelligence model (e.g., an artificial intelligence model including arbitrary random parameters) being learned (e.g., trained) using a plurality of training data through a learning algorithm, thereby creating a predefined operating rule or artificial intelligence model configured to perform a desired feature (or purpose). Such learning may be performed by a separate server and / or system, but is not limited thereto, and may also be performed in an electronic device. Examples of learning algorithms include, but are not limited to, supervised learning, unsupervised learning, semi-supervised learning, reinforcement learning, etc., but the learning algorithm is not limited to the above examples.
[0101] Each of the first artificial intelligence model 1 and the second artificial intelligence model 2 can be implemented as, for example but not limited to, a convolutional neural network (CNN), a recurrent neural network (RNN), a restricted Boltzmann machine (RBM), a deep belief network (DBN), a bidirectional recurrent deep neural network (BRDNN), a deep Q network, etc., but not limited to the above examples.
[0102] Reference Figure 2 According to an embodiment of the present disclosure, the receiving device 100 may decode the encoded image. According to an embodiment, the receiving device 100 may decode the encoded image to obtain a pre-processed image, for example, a pre-encoded image.
[0103] Decoding may include, for example, but not limited to, a process of entropy decoding the image data to generate quantized residual data, a process of inverse quantizing the quantized residual data, a process of transforming the residual data as a frequency domain component into a spatial domain component, a process of generating prediction data, a process of restoring the encoded image using the prediction data and the residual data, etc. Such a decoding process may be implemented by an image restoration method corresponding to one used in the encoding process in an image compression method using frequency transformation (such as MPEG-2, H.264, MPEG-4, HEVC, VC-1, VP8, VP9, AV1, etc.).
[0104] The receiving device 100 according to an embodiment of the present disclosure may obtain parameter information of the first artificial intelligence model 1 based on the preprocessing related information received from the transmitting device 200. The parameter information may refer to a set of parameters used to obtain, set, or model the first artificial intelligence model 1. The parameters may also be referred to as weights, coefficients, etc.
[0105] The receiving device 100 according to an embodiment of the present disclosure may use the first artificial intelligence model 1 corresponding to the parameter information to enlarge the image received from the transmitting device 200 to obtain an output image. The output image may also be referred to as an enlarged image or a restored image corresponding to the input image. The input image may refer to an image first input to the transmitting device 200.
[0106] Hereinafter, various embodiments in which the receiving device 100 uses the first artificial intelligence model 1 corresponding to the parameter information to enlarge the image received from the transmitting device 200 will be described in more detail.
[0107] Figure 3 is a block diagram illustrating an example configuration of a receiving device according to an embodiment of the present disclosure.
[0108] Reference Figure 3 According to an embodiment of the present disclosure, the receiving device 100 includes a memory 110 and a processor (eg, including a processing circuit) 120 .
[0109] The memory 110 may store data required by various embodiments of the present disclosure. Depending on the purpose of data storage, the memory 110 may be implemented in the form of a memory embedded in the receiving device 100, or may also be implemented in the form of a memory that can be attached to and detached from the receiving device 100. For example, data for driving the receiving device 100 may be stored in a memory embedded in the receiving device 100, and data for the extended functions of the receiving device 100 may be stored in a memory that can be attached to and detached from the receiving device 100. The memory embedded in the receiving device 100 may be implemented as, for example, but not limited to, at least one of a volatile memory (e.g., a dynamic random access memory (DRAM), a static RAM (SRAM), a synchronous dynamic RAM (SDRAM), etc.) or a non-volatile memory (e.g., a one-time programmable read-only memory (OTPROM), a programmable ROM (PROM), an erasable programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a mask ROM, a flash ROM, a flash memory (e.g., a NAND flash memory, a NOR flash memory, etc.), a hard disk drive, or a solid-state drive (SSD)). In addition, the memory that can be attached to and detached from the receiving device 100 can be implemented in the form of a memory card (e.g., Compact Flash (CF), Secure Digital (SD), Micro Secure Digital (Micro-SD), Mini Secure Digital (Mini-SD), Extreme Digital (xD), MultiMedia Card (MMC)), etc.), an external memory that can be connected to a USB port (e.g., a USB memory), etc.
[0110] According to an example, the memory 110 may store a computer program including at least one or more instructions for controlling the receiving device 100 .
[0111] According to another example, the memory 110 may store information about an artificial intelligence model including multiple layers. The storage of information about the artificial intelligence model may refer to, for example, storing various information related to the operation of the artificial intelligence model, for example, information about multiple layers included in the artificial intelligence model, information about parameters used in each of the multiple layers (e.g., filter coefficients, biases, etc.), etc. For example, the memory 110 may store information about a first artificial intelligence model 1 trained to perform an enlargement process of an image according to an embodiment of the present disclosure. The enlargement process may include, for example, super-resolution processing. However, when the processor 120 is implemented by dedicated hardware, the information about the artificial intelligence model may also be stored in the internal memory of the processor 120.
[0112] According to another example, the memory 110 may store images received from an external device (eg, source device), an external storage medium (eg, USB), an external server (eg, network hard disk), etc. The image may be a digital motion image, but is not limited thereto.
[0113] According to another example, the memory 110 may store various information required for image quality processing, for example, information, algorithms, image quality parameters, etc. for performing at least one of noise reduction, detail enhancement, tone mapping, contrast enhancement, color enhancement, or frame rate conversion. In addition, the memory 110 may also store a final output image generated by image processing.
[0114] According to an embodiment of the present disclosure, the memory 110 may be implemented as a single memory storing data generated in various operations according to the present disclosure. However, according to another embodiment of the present disclosure, the memory 110 may be implemented as a plurality of memories including storing different types of data or storing data generated at different stages, respectively.
[0115] In the above-mentioned embodiments, various data are described as being stored in the external memory 110 of the processor 120, but at least some of the above-mentioned data may also be stored in the internal memory of the processor 120 according to an implementation example of at least one of the receiving device 100 or the processor 120.
[0116] The processor 120 may include various processing circuits and is electrically connected to the memory 110 to control the overall operation of the receiving device 100. The processor 120 may be configured as one or more processors. For example, the processor 120 may perform the operation of the receiving device 100 according to various embodiments of the present disclosure by executing at least one instruction stored in the memory 110.
[0117] According to an embodiment, the processor 120 may be implemented as, for example, but not limited to, a digital signal processor (DSP) for processing a digital image signal, a microprocessor, a graphics processing unit (GPU), an artificial intelligence (AI) processor, a neural processing unit (NPU), a time controller (TCON), etc. However, the processor 120 is not limited thereto, but may include, for example, but not limited to, one or more of a central processing unit (CPU), a dedicated processor, a microcontroller unit (MCU), a microprocessing unit (MPU), a controller, an application processor (AP), a communication processor (CP), an ARM processor, etc., or may be defined as a corresponding term. In addition, the processor 120 may be implemented by a system on chip (SoC) or a large-scale integration (LSI) embedded with a processing algorithm, or may be implemented in the form of an application-specific integrated circuit (ASIC) and a field-programmable gate array (FPGA).
[0118] In addition, the processor 120 for executing the artificial intelligence model according to an embodiment of the present disclosure may be implemented by a general-purpose processor (such as a CPU, AP, digital signal processor (DSP), etc.), a graphics-specific processor (such as a GPU, a visual processing unit (VPU)), or an artificial intelligence-specific processor (such as an NPU) and a combination of software. The processor 120 may control the processing of input data according to predefined operating rules or artificial intelligence models stored in the memory 110. When the processor 120 is a dedicated processor (or an artificial intelligence-specific processor), the processor 120 may be designed with a hardware architecture dedicated to the processing of a specific artificial intelligence model. For example, the hardware dedicated to the processing of a specific artificial intelligence model may be designed as a hardware chip such as an ASIC and an FPGA. When the processor 120 is implemented as a dedicated processor, the processor 120 may be implemented to include a memory for implementing an embodiment of the present disclosure, or may be implemented to include a memory processing function for using an external memory.
[0119] The processor 120 processes the input data to obtain output data. The input data may include at least one of text, an image, or a user voice. For example, the input data may be input through a communicator, wherein the communicator includes various communication circuits capable of communicating with an external device, a user input such as a keyboard or a touch pad, a camera, a microphone, etc. Depending on the type of artificial intelligence model, the output data may be in various forms. For example, the output data may include, for example, but not limited to, an image with improved resolution, object-related information included in the image, text corresponding to the voice, etc.
[0120] According to an example, the processor 120 may perform image processing on the input image to obtain an output image. The image may include, for example, but not limited to, a still image, a plurality of continuous still images (or frames), a video, and the like. The image processing may be digital image processing, including, for example, but not limited to, at least one of image enhancement, image restoration, image transformation, image analysis, image understanding, image compression, and the like. According to an example, when the input image is a compressed image, the processor 120 may decode the compressed image and then perform image processing. According to an embodiment, the processor 120 may perform image processing on the input image using an artificial intelligence model. For example, the processor 120 may load and use artificial intelligence model related information stored in the memory 110 (e.g., an external memory such as a DRAM) in order to use the artificial intelligence model.
[0121] Figure 4 is a diagram illustrating an example operation of a receiving device according to an embodiment of the present disclosure.
[0122] Reference Figure 4According to an embodiment of the present disclosure, the processor 120 may decode the input image received from the transmitting device 200 (S410). Figure 4 , but for ease of description, are collectively referred to as input images.
[0123] The processor 120 according to an embodiment may obtain parameter information of the first artificial intelligence model 1 based on the preprocessing related information performed on the input image (S420). The processor 120 may enlarge the input image using the first artificial intelligence model 1 corresponding to the obtained parameter information (S430).
[0124] The memory 110 according to an embodiment of the present disclosure may store parameter information mapped to preprocessing related information corresponding to each of the different preprocessings. The processor 120 according to an embodiment may identify parameter information corresponding to the preprocessing related information received together with the input image among the stored parameter information (S420).
[0125] Will refer to Figure 5 Describe its detailed description.
[0126] Figure 5 is a diagram illustrating an example artificial intelligence model according to an embodiment of the present disclosure.
[0127] Reference Figure 5 , the memory 502 may store parameter information mapped to the preprocessing related information 501 corresponding to each of the different preprocessings. The parameter information may be information that has been previously trained to minimize and / or reduce the difference between the original image received by the transmitting device 200 (e.g., the original image before reduction) and the enlarged image obtained using the first artificial intelligence model 1.
[0128] According to an embodiment, the preprocessing related information 501 may include filter related information applied to the reduced image by the transmitting apparatus 200 during the preprocessing process. The filter related information may include at least one of the type or strength of the filter.
[0129] Generally, when the receiving device 100 performs enlargement, information about the filter applied to the reduced image in the preprocessing process of the transmitting device 200 is not considered. Therefore, the enlarged image obtained by the receiving device 100 has the following problem: the restoration rate of the texture, details, etc. of the original image lost in the preprocessing process is low.
[0130] According to an embodiment of the present disclosure, the receiving device 100 can set the first artificial intelligence model 1 based on preprocessing related information, and use the set first artificial intelligence model 1 to enlarge the input image, wherein the preprocessing related information includes filter related information applied to the reduced image during the preprocessing process of the sending device 200, etc.
[0131] For example, the processor 120 may identify parameter information that matches the received preprocessing related information 501 among the plurality of parameter information stored in the memory 502. Each of the plurality of parameter information may correspond to a different preprocessing. As an example, the parameter information may be trained so that texture, details, etc. lost when the sending device 200 applies the preprocessing filter to the reduced image are restored in the enlarged image. As another example, the parameter information may be trained so that texture, details, etc. lost when the sending device 200 applies the preprocessing filter to the reduced image are restored in the enlarged image obtained using the first artificial intelligence model 1, and the difference between the original image and the enlarged image is minimized.
[0132] The memory 502 according to an embodiment of the present disclosure may also store parameter information mapped to the preprocessing related information 501 corresponding to each of the different preprocessing as a lookup table (LUT). The processor 120 may identify the parameter information (503) corresponding to the received preprocessing related information 501 through the lookup table. However, this is only an example, and the memory 502 is not limited thereto. As an example, the memory 502 may also store parameter information in a form other than a lookup table.
[0133] The parameter information may include information about parameters (e.g., filter coefficients, biases, etc.) used in each of a plurality of neural network layers included in the artificial intelligence model.
[0134] Reference Figure 5 , the processor 120 may identify first parameter information (503) that matches the preprocessing related information 501. The identified first parameter information may include parameters 504 (e.g., filter coefficients, biases, etc.) corresponding to each of the multiple neural network layers included in the first artificial intelligence model 1.
[0135] According to an embodiment, the first artificial intelligence model 1 may be implemented as, for example, but not limited to, a convolutional neural network (CNN) model, and the parameter information may include, for example, but not limited to, the number of neural network layers included in the CNN model, the size of the convolution filter (e.g., width × height × channel (N × M × C)), bias, etc.
[0136] The processor 120 may set the first artificial intelligence model 1 (or model the first artificial intelligence model 1) by substituting each of the plurality of parameters 504 included in the identified parameter information into a corresponding neural network layer. Figure 5 In the example, a first artificial intelligence model 1 including y neural network layers 506 (or convolution filters) has been obtained, and the number of neural network layers may vary according to the identified parameter information. In addition, the processor 120 may use the first artificial intelligence model 1 to enlarge the input image 505 (e.g., the decoded image). The processor 120 may output the enlarged image 507. Figure 5 , the processor 120 according to an embodiment of the present disclosure may use the first artificial intelligence model 1 to enlarge the input image 505 of size N×M to obtain an output image of size 2N×2M (or an enlarged image 507). For the convenience of description, the size N×M and the size 2N×2M are arbitrarily assumed, and the receiving device 100 may enlarge input images of various sizes and resolutions to obtain an output image with high resolution.
[0137] The output image 507 may include texture, details, etc. lost during the preprocessing process of the transmitting device 200, and may be an image restored so that the difference with the original image is minimized. The output image 507 may be referred to as an enlarged image, a restored image, or a restored output image.
[0138] like Figure 5 As shown in , the first artificial intelligence model 1 according to an embodiment of the present disclosure may include multiple neural network layers, and each of the multiple neural network layers may include multiple parameters. The first artificial intelligence model 1 can perform neural network calculations by calculating between the calculation results of the previous layer and the multiple parameters.
[0139] According to an example, after applying a convolution filter in any layer, calculation data output by an activation function (e.g., rectified linear function (ReLU) calculation) may be output. The calculation data output from this layer is multi-channel data, and for example, 64 feature map (or activation map) data may be output and provided to the next layer. However, according to an example, the feature map data may be stored in a memory (an internal buffer or an external memory) and then provided to the next layer, but in Figure 5 The corresponding configuration is not shown in the figure. The parameter may refer to, for example, the weight (or coefficient) of the filter. The first artificial intelligence model 1 may perform calculations using various types of activation functions such as, for example but not limited to, an identity function, a logistic sigmoid function, a hyperbolic tangent (tanh) function, a ReLU function, a leaky ReLU function, etc.
[0140] The processor 120 may use, for example, a deep learning super-resolution (DLSR) technique to enlarge the image on which the image quality processing has been performed. The deep learning super-resolution (DLSR) technique may refer to, for example, a technique for improving the resolution of an input image using a CNN model trained based on a learning DB including a high-resolution original image and a low-resolution image. According to an example, a DLSR technique including a generative adversarial network (GAN) may also maximize and / or improve the effect of generating a texture portion in an image when performing DLSR image quality processing. Typically, a generative adversarial network (GAN) operates by competitively learning a generator and a discriminator together in a learning manner to generate data similar to real data, wherein the generator generates non-existent data and the discriminator discriminates between real data and false data. When such a GAN is applied to improve image quality, a texture that is not in the original image but corresponds to similar image features may be naturally created, thereby improving the details in the texture area. Therefore, a high-quality output image may be obtained.
[0141] Figure 6 is a block diagram illustrating an example receiving device according to an embodiment of the present disclosure.
[0142] Reference Figure 6 The receiving device 100' includes a memory 110, a processor (eg, including a processing circuit) 120, a display 130, an input device (eg, including an input circuit) 140, an output device (eg, including an output circuit) 150, and a user interface (eg, including a user interface circuit) 160.
[0143] The display 130 may be implemented as a display including a self-luminous element, or a display including a non-luminous element and a backlight. For example, the display 130 may be implemented as various forms of displays, such as, for example but not limited to, a liquid crystal display (LCD), an organic light emitting diode (OLED) display, a light emitting diode (LED), a micro LED, a mini LED, a plasma display panel (PDP), a quantum dot (QD) display, a quantum dot light emitting diode (QLED), etc. The display 130 may also include a driving circuit, a backlight unit, etc. that may be implemented in the form of an a-si thin film transistor (TFT), a low temperature polycrystalline silicon (LTPS) TFT, and an organic TFT (OTFT). The display 130 may be implemented as a touch screen combined with a touch sensor, a flexible display, a rollable display, a three-dimensional (3D) display, a display with multiple display modules physically connected to each other, etc. The processor 120 may include various processing circuits, and control the display 130 to output the output image obtained according to the various embodiments described above. The output image may be a high-resolution image of 4K or 8K or more.
[0144] The input device 140 may include various input circuits and receive various types of content. For example, the input device 140 may receive an image signal from an external device (e.g., a source device), an external storage medium (e.g., a USB memory), an external server (e.g., a network hard disk), etc. in a streaming or downloading manner through the following communication methods: such as Wi-Fi (Wi-Fi, wireless LAN network) based on AP, Bluetooth, Zigbee, wired / wireless local area network (WAN), wide area network (WAN), Ethernet, IEEE 1394, High Definition Multimedia Interface (HDMI), Universal Serial Bus (USB), Mobile High Definition Link (MHL), Audio Engineering Society / European Broadcasting Union (AES / EBU), optical, coaxial, etc. The image signal may be a digital image signal of any one of a standard definition (SD) image, a high definition (HD) image, a full HD image, and an ultra HD image, but is not limited thereto.
[0145] The outputter 150 may include various output circuits and output a sound signal. For example, the outputter 150 may convert a digital sound signal processed by the processor 110 into an analog sound signal, and amplify and output the analog sound signal. For example, the outputter 150 may include at least one speaker unit, a D / A converter, an audio amplifier, etc. that can output at least one channel. According to an example, the outputter 150 may be implemented to output various multi-channel sound signals. The processor 120 may control the outputter 150 to perform enhanced processing on the input sound signal and output it so as to correspond to the enhanced processing of the input image. For example, the processor 120 may convert the input dual-channel sound signal into a virtual multi-channel (e.g., 5.1-channel) sound signal, or identify the position where the receiving device 100' is placed and process the identified position using a stereo sound signal optimized for space, or provide an optimized sound signal according to the type of the input image (e.g., content genre).
[0146] The user interface 160 includes various user interface circuits and may be implemented as a device such as a button, a touch pad, a mouse, or a keyboard, or may be implemented as a touch screen that can also perform the above-mentioned display function and manipulation / input function, a remote controller transceiver, etc. The remote controller transceiver may receive a remote controller signal from an external remote controller or transmit a remote controller signal through at least one communication scheme of infrared communication, Bluetooth communication, or Wi-Fi communication.
[0147] According to an implementation example, the receiving device 100' may further include a tuner and a demodulator. The tuner (not shown) may receive a RF broadcast signal by tuning a channel selected by a user or all previously stored channels in a radio frequency (RF) broadcast signal received through an antenna. The demodulator (not shown) may receive and demodulate a digital IF signal (DIF) converted by the tuner and perform channel decoding. According to an embodiment, an input image received by the tuner may be processed by a demodulator (not shown) and then provided to the processor 110 for image processing according to an embodiment of the present disclosure.
[0148] Figure 7 is a block diagram illustrating an example configuration of an example transmitting device according to an embodiment of the present disclosure.
[0149] The transmitting device 200 according to an embodiment of the present disclosure may include a memory 210 , a processor (eg, including a processing circuit) 220 , and a communication interface (eg, including a communication circuit) 230 .
[0150] The memory 210 may store data required by various embodiments of the present disclosure. According to the purpose of data storage, the memory 210 may be implemented in the form of a memory embedded in the transmitting device 200, or may also be implemented in the form of a memory that can be attached to and detached from the transmitting device 200. For example, data for driving the transmitting device 200 may be stored in a memory embedded in the transmitting device 200, and data for the extended functions of the transmitting device 200 may be stored in a memory that can be attached to and detached from the transmitting device 200. The memory embedded in the transmitting device 200 may be implemented as at least one of a volatile memory (e.g., a dynamic random access memory (DRAM), a static RAM (SRAM), a synchronous dynamic RAM (SDRAM), etc.) or a non-volatile memory (e.g., a one-time programmable read-only memory (OTPROM), a programmable ROM (PROM), an erasable programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a mask ROM, a flash ROM, a flash memory (e.g., a NAND flash memory, a NOR flash memory, etc.), a hard disk drive, or a solid-state drive (SSD)). In addition, the memory that can be attached to and detached from the sending device 200 can be implemented in the form of a memory card (e.g., Compact Flash (CF), Secure Digital (SD), Micro Secure Digital (Micro-SD), Mini Secure Digital (Mini-SD), Extreme Digital (xD), MultiMedia Card (MMC)), etc.), an external memory that can be connected to a USB port (e.g., USB memory), etc.
[0151] According to an example, the memory 210 may store a computer program including at least one or more instructions for controlling the transmitting device 200 .
[0152] According to another example, the memory 210 may store information about an artificial intelligence model including a plurality of layers. The storage of information about the artificial intelligence model may refer to, for example, storing various information related to the operation of the artificial intelligence model, for example, information about a plurality of layers included in the artificial intelligence model, information about parameters used in each of the plurality of layers (e.g., filter coefficients, biases, etc.), etc. For example, the memory 210 may store information about a second artificial intelligence model 2 trained to perform image reduction processing according to an embodiment of the present disclosure. However, when the processor 220 is implemented by dedicated hardware, the information about the artificial intelligence model may also be stored in the internal memory of the processor 220.
[0153] According to another example, the memory 210 may store images received from an external device (eg, source device), an external storage medium (eg, USB), an external server (eg, network hard disk), etc. The image may be a digital motion image, but is not limited thereto.
[0154] According to another example, the memory 210 may store various information required for image quality processing, for example, information, algorithms, image quality parameters, etc. for performing at least one of noise reduction, detail enhancement, tone mapping, contrast enhancement, color enhancement, or frame rate conversion. In addition, the memory 210 may also store a final output image generated by image processing.
[0155] According to an embodiment of the present disclosure, the memory 210 may be implemented as a single memory storing data generated in various operations according to the present disclosure. However, according to another embodiment of the present disclosure, the memory 210 may also be implemented as a plurality of memories including storing different types of data or storing data generated at different stages, respectively.
[0156] In the above-mentioned embodiments, various data are described as being stored in the external memory 210 of the processor 220, but at least some of the above-mentioned data may also be stored in the internal memory of the processor 220 according to an implementation example of at least one of the sending device 200 or the processor 220.
[0157] The processor 220 may include various processing circuits and is electrically connected to the memory 210 to control the overall operation of the transmitting device 200. The processor 220 may be configured as one or more processors. The processor 220 may perform the operation of the transmitting device 200 according to various embodiments of the present disclosure by executing at least one instruction stored in the memory 210.
[0158] According to an embodiment, the processor 220 may be implemented as, for example, but not limited to, a digital signal processor (DSP) for processing a digital image signal, a microprocessor, a graphics processing unit (GPU), an artificial intelligence (AI) processor, a neural processing unit (NPU), a time controller (TCON), etc. However, the processor 220 is not limited thereto, but may include, for example, but not limited to, one or more of a central processing unit (CPU), a dedicated processor, a microcontroller unit (MCU), a microprocessing unit (MPU), a controller, an application processor (AP), a communication processor (CP), an ARM processor, etc., or may be defined as a corresponding term. In addition, the processor 220 may be implemented by a system on chip (SoC) or a large-scale integration (LSI) embedded with a processing algorithm, or may be implemented in the form of an application-specific integrated circuit (ASIC) and a field-programmable gate array (FPGA).
[0159] In addition, the processor 220 for executing the artificial intelligence model according to an embodiment of the present disclosure may be implemented by a general-purpose processor (such as a CPU, AP, digital signal processor (DSP), etc.), a graphics-specific processor (such as a GPU, a visual processing unit (VPU)), or an artificial intelligence-specific processor (such as an NPU) and a combination of software. The processor 220 may control the processing of input data according to predefined operating rules or artificial intelligence models stored in the memory 210. When the processor 220 is a dedicated processor (or an artificial intelligence-specific processor), the processor 220 may be designed with a hardware architecture dedicated to the processing of a specific artificial intelligence model. For example, the hardware dedicated to the processing of a specific artificial intelligence model may be designed as a hardware chip such as an ASIC and an FPGA. When the processor 220 is implemented as a dedicated processor, the processor 220 may be implemented to include a memory for implementing an embodiment of the present disclosure, or may be implemented to include a memory processing function for using an external memory.
[0160] The processor 220 processes the input data to obtain output data. The input data may include at least one of text, an image, or a user voice. For example, the input data may be input through a communicator capable of communicating with an external device, a user input device such as a keyboard or a touch pad, a camera, a microphone, etc. Depending on the type of artificial intelligence model, the output data may be in various forms. For example, the output data may be an image with improved resolution, object-related information included in the image, text corresponding to the voice, etc.
[0161] According to an example, the processor 220 performs image processing on the input image to obtain an output image. The image may include a still image, a plurality of continuous still images (or frames), or a video. The image processing may be digital image processing, including at least one of image enhancement, image restoration, image transformation, image analysis, image understanding, or image compression. According to an example, when the input image is a compressed image, the processor 220 may decode the compressed image and then perform image processing. According to an embodiment, the processor 220 may perform image processing on the input image using an artificial intelligence model. For example, the processor 220 may load and use artificial intelligence model related information stored in the memory 210 (e.g., an external memory such as DRAM) in order to use the artificial intelligence model.
[0162] The processor 220 according to an embodiment of the present disclosure may pre-process the reduced image based on the feature information of the image obtained from the second artificial intelligence model 2. Figure 8 Describe its detailed description.
[0163] Figure 8 2 is a diagram illustrating an example operation of the transmitting device 200 according to an embodiment of the present disclosure.
[0164] Reference Figure 8 , the processor 220 may reduce the input image using a second artificial intelligence model 2 that is learned (e.g., trained) to reduce the image.
[0165] According to an embodiment, the processor 220 may reduce an input image having a size of 2N×2M to obtain an output image having a size of N×M (or a reduced image). For ease of description, the size N×M and the size 2N×2M are arbitrarily assumed, and the transmitting device 100 may reduce input images having various sizes and resolutions to obtain an output image having a low resolution.
[0166] The processor 220 according to an embodiment of the present disclosure may obtain filter-related information of a preprocessing process to be applied to the reduced image based on feature information of the image obtained from the second artificial intelligence model 2. The filter-related information may include at least one of a type or strength of a filter to be applied to the reduced image.
[0167] The feature information of the image may refer to, for example, a feature map obtained according to the convolution processing result of the second artificial intelligence model 2. As an example, the processor 220 may obtain at least one feature information by applying the input image to the second artificial intelligence model 2. For example, the processor 220 may obtain multiple pieces of feature information through multiple neural network layers (or convolution layers) included in the second artificial intelligence model 2, and each of the multiple pieces of feature information may represent a feature of the input image (e.g., a vertical feature, a horizontal feature, or an edge feature). The feature information of the image may be referred to as a feature map, etc., but hereinafter, for ease of description, it will be collectively referred to as feature information.
[0168] The processor 220 may use a third artificial intelligence model 3 to obtain information related to a preprocessing filter to be performed on an input image or a reduced image, wherein the third artificial intelligence model 3 is learned (e.g., trained) to obtain information related to preprocessing of the image corresponding to feature information of the image.
[0169] For example, the processor 220 may apply feature information (or feature map) output from any one of the plurality of neural network layers included in the second artificial intelligence model 2 to the third artificial intelligence model 3. The processor 220 may obtain preprocessing-related information corresponding to the feature information of the input image using the third artificial intelligence model 3 trained to output preprocessing-related information corresponding to the feature information of the image. The preprocessing-related information may include filter-related information to be applied to the reduced image, and the filter-related information may include at least one of the type or strength of the filter.
[0170] According to an example, the third artificial intelligence model 3 may be implemented to share at least one layer with the second artificial intelligence model 2. For example, the third artificial intelligence model 3 may include at least one layer that receives feature map data output from a specific layer among the multiple layers included in the second artificial intelligence model 2. Therefore, the third artificial intelligence model 3 may be implemented in a form including at least some of the layers included in the second artificial intelligence model 2 and at least one additional layer. The additional layer may be learned (e.g., trained) to transform feature map data (e.g., 2D data) into preprocessing related information (e.g., 1D data) and output the transformed preprocessing related information.
[0171] According to the implementation example, the third artificial intelligence model 3 can be implemented in the following form: the parameters of at least one layer shared with the second artificial intelligence model 2 are fixed, and the parameters of the remaining layers not shared with the second artificial intelligence model 2 are learned. For example, transfer learning can be used in the learning of the third artificial intelligence model 3. Transfer learning may refer to a method of performing learning, for example, by reusing a model that has been learned for a specific application in another application. For example, assuming that there is a learned model for classifying animals in an input image, when a model with more types of animals is generated, a new model can be generated by reusing the existing learned model and learning only the classifier part without having to relearn from the beginning. The transfer learning method has the advantage of being able to learn quickly with a small amount of data, and it is well known that its performance is excellent. When there is already a trained model and a problem similar to that of the model needs to be solved, it is efficient to use such a method. In this way, the third artificial intelligence model 3 can be implemented in the form of using at least some layers of the second artificial intelligence model 2 that have been learned for reduction and additionally learning the remaining additional layers.
[0172] For example, the processor 220 may identify the bilateral filter as a preprocessing filter based on the preprocessing related information obtained using the third artificial intelligence model 3. The processor 220 may identify the strength of the bilateral filter based on the preprocessing related information, for example, the filter weight value. For example, the filter weight value may be identified using the following mathematical expression 1.
[0173] [Mathematical expression 1]
[0174]
[0175] Here, (i, j) represents the pixel coordinates, I(i, j) represents the intensity of the pixel (i, j), and I(k, l) represents the intensity of the pixel (k, l) in the kernel size. d and σ r represents the smoothing parameter.
[0176] Bilateral filter is only an example of various filter types, but preprocessing filter is not limited thereto. As another example, processor 220 may also identify Gaussian filter or median filter as preprocessing filter based on preprocessing related information. In addition, even when the same filter is identified, processor 220 may perform preprocessing (S810) with different strengths based on preprocessing related information.
[0177] The processor 220 according to an embodiment of the present disclosure may transmit preprocessing related information to the receiving device 100. For example, the processor 220 may transmit preprocessing filter related information applied to the reduced image to the receiving device 100.
[0178] The preprocessing related information according to an embodiment may further include information on a difference between an image before applying the preprocessing filter and an image after applying the preprocessing filter.
[0179] According to an embodiment of the present disclosure, the transmitting device 200 may transmit preprocessing related information including information related to the preprocessing filter applied to the image, information on the difference between the image before the filter is applied and the image after the filter is applied, etc. to the receiving device 100. The information on the difference between the image before the filter is applied and the image after the filter is applied may include minimum / maximum values, variance, etc.
[0180] Because the receiving device 100 sets a plurality of neural network layers included in the first artificial intelligence model 1 (e.g., an AI decoder) for upscaling the image based on the received preprocessing-related information, the upscaled image obtained from the first artificial intelligence model 1 may include details of the original image that are lost due to the application of the preprocessing filter, etc.
[0181] The processor 220 according to an embodiment of the present disclosure may encode the preprocessed image ( S820 ) and transmit the encoded image and preprocessing related information to the receiving device 100 .
[0182] Return to reference Figure 7 , the processor 220 according to an embodiment of the present disclosure may include a communication interface 230 .
[0183] The communication interface 230 may include various communication circuits and receive various types of content. In addition, the communication interface 230 may transmit image data including an encoded image and pre-processing related information to the receiving device 100 in the form of a bit stream according to the control of the processor 220.
[0184] For example, the communication interface 230 may receive an image signal from an external device (e.g., a source device), an external storage medium (e.g., a USB memory), an external server (e.g., a network hard disk), etc. in a streaming or downloading manner through the following communication means: such as AP-based Wi-Fi (Wi-Fi, wireless LAN network), Bluetooth, Zigbee, wired / wireless local area network (WAN), wide area network (WAN), Ethernet, IEEE 1394, High Definition Multimedia Interface (HDMI), Universal Serial Bus (USB), Mobile High Definition Link (MHL), Audio Engineering Society / European Broadcasting Union (AES / EBU), optical, coaxial, etc. Here, the image signal may be a digital image signal of any one of a standard definition (SD) image, a high definition (HD) image, a full HD image, and an ultra high definition image, but is not limited thereto.
[0185] The processor 220 according to an embodiment of the present disclosure may obtain state information of a network to which the communication interface 230 is connected. The processor 220 may pre-process the reduced image based on the state information of the network and feature information of the image obtained from the second artificial intelligence model 2.
[0186] According to an embodiment, the status information of the network may include the bandwidth, bit error rate, signal strength, delay, etc. of the network.
[0187] According to an embodiment, the processor 220 may use a third artificial intelligence model 3 to obtain preprocessing related information including preprocessing filter related information to be applied to an input image or a reduced image, wherein the third artificial intelligence model 3 is trained to obtain preprocessing related information using state information of the network and feature information of the image.
[0188] The processor 220 according to an embodiment of the present disclosure may identify at least one of the type or strength of the filter by considering state information of the network in addition to feature information of the image to appropriately adjust encoding performance and compression rate according to the state information of the network.
[0189] Various embodiments for the second DNN corresponding to the first artificial intelligence model and the first DNN corresponding to the second artificial intelligence model will be described in more detail below.
[0190] Fig. 9 is a diagram illustrating an example artificial intelligence (AI) encoding process and an example AI decoding process according to an embodiment of the present disclosure.
[0191] As described above, as the resolution of an image rapidly increases, the throughput of information used for encoding / decoding increases, and thus, a method for improving encoding and decoding efficiency of an image is required.
[0192] like Fig. 9 As shown in , according to an embodiment of the present disclosure, AI reduction 910 is performed on an original image 905 having a high resolution to obtain a first image 915. In addition, since the first encoding 920 and the first decoding 930 are performed on the first image 915 having a relatively small resolution, the processed bit rate can be greatly reduced compared to the case where the first encoding 920 and the first decoding 930 are performed on the original image 905. The AI reduction 910 may correspond to the above-mentioned reduction operation, and the first encoding 920 may correspond to the above-mentioned encoding operation. In addition, the first decoding 930 may correspond to the above-mentioned decoding operation.
[0193] Reference Fig. 9According to an embodiment, in the AI encoding process, AI reduction 910 is performed on the original image 905 to obtain a first image 915, and first encoding 920 is performed on the first image 915. In the AI decoding process, AI encoded data including AI data and image data obtained as a result of the AI encoding is received, a second image 935 is obtained through the first decoding 930, and AI enlargement 940 is performed on the second image 935 to obtain a third image 945.
[0194] The AI encoding process may be performed in the transmitting device 200 , and the AI decoding process may be performed in the receiving device 100 .
[0195] The AI encoding process will be described in more detail. When the original image 905 is received, AI reduction 910 is performed on the original image 905 to obtain a first image 915 having a predetermined resolution or a predetermined image quality. The AI reduction 910 is performed based on AI, and the AI for the AI reduction 910 needs to be jointly trained with the AI for the AI enlargement 940 of the second image 935. The reason for this is that when the AI for the AI reduction 910 and the AI for the AI enlargement 940 are separately trained, the difference between the original image 905 as the AI encoding target and the third image 945 restored by the AI decoding becomes larger.
[0196] The AI for AI reduction 910 may correspond to the second artificial intelligence model 2 described above, and the AI for AI enlargement 940 may correspond to the first artificial intelligence model 1 described above. Fig. 9 Not shown, but the AI for AI reduction 910, the AI for AI enlargement 940, and the AI for obtaining pre-processing related information (e.g., the third artificial intelligence model 3) can all be trained jointly with each other.
[0197] In an embodiment of the present disclosure, in order to maintain such a joint relationship in the AI encoding process and the AI decoding process, AI data may be used. Therefore, the AI data obtained by the AI encoding process needs to include information indicating the magnification target, and in the AI decoding process, it is necessary to perform AI magnification 940 on the second image 935 according to the magnification target identified based on the AI data.
[0198] The AI for AI reduction 910 and the AI for AI enlargement 940 may be implemented, for example but not limited to, with a deep neural network (DNN). Fig. 9 As described, because the first DNN and the second DNN are jointly trained by sharing loss information under a predetermined target, the AI encoding device may provide the target information used when the first DNN and the second DNN are jointly trained to the AI decoding device, and the AI decoding device may perform AI upscaling 940 on the second image 935 at the target resolution based on the provided target information.
[0199] Will describe in more detail Fig. 9 920 and the first decoding 930 shown in . The first image 915 obtained by performing AI reduction 910 on the original image 905 may have an amount of information reduced by the first encoding 920. The first encoding 920 may include a process of predicting the first image 915 to generate prediction data, a process of generating residual data corresponding to the difference between the first image 915 and the prediction data, a process of transforming the residual data, which may be, for example, a spatial domain component, into a frequency domain component, a process of quantizing the residual data transformed into the frequency domain component, and a process of entropy encoding the quantized residual data. Such a first encoding process 920 may be implemented by one of the image compression methods using frequency transformation (such as MPEG-2, H.264 Advanced Video Coding (AVC), MPEG-4, High Efficiency Video Coding (HEVC), VC-1, VP8, VP9, AOMediaVideo1 (AV1), etc.).
[0200] The second image 935 corresponding to the first image 915 may be restored through the first decoding 930 of the image data. The first decoding 930 may include a process of entropy decoding the image data to generate quantized residual data, a process of inversely quantizing the quantized residual data, a process of transforming the residual data as a frequency domain component into a spatial domain component, a process of generating prediction data, and a process of restoring the second image 935 using the prediction data and the residual data. Such a first decoding process 930 may be implemented by an image restoration method corresponding to one used in the first encoding process 920 in an image compression method using frequency transformation (such as MPEG-2, H.264, MPEG-4, HEVC, VC-1, VP8, VP9, AV1, etc.).
[0201] The AI encoding data obtained through the AI encoding process may include image data obtained as a result of the first encoding 920 of the first image 915 and AI data related to the AI reduction 910 of the original image 905. The image data may be used in the process of the first decoding 930, and the AI data may be used in the process of the AI enlargement 940.
[0202] The image data may be transmitted in the form of a bitstream. The image data may include data obtained based on pixel values in the first image 915, for example, residual data as a difference between the first image 915 and the prediction data of the first image 915. In addition, the image data may include information used in the processing of the first encoding 920 of the first image 915. For example, the image data may include prediction mode information, motion information, and quantization parameter related information used in the first encoding 920 for performing the first encoding 920 on the first image 915. The image data may be generated according to the rules (e.g., syntax) of the image compression method used in the processing of the first encoding 920 among the image compression methods using frequency transformation (such as MPEG-2, H.264AVC, MPEG-4, HEVC, VC-1, VP8, VP9, and AV1).
[0203] The AI data may be used for AI upscaling 940 based on the second DNN. As described above, because the first DNN and the second DNN are jointly trained, the AI data includes information that allows accurate AI upscaling 940 of the second image 935 to be performed by the second DNN. In the AI decoding process, AI upscaling 940 may be performed on the second image 935 at a target resolution and / or image quality based on the AI data.
[0204] The AI data may be transmitted together with the image data in the form of a bitstream. According to an implementation example, the AI data may be transmitted separately from the image data in the form of a frame or a packet. The image data and the AI data obtained as a result of the AI encoding may be transmitted through the same network or different networks.
[0205] Fig.10 is a block diagram illustrating an example configuration of the AI decoding device 1000 according to an embodiment of the present disclosure.
[0206] Reference Fig.10 According to an embodiment, the AI decoding device 1000 may include a receiver (e.g., including a receiving circuit) 1010 and an AI decoder (e.g., including a processing circuit and / or an executable program element) 1030. The receiver 1010 may include a communicator (e.g., including a communication circuit) 1012, a parser (e.g., including a processing circuit and / or an executable program element) 1014, and an outputter (e.g., including an output circuit) 1016. The AI decoder 1030 may include a first decoder (e.g., including a processing circuit and / or an executable program element) 1032 and an AI amplifier (e.g., including a processing circuit and / or an executable program element) 1034. The AI decoding device 1000 may refer to the receiving device 100. In addition, the first decoder 1032 may correspond to a decoding operation, and the AI amplifier 1034 may correspond to a first artificial intelligence model 1.
[0207] The receiver 1010 receives and parses AI encoded data obtained as a result of AI encoding, and classifies image data and AI data to output the classified data to the AI decoder 1030 .
[0208] For example, the communicator 1012 may include various communication circuits and receive AI-encoded data obtained as a result of AI encoding through a network. The AI-encoded data obtained as a result of AI encoding includes image data and AI data. The image data and AI data may be received through a homogeneous network or a heterogeneous network.
[0209] The parser 1014 may include various processing circuits and / or executable program elements, and receive and parse the AI encoded data received by the communicator 1012, and classify the AI encoded data into image data and AI data. For example, the parser 1014 may read the header of the data obtained from the communicator 1012, and identify whether the data is image data or AI data. In the example, the parser 1014 classifies the image data and the AI data by the header of the data received via the communicator 1012, and sends the classified data to the outputter 1016, and the outputter 1016 includes various output circuits and sends each classified data to the first decoder 1032 and the AI amplifier 1034. It can also be identified that the image data included in the AI encoded data is image data obtained by a predetermined codec (e.g., MPEG-2, H.264, MPEG-4, HEVC, VC-1, VP8, VP9 or AV1). In this case, the parser 1014 can send the corresponding information to the first decoder 1032 through the outputter 1016, so that the image data can be processed by the identified codec.
[0210] In an embodiment, the AI encoded data parsed by the parser 1014 can also be obtained from a data storage medium, wherein the data storage medium includes a magnetic medium (such as a hard disk, a floppy disk, or a tape), an optical recording medium (such as a compact disk read-only memory (CD-ROM) or a digital versatile disk (DVD)), a magneto-optical medium (such as a floppy disk), and the like.
[0211] The first decoder 1032 may include various processing circuits and / or executable program elements, and restores a second image 935 corresponding to the first image 915 based on the image data. The second image 935 obtained by the first decoder 1032 is provided to the AI amplifier 1034. According to an implementation example, first decoding related information such as prediction mode information, motion information, quantization parameter information, etc. included in the image data may be further provided to the AI amplifier 1034.
[0212] The AI amplifier 1034 may include various processing circuits and / or executable program elements for receiving AI data, and based on the AI data, performs AI amplification on the second image 935. According to an implementation example, the AI amplification may be performed by further using first decoding related information such as prediction mode information, quantization parameter information, etc. included in the image data.
[0213] The AI decoder 1030 may set a plurality of neural network layers included in the AI amplifier 1034 based on the preprocessing related information. The detailed description thereof has been described above.
[0214] The receiver 1010 and the AI decoder 1030 according to the embodiment are described as separate devices, but can be implemented by a single processor. The receiver 1010 and the AI decoder 1030 can be implemented by a dedicated processor, and can also be implemented by a combination of a general-purpose processor (such as an AP, a CPU, or a GPU) and software S / W. In addition, the dedicated processor can be implemented to include a memory for implementing the embodiments of the present disclosure, or can be implemented to include a memory processor for using an external memory.
[0215] In addition, the receiver 1010 and the AI decoder 1030 may also be configured by multiple processors. The receiver 1010 and the AI decoder 1030 may be implemented by a combination of dedicated processors, and may also be implemented by a combination of multiple general-purpose processors (such as AP, CPU, and GPU) and software S / W. Similarly, the AI amplifier 1034 and the first decoder 1032 may be implemented by different processors.
[0216] The AI data provided to the AI amplifier 1034 includes information that allows AI enlargement to be performed on the second image 935. In this case, the enlargement target needs to correspond to the reduction of the first DNN. Therefore, the AI data needs to include information that can identify the reduction target of the first DNN.
[0217] Examples of the information included in the AI data include difference information between the resolution of the original image 905 and the resolution of the first image 915 and information related to the first image 915 .
[0218] The difference information may be represented as information about the degree of resolution conversion of the first image 915 compared to the original image 905 (e.g., resolution conversion rate information). In addition, since the resolution of the first image 915 is known by the resolution of the restored second image 935, and the degree of resolution conversion can be identified by the resolution of the first image 915, the difference information may also be represented by only the resolution information of the original image 905. The resolution information may be represented by a screen size of width / length, or may be represented by a ratio (16:9, 4:3, etc.) and a size of one axis. In addition, if there is predetermined resolution information, the resolution information may be represented in the form of an index or a flag.
[0219] In addition, the information related to the first image 915 may include information about at least one of a bit rate of image data obtained as a result of the first encoding of the first image 915 and a type of codec used when the first encoding is performed on the first image 915.
[0220] The AI amplifier 1034 may include various processing circuits and / or executable program elements, and determine an enlargement target of the second image 935 based on the difference information and at least one of the information related to the first image 915 included in the AI data. The enlargement target may indicate a resolution to which enlargement needs to be performed on the second image 935. If the enlargement target is determined, the AI amplifier 1034 performs AI enlargement on the second image 935 through the second DNN to obtain a third image 945 corresponding to the enlargement target.
[0221] Before describing how the AI amplifier 1034 performs AI amplification on the second image 935 according to the amplification target, reference will be made to Fig.11 and Fig.12 Describe the AI amplification process through the second DNN.
[0222] Fig.11 is a diagram illustrating an example second DNN 1100 for AI upscaling of a second image 935, and Fig.12 The present invention is a diagram showing an embodiment of the present invention. Fig.11 Schematic diagram of an example convolution computation in the first convolutional layer 1110 shown in .
[0223] like Fig.11 As shown in , the second image 935 is input to the first convolutional layer 1110. Fig.11The 3×3×4 indicated in the first convolution layer 1110 shown in FIG. 1 shows a convolution process of one input image using four filter kernels of size 3×3. As a result of the convolution process, four feature maps are generated by the four filter kernels. Each feature map represents a unique feature of the second image 935. For example, each feature map may represent a vertical feature, a horizontal feature, or an edge feature of the second image 935.
[0224] Will refer to Fig.12 The convolution calculation in the first convolution layer 1110 is described.
[0225] One feature map 1250 may be generated by multiplication and addition calculations between parameters of the filter kernel 1230 having a size of 3×3 used in the first convolution layer 1110 and pixel values in the second image 935 corresponding to the filter kernel 1230. Since four filter kernels are used in the first convolution layer 1110, four feature maps may be generated by performing convolution calculation processing using the four filter kernels.
[0226] exist Fig.12 , I1 to I49 indicated in the second image 935 represent pixels of the second image 935, and F1 to F9 indicated in the filter kernel 1230 represent parameters of the filter kernel 1230. In addition, M1 to M9 indicated in the feature map 1250 represent samples of the feature map 1250.
[0227] Fig.12 It is shown that the second image 935 includes 49 pixels, but this is only an example, and when the second image 935 has a resolution of 4K, the second image 935 may include, for example, 3840×2160 pixels.
[0228] In the convolution calculation process, multiplication calculations can be performed between each of the pixel values of I1, I2, I3, I8, I9, I10, I15, I16 and I17 of the second image 935 and each of F1, F2, F3, F4, F5, F6, F7, F8 and F9 of the filter kernel 1230, and the value obtained by combining (for example, addition calculation) the result values of the multiplication calculations can be assigned to the value of M1 of the feature map 1250. If the step size of the convolution calculation is 2, multiplication calculations can be performed between each of the pixel values of I3, I4, I5, I10, I11, I12, I17, I18 and I19 of the second image 935 and each of F1, F2, F3, F4, F5, F6, F7, F8 and F9 of the filter kernel 1230, and the value obtained by combining the result values of the multiplication calculations can be assigned to the value of M2 of the feature map 1250.
[0229] The convolution calculation between the pixel values in the second image 935 and the parameters of the filter kernel 1230 can be performed while the filter kernel 1230 moves along the step size until the filter kernel 1230 reaches the last pixel of the second image 935, so that a feature map 1250 with a predetermined size can be obtained.
[0230] According to the present disclosure, the values of the parameters of the second DNN, for example, the parameters of the filter kernel used in the convolution layer of the second DNN (for example, F1, F2, F3, F4, F5, F6, F7, F8, and F9 of the filter kernel 1230) can be optimized by joint training of the first DNN and the second DNN. As described above, the AI amplifier 1034 can determine the enlargement target corresponding to the reduction target of the first DNN based on the AI data, and determine the parameters corresponding to the determined enlargement target as the parameters of the filter kernel used in the convolution layer of the second DNN.
[0231] The convolutional layers included in the first DNN and the second DNN can be based on the reference Fig.12 The convolution calculation process described above is used to perform the processing, but is not limited thereto, and refers to Fig.12 The convolution calculation process described is only an example.
[0232] Return to reference Fig.11 , the feature map output from the first convolution layer 1110 is input to the first activation layer 1120. The first activation layer 1120 may assign nonlinear characteristics to each feature map. The first activation layer 1120 may include, for example, a sigmoid function, a Tanh function, a rectified linear unit (ReLU) function, etc., but is not limited thereto.
[0233] The assignment of the nonlinear characteristic by the first activation layer 1120 may mean, for example, that some sample point values of the feature map as the output of the first convolution layer 1110 are changed and output. The change may be performed by applying the nonlinear characteristic.
[0234] The first activation layer 1120 determines whether to transfer sample values of the feature map output from the first convolution layer 1110 to the second convolution layer 1130. For example, some sample values of the feature map are activated by the first activation layer 1120 and transferred to the second convolution layer 1130, and some sample values thereof are deactivated by the first activation layer 1120 and not transferred to the second convolution layer 1130. The unique characteristics of the second image 935 represented by the feature map are highlighted by the first activation layer 1120.
[0235] The feature map 1125 output from the first activation layer 1120 is input to the second convolutional layer 1130 . Fig.11 One of the feature graphs 1125 shown in FIG. Fig.12 The feature map 1250 depicted is the result of processing in the first activation layer 1120 .
[0236] The 3×3×4 indicated in the second convolution layer 1130 shows the convolution process of the input feature map 1125 using four filter kernels of size 3×3. The output of the second convolution layer 1130 is input to the second activation layer 1140. The second activation layer 1140 may assign nonlinear characteristics to the input data.
[0237] The feature map 1145 output from the second activation layer 1140 is input to the third convolutional layer 1150 . Figure 3 The 3×3×1 indicated in the third convolution layer 1150 shown in FIG. 1 shows a convolution process for generating an output image using a filter kernel of size 3×3. The third convolution layer 1150 is a layer for outputting a final image, and generates an output using a filter kernel. According to an example of the present disclosure, the third convolution layer 1150 may output a third image 945 through a convolution calculation result.
[0238] The DNN setting information of the second DNN 1100 indicating the number of filter cores, the parameters of the filter cores, etc. of the first convolution layer 1110, the second convolution layer 1130, and the third convolution layer 1150 may be multiple as described below, and the multiple pieces of DNN setting information need to be combined with the multiple pieces of DNN setting information of the first DNN. Joint learning between the multiple pieces of DNN setting information of the second DNN and the multiple pieces of DNN setting information of the first DNN can be achieved through joint learning between the first DNN and the second DNN.
[0239] Fig.11 The second DNN 1100 is shown to include three convolutional layers 1110, 1130, and 1150 and two activation layers 1120 and 1140, but this is only an example, and according to an implementation example, the number of convolutional layers and activation layers may be changed differently. In addition, according to an implementation example, the second DNN 1100 may also be implemented by a recurrent neural network (RNN). This case refers to changing the CNN architecture of the second DNN 1100 according to the example of the present disclosure to an RNN architecture.
[0240] In an embodiment, the AI amplifier 1034 may include at least one arithmetic logic unit (ALU) for the above-mentioned convolution calculation and activation layer calculation. The ALU may be implemented as a processor. For convolution calculation, the ALU may include a multiplier and an adder, wherein the multiplier is used to perform a multiplication calculation between the sample value of the feature map output from the second image 935 or the previous layer and the sample value of the filter kernel, and the adder is used to add the multiplied result values. In addition, for the calculation of the activation layer, the ALU may include a multiplier and a comparator, wherein the multiplier is used to multiply the input sample value by the weight used in a predetermined sigmoid function, Tanh function, or ReLU function, and the comparator is used to compare the multiplication result with a predetermined value to determine whether to transmit the input sample value to the next layer.
[0241] Hereinafter, a method of performing AI up-amplification on the second image 935 according to the up-amplification target by the AI amplifier 1034 will be described in more detail.
[0242] In an embodiment, the AI amplifier 1034 may store a plurality of pieces of DNN setting information that may be set in the second DNN.
[0243] The DNN setting information may include information about at least one of the following items: the number of convolutional layers included in the second DNN, the number of filter kernels for each convolutional layer, or the parameters of each filter kernel. Multiple DNN setting information may correspond to various amplification targets, and the second DNN may operate based on the DNN setting information corresponding to the specific amplification target. According to the DNN setting information, the second DNN may have a different architecture. For example, according to one DNN setting information, the second DNN may include three convolutional layers, and according to another DNN setting information, the second DNN may include four convolutional layers.
[0244] In an embodiment, the DNN setting information may also include parameters of the filter kernel used in the second DNN. Without changing the architecture of the second DNN, only the parameters of the internal filter kernel may be changed according to the DNN setting information.
[0245] The AI amplifier 1034 may obtain DNN setting information for AI amplification of the second image 935 from among the plurality of DNN setting information. Each of the plurality of DNN setting information used here is information for obtaining the third image 945 having a predetermined resolution and / or a predetermined image quality, and is jointly trained with the first DNN.
[0246] For example, any one of the multiple DNN setting information may include a piece of information for obtaining a third image 945 having a resolution twice as large as the resolution of the second image 935 (for example, a third image 945 of 4K (4096*2160) which is twice as large as the second image 935 of 2K (2048*1080)), and another piece of DNN setting information may include a piece of information for obtaining a third image 945 having a resolution four times as large as the resolution of the second image 935 (for example, a third image 945 of 8K (8192*4320) which is four times as large as the second image 935 of 2K (2048*1080)).
[0247] Each of the multiple pieces of DNN setting information is jointly generated with the DNN setting information of the first DNN of the AI encoding device 1500, and the AI amplifier 1034 obtains one of the multiple pieces of DNN setting information according to the enlargement ratio corresponding to the reduction ratio of the DNN setting information of the first DNN. To this end, the AI amplifier 1034 needs to check the information of the first DNN. In order for the AI amplifier 1034 to check the information of the first DNN, the AI decoding device 1000 according to the embodiment receives AI data including the information of the first DNN from the AI encoding device 1500.
[0248] In other words, the AI amplifier 1034 may use the information received from the AI encoding device 1500 to check the DNN setting information of the first DNN used to obtain the first image 915 as the target information, and obtain the DNN setting information of the second DNN jointly trained with the checked information.
[0249] If DNN setting information for AI up-scaling of the second image 935 among a plurality of pieces of DNN setting information is obtained, input data may be processed based on a second DNN operated according to the obtained DNN setting information.
[0250] For example, if you get a DNN setting information, then for Figure 3 For each of the first convolution layer 1110, the second convolution layer 1130, and the third convolution layer 1150 of the second DNN 1100 shown in , the number of filter kernels included in each layer and the parameters of the filter kernels are set to the values included in the obtained DNN setting information.
[0251] For example, you can Fig.12 The parameters of the 3×3 filter kernel used in a convolutional layer of the second DNN shown in are set to {1,1,1,1,1,1,1,1,1}, and subsequently, if the DNN setting information is changed, the set parameters can be replaced with the parameters {2,2,2,2,2,2,2,2,2} included in the changed DNN setting information.
[0252] The AI amplifier 1034 may obtain DNN setting information for AI amplification of the second image 935 among a plurality of pieces of DNN setting information based on information included in the AI data. The AI data for obtaining the DNN setting information will be described in detail.
[0253] In an embodiment, the AI amplifier 1034 may obtain, based on the difference information included in the AI data, DNN setting information for AI amplification of the second image 935 from among the plurality of pieces of DNN setting information. For example, if it is checked based on the difference information that the resolution of the original image 905 (e.g., 4K (4096*2160)) is twice as large as the resolution of the first image 915 (e.g., 2K (2048*1080)), the AI amplifier 1034 may obtain DNN setting information that may increase the resolution of the second image 935 by two times.
[0254] In another embodiment, the AI amplifier 1034 may obtain DNN setting information for AI amplification of the second image 935 from among the plurality of pieces of DNN setting information based on the information related to the first image 915 included in the AI data. The AI amplifier 1034 may predetermine a mapping relationship between the image-related information and the DNN setting information, and obtain the DNN setting information mapped to the information related to the first image 915.
[0255] Fig.13 is a diagram illustrating an example mapping relationship between a plurality of pieces of image-related information and a plurality of pieces of DNN setting information according to an embodiment of the present disclosure.
[0256] By reference Fig.13 From the described embodiments, it can be seen that the AI encoding / AI decoding process according to the embodiments of the present disclosure does not only consider the change in resolution. Figure 5 As shown in , DNN setting information can be selected by considering resolution (such as SD, HD, and full HD), bit rate (such as 10Mbps, 15Mbps, and 20Mbps), and codec information (such as AV1, H.264, and HEVC) alone or together. For such considerations, the training of each element in the AI training process needs to be performed jointly with the encoding and decoding processes (see Fig.17 ).
[0257] Therefore, according to the training content, such as Fig.13 As shown in , when multiple DNN setting information is provided based on image-related information including codec type, resolution of the image, etc., DNN setting information for AI amplification of the second image 935 can be obtained based on information related to the first image 915 received from the AI decoding process.
[0258] because Fig.13The image-related information shown on the left side of the table shown in matches the DNN setting information on the right side of the table, so the AI amplifier 1034 can use the DNN setting information according to the image-related information. Fig.13 Not shown, but in addition to image-related information, the AI amplifier 1034 may also include DNN setting information according to preprocessing-related information.
[0259] like Fig.13 As shown in , if it is checked from the information related to the first image 915 that the resolution of the first image 915 is SD, the bit rate of the image data obtained as a result of the first encoding of the first image 915 is 10Mbps, and the first encoding of the first image 915 is performed by the AV1 codec, the AI amplifier 1034 can use the ADNN setting information among multiple DNN setting information.
[0260] In addition, if it is checked from the information related to the first image 915 that the resolution of the first image 915 is HD, the bit rate of the image data obtained as a result of the first encoding of the first image 915 is 15Mbps, and the first encoding of the first image 915 is performed by the H.264 codec, the AI amplifier 1034 can use B DNN setting information among multiple DNN setting information.
[0261] In addition, if it is checked from the information related to the first image 915 that the resolution of the first image 915 is full HD, the bit rate of the image data obtained as a result of the first encoding of the first image 915 is 20 Mbps, and the first encoding of the first image 915 is performed by the HEVC codec, the AI amplifier 1034 may use the C DNN setting information among the plurality of DNN setting information, and if it is checked that the resolution of the first image 915 is full HD, the bit rate of the image data obtained as a result of the first encoding of the first image 915 is 15 Mbps, and the first encoding of the first image 915 is performed by the HEVC codec, the AI amplifier 1034 may use the D DNN setting information among the plurality of DNN setting information. One of the C DNN setting information and the D DNN setting information is selected according to whether the bit rate of the image data obtained as a result of the first encoding of the first image 915 is 20 Mbps or 15 Mbps. When the first encoding of the first image 915 having the same resolution is performed by the same codec, the bit rates of the image data are different from each other, indicating that the image qualities of the restored images are different from each other. Therefore, the first DNN and the second DNN may be jointly trained based on a predetermined image quality, and thus, the AI amplifier 1034 may obtain DNN setting information according to a bit rate of image data indicating an image quality of the second image 935 .
[0262] In another embodiment, the AI amplifier 1034 may also obtain DNN setting information for AI amplification of the second image 935 among a plurality of pieces of DNN setting information by considering together information (prediction mode information, motion information, quantization parameter information, etc.) provided from the first decoder 1032 and information related to the first image 915 included in the AI data. For example, the AI amplifier 1034 may receive quantization parameter information used in the first encoding process of the first image 915 from the first decoder 1032, check the bit rate of the image data obtained as a result of encoding the first image 915 from the AI data, and obtain DNN setting information corresponding to the quantization parameter information and the bit rate. Even with the same bit rate, there may be a difference in the image quality of the restored image according to the complexity of the image, and the bit rate is a value representing the entire first image 915 on which the first encoding is performed, and even within the first image 915, the image quality of each frame may be different. Therefore, by considering the prediction mode information, motion information, and / or quantization parameter that can be obtained from the first decoder 1032 for each frame, DNN setting information more suitable for the second image 935 can be obtained compared to using only the AI data.
[0263] In addition, according to an implementation example, the AI data may include an identifier of mutually agreed DNN setting information. The identifier of the DNN setting information is an enlargement target corresponding to the reduction target of the first DNN, and is information for distinguishing a pair of DNN setting information jointly trained between the first DNN and the second DNN, so that AI enlargement can be performed on the second image 935. The AI amplifier 1034 may obtain the identifier of the DNN setting information included in the AI data, and then use the DNN setting information corresponding to the identifier of the DNN setting information to perform AI enlargement on the second image 935. For example, an identifier indicating each of a plurality of DNN setting information that can be set in the first DNN and an identifier indicating each of a plurality of DNN setting information that can be set in the second DNN may be pre-specified. In this case, the same identifier may be specified for a pair of DNN setting information that can be set in each of the first DNN and the second DNN. The AI data may include an identifier of the DNN setting information set in the first DNN for the reduction of the original image 905. The AI amplifier 1034 receiving the AI data may use the DNN setting information indicated by the identifier included in the AI data among the plurality of DNN setting information to perform AI enlargement on the second image 935.
[0264] In addition, according to an implementation example, the AI data may further include DNN setting information. The AI amplifier 1034 may obtain the DNN setting information included in the AI data, and then perform AI amplification on the second image 935 using the corresponding DNN setting information.
[0265] According to an implementation example, when information configuring DNN setting information (e.g., the number of convolutional layers, the number of filter cores for each convolutional layer, parameters of each filter core, etc.) is stored in the form of a lookup table, the AI amplifier 1034 can obtain the DNN setting information by combining some values selected from the lookup table values based on information included in the AI data, and use the obtained DNN setting information to perform AI amplification on the second image 935.
[0266] According to an implementation example, if the architecture of the DNN corresponding to the amplification target is determined, the AI amplifier 1034 may also obtain DNN setting information corresponding to the determined architecture of the DNN, for example, parameters of a filter kernel.
[0267] The AI amplifier 1034 can obtain DNN setting information of the second DNN through AI data including information related to the first DNN, and perform AI amplification on the second image 935 through the second DNN set according to the obtained DNN setting information, which results in reduced memory usage and computational complexity compared to directly analyzing and amplifying features of the second image 935.
[0268] In an embodiment, when the second image 935 includes a plurality of frames, the AI amplifier 1034 may independently obtain DNN setting information for a predetermined number of frames, or may also obtain common DNN setting information for all frames.
[0269] Fig.14 is a diagram illustrating an example second image 935 including a plurality of frames according to an embodiment of the present disclosure.
[0270] like Fig.14 As shown in , the second image 935 may include frames corresponding to t0 to tn.
[0271] In an embodiment, the AI amplifier 1034 may obtain DNN setting information of the second DNN through the AI data, and perform AI amplification on the frames corresponding to t0 to tn based on the obtained DNN setting information. For example, AI amplification on the frames corresponding to t0 to tn may be performed based on the common DNN setting information.
[0272] In another example, the AI amplifier 1034 may perform AI amplification on some of the frames corresponding to t0 to tn, for example, perform amplification on the frames corresponding to t0 to ta using the 'A' DNN setting information obtained from the AI data, and perform AI amplification on the frames corresponding to ta+1 to tb using the 'B' DNN setting information obtained from the AI data. In addition, the AI amplifier 1034 may perform AI amplification on the frames corresponding to tb+1 to tn using the 'C' DNN setting information obtained from the AI data. In other words, the AI amplifier 1034 may independently obtain DNN setting information for each group including a predetermined number of frames among the plurality of frames, and perform AI amplification on the frames included in each group using the independently obtained DNN setting information.
[0273] In another example, the AI amplifier 1034 may also independently obtain DNN setting information for each frame included in the second image 935. When the second image 935 includes three frames, the AI amplifier 1034 may perform AI amplification on the first frame using the DNN setting information obtained for the first frame, perform AI amplification on the second frame using the DNN setting information obtained for the second frame, and perform AI amplification on the third frame using the DNN setting information obtained for the third frame. As described above, according to a method of obtaining DNN setting information based on information (prediction mode information, motion information, quantization parameter information, etc.) provided from the first decoder 1032 and information related to the first image 915 included in the AI data, DNN setting information may be independently obtained for each frame included in the second image 935. The reason is that mode information, quantization parameter information, etc. may be independently determined for each frame included in the second image 935.
[0274] In another example, the AI data may include information indicating until which frame the DNN setting information obtained based on the AI data is valid. For example, if the AI data includes information indicating that the DNN setting information is valid until ta frame, the AI amplifier 1034 may perform AI amplification on t0 to ta frames using the DNN setting information obtained based on the AI data. In addition, if other AI data includes information indicating that the DNN setting information is valid until tn frame, the AI amplifier 1034 may perform AI amplification on ta+1 to tn frames using the DNN setting information obtained based on other AI data.
[0275] In the following, reference will be made to Fig.15 An AI encoding device 1500 for AI encoding of an original image 905 is described.
[0276] Fig.15 is a block diagram illustrating an example configuration of an AI encoding device 1500 according to an embodiment of the present disclosure.
[0277] Reference Fig.15 , the AI encoding device 1500 may include an AI encoder (e.g., including a processing circuit and / or an executable program element) 1510 and a transmitter (e.g., including a communication circuit) 1530. The AI encoder 1510 may include an AI reducer (e.g., including a processing circuit and / or an executable program element) 1512 and a first encoder (e.g., including a processing circuit and / or an executable program element) 1514. The transmitter 1530 may include a data processor (e.g., including a processing circuit) 1532 and a communicator (e.g., including a processing circuit) 1534. The AI encoding device 1500 may refer to the transmitting device 200.
[0278] Although Fig.15 The AI encoder 1510 and the transmitter 1530 are shown as separate devices, but the AI encoder 1510 and the transmitter 1530 may be implemented by one processor. The AI encoder 1510 and the transmitter 1530 may be implemented by a dedicated processor, and may also be implemented by a combination of a general-purpose processor (such as an AP, a CPU, and a GPU) and software S / W. In addition, the dedicated processor may be implemented to include a memory for implementing the embodiments of the present disclosure, or may be implemented to include a memory processor for using an external memory.
[0279] In addition, the AI encoder 1510 and the transmitter 1530 may also be configured by a plurality of processors. In this case, the AI encoder 1510 and the transmitter 1530 may be implemented by a combination of dedicated processors, and may also be implemented by a combination of a plurality of general-purpose processors (such as AP, CPU, and GPU) and software S / W. The AI reducer 1512 and the first encoder 1514 may also be implemented by different processors.
[0280] The AI encoder 1510 may include various processing circuits and / or executable program elements and perform AI reduction of the original image 905 and first encoding of the first image 915, and transmit the AI data and the image data to the transmitter 1530. The transmitter 1530 may include various processing circuits and transmit the AI data and the image data to the AI decoding device 1000.
[0281] The image data includes data obtained as a result of the first encoding of the first image 915. The image data may include data obtained based on pixel values in the first image 915, for example, residual data that is a difference between the first image 915 and prediction data of the first image 915. In addition, the image data may include information used in the first encoding process of the first image 915. For example, the image data may include prediction mode information and motion information used to perform the first encoding on the first image 915 and quantization parameter related information used to perform the first encoding on the first image 915.
[0282] The AI data may include information allowing the AI amplifier 1034 to perform AI amplification on the second image 935 to an amplification target corresponding to the reduction target of the first DNN. In an example, the AI data may include difference information between the original image 905 and the first image 915. In addition, the AI data may also include information related to the first image 915. The information related to the first image 915 may include information about at least one of a resolution of the first image 915, a bit rate of image data obtained as a result of the first encoding of the first image 915, and a type of codec used when the first encoding is performed on the first image 915.
[0283] In an embodiment, the AI data may include an identifier of mutually agreed DNN setting information so that AI up-scaling of the second image 935 may be performed to a up-scaling target corresponding to a down-scaling target of the first DNN.
[0284] In addition, in an embodiment, the AI data may also include DNN setting information that can be set in the second DNN.
[0285] The AI downsizer 1512 may include various processing circuits and / or executable program elements, and obtains a first image 915 on which AI downsizing is performed from the original image 905 through the first DNN. The AI downsizer 1512 may determine a downsizing target of the original image 905 based on a predetermined criterion. The AI downsizer 1512 may refer to (e.g., be trained to) a second artificial intelligence model 2 for downsizing an image.
[0286] In order to obtain the first image 915 matching the reduction target, the AI reducer 1512 may store a plurality of pieces of DNN setting information that may be set in the first DNN. The AI reducer 1512 obtains DNN setting information corresponding to the reduction target from among the plurality of pieces of DNN setting information, and performs AI reduction on the original image 905 by using the first DNN set by using the obtained DNN setting information.
[0287] Each of the plurality of pieces of DNN setting information may be information trained to obtain the first image 915 having a predetermined resolution and / or a predetermined image quality. For example, any one of the plurality of pieces of DNN setting information may include one piece of information for obtaining the first image 915 having a resolution 1 / 2 times that of the original image 905 (e.g., the first image 915 having 2K (2048*1080) which is 1 / 2 times that of the original image 905 having 4K (4096*2160)), and another piece of DNN setting information may include one piece of information for obtaining the first image 915 having a resolution 1 / 4 times that of the original image 905 (e.g., the first image 915 having 2K (2048*1080) which is 1 / 4 times that of the original image 905 having 8K (8192*4320)).
[0288] According to an implementation example, when information configuring DNN setting information (e.g., the number of convolutional layers, the number of filter kernels for each convolutional layer, parameters of each filter kernel, etc.) is stored in the form of a lookup table, the AI downsizer 1512 can obtain the DNN setting information by combining some values selected from the lookup table values according to the downsizing target, and perform AI downsizing on the original image 905 using the obtained DNN setting information.
[0289] According to an implementation example, the AI downsizer 1512 may determine the architecture of the DNN corresponding to the upscaling target, and may also obtain DNN setting information corresponding to the determined architecture of the DNN, for example, parameters of a filter kernel.
[0290] The multiple pieces of DNN setting information for AI reduction of the original image 905 may have an optimized value by jointly training the first DNN and the second DNN. Here, each piece of DNN setting information may include at least one of the number of convolutional layers included in the first DNN, the number of filter kernels for each convolutional layer, or a parameter of each filter kernel.
[0291] The AI downsizer 1512 may set the first DNN using the DNN setting information determined to perform AI downsizing on the original image 905, and obtain the first image 915 having a predetermined resolution and / or a predetermined image quality through the first DNN. If DNN setting information for AI downsizing of the original image 905 among the plurality of pieces of DNN setting information is obtained, each layer in the first DNN may process input data based on the plurality of pieces of information included in the DNN setting information.
[0292] Hereinafter, a method by which the AI downsizer 1512 determines a downscaling target will be described in more detail. The downscaling target may indicate, for example, how much the resolution of the first image 915 should be reduced from the original image 905.
[0293] In an embodiment, the AI downsizer 1512 may determine the downsizing target based on at least one of a compression rate (e.g., a resolution difference between the original image 905 and the first image 915, and a target bit rate), a compression quality (e.g., a bit rate type), compression history information, or a type of the original image 905.
[0294] In an example, the AI downsizer 1512 may determine a downsizing target based on a compression rate or compression quality that is predetermined or input from a user.
[0295] As another example, the AI downsizer 1512 may also determine the downsizing target using compression history information stored in the AI encoding device 1500. For example, the encoding quality or compression rate preferred by the user may be determined based on the compression history information that may be used by the AI encoding device 1500, and the downsizing target may be determined based on the encoding quality determined based on the compression history information. For example, the resolution, image quality, etc. of the first image 915 may be determined based on the encoding quality that has been used the most based on the compression history information.
[0296] As another example, the AI downsizer 1512 may also determine the downsizing target based on the encoding quality that has been used for more than a predetermined threshold according to the compression history information (eg, the average quality of the encoding quality that has been used for more than a predetermined threshold).
[0297] As another example, the AI downsizer 1512 may also determine the downsizing target based on the resolution, type (eg, file format) of the original image 905 .
[0298] In an embodiment, when the original image 905 includes a plurality of frames, the AI downsizer 1512 may independently determine downsizing targets for a predetermined number of frames, or may also determine a common downsizing target for all frames.
[0299] In an embodiment, the AI downsizer 1512 may divide the plurality of frames of the original image 905 into a predetermined number of groups and independently determine a downsizing target for each group. Downsizing targets that are the same or different from each other may be determined for each group. For each group, the number of frames included in the group may be the same or different.
[0300] In another example, the AI downsizer 1512 may independently determine a downscaling target for each frame of the original image 905. Downscaling targets that are the same as or different from each other may be determined for each frame.
[0301] Hereinafter, an illustrative architecture of a first DNN 1600 that may be the basis for AI downscaling will be described in more detail.
[0302] Fig.16 is a diagram illustrating an example first DNN 1600 for AI downscaling of an original image 905 according to an embodiment of the present disclosure.
[0303] like Fig.16 As shown in FIG. 1 , the original image 905 is input to the first convolution layer 1610. The first convolution layer 1610 performs a convolution process on the original image 905 using 32 filter kernels of a size of 5×5. The 32 feature maps generated as a result of the convolution process are input to the first activation layer 1620. The first activation layer 1620 may assign nonlinear characteristics to the 32 feature maps.
[0304] The first activation layer 1620 determines whether to transfer sample values of the feature map output from the first convolution layer 1610 to the second convolution layer 1630. For example, some of the sample values of the feature map are activated by the first activation layer 1620 and transferred to the second convolution layer 1630, and some of the sample values thereof are deactivated by the first activation layer 1620 and are not transferred to the second convolution layer 1630. Information represented by the feature map output from the first convolution layer 1610 is highlighted by the first activation layer 1620.
[0305] The output 1625 of the first activation layer 1620 is input to the second convolution layer 1630. The second convolution layer 1630 performs a convolution process on the input data using 32 filter kernels of a size of 5×5. The 32 feature maps output as a result of the convolution process are input to the second activation layer 1640, and the second activation layer 1640 may assign nonlinear characteristics to the 32 feature maps.
[0306] The output 1645 of the second activation layer 1640 is input to the third convolution layer 1650. The third convolution layer 1650 performs a convolution process on the input data using one filter kernel of size 5×5. As a result of the convolution process, an image may be output from the third convolution layer 1650. The third convolution layer 1650 is a layer for outputting a final image, and one output is obtained using one filter kernel. According to an example of the present disclosure, the third convolution layer 1650 may output the first image 915 through the convolution calculation result.
[0307] The first DNN 1600 may have multiple pieces of DNN setting information indicating the number of filter cores, filter core parameters, etc. of the first convolution layer 1610, the second convolution layer 1630, and the third convolution layer 1650, and the multiple pieces of DNN setting information need to be combined with the multiple pieces of DNN setting information of the second DNN. The combination of the multiple pieces of DNN setting information of the first DNN and the multiple pieces of DNN setting information of the second DNN can be achieved by joint learning between the first DNN and the second DNN.
[0308] Fig.16 The first DNN 1600 is shown to include three convolutional layers 1610, 1630, and 1650 and two activation layers 1620 and 1640, but this is only an example, and according to an implementation example, the number of convolutional layers and activation layers may be changed differently. In addition, according to an implementation example, the first DNN 1600 may also be implemented by a recurrent neural network (RNN). Such a case refers to changing the CNN architecture of the first DNN 1600 according to the example of the present disclosure to an RNN architecture.
[0309] In an embodiment, the AI reducer 1512 may include at least one ALU for convolution calculation and activation layer calculation. The ALU may be implemented as a processor. For convolution calculation, the ALU may include a multiplier and an adder, wherein the multiplier is used to perform a multiplication calculation between the sample value of the feature map output from the original image 905 or the previous layer and the sample value of the filter kernel, and the adder is used to add the multiplied result values. In addition, for the calculation of the activation layer, the ALU may include a multiplier and a comparator, wherein the multiplier is used to multiply the input sample value by the weight used in a predetermined sigmoid function, Tanh function, or ReLU function, and the comparator is used to compare the multiplication result with a predetermined value to determine whether to transmit the input sample value to the next layer.
[0310] Return to reference Fig.15 The first encoder 1514 may include various processing circuits and / or executable program elements for receiving the first image 915 from the AI downsizer 1512, and may perform first encoding on the first image 915 to reduce the amount of information of the first image 915. As a result of the first encoding performed by the first encoder 1514, image data corresponding to the first image 915 may be obtained.
[0311] The data processor 1532 may include various processing circuits and processes at least one of the AI data and the image data to be sent in a predetermined form. For example, when the AI data and the image data need to be sent in the form of a bit stream, the data processor 1532 processes the AI data so that the AI data is represented in the form of a bit stream, and the data processor 1532 sends the AI data and the image data in the form of a bit stream through the communicator 1534. As another example, the data processor 1532 processes the AI data so that the AI data is represented in the form of a bit stream, and the data processor 1532 sends each of the bit streams corresponding to the AI data and the bit stream corresponding to the image data through the communicator 1534. As another example, the data processor 1532 processes the AI data so that the AI data is represented in a frame or a packet, and the data processor 1532 sends the image data in the form of a bit stream and sends the AI data in the form of a frame or a packet through the communicator 1534. The communicator 1534 may refer to the communication interface 230 provided in the transmitting device 200.
[0312] The transmitter 1530 may include various communication circuits and transmit the AI-encoded data obtained as a result of the AI encoding through a network. The AI-encoded data obtained as a result of the AI encoding includes image data and AI data. The image data and AI data may be transmitted through a homogeneous network or a heterogeneous network.
[0313] In an embodiment, the AI encoded data obtained as a result of the processing by the data processor 1532 may also be stored in a data storage medium, which includes a magnetic medium (such as a hard disk, a floppy disk, or a tape), an optical recording medium (such as a compact disk read-only memory (CD-ROM) or a digital versatile disk (DVD)), a magneto-optical medium (such as a floppy disk), and the like.
[0314] Although in Fig.15 and Fig.16 , but the AI encoding device 1500 according to an embodiment of the present disclosure may obtain preprocessing related information to perform preprocessing on the first image 915. For example, the AI encoding device 150 may further include a filter determiner (not shown), and the filter determiner may be implemented as an artificial intelligence model. The artificial intelligence model included in the filter determiner may include various processing circuits and / or executable program elements and may refer to the third artificial intelligence model 3 described above.
[0315] The filter determiner may obtain a feature map from the first DNN 1600 and identify preprocessing related information corresponding to the feature map. As another example, the filter determiner may identify preprocessing filter related information to be applied to the first image 915 based on the feature map obtained from the first DNN 1600 and state information of the network to which the communicator 1534 is connected. Here, the preprocessing filter related information may include at least one of the type or strength of the filter.
[0316] In the following, reference will be made to Fig.17 A method for jointly training a first DNN 1600 and a second DNN 1100 is described.
[0317] Fig.17 is a diagram illustrating an example method for training a first DNN 1600 and a second DNN 1100 according to an embodiment of the present disclosure.
[0318] In an embodiment, the original image 905 on which AI encoding is performed through the AI encoding process is restored to the third image 945 through the AI decoding process, and in order to maintain the similarity between the third image 945 obtained as a result of the AI decoding process and the original image 905, an association is required between the AI encoding process and the AI decoding process. Information lost in the AI encoding process needs to be restored in the AI decoding process, and for this purpose, the first DNN 1600 and the second DNN 1100 need to be jointly trained.
[0319] For accurate AI decoding, it is ultimately necessary to reduce Fig.17The quality loss information 1730 corresponding to the comparison result between the third training image 1704 and the original training image 1701 shown in FIG. Therefore, the quality loss information 1730 is used for the training of both the first DNN 1600 and the second DNN 1100.
[0320] Will describe Fig.17 The training process shown in .
[0321] exist Fig.17 , the original training image 1701 may refer to, for example, an image that is a target of AI downscaling, and the first training image 1702 may refer to, for example, an image on which AI downscaling is performed on the original training image 1701. In addition, the third training image 1704 may refer to, for example, an image on which AI upscaling is performed on the first training image 1702.
[0322] The original training image 1701 may include, for example, a still image or a moving image including a plurality of frames. In an embodiment, the original training image 1701 may also include a luminance image extracted from a still image or a moving image including a plurality of frames. In addition, in an embodiment, the original training image 1701 may also include a patch image extracted from a still image or a moving image including a plurality of frames. When the original training image 1701 includes a plurality of frames, the first training image 1702, the second training image, and the third training image 1704 may also include a plurality of frames. When the plurality of frames of the original training image 1701 are sequentially input to the first DNN 1600, the plurality of frames of the first training image 1702, the second training image, and the third training image 1704 may be sequentially obtained by the first DNN 1600 and the second DNN 1100.
[0323] For joint training of the first DNN 1600 and the second DNN 1100, an original training image 1701 is input to the first DNN 1600. AI downscaling is performed on the original training image 1701 input to the first DNN 1600 to output a first training image 1702, and the first training image 1702 is input to the second DNN 1100. As a result of the AI upscaling of the first training image 1702, a third training image 1704 is output.
[0324] Reference Fig.17, the first training image 1702 is input to the second DNN 1100. According to an implementation example, the second training image obtained by the first encoding process and the first decoding process of the first training image 1702 may also be input to the second DNN 1100. In order to input the second training image to the second DNN, any one of MPEG-2, H.264, MPEG-4, HEVC, VC-1, VP8, VP9, and AV1 codecs may be used. Specifically, any one of MPEG-2, H.264, MPEG-4, HEVC, VC-1, VP8, VP9, and AV1 codecs may be used for the first encoding of the first training image 1702 and the first decoding of the image data corresponding to the first training image 1702.
[0325] Reference Fig.17 , independently of the operation of outputting the first training image 1702 by the first DNN 1600, a conventionally downscaled reduced training image 1703 is obtained from the original training image 1701. The conventional downscaling may include at least one of bilinear scaling, bicubic scaling, lanczos scaling, or step scaling.
[0326] In order to prevent and / or reduce the structural features of the first image 915 from being significantly deviated based on the structural features of the original image 905 , a reduced training image 1703 that retains the structural features of the original training image 1701 is obtained.
[0327] Before training is performed, the first DNN 1600 and the second DNN 1100 may be set using predetermined DNN setting information. As training is performed, structure loss information 1710, complexity loss information 1720, and quality loss information 1730 may be determined.
[0328] The structural loss information 1710 may be determined based on the comparison result of the reduced training image 1703 and the first training image 1702. In an example, the structural loss information 1710 may correspond to the difference between the structural information of the reduced training image 1703 and the structural information of the first training image 1702. The structural information may include various features that can be extracted from the image, such as brightness, contrast, and histogram of the image. The structural loss information 1710 indicates how much structural information of the original training image 1701 is maintained in the first training image 1702. As the structural loss information 1710 is smaller, the structural information of the first training image 1702 becomes similar to the structural information of the original training image 1701.
[0329] The complexity loss information 1720 may be determined based on the spatial complexity of the first training image 1702. In one example, as the spatial complexity, a total variance value of the first training image 1702 may be used. The complexity loss information 1720 is related to a bit rate of image data obtained by performing the first encoding on the first training image 1702. As the complexity loss information 1720 is smaller, the bit rate of the image data is smaller.
[0330] The quality loss information 1730 may be determined based on the comparison result of the original training image 1701 and the third training image 1704. The quality loss information 1730 may include at least one of an L1 norm value, an L2 norm value, a structural similarity (SSIM) value, a peak signal-to-noise ratio-human visual system (PSNR-HVS) value, a multi-scale SSIM (MS-SSIM) value, a variance inflation factor (VIF) value, and a video multi-method assessment fusion (VMAF) value for the difference between the original training image 1701 and the third training image 1704. The quality loss information 1730 indicates how similar the third training image 1704 is to the original training image 1701. The smaller the quality loss information 1730 is, the more similar the third training image 1704 is to the original training image 1701.
[0331] Reference Fig.17 , the structure loss information 1710, the complexity loss information 1720, and the quality loss information 1730 are used to train the first DNN 1600, and the quality loss information 1730 is used to train the second DNN 1100. The quality loss information 1730 is used for the training of both the first DNN 1600 and the second DNN 1100.
[0332] The first DNN 1600 may update parameters so that the final loss information determined based on the structure loss information 1710, the complexity loss information 1720, and the quality loss information 1730 is reduced or minimized. In addition, the second DNN 1100 may update parameters so that the quality loss information 1730 is reduced or minimized.
[0333] The final loss information for training the first DNN 1600 and the second DNN 1100 may be determined as shown in the following Mathematical Expression 2.
[0334] [Mathematical expression 2]
[0335] LossDS = a*structural loss information + b*complexity loss information + c*quality loss information
[0336] LossUS=d*quality loss information
[0337] In Mathematical Expression 2, LossDS represents final loss information to be reduced or minimized for training of the first DNN 1600, and LossUS represents final loss information to be reduced or minimized for training of the second DNN 1100. In addition, a, b, c, and d may correspond to predetermined weights.
[0338] The first DNN 1600 may update parameters in a direction in which the LossDS of Mathematical Expression 2 decreases, and the second DNN 1100 may update parameters in a direction in which the LossDS decreases. If the parameters of the first DNN 1600 are updated according to the LossDS derived from the training process, the first training image 1702 obtained based on the updated parameters is different from the first training image 1702 in the previous training process, and therefore, the third training image 1704 is also different from the third training image 1704 of the previous training process. If the third training image 1704 is different from the third training image 1704 of the previous training process, the quality loss information 1730 is also re-determined, and therefore, the second DNN 1100 updates the parameters. If the quality loss information 1730 is re-determined, the LossDS is also re-determined, and therefore, the first DNN 1600 updates the parameters according to the re-determined LossDS. The parameter update of the first DNN 1600 causes the parameter update of the second DNN 1100, and the parameter update of the second DNN 1100 causes the parameter update of the first DNN 1600. In other words, because the first DNN 1600 and the second DNN 1100 are jointly trained by sharing the quality loss information 1730, the parameters of the first DNN 1600 and the parameters of the second DNN 1100 can be optimized in association with each other.
[0339] Referring to Mathematical Expression 2, it can be seen that Loss US is determined according to the quality loss information 1730 , but this is an example and Loss US may also be determined based on at least one of the structure loss information 1710 or the complexity loss information 1720 and the quality loss information 1730 .
[0340] The AI amplifier 1034 of the AI decoding device 200 and the AI downsizer 612 of the AI encoding device 600 have been described above as storing a plurality of pieces of DNN setting information. A method for training each of the plurality of pieces of DNN setting information stored in the AI amplifier 1034 and the AI downsizer 612 will be described.
[0341] As described with reference to Mathematical Expression 2, the first DNN 1600 updates parameters by considering the degree of similarity between structural information of the first training image 1702 and structural information of the original training image 1701 (structural loss information 1710), the bit rate of image data obtained as a result of the first encoding of the first training image 1702 (complexity loss information 1720), and the difference between the third training image 1704 and the original training image 1701 (quality loss information 1730).
[0342] For example, the parameters of the first DNN 1600 can be updated so that a first training image 1702 having similar structural information to the original training image 1701 and having a smaller bit rate of image data obtained when the first encoding is performed can be obtained, and the second DNN 1100 that performs AI amplification on the first training image 1702 can obtain a third training image 1704 similar to the original training image 1701.
[0343] By adjusting the weights a, b, and c in Mathematical Expression 2, the direction in which the parameters of the first DNN 1600 are optimized is different. For example, in the case where the weight b is determined to be high, the parameters of the first DNN 1600 may be updated with greater importance in reducing the bit rate than in the quality of the third training image 1704. In addition, in the case where the weight c is determined to be high, the parameters of the first DNN 1600 may be updated with greater importance in improving the bit rate or improving the quality of the third training image 1704 rather than maintaining the structural information of the original training image 1701.
[0344] In addition, the direction in which the parameters of the first DNN 1600 are optimized may differ according to the type of codec used to perform the first encoding on the first training image 1702. This is because the second training image to be input to the second DNN 1100 may vary according to the type of codec.
[0345] The parameters of the first DNN 1600 and the parameters of the second DNN 1100 are jointly updated based on the weight a, the weight b, the weight c, and the type of the codec used for the first encoding of the first training image 1702. Therefore, if the weight a, the weight b, and the weight c are respectively determined as predetermined values, the type of the codec is determined as a predetermined category, and then the first DNN 1600 and the second DNN 1100 are trained, the parameters of the first DNN 1600 and the parameters of the second DNN 1100 that are jointly optimized with each other can be determined.
[0346] In addition, if the weight a, the weight b, the weight c, and the type of codec are changed, and then the first DNN 1600 and the second DNN 1100 are trained, the parameters of the first DNN 1600 and the parameters of the second DNN 1100 that are jointly optimized with each other may be determined. In other words, if the first DNN 1600 and the second DNN 1100 are trained while changing the value of each of the weight a, the weight b, the weight c, and the type of codec, a plurality of pieces of DNN setting information for joint training may be determined in the first DNN 1600 and the second DNN 1100.
[0347] As above Figure 5 As described, a plurality of pieces of DNN setting information of the first DNN 1600 and the second DNN 1100 may be mapped to the first image related information. In order to set such a mapping relationship, the first training image 1702 output from the first DNN 1600 is first encoded by a specific codec according to a specific bit rate, and the second training image obtained by performing a first decoding on the bit stream obtained as a result of the first encoding may be input to the second DNN 1100. By training the first DNN 1600 and the second DNN 1100 after setting the environment so that the specific codec performs the first encoding of the first training image 1702 having a specific resolution at a specific bit rate, a pair of DNN setting information mapped to the resolution of the first training image 1702, the type of codec used for the first encoding of the first training image 1702, and the bit rate of the bit stream obtained as a result of the first encoding of the first training image 1702 may be determined. By differently changing the resolution of the first training image 1702, the type of codec used for the first encoding of the first training image 1702, and the bit rate of the bit stream obtained according to the first encoding of the first training image 1702, the mapping relationship between multiple DNN setting information of the first DNN 1600 and the second DNN 1100 and the first image related information can be determined.
[0348] Fig.18 is a signal flow diagram illustrating an example training process of the first DNN 1600 and the second DNN 1100 performed by the training device 1800 according to an embodiment of the present disclosure.
[0349] Reference Fig.17 The training of the first DNN 1600 and the second DNN 1100 described above may be performed by the training device 1800. The training device 1800 includes the first DNN 1600 and the second DNN 1100. The training device 1800 may be, for example, the AI encoding device 600 or a separate server. The DNN setting information of the second DNN 1100 obtained as a result of the training is stored in the AI decoding device 1000.
[0350] Reference Fig.17 , the training device 1800 initially sets the DNN setting information of the first DNN 1600 and the second DNN 1100 (S1840 and S1845). Thus, the first DNN 1600 and the second DNN 1100 may operate according to the predetermined DNN setting information. The DNN setting information may include information about at least one of the number of convolutional layers included in the first DNN 1600 and the second DNN 1100, the number of filter kernels for each convolutional layer, the size of the filter kernel for each convolutional layer, or the parameters of each filter kernel.
[0351] The training device 1800 inputs the original training image 1701 to the first DNN 1600 (S1850). The original training image 1701 may include at least one frame of a still image or a moving image.
[0352] The first DNN 1600 processes the original training image 1701 according to the initially set DNN setting information, and outputs the first training image 1702 obtained by performing AI reduction on the original training image 1701 (S1855). Fig.10 It is shown that the first training image 1702 output from the first DNN 1600 is directly input to the second DNN 1100, but the first training image 1702 output from the first DNN 1600 may be input to the second DNN 1100 by the training device 1800. In addition, the training device 1800 may perform first encoding and first decoding on the first training image 1702 through a predetermined codec, and then input the second training image to the second DNN 1100.
[0353] The second DNN 1100 may process the first training image 1702 or the second training image according to the initially set DNN setting information, and output a third training image 1704 obtained by performing AI upscaling on the first training image 1702 or the second training image (S1860).
[0354] The training device 1800 calculates complexity loss information 1720 based on the first training image 1702 ( S1865 ).
[0355] The training device 1800 calculates the structural loss information 1710 by comparing the reduced training image 1703 with the first training image 1702 ( S1870 ).
[0356] The training device 1800 calculates quality loss information 1730 by comparing the original training image 1701 with the third training image 1704 ( S1875 ).
[0357] The first DNN 1600 updates the initially set DNN setting information through back propagation processing based on the final loss information (S1880). The training device 1800 may calculate the final loss information for training the first DNN 1600 based on the complexity loss information 1720, the structure loss information 1710, and the quality loss information 1730.
[0358] The second DNN 1100 updates the initially set DNN setting information through back propagation processing based on the quality loss information or the final loss information (S1885). The training device 1800 may calculate the final loss information for training the second DNN 1100 based on the quality loss information 1730.
[0359] Thereafter, the training device 1800, the first DNN 1600, and the second DNN 1100 update the DNN setting information while repeating the processes S1850 to S1885 until the final loss information is minimized. In this case, during each repeated process, the first DNN 1600 and the second DNN operate according to the DNN setting information updated in the previous process.
[0360] Table 1 below shows the effects of performing AI encoding and AI decoding on the original image 905 and encoding and decoding the original image 905 through HEVC according to an embodiment of the present disclosure.
[0361] [Table 1]
[0362]
[0363] As can be seen from Table 1, although the subjective image quality when AI encoding and AI decoding are performed on content with 300 frames of 8K resolution according to an embodiment of the present disclosure is higher than the subjective image quality when the content is encoded and decoded by HEVC, the bit rate is reduced by 50% or more.
[0364] Fig.19 is a diagram illustrating an example device 20 for AI downscaling of an original image 905 and an example device 40 for AI upscaling of a second image 935. The device 20 for AI downscaling and the device 40 for AI upscaling may refer to a transmitting device 200 and a receiving device 100, respectively.
[0365] Device 20 receives the original image 905 and provides image data 25 and AI data 30 to device 40 using AI downsizer 1924 and transform-based encoder 1926. In an embodiment, image data 25 and AI data 30 are provided to device 40. Fig. 9 The image data corresponds to AI data 30. Fig. 9 In addition, in an embodiment, the transform-based encoder 1926 and Fig.15 The first encoder 1514 corresponds to the AI reducer 1924 and the Fig.15 The AI reducer 1512 corresponds to.
[0366] The device 40 receives the AI data 30 and the image data 25, and uses the transform-based decoder 1946 and the AI amplifier 1944 to obtain a third image 945. In an embodiment, the transform-based decoder 1946 and the AI amplifier 1944 are used to obtain the third image 945. Fig.10 The first decoder 1032 corresponds to the AI amplifier 1944 and Fig.10 The AI amplifier 1034 corresponds to.
[0367] In an embodiment, the device 20 includes a CPU, a memory, and a computer program including instructions. The computer program is stored in the memory. In an embodiment, according to the execution of the computer program by the CPU, the device 20 executes the reference Fig.19 In the embodiments, reference will be made to Fig.19 The functions described are performed by dedicated hardware chips and / or CPUs.
[0368] In an embodiment, the device 40 includes a CPU, a memory, and a computer program including instructions. The computer program is stored in the memory. In an embodiment, according to the execution of the computer program by the CPU, the device 40 executes the reference Fig.19 In the embodiments, reference will be made to Fig.19 The functions described are performed by dedicated hardware chips and / or CPUs.
[0369] exist Fig.19 , the configuration controller 1922 receives one or more input values 10. In an embodiment, the one or more input values 10 may include at least one of a target resolution difference for the AI downsizer 1924 and the AI upsizer 1944, a bit rate of the image data 25, a bit rate type of the image data 25 (e.g., a variable bit rate type, a constant bit rate type, an average bit rate type), or a codec type for the transform-based encoder 1926. The one or more input values 10 may be pre-stored in the device 20, or may include a value input from a user.
[0370] The configuration controller 1922 controls the operation of the AI downsizer 1924 and the transform-based encoder 1926 based on the received input value 10. In an embodiment, the configuration controller 1922 obtains DNN setting information for the AI downsizer 1924 according to the received input value 10, and sets the AI downsizer 1924 using the obtained DNN setting information. In an embodiment, the configuration controller 1922 may send the received input value 10 to the AI downsizer 1924, and the AI downsizer 1924 may obtain DNN setting information for performing AI downsizing on the original image 905 based on the received input value 10. In an embodiment, the configuration controller 1922 may provide additional information (e.g., information on a color format (such as a luminance component, a chrominance component, a red component, a green component, or a blue component) to which AI downsizing is applied, tone mapping information of a high dynamic range (HDR), etc.) together with the input value 10 to the AI downsizer 1924, and the AI downsizer 1924 may also obtain the DNN setting information by considering the input value 10 and the additional information. In an embodiment, the configuration controller 1922 sends at least a portion of the received input value 10 to the transform-based encoder 1926 to allow the transform-based encoder 1926 to perform a first encoding of the first image 915 using a bit rate of a specific value, a specific type of bit rate, and a specific codec.
[0371] AI downsizer 1924 receives the original image 905 and performs Fig. 9 , Fig.15 , Fig.16 , Fig.17 and Fig.18 The operations described in at least one of the figures are performed to obtain a first image 915.
[0372] In an embodiment, the AI data 30 is provided to the device 40. The AI data 30 may include at least one of resolution difference information between the original image 905 and the first image 915 or information related to the first image 915. The resolution difference information may be determined based on a target resolution difference of the input value 10, and the information related to the first image 915 may be determined based on at least one of a target bit rate, a bit rate type, or a codec type. In an embodiment, the AI data 30 may also include parameters used in the AI upscaling process. The AI data may be provided to the device 40 from the AI downsizer 1924.
[0373] The first image 915 is processed by a transform-based encoder 1926 to obtain image data 25, and the image data 25 is sent to the device 40. The transform-based encoder 1926 may process the first image 915 according to MPEG-2, H.264 AVC, MPEG-4, HEVC, VC-1, VP8, VP9, or AV1.
[0374] The configuration controller 1942 controls the operation of the AI amplifier 1944 based on the AI data 30. In an embodiment, the configuration controller 1942 obtains DNN setting information for the AI amplifier 1944 according to the received AI data 30, and sets the AI amplifier 1944 using the obtained DNN setting information. In an embodiment, the configuration controller 1942 may send the received AI data 30 to the AI amplifier 1944, and the AI amplifier 1944 may obtain DNN setting information for performing AI amplification on the second image 935 based on the AI data 30. In an embodiment, the configuration controller 1942 may provide additional information (e.g., information on a color format (such as a luminance component, a chrominance component, a red component, a green component, or a blue component) to which AI amplification is applied, tone mapping information of a high dynamic range (HDR), etc.) to the AI amplifier 1944 together with the AI data 30, and the AI amplifier 1944 may also obtain the DNN setting information by considering the AI data 30 and the additional information. In an embodiment, the AI amplifier 1944 may receive AI data 30 from the configuration controller 1942, receive at least one of prediction mode information, motion information, or quantization parameter information from the transform-based decoder 1946, and also obtain DNN setting information based on at least one of the prediction mode information, motion information, or quantization parameter information and the AI data 30.
[0375] The transform-based decoder 1946 processes the image data 25 to restore the second image 935. The transform-based decoder 1946 may process the image data 25 according to MPEG-2, H.264 AVC, MPEG-4, HEVC, VC-1, VP8, VP9, or AV1.
[0376] The AI amplifier 1944 performs AI amplification on the second image 935 provided from the transform-based decoder 1946 based on the set DNN setting information to obtain a third image 945 .
[0377] The AI reducer 1924 may include a first DNN, and the AI amplifier 1944 may include a second DNN. Fig.17 and Fig.18 The training method described is to train DNN setting information for a first DNN and a second DNN.
[0378] The above-described embodiments of the present disclosure may be created in a program or instruction executable in a computer, and the created program or instruction may be stored in a medium.
[0379] The medium may store computer executable programs or instructions continuously, or may temporarily store computer executable programs or instructions for execution or downloading. In addition, the medium may include various recording means or storage means in the form of a single hardware or a combination of several hardware, and is not limited to media directly connected to any computer system, but may be distributed on a network. Examples of media may include: magnetic media, such as hard disks, floppy disks, or magnetic tapes; optical recording media, such as compact disk read-only memories (CD-ROMs) or digital versatile disks (DVDs); magneto-optical media, such as floppy disks; and media configured to store program instructions, including ROM, random access memory (RAM), flash memory, etc. In addition, other examples of media may include recording media or storage media managed by application stores that distribute applications, sites that supply or distribute various software, servers, etc.
[0380] The above-mentioned DNN-related model can be implemented as a software module. When implemented as a software module (eg, a program module including instructions), the DNN model can be stored on a computer-readable recording medium.
[0381] In addition, the DNN model can be integrated in the form of a hardware chip to become a part of the above-mentioned AI decoding device 1000 or AI encoding device 600. For example, the DNN model can be manufactured in the form of a dedicated hardware chip for artificial intelligence, or can be manufactured as a part of an existing general-purpose processor (e.g., a CPU or an application processor) or a graphics-specific processor (e.g., a GPU).
[0382] In addition, the DNN model can be provided in the form of downloadable software. The computer program product may include a product in the form of a software program (e.g., a downloadable application) distributed electronically by a manufacturer or an electronic market. For electronic distribution, at least a portion of the software program may be stored in a storage medium or temporarily generated. In this case, the storage medium may be a storage medium of a server or relay server of the manufacturer or electronic market.
[0383] Fig. 20 is a flowchart illustrating an example method of controlling a receiving device according to an embodiment of the present disclosure.
[0384] according to Fig. 20 The control method of the receiving device shown in , based on the preprocessing related information performed on the input image, obtains parameter information of the artificial intelligence model that has been learned to enlarge the image (S2010).
[0385] An output image is obtained by enlarging the input image using an artificial intelligence model corresponding to the obtained parameter information (S2020).
[0386] According to an embodiment of the present disclosure, the operation of obtaining parameter information (S2010) may include: identifying parameter information corresponding to preprocessing related information received together with an input image in a memory storing parameter information mapped to preprocessing related information corresponding to each of different preprocessings, and the operation of obtaining an output image (S2020) may include: using an artificial intelligence model corresponding to the identified parameter information to enlarge the input image.
[0387] The parameter information stored in the memory includes filter-related information applied to each of the different preprocessings, and the operation of obtaining the parameter information (S2010) may include: identifying parameter information corresponding to the filter-related information received together with the input image in the stored parameter information, and the operation of obtaining the output image (S2020) may include: using an artificial intelligence model corresponding to the identified parameter information to enlarge the input image.
[0388] The filter-related information applied to each of the different preprocessings may include information about at least one of the type or strength of the filter applied to each of the different preprocessings. The filter-related information applied to each of the different preprocessings may also include information about the difference between the image before the filter is applied and the image after the filter is applied.
[0389] In addition, the operation of obtaining the output image (S2020) may include: decoding the input image using an artificial intelligence model and enlarging the decoded image.
[0390] The artificial intelligence model according to an embodiment of the present disclosure may include a plurality of neural network layers, and the control method may include setting parameters corresponding to each of the plurality of neural network layers based on the obtained parameter information.
[0391] However, various embodiments of the present disclosure may be applied to all electronic devices capable of processing an image, such as an image receiving device (such as a set-top box and an image processing device) as well as a transmitting device and a receiving device.
[0392] The various embodiments described above may be implemented in a computer or similar device readable recording medium using software, hardware, or a combination thereof. In some cases, the embodiments described in the present disclosure may be implemented by the processor 120 itself. According to software implementation, the embodiments such as processes and functions described in the present disclosure may be implemented by separate software modules. Each of the software modules may perform one or more functions and operations described in the present disclosure.
[0393] Computer instructions for executing the processing operations of the receiving device 100 according to various embodiments of the present disclosure described above may be stored in a non-transitory computer-readable medium. The computer instructions stored in the non-transitory computer-readable medium, when executed by a processor of a specific device, allow the specific device to execute the processing operations of the receiving device 100 according to various embodiments described above.
[0394] Non-transitory computer-readable media refers to media that semi-permanently stores data and is read by a device. Specific examples of non-transitory computer-readable media may include compact discs (CDs), digital versatile discs (DVDs), hard disks, Blu-ray discs, universal serial buses (USBs), memory cards, read-only memories (ROMs), etc.
[0395] Although various exemplary embodiments of the present disclosure have been shown and described with reference to the accompanying drawings, the present disclosure is not limited to the various exemplary embodiments, but various modifications may be made by those skilled in the art without departing from the spirit and scope of the present disclosure including the appended claims. These modifications should also be understood to fall within the scope and spirit of the present disclosure.
Claims
1. An electronic device, include: a memory configured to include at least one instruction; a communication interface configured to receive an encoded reduced image corresponding to an original image from an external electronic device as an input image; as well as a processor connected to the memory and configured to control the electronic device, and obtain an output image by upscaling the input image using an artificial intelligence model trained to upscale images based on receiving the input image and preprocessing related information related to preprocessing performed on the reduced image by the external electronic device, The processor is configured to perform the following operations: Decoding the input image, obtaining parameter information based on the preprocessing related information, The artificial intelligence model is obtained based on the obtained parameter information, and The decoded image is enlarged using the artificial intelligence model, Among them, the preprocessing related information received together with the input image includes information related to the filter applied to the reduced image after the original image is reduced and before encoding, and information about the difference between the image before applying the filter and the image after applying the filter.
2. The electronic device according to claim 1, in, The memory stores parameter information mapped to preprocessing related information corresponding to each of the different preprocessings, and The processor is configured to: identify parameter information corresponding to the received preprocessing related information in the stored parameter information, and use the artificial intelligence model based on the identified parameter information to enlarge the input image.
3. The electronic device as claimed in claim 2, in, The parameter information stored in the memory includes filter related information applied to each of the different pre-processings, and The processor is configured to: identify parameter information corresponding to filter related information in the stored parameter information based on the received preprocessing related information, and use the artificial intelligence model corresponding to the identified parameter information to enlarge the input image.
4. The electronic device as claimed in claim 3, in, The filter-related information applied to each of the different preprocessing includes information on at least one of a type or a strength of a filter applied to each of the different preprocessing.
5. A system, include: A transmitting device including circuits configured to: use a first artificial intelligence model trained to reduce an image to reduce an original image, preprocess the reduced image based on feature information of the reduced image, encode the preprocessed reduced image, and transmit the encoded preprocessed reduced image and preprocessing related information to a receiving device; as well as The receiving device includes a circuit configured to: based on receiving an input image and preprocessing related information related to preprocessing performed by the sending device on the reduced image, upscaling the input image using a second artificial intelligence model trained to upscale images to obtain an output image, The receiving device is configured as follows: obtaining parameter information of a second artificial intelligence model based on the preprocessing related information received from the sending device, and amplifying the input image received from the transmitting device using a second artificial intelligence model corresponding to the obtained parameter information, Among them, the preprocessing related information received together with the input image includes information related to the filter applied to the reduced image after the original image is reduced and before encoding, and information about the difference between the image before applying the filter and the image after applying the filter.
6. The system according to claim 5, in, The sending device further includes a communication interface, wherein the communication interface includes a communication circuit, and the sending device is configured to: The state information of the network to which the communication interface is connected is obtained, and the reduced image is preprocessed based on the state information of the network and the feature information of the reduced image obtained from the first artificial intelligence model.
7. The system according to claim 5, in, The pre-processing related information includes information on at least one of a type or a strength of a pre-processing filter applied to the reduced image.
8. The system according to claim 5, in, The receiving device is configured to obtain the output image by decoding the input image received from the sending device and upscaling the decoded image using a second artificial intelligence model.
9. The system according to claim 5, in, The sending device further includes a processor and a third artificial intelligence model, wherein the third artificial intelligence model is trained to obtain pre-processing related information of the reduced image using feature information of the reduced image obtained from the first artificial intelligence model, and The processor is configured to control the sending device to use a third artificial intelligence model to obtain pre-processing related information of the reduced image.
10. A method for controlling an electronic device, the method include: decoding the input image based on receiving an encoded reduced image corresponding to an original image from an external electronic device as an input image and preprocessing related information related to preprocessing performed on the reduced image by the external electronic device; Based on the preprocessing related information, obtaining parameter information of an artificial intelligence model trained to magnify the image; Obtaining the artificial intelligence model based on the obtained parameter information; and The output image is obtained by upscaling the decoded image using the artificial intelligence model, Among them, the preprocessing related information received together with the input image includes information related to the filter applied to the reduced image after the original image is reduced and before encoding, and information about the difference between the image before applying the filter and the image after applying the filter.
11. The method according to claim 10, in, Also includes: In a memory storing parameter information mapped to preprocessing-related information corresponding to each of the different preprocessings, the parameter information corresponding to the received preprocessing-related information is identified, and the input image is enlarged using the artificial intelligence model based on the identified parameter information.
Citation Information
Patent Citations
electronic apparatus, method for controlling thereof and method for controlling server
KR102022648B1
