Dynamic user device upscaling of media streams - Patent Application 20070122997
Patent Information
- Application Number
- JP2023526218
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2020-11-04
- Filing Date
- 2021-10-05
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-10-05
AI Technical Summary
Existing methods for streaming high-definition video are bandwidth and memory intensive, leading to insufficient support from home Internet plans and high costs for cloud-based content providers, with conventional upscaling techniques resulting in pixelated images.
A method involving a user device that locally upscales media streams using AI-trained weight matrices to enhance resolution and fidelity, allowing frames to be rendered at a lower resolution and then upscaled to higher quality, such as 4K, reducing bandwidth requirements.
This approach achieves significant bandwidth savings while maintaining video quality, reducing power and memory consumption, and improving latency for end users, with enhanced image fidelity and frame rate.
Abstract
Description
Background Art
[0001] More and more graphics media applications (e.g., games) are becoming cloud-based, but streaming high-resolution video consumes a large amount of bandwidth. Some home internet plans are insufficient to support streaming a large amount of high-resolution video at a nominal frame rate. Furthermore, streaming high-resolution video consumes a large amount of memory and power for cloud-based content providers. Lower memory, lower bandwidth, and less expensive solutions are desired.
Summary of the Invention
[0002] According to one implementation, a method for increasing the resolution of streamed graphics without increasing bandwidth consumption includes receiving, at a user device, a media stream including frames of a first resolution generated by a graphics rendering application, and locally upscaling each frame of the media stream received at the user device to a second resolution higher than the first resolution using one or more weight matrices pre-trained in relation to the graphics rendering application.
[0003] This summary is provided to briefly introduce some of the concepts that are further described in the detailed description below. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. Other implementations are described and recited herein.
Brief Description of the Drawings
[0004] [Figure 1] An exemplary system is shown that uses artificial intelligence executed on a user device to dynamically upscale the resolution of a received video stream of media content. [Figure 2]This represents a system that performs an exemplary training operation to generate a weight matrix that can be used to dynamically upscale the resolution of graphics frame data streamed to a user device. [Figure 3] This describes a system that dynamically upscales the resolution and fidelity of graphics frame data received by a user device. [Figure 4] This represents another exemplary system that performs an action to dynamically upscale the resolution and fidelity of graphics frame data received by the user device. [Figure 5] This illustrates the exemplary operation of upscaling frames in a media stream received by a user device. [Figure 6] This diagram illustrates an exemplary schematic of a processing device suitable for implementing aspects of the disclosed technology. [Modes for carrying out the invention]
[0005] This specification provides bandwidth-efficient solutions for rendering, streaming, and upscaling media content to enable the presentation of high-resolution (e.g., 4K) content on a user device display. In one implementation, the media stream is broadcast to the user device at a first resolution much lower than the final resolution at which the graphics are ultimately presented on the user device. The user device then performs operations locally to improve both resolution and image fidelity (e.g., detail).
[0006] Some existing technologies are designed to locally increase the resolution of streamed content on the user's device, but these conventional techniques tend to rely on uniform scaling methods such as bicubic interpolation, bilinear interpolation, or nearest-neighbor methods, which predict pixel values from the values of nearest neighbor pixels. All of these methods generally provide uniform scaling of brightness / color of newly added frame pixels according to statically predefined values set for the values of nearby pixels in the original image. While these solutions improve the final image resolution, the effect is insufficient. The image becomes pixelated as the resolution increases, resulting in a "blocky" appearance that makes it seem lower resolution than it actually is.
[0007] In contrast to these conventional solutions, the technology currently disclosed provides an image upscaling tool that increases the resolution of incoming frames on the fly (e.g., at 60 or 120 frames per second) by using artificial intelligence trained to improve image fidelity by "filling in the gaps" so that newly added pixels supply detail that was not present in the original frame. In one implementation, the proposed solution allows frames to be rendered at a lower resolution (e.g., by a game engine), such as 720p or 1080p. The low-resolution frames are sent over the network to the user device and locally upscaled to a higher quality, such as 4k, using the AI-trained upscaling tool.
[0008] In particular, server-level streaming at 4K resolution involves transmitting a data stream that is four times the size of a 1080p resolution stream. Therefore, high-resolution media streaming imposes cost burdens on both data centers (high power and bandwidth costs) and end users (e.g., to ensure home internet streaming setups can support both high-bit straight and high-bandwidth streaming (e.g., 20 to 40 Mbps)). In contrast, a media stream at 1080p resolution consumes only a fraction of the bandwidth consumed by 4K (e.g., 5 Mbps). This bandwidth saving has significant implications for data centers in terms of saving both bandwidth and power. Furthermore, such bandwidth reductions can be achieved while also improving video quality and fidelity, thus benefiting end users as well. For users, bandwidth savings translate to improved latency (as more bandwidth can be directed towards controller response) and financial cost savings due to a reduced need for higher data caps provided by more expensive internet plans.
[0009] The resolution enhancement solutions described herein enable media streams to be transmitted at a lower resolution and viewed at a relatively higher resolution, while significantly saving bandwidth without corresponding loss of frame rate or content. The foregoing is achieved even during actual frame rendering (e.g., by an application or game server), as this rendering is performed at a lower resolution, thereby reducing bandwidth, power, and memory consumption. In various implementations, this technique can be applied to improve quality (image fidelity) and / or frame rate, depending on how users, game developers, and cloud application streaming providers utilize the technique.
[0010] Figure 1 illustrates an exemplary system 100 that dynamically upscales the resolution of a received video stream of media content using artificial intelligence (AI) running on a user device. System 100 includes a processing device 102, which can take various forms of implementation, including but not limited to laptops or tablets, desktop computers, game consoles, smartphones, etc. The processing device includes hardware occupied by an integrated circuit (IC) 104, which includes a matrix multiplication engine 106, sometimes also called a matrix math accelerator. For example, IC 104 may include one or more standard silicon systems-on-chip (SoCs), application-specific integrated circuits (ASICs), or FPGAs. In one implementation, the matrix multiplication engine 106 is readily programmable and efficiently applicable to any neural network.
[0011] In addition to IC104 and matrix multiplication engine 106, processing device 102 further includes memory 108 and processor 110. Although memory 108 and processor 110 are shown as being outside IC104, IC104 may include additional memory and / or one or more processors in addition to processor 110. The super-resolution neural network (SRNN) inference engine 112 is stored in memory 108 and executed by processor 110. In other implementations, some or all aspects of the SRNN inference engine 112 are stored in the memory of IC104 and / or executed by the processor of IC104.
[0012] The SRNN inference engine 112 is software run by the processor 110 to dynamically upscale (or upsample) the graphics frames of the incoming low-resolution media content stream 114 as the frames arrive at the processing device 102 from the media server 116. While "low resolution" is a relative term when used independently, throughout this specification it is used in reference to a media content stream received at the user device with a lower resolution and / or less detail than the resolution and / or detail of the final media content stream (e.g., high-resolution media stream 122) rendered on the display 118 of the processing device 102. As used herein, "upscaling" refers to an improvement in image resolution and fidelity (detail).
[0013] In different implementations, the media server 116 can take various forms, including those of one or more different web-based servers and / or edge devices that host and / or generate media content. For example, the media server 116 may be a cloud-based game service (xCloud) or application server that stores and runs a graphics generation application to generate a low-resolution media stream 114 that will be streamed to a user device (e.g., a processing device 102).
[0014] In one implementation, the SRNN inference engine 112 is preloaded with trained weights stored in a weight matrix 120, which is used by the SRNN inference engine 112 to convert each input frame of the low-resolution media stream 114 to the corresponding output frame of the high-resolution media stream 122. In various implementations, the trained weights may be sent either before or during the streaming of the low-resolution media stream 114 to the processing device 102. In the case of a single graphics rendering application, there may be multiple weight matrices trained to upscale the content for each different segment of the relevant media stream. For example, if the low-resolution media stream 114 is game content, a new game scene may use different video content and style than the previous game scene. In this case, the new game scene can be upscaled by loading a different weight matrix into the matrix multiplication engine 106 than the weight matrix used for the previous scene.
[0015] In various implementations, different weight matrices associated with the same media content stream may be sent to the processing device 102 in various ways. In one implementation, the weight matrices are sent to the processing device 102 as a bulk package and cached locally for a period of time. The locally stored weight matrices can be selectively loaded into the matrix multiplication engine 106 when their associated frame segments are streamed and / or processed for local rendering. In another implementation, different weight matrices for the low-resolution media stream 114 are sent individually to the processing device 102 before or during a scene transition associated with a new matrix. In this scenario, the processing device 102 does not need to cache large amounts of information. In yet another implementation, different weight matrices are streamed concurrently with the low-resolution media stream 114, anticipating the next time each matrix will be loaded and used.
[0016] In one implementation where the weight matrix is transmitted in bulk and / or cached locally on the processing device 102, the graphics rendering application on the media server 116 may inform the processing device 102, through an established API, to use the correct weight matrix for each individual scene to be displayed. This may be achieved, for example, by tagging each weight matrix with metadata indicating which frame segments should be upscaled for each weight matrix stored locally in local memory.
[0017] If the low-resolution media stream 114 stops (for example, the game ends or the user cancels the stream), the locally stored data may be version-controlled, allowing developers to change the quality of the trained weights when updating the game.
[0018] In one implementation, the SRNN inference engine 112 is a convolutional neural network (CNN) comprising several convolutional layers that collectively provide the transformation of each feature of the original low-resolution input frame into a corresponding higher-resolution version of that feature. Matrix multiplication used to upscale each input image to a corresponding super-resolution output image may be performed by the matrix multiplication engine 106. In other implementations, these mathematical operations are performed, in part or solely, by software elements rather than hardware elements.
[0019] In one implementation, the weight matrix 120 is derived during a training process that utilizes stochastic descent or a similar method logi to identify a set of weights that achieve the desired effect in the transformation between an input (low-resolution) image and an output (high-resolution) image. In contrast to graphics upscaling solutions that provide equal selection of pixel values based on static interpolation, the weight matrix 120 is trained to supply scaling weights for a specific segment or group of frames of a predefined granularity, such as a group of frames associated with the same media title (e.g., a game, application, or video). In one implementation, the weight matrix 120 is trained per title so that a different weight matrix is loaded into the memory of the SRNN inference engine 112 each time a user launches a different cloud-based application hosted by the media server 116. For example, each time a user launches a game hosted by the media server 116, the SRNN inference engine 112 identifies, retrieves, and loads a matrix with weights specifically trained for the game. In other implementations, the weight matrix 120 is trained per scene so that each individual scene in a video or game is upscaled using a different weight matrix specifically trained for that scene.
[0020] In Figure 1, the weight matrix 120 is shown as being retrieved from a cloud-based SRNN datastore 124. In the example shown, the SRNN datastore 124 stores weight matrices trained for each different media title (graphics rendering application), with each weight matrix stored in association with a media title 126 and a weight matrix ID 128. For example, the media title "Minecraft" is shown as being stored in association with several different weight matrix IDs, and each title / ID pair (e.g., [media title, matrix ID]) uniquely identifies a weight matrix trained to upscale distinct predefined segments of frames associated with the media title. As used herein, a “segment” of frames refers to a set of either consecutive or discontinuous frames associated with the same media title. For example, each weight matrix is used to upscale different segments of frames, including, for example, segments of frames displaying a particular animation, segments of frames displaying a particular scene, or segments of frames pre-identified as having common characteristics such as text or menu options.
[0021] For example, a weight matrix identified not as an exclusive, but by the media title "Minecraft" and weight matrix ID "Level1_Matrix", may be trained using a subset of frames rendered during "Level 1" of Minecraft, and used by the SRNN inference engine 112 to perform an upscaling operation on all frames rendered during Level 1. Similarly, a matrix identified by the media title "Minecraft" and weight matrix ID "Menu_Matrix" may be trained using frames generated by Minecraft that contain menu icons or text, and used by the SRNN inference engine 112 to upscale all frames that display menu content. Furthermore, an exemplary matrix identified by the media title "Minecraft" and weight matrix ID "Animation1_Matrix" may be trained using frames that render several aspects of the same animation. This matrix may be used to upscale all frames that display aspects of the animation.
[0022] Each weight matrix is trained on a limited, predefined segment of frames generated during the execution of the same media executable (e.g., the same game), so the resulting fidelity improvement for each output frame fills in those details that can be unique to the frame segment (e.g., color, gradient, shading effects) used to train the corresponding weight matrix, regardless of the fact that details can vary significantly between titles and even between different segments of the same title. As a result, a more realistic and visually appealing rendering of frame content is achieved than could be achieved by conventional upscaling approaches such as pixel interpolation or by using weight matrices trained on frames from a large number of different media titles.
[0023] Figure 2 represents a system 200 that performs an exemplary training operation for generating a weight matrix 208 used to dynamically upscale the resolution of graphics frame data streamed to a user device. The system 200 includes an SRNN inference engine 202, which may include the same or similar characteristics as those described above with respect to FIG. 1. During the operation depicted, the weight matrix 208 is trained to effectuate image upscaling in relation to the graphics of a single media title. As used herein, a "media title" refers to a particular graphics rendering application (e.g., a game) that includes an executable file for generating the video content of a media content stream. In FIG. 2, a developer 204 initiates an operation to train the weights of the weight matrix 208 in relation to a graphics rendering application 210.
[0024] In different implementations, the developer 204 may choose to generate a single weight matrix 208 for the graphics rendering application 210 or multiple different weight matrices for the graphics rendering application. For example, a single weight matrix may be generated and used to perform image upscaling for all frames generated by the graphics rendering application 210. Alternatively, different weight matrices may be used to perform image upscaling for different segments of frames (e.g., different scenes, different animations, and / or groupings based on other visual characteristics shared among each group of frames).
[0025] In the example of FIG. 2, the developer 204 trains the weight matrix 208 with a subset of frames selected from a single individual scene ( "Scene 1") that may be an animation, a game level, or a specific scene within a game level. In this exemplary step, the developer 204 selects a training frame 214 from Scene 1 that represents the type of graphics present in Scene 1. Although not shown, the developer 204 may also select one or more additional frames to be used to train the weight matrix for Scene 1. Each selected representative frame is supplied as a training input to the SRNN inference engine 202.
[0026] Upon receiving the training frame 214, the SRNN inference engine 202 uses the pre - defined (e.g., initially default) weights within the weight matrix 208 to generate a proposed up - scaled version of the training frame 214. In one implementation, the SRNN inference engine 202 includes several convolutional layers in a conventional neural network design. Each different convolutional layer can generate a subsequent feature map that is supplied to the next layer. For example, each convolutional layer can serve to map individual image features or sets of features to higher - resolution features or sets of features.
[0027] In FIG. 2, the proposed up - scaled version of the training frame 214 is represented as the "up - scaled frame 218" in FIG. 2. The generation of the up - scaled frame 218 involves (1) increasing the image resolution of the training frame 214 by a pre - defined factor (e.g., from 720p to 4k), and (2) for each pixel newly added to the frame, defining a proposed value based on the current weights contained in the weight matrix 208. These weights may be adjusted over the training process using prior art such as training, backpropagation, and gradient descent mechanisms. This training may be achieved by either supervised or supervised training techniques.
[0028] In one implementation utilizing unsupervised learning, the SRNN training controller 212 compares each upscaled image (e.g., upscaled image frame 218) to a traditionally and fully rendered real high-resolution image (e.g., a 4K or higher resolution image). For example, the upscaled frame 218 may be compared to a high-resolution image or set of images selected by the SRNN training controller 212 or by the developer 204. Adjustments may be performed automatically by the SRNN training controller 212 to reduce the discrepancies between the upscaled frame 218 and the real high-resolution image. In this implementation, the training process may continue to iterate through the training set until the output of the upscaled frame 218 best approximates the real high-resolution image.
[0029] Another implementation implements a hybrid approach in which the tuner 216 adjusts the weights using both supervised and unsupervised inputs.
[0030] For example, and not as a limitation, system 200 is shown using a supervised learning approach rather than an unsupervised approach. Here, the SRNN training controller 212 uses input from the developer 204 to best approximate the intended quality for each frame segment. For example, the developer 204 previews an upscaled frame 218 and provides a Yes / No input to the SRNN training controller 212. The Y / N input indicates whether the upscaled frame 218 meets certain aesthetic acceptance criteria. For example, the developer 204 might notice that the upscaled frame 218 does not realistically enhance a particular area of the frame (e.g., a certain object appears over-pixelated, or shadows appear to extend to areas where they shouldn't).
[0031] The determination of whether the upscaled frame 218 meets certain aesthetic acceptance criteria, in the supervised learning approach presented, is left to the preferences of individual developers. This is, in effect, simply interpolating existing pixel values to determine new pixel values. In contrast, we leverage AI to identify the weights of a 208-weight matrix, which is effective in implementing an artistically subjective resolution enhancement that improves image fidelity.
[0032] If developer 204 is not satisfied with the upscaled frame 218, developer 204 provides "No" as the supervised input 220, and the weight adjuster 216 of the SRNN training controller 212 calculates the adjusted weight values of the weight matrix 208. Using the adjusted weight values, the SRNN inference engine 202 regenerates the upscaled frame 218, and developer 204 may again provide the supervised input 220. The weight adjustment and regeneration of the upscaled frame 218 described above may be performed cyclically a number of different numbers of times until developer 204 provides "Yes" as the supervised input 220 to the SRNN training controller 212, indicating that the upscaled frame 218 meets the aesthetic acceptance criteria. In addition to the supervised input 220, the weight adjuster 216 may, at each iteration, determine the weight adjustment using one or more further conventional CNN training techniques.
[0033] The above operation may be repeated if developer 204 selects any other training frames for the same weight matrix (for example, other training frames representing Scene 1 in addition to training frame 214), and the current values of the weight matrix 208 are used as starting values for correction operations for the next received training frame. In some implementations, developer 204 may choose to train the weight matrix 208 with respect to a single frame. In other implementations, the weight matrix 208 may be trained with respect to multiple frames.
[0034] Once the above training operation has been performed for each selected training frame (e.g., training frame 214) with respect to a given frame segment (e.g., scene 1), the SRNN inference engine 202 outputs the weight matrix 208 to the SRNN data store 224. The SRNN data store 224 may have the same or similar features as those described for the SRNN data store 124 in Figure 1.
[0035] In this way, the weight matrix 208 is trained with respect to a subset of frames selected from a given frame segment ("Scene 1"), and the final version of the weight matrix 208 is used during live media streaming operation to dynamically adjust the resolution and fidelity of each frame when a given frame segment is received by the user device. Different weight matrices may be similarly generated and used for various different frame segments of the media content stream generated by the graphics rendering application 210.
[0036] Figure 3 shows a system 300 that performs exemplary operations to dynamically upscale the resolution and fidelity of graphics frame data received by a user device. In one embodiment, the user device 302 is a mobile device with reduced memory and / or processing power compared to most PCs and game consoles. For example, the user device 302 may be a tablet or a mobile phone. The user device 302 includes a number of elements that are the same or similar as the elements of the same name described with respect to Figure 1, for example, a processor 304, a memory 306 which may include a combination of volatile and non-volatile memory, an IC chip 308 including a matrix multiplication engine 310, and a display 312.
[0037] The memory 306 of the user device 302 stores a media viewing application 314 that performs the operation of presenting a received stream (e.g., media stream 316) of video content generated by a graphics rendering application 328 hosted by a media server 318 on the display 312.
[0038] The graphics rendering application 328 reads or generates content from the media stream 316 and initiates transmission of such content to the user device. For example, the graphics rendering application may be a cloud-based game engine or video streaming tool. In contrast, the media viewing application 314 is a locally installed application (e.g., a web plugin) that receives frame data in the media stream 316 and generates rendering commands that instruct low-level graphics hardware (not shown) to render the frame data to the display 312. In one embodiment, the media viewing application 314 includes logic that communicates with a locally running SRNN inference engine 322 that upscales (improves the resolution and fidelity of) each frame received in the media stream 316 before the frame is rendered on the display 312.
[0039] In the represented implementation, the media stream 316 contains video data, which may be, for example, streamed video (e.g., movies, TV), game graphics, etc. In the represented implementation, the media server 318 also supplies metadata 320 to the user device 302 in relation to the media stream 316. The metadata 320 helps the SRNN inference engine 322 identify one or more specific weight matrices necessary to upscale the frames of the media stream 316, and to identify the appropriate time to load each identified weight matrix into memory 306.
[0040] The metadata 320 may be included with the media stream 316 (for example, attached to individual video frame packets) or it may be transmitted separately, for example, before the transmission of the media stream 316. In one embodiment, the media viewing application 314 requests and receives the metadata 320 from the media server 318 when the user first launches a particular cloud-based application, such as when the user launches a game (or a new level of a game) hosted on the media server 318.
[0041] For example, when loading each new scene in a graphics rendering application, the media server 318 may send a packet of metadata 320 containing a weight matrix for upscaling the frames of the scene, or information used by the user device 302 to independently retrieve and store such a weight matrix.
[0042] In the manifested implementation, metadata 320 includes a list of weight matrix identifiers (e.g., matrix IDs) that each identify a corresponding weight matrix that has been pre-trained with respect to a subset of frames from media stream 316 to facilitate the upscaling of individual predefined segments of frames within media stream 316. Each matrix identifier in metadata 320 is transmitted to user device 302 in relation to a checkpoint identifier that identifies a specific location within media stream 316 where the associated weight matrix should be loaded into memory utilized by the SRNN inference engine 322. For example, a checkpoint identifier may include one or more time stamps or frame numbers. Each checkpoint identifier can be used to identify a frame segment within media stream 316 that should be upscaled based on the weights of the corresponding weight matrix. For example, metadata 320 may include a matrix identifier "Level1_Matrix" in relation to a time stamp or frame number that identifies the start of a segment of frames within media stream 316 that should be upscaled using a matrix with ID "Level1_Matrix". The media viewing application 314 supplies metadata 320 to the SRNN inference engine 322, which uses this metadata 320 to determine when to dynamically read and load each of the different weight matrices that have been trained for the graphics rendering application 328.
[0043] The SRNN inference engine 322 includes a matrix lookup API 330 that dynamically requests a selected weight matrix from the SRNN data store 334 while the media stream 316 is being presented on the display 312. For example, the matrix lookup API 330 may track the position of the current playback pointer in the media stream 316 and the offset between the retrieved pointer and the checkpoint identifier identified in the metadata 320. If the retrieved pointer is within a predefined offset of the position identified by one of the given checkpoint identifiers, the matrix lookup API 330 queries the SRNN data store 334 using the relevant matrix ID (which may in some cases include both the identifier of the graphics rendering application 328 and the identifier of the weight matrix). In response, the SRNN data store 334 returns the corresponding weight matrix to the SRNN inference engine 322, and the weight matrix is loaded into the temporary storage of the user device 302. This weight matrix is dynamically loaded from the temporary storage 336 to the SRNN inference engine 322 at a point in time selected based on the relevant checkpoint identifier. When loaded into the SRNN inference engine 322, the weight matrix is used to upscale the frame segments corresponding to the checkpoint identifiers.
[0044] In one implementation, the temporary storage unit 336 is a buffer that stores a small number of weight matrices for the graphics rendering application 328 at a time. When used to upscale the associated frame segments, each weight matrix in the buffer 336 may be overwritten with a newly read weight matrix. In this sense, the user device 302 does not need to store all predefined weight matrices for the graphics rendering application simultaneously, and the memory requirements are reduced.
[0045] Figure 4 shows another exemplary system 400 that performs an operation to dynamically upscale the resolution and fidelity of graphics frame data received by user device 402. User device 402 includes many of the same hardware and software components as described with respect to Figure 3, including, for example, a media server 418 that hosts a graphics rendering application 428. The graphics rendering application 428 renders graphics and sends a media stream 416 to user device 402. In user device 402, the SRNN inference engine 422 performs an operation that utilizes the matrix multiplication engine 410 (integrated in IC 408) to upscale each frame of the media stream 416 before the frames are rendered to the display 412 of user device 402 by the media viewing application 414.
[0046] User device 402 differs from user device 302 in Figure 3 in that user device 402 has a larger amount of local memory (e.g., DRAM 432) allocated for use by the SRNN inference engine 422. As a result, the SRNN inference engine 422 can store a large number of weight matrices simultaneously in DRAM 432 rather than dynamically reading such matrices as needed.
[0047] In one implementation, the SRNN inference engine 422 receives some or all of the weight matrix for the graphics rendering application and stores it in the DRAM 432 before streaming and local rendering. For example, all of the weight matrix for the graphics rendering application 428 may be downloaded and stored when the media viewing application 414 is downloaded to the user device 402, or when the user first starts streaming from the graphics rendering application 428.
[0048] Rather than requesting a matrix one by one as needed, the matrix search API 430 of the SRNN inference engine 422 queries the SRNN data store 434 using the application ID (e.g., a media title or other identifier associated with the graphics rendering application 428) and is returned a group of weight matrices trained for different segments of the graphics rendering application 428.
[0049] Figure 5 illustrates an exemplary operation 500 that upscales frames received by a user device within a media stream without increasing bandwidth, cost, memory, power, or bitrate. Streaming operation 502 streams the media stream to the user device. Each frame in the media stream has a first resolution and is generated by a cloud-based graphics rendering application.
[0050] The weight matrix identification operation 504 identifies an application-specific weight matrix that is pre-trained on the application's frames to upscale a segment of a graphics frame from a first resolution to a second resolution. In one implementation, the weight matrix identification operation 504 is performed by the SRNN inference engine running locally on the user device. The identified weight matrix is, in one implementation, a weight matrix trained on a training set that includes only frames produced by the same graphics rendering application.
[0051] Once a suitable weight matrix is identified, the search and load operation 506 retrieves the application-specific weight matrix and loads it into the SRNN inference engine. In one implementation, the application-specific weight matrix is loaded into an SRAM structure. Retrieving the weight matrix may involve either (1) finding the matrix in a repository stored on the user device, or (2) querying a remote database of the matrix.
[0052] Image upscaling operation 508 uses an application-specific weight matrix to upscale a segment of a graphics frame from a first resolution to a second resolution, renders the upscaled frame locally on the user device's display, and the image rendering application renders the upscaled frame locally on the client device's display.
[0053] The techniques described above allow developers (e.g., game studios) to generate one or more different weight matrices that are optimized for each game title. This effectively uses AI to add pixels and detail to each image based on matrices specifically trained on media titles to better represent the overall look and feel of each frame.
[0054] The matrix is sent to the user device and executed locally. In one implementation, the weight matrix may be modified and versioned to allow for quality adaptation in relation to any changes to the game, such as enabling the release of new levels, scenes, maps, etc.
[0055] Figure 6 shows an exemplary schematic diagram of a processing device 600 suitable for implementing aspects of the disclosed technology. The processing device 600 includes one or more processor units 602, memory 604, a display 606, and other interfaces 608 (e.g., buttons). The memory 604 generally includes both volatile memory (e.g., RAM) and non-volatile memory (e.g., flash memory). An operating system 610, such as the Microsoft Windows® operating system, the Microsoft Windows Phone operating system, or a specific operating system designed for a gaming device, resides in the memory 604 and is executed by the processor unit 602, but it should be understood that other operating systems may be used.
[0056] One or more applications 612, such as an SRNN inference engine, are loaded into memory 604 by the processor unit 602 and executed by the operating system 610. Applications 612 may receive input from various input devices, such as a microphone 634 or input accessories 635 (e.g., a keypad, mouse, stylus, touchpad, gamepad, racing wheel, joystick). The processing device 600 includes a power supply unit 616, which is powered by one or more batteries or other power sources and supplies power to other components of the processing device 600. The power supply unit 616 may also be connected to an external power source that takes precedence over or charges the internal batteries or other power sources.
[0057] The processing device 600 includes one or more communication transceivers 630 and antennas 632 that can provide network connectivity (e.g., cellular networks, Wi-Fi®, Bluetooth®). The processing device 600 may also include various other components such as a positioning system (e.g., global positioning satellite transceivers), one or more accelerometers, one or more cameras, an audio interface (e.g., a microphone 634, an audio amplifier, and a speaker and / or audio jack), and a storage device 628. Other configurations may also be used.
[0058] In an exemplary implementation, a mobile operating system, various applications (e.g., an SRNN inference engine), and other modules and services may have hardware and / or software embodied by instructions stored in memory 604 and / or storage device 628 and processed by processor unit 602. Memory 604 may be memory of a host device or an accessory coupled to a host.
[0059] The processing device 600 may include various tangible computer-readable storage media and intangible computer-readable communication signals. Tangible computer-readable storage can be accessed by the processing device 600 and may be embodied in any available media, including both volatile and non-volatile storage media, removable and non-removable storage media. Tangible computer-readable storage media do not include intangible temporary communication signals and include volatile and non-volatile removable and non-removable storage media implemented by any method or technique for storing information such as computer-readable instructions, data structures, program modules, or other data. Tangible computer-readable storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other tangible media that can be used to store desired information and can be accessed by the processing device 600. In contrast to tangible computer-readable storage media, intangible computer-readable communication signals can embody computer-readable instructions, data structures, program modules, or other data residing in modulated data signals, such as carrier waves or other signal transport mechanisms. The term “modulated data signal” means a signal in which one or more of its characteristics are set or modified in a manner that encodes information in the signal. As an example, but not limited to, intangible communication signals include wired media such as wired networks or direct wired connections, and wireless media such as acoustic, RF, infrared, and other wireless media.
[0060] Some embodiments may include a product. The product may include a tangible storage medium for storing logic. Examples of storage mediums may include one or more types of volatile or non-volatile memory, removable or non-removable memory, erasable or non-erasable memory, writable or rewritable memory, and so on. Examples of logic may include various software elements such as software components, programs, applications, computer programs, application programs, system programs, machine programs, operating system software, middleware, firmware, software modules, routines, subroutines, functions, methods, procedures, software interfaces, application program interfaces (APIs), instruction sets, computing code, computer code, code segments, computer code segments, words, values, symbols, or any combination thereof. In one embodiment, for example, the product may store executable computer program instructions that, when executed by a computer, cause the computer to perform the methods and / or operations according to the embodiments described. Executable computer program instructions may include any appropriate type of code, such as source code, compiled code, interpreted code, executable code, static code, dynamic code, and so on. Executable computer program instructions may be implemented according to a predefined computer language, method, or syntax to instruct a computer to perform a specific function. Instructions may be implemented using any suitable high-level, low-level, object-oriented, visual, compiled, and / or interpreted programming language.
[0061] An exemplary method disclosed herein provides that a user device (e.g., processing device 102 in Figure 1) receives a media stream (e.g., media stream 122 in Figure 1) containing frames of a first resolution generated by a graphics rendering application, and that the user device locally upscales each received frame of the media stream to a second resolution higher than the first resolution using one or more weight matrices (e.g., weight matrix 120 in Figure 1) pre-trained in relation to the graphics rendering application. The method further provides rendering the upscaled frames of the media stream to the user device's display. This enables bandwidth reduction without adverse effects on video fidelity or quality from the end user's perspective.
[0062] In other exemplary methods following any of the above methods, each frame is upscaled to a second resolution using one or more weight matrix selection weight matrices trained in relation to the graphics rendering application, and the upscaling of each frame results in the frame being supplemented with additional detail derived based on the relevant selection weight matrix. The use of scene-specific or application-specific weight matrices leverages AI to add pixels and detail to each image based on matrices specifically trained for media titles to better represent the overall look and feel of each frame.
[0063] A further exemplary method of any of the above methods further provides sending a request for a selection weight matrix from the user device. The request identifies a matrix identifier stored in a remote database in relation to the media title of the graphics rendering application. In response to sending the request, the weight matrix is received and stored locally on the user device. The method further provides dynamically loading the selection weight matrix into a super-resolution neural network (SRNN) inference engine (e.g., SRNN inference engine 112 in Figure 1) when the rendering operation reaches a predefined checkpoint in the media stream. This dynamic reading and loading of the weight matrix reduces the amount of memory resources on the user device that are sufficient to implement the above solution.
[0064] In yet another exemplary method of any of the above methods, multiple weight matrices are pre-trained in relation to a graphics rendering application, and the method further provides loading one of several different weight matrices into an SRNN inference engine when each of several predefined checkpoints is reached during the presentation of a media stream.
[0065] In yet another exemplary method of any of the above methods, multiple weight matrices are pre-trained in relation to a graphics rendering application, with each of the weight matrices being trained using frames sampled from one relevant of several distinct frame segments of a media stream. For example, scene-specific weight matrices may be generated to enable resolution and fidelity improvements that are specifically tailored to features and color profiles unique to different scenes.
[0066] In another example of any of the methods described above, each weight matrix is used to dynamically upscale a single relevant frame from a group of distinct frame segments during media streaming.
[0067] In yet another exemplary method of any of the above methods, the user device is a game console, and one or more weight matrices are stored in the game console to be dynamically loaded into a super-resolution neural network (SRNN) inference engine at selected points in time related to different checkpoints in the media stream.
[0068] In yet another exemplary method of any of the above methods, the user device is a mobile device, and the method further comprises receiving and storing metadata for a graphics rendering application (e.g., metadata 320 in Figure 3). The metadata identifies matrix identifiers that uniquely identify several different weight matrices pre-trained for the graphics rendering application, and further identifies checkpoint identifiers that identify checkpoint locations in the media stream where one of the relevant weight matrices should be loaded into a super-resolution neural network (SRNN) inference engine. This metadata can provide the user device with enough information to identify weight matrices trained in relation to different scenes in the media stream and to dynamically load those weight matrices at the appropriate time.
[0069] An exemplary device disclosed herein includes a super-resolution neural network (SRNN) inference engine (e.g., element 112 in Figure 1) stored in the memory of a user device (e.g., element 102 in Figure 1). The SRNN inference engine receives a media stream (e.g., a low-resolution media stream 114 in Figure 1) containing first-resolution frames generated by a graphics rendering application, and is configured to locally upscale each of the multiple frames received in the media stream from the first resolution to a second resolution higher than the first resolution using one or more weight matrices (e.g., weight matrix 120 in Figure 1) pre-trained in relation to the graphics rendering application. The system further includes a media viewing application that runs locally on the user device to present the upscaled frames of the media stream on the user device's display (e.g., in Figure 1, user device 102 presents a high-resolution media stream 122).
[0070] In other exemplary systems of any of the above systems, upscaling each frame of multiple frames received in a media stream involves supplementing each frame with additional detail derived based on one or more weight matrices.
[0071] In yet another exemplary system of any of the above systems, the user device further has an application programming interface (API) configured to send requests for a selection weight matrix during media stream presentation. The request identifies a matrix identifier stored in a remote database in relation to the media title of a graphics rendering application. In response to sending the request, the requested weight matrix is received and stored locally on the user device, and the user device is configured to dynamically load the selection weight matrix into the SRNN inference engine when a predefined checkpoint is reached during media stream presentation.
[0072] In yet another exemplary system of any of the above systems, multiple weight matrices are pre-trained in relation to a graphics rendering application, and the SRNN inference engine dynamically loads one of the multiple weight matrices when it reaches each of several predefined checkpoints during the presentation of a media stream.
[0073] In yet another exemplary system of any of the above systems, multiple weight matrices are pre-trained in relation to a graphics rendering application, and each of the multiple weight matrices is trained using frames sampled from one relevant of several distinct frame segments of a media stream.
[0074] In yet another exemplary system of any of the above systems, each of the multiple weight matrices is used to dynamically upscale a relevant frame from among several distinct frame segments during media streaming operation.
[0075] In another exemplary system of any of the above systems, the user device is a game console, and one or more weight matrices are stored together in the game console for dynamic loading into the SRNN inference engine in relation to different checkpoints in the media stream.
[0076] An exemplary computer-readable storage medium disclosed herein encodes computer-executable instructions for executing a computer process which includes: receiving a media stream (e.g., a low-resolution media stream 114 in Figure 1) containing frames of a first resolution generated by a graphics rendering application (e.g., a graphics rendering application 210 in Figure 2) on a user device (e.g., a processing device 102 in Figure 1); locally upscaling each received frame of the media stream to a second resolution higher than the first resolution using one or more weight matrices (e.g., a weight matrix 120 in Figure 1) pre-trained in relation to the graphics rendering application on the user device; and rendering the upscaled frames of the media stream (e.g., a high-resolution media stream 122 in Figure 1) on the display of the user device.
[0077] In any of the above-described computer-readable storage media, the computer process provides upscaling each frame to a second resolution using a selected weight matrix from one or more weight matrices trained in relation to a graphics rendering application. Upscaling each frame includes supplementing the frame with additional detail derived based on the relevant selected weight matrix.
[0078] On any of the above computer-readable storage media, or on other exemplary computer-readable storage media, the computer process further includes sending a request for a selection weight matrix from the user device. The request identifies a matrix identifier stored in a remote database in relation to the media title of the graphics rendering application. In response to sending the request, the selection weight matrix is received and stored locally on the user device. The computer process further provides to dynamically load the selection weight matrix into a super-resolution neural network (SRNN) inference engine (e.g., SRNN inference engine 112 in Figure 1) when the rendering operation reaches a predefined checkpoint in the media stream.
[0079] In yet another exemplary computer-readable storage medium of any of the above computer-readable storage media, multiple weight matrices are pre-trained in relation to a graphics rendering application, and the computer process further has the function of loading a different one of the multiple weight matrices into an SRNN inference engine when it reaches each of several predefined checkpoints during the presentation of a media stream.
[0080] An exemplary system disclosed herein includes means for receiving a media stream on a user device, which contains frames of a first resolution generated by a graphics rendering application, and means for locally upscaling each received frame of the media stream to a second resolution higher than the first resolution on the user device using one or more weight matrices pre-trained in relation to the graphics rendering application. The system further provides means for rendering the upscaled frames of the media stream on the user device's display.
[0081] The above specification, examples, and data provide a complete description of the structure and use of exemplary implementations. Since many implementations can be carried out without departing from the spirit and scope of the claimed invention, the claims attached hereafter define the invention. Furthermore, structural features of different examples may be combined in further other implementations without deviating from the enumerated claims.
Claims
1. receiving, at a user device, a media stream including frames at a first resolution generated by a graphics rendering application; locally upscaling, at the user device, each received frame of the media stream to a second resolution higher than the first resolution using one or more weighting matrices pre-trained in association with the graphics rendering application; rendering the upscaled frames of the media stream on a display of the user device; The method according to claim 1,
2. each of the frames is upscaled to the second resolution using a selected weighting matrix of the one or more weighting matrices trained in association with the graphics rendering application, the upscaling of each of the frames resulting in a supplementation of the frame with additional detail derived based on the associated selected weighting matrix. The method of claim 1.
3. transmitting, from the user device, a request for a selected weighting matrix, the request identifying a matrix identifier stored in a remote database in association with a media title for the graphics rendering application; receiving and locally storing the selection weight matrix at the user device in response to transmitting the request; dynamically loading the selected weight matrix into a super-resolution neural network (SRNN) inference engine when the rendering operation reaches a predefined checkpoint in the media stream; The method of claim 1 further comprising:
4. A plurality of weight matrices are pre-trained in association with the graphics rendering application, the method comprising: and loading a different one of the plurality of weighting matrices into the SRNN inference engine upon reaching each of a plurality of predefined checkpoints during presentation of the media stream. The method according to claim 3.
5. a plurality of weighting matrices are pre-trained in association with the graphics rendering application, each of the plurality of weighting matrices being trained with frames sampled from an associated one of a plurality of different distinct frame segments of the media stream; The method of claim 1.
6. each of the plurality of weighting matrices is used to dynamically upscale the associated one of the plurality of different distinct frame segments during a media streaming operation. The method according to claim 5.
7. the user device is a gaming console, and the one or more weighting matrices are stored on the gaming console for dynamic loading into a super-resolution neural network (SRNN) inference engine at selected times in association with different checkpoints within the media stream. The method of claim 1.
8. The user device is a mobile device, and the method further comprises receiving and storing metadata of the graphics rendering application; The metadata includes: identifying matrix identification information that uniquely identifies a plurality of different weight matrices pre-trained for the graphics rendering application; and further specifying checkpoint identifiers each identifying a checkpoint location within the media stream at which an associated one of the plurality of different weight matrices should be loaded into a super-resolution neural network (SRNN) inference engine. The method of claim 1.
9. A super-resolution neural network (SRNN) inference engine and a media viewing application, The SRNN inference engine comprises: stored in a memory of the user device; a media stream including frames at a first resolution generated by a graphics rendering application, and configured to locally upscale each of a plurality of frames received in the media stream to a second resolution higher than the first resolution using one or more weighting matrices pre-trained in association with the graphics rendering application; The media viewing application includes: a processor, executed locally on the user device to present the upscaled frames of the media stream on a display of the user device; system.
10. upscaling each frame of the plurality of frames received in the media stream includes supplementing each of the frames with additional detail derived based on an associated one of the one or more weighting matrices. The system of claim 9.
11. The user device further comprises an application programming interface (API), the API comprising: sending a request for a selected weighting matrix during presentation of the media stream, the request identifying a matrix identifier stored in a remote database in association with a media title for the graphics rendering application; receiving and storing the requested weight matrix locally on the user device in response to transmitting the request; It is configured as follows: the user device is configured to dynamically load the selection weight matrix into the SRNN inference engine upon reaching a predefined checkpoint during the presentation of the media stream. The system of claim 9.
12. a plurality of weighting matrices are pre-trained in association with the graphics rendering application, and the SRNN inference engine is dynamically loaded with a different one of the plurality of weighting matrices upon reaching each of a plurality of pre-defined checkpoints during presentation of the media stream; The system of claim 9.
13. a plurality of weighting matrices are pre-trained in association with the graphics rendering application, each of the plurality of weighting matrices being trained with frames sampled from an associated one of a plurality of different distinct frame segments of the media stream; The system of claim 9.
14. each of the plurality of weighting matrices is used to dynamically upscale the associated one of the plurality of different distinct frame segments during a media streaming operation. The system of claim 13.
15. the user device is a gaming console, and the one or more weight matrices are stored on the gaming console for dynamic loading into the SRNN inference engine in association with different checkpoints in the media stream. The system of claim 9.
