Resolution enhancement for event detection
By analyzing the video and audio streams in the game session and using detectors to identify changes in game objects, the problem of difficulty in detecting specific events in the existing technology is solved, achieving fast and resource-saving event detection, which is suitable for a variety of game types.
Patent Information
- Application Number
- CN202180002243.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-01-20
- Filing Date
- 2021-01-19
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-01-19
AI Technical Summary
Existing technologies struggle to automatically and efficiently detect specific events in video games, especially without access to game code, resulting in manual intervention that increases resource consumption and content rendering time.
Detect specific events by analyzing video and audio streams in game sessions, using detectors to identify changes in game objects and player characters, such as target hits, health changes, and weapon changes, and generate event clues through preprocessing algorithms and detection modules .
It enables rapid detection of specific events in the game without the need for complex model training or algorithm programming, saving resources and increasing detection speed, and is suitable for a variety of game types.
Smart Images

Figure CN113474059B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This is U.S. PCT application No. 16 / 747,143, filed on January 20, 2020. The disclosure of this application is incorporated herein by reference in its entirety for all purposes. Background Art
[0003] As video game content and usage evolve, there is a corresponding need to adapt the way in which gaming content is used and made available. For example, videos of game play are increasingly being streamed by large numbers of viewers, and activities such as e-sports are changing the way online games are developed and content is presented to viewers. In many cases, these rapid changes have resulted in the presentation of content that is not optimal for its intended purpose, or requiring human intervention in order to create interesting content. In addition to the increase in resources, such human intervention also typically increases the time it takes for content to be presented to viewers or players. BRIEF DESCRIPTION OF THE DRAWINGS
[0004] Various embodiments according to the present disclosure will be described with reference to the accompanying drawings, in which:
[0005] Figure 1A and Figure 1B shows a display of gaming content that may be analyzed according to at least one embodiment;
[0006] Figure 2A , Figure 2B and Figure 2C shows a display of gaming content that may be analyzed according to at least one embodiment;
[0007] Figure 3 An example event recognition pipeline is shown in accordance with at least one embodiment;
[0008] Figure 4 An example event manager for event recognition functionality of a specified game is shown in accordance with at least one embodiment;
[0009] Figure 5 An example system that can be used to determine, communicate, and utilize game event data in accordance with at least one embodiment is shown;
[0010] Figure 6 A process for generating a log of game event data according to at least one embodiment is shown;
[0011] Figure 7 A process for determining event data from a game play video according to at least one embodiment is shown;
[0012] Fig. 8A , Figure 8B , Figure 8C , Fig.8D and Fig. 8E Analyzable graphical content according to at least one embodiment is shown;
[0013] Fig. 9 A process for processing video content for character recognition according to at least one embodiment is shown;
[0014] Fig.10 A process for detecting events using a magnified event region is shown in accordance with at least one embodiment;
[0015] Fig.11 Inference and / or training logic according to at least one embodiment is shown;
[0016] Fig.12 Inference and / or training logic according to at least one embodiment is shown;
[0017] Fig.13 A data center system according to at least one embodiment is shown;
[0018] Fig.14 A computer system according to at least one embodiment is shown;
[0019] Fig.15 A computer system according to at least one embodiment is shown;
[0020] Fig.16 A computer system according to at least one embodiment is shown;
[0021] Fig.17 A computer system according to at least one embodiment is shown; and
[0022] Fig.18 A computer system in accordance with at least one embodiment is shown. DETAILED DESCRIPTION
[0023] Figure 1A An example display 100 that may be rendered for a game according to at least one embodiment is shown. In this example, the game is a first-person shooter-style game in which a player is to guide an avatar 102 or playable character through a scene or virtual environment in order to perform different tasks. In this example, these tasks include shooting targets 110, but various other types of tasks may also be performed within the scope of various embodiments. In at least one embodiment, a game session may last up to a specified amount of time, until all targets are hit, or until another such end criterion is met. The game may be played offline or online, such as a player may compete with one or more other players to attempt to complete the tasks of the current level or session first, etc.
[0024] As shown, there may be different game play objects rendered for display, such as may include the player's avatar 102, weapons held by the avatar, targets 110, buildings, background elements, etc. These objects and their locations may change significantly during game play. In addition to these game play objects, there are also user interface mechanisms for conveying certain types of information to the player. Figure 1A In the example display 100, a first interface mechanism 104 is displayed near the top of the rendered image. This mechanism, often referred to as a status bar or heads-up display (HUD), conveys certain types of information to the player or viewer of the game. In this example, the HUD displays the amount of time remaining in the current game play session, as well as information about the number of targets in the level that the user has successfully hit or attacked. Figure 1A In the example of , the player is competing against a competitor in a session, and the HUD therefore displays the status of both the player and the competitor, indicating the number of targets hit by each.
[0025] There may be various situations or use cases where a player performing a task or action may be interested in determining. This may include, for example, when a highlight clip video or video montage is to be created for an event of interest in a game session, or when the game play data of the session is to be used for player analysis or guidance, as well as other such use cases. In at least some embodiments, it may be desirable to determine when certain types of events occur within a game session in order to record the data, or to capture video clips ("video clips") representing one or more of those events, as well as other such options. In some embodiments, game developers may place hooks or triggers in the game code that can help determine these events from within the game. However, in some embodiments, event determination may be performed by a third party or third-party device that may not have access to code or internal game data.
[0026] In at least one embodiment, media representing a game session may be analyzed. This may include, for example, audio and video streams of a game session, or audio and / or video data captured and stored for a game session, as well as other such options. The media may be analyzed to detect or identify the presence of specific occurrences or events in the game. This may include any event or occurrence in the game, such as may involve the appearance or disappearance of an object or character, the death or resurrection of a character, the use of an item, the activation of a switch, the collection of items, achievements, and the like. In some embodiments, the media data may be analyzed to attempt to determine these events by detecting those specific actions in the audio, video, text, or other such game content.
[0027] However, in many instances, it would take a lot of training data to train a model, or effort to program an algorithm, to detect different events in a way that could represent them. For example, kills in a shooter game can happen in many different ways, from many different angles, to many different characters, and without access to the game code, trying to train a model, or programming an algorithm, or using computer vision to try to detect all of these event generation can be a significant challenge.
[0028] However, for different types of events, there may be specific types of actions or occurrences in the game that can be detected without the need for complex model training or algorithm programming. Figure 1A 100. In the present embodiment, HUD 104 indicates the number of remaining targets of each player. Whenever a player successfully and / or completely hits a target 110, the HUD is updated to reflect the event. Similarly, whenever a player suffers significant damage from an opponent, the health or protection values displayed in the status message 106 on the screen will decrease, and gaining strength, protection or armor may also cause these numbers to increase. Another status message 108 displays the ammunition of the current weapon. Whenever a player obtains a new weapon, the ammunition (or strength, display, etc.) icon may change accordingly. For each of these status messages or displays, they may occur in approximately the same position with a very similar appearance and may change in a very well-defined manner. Thus, the detection of at least some types of events may be determined by monitoring changes in these and other types of information, icons or content presentations that are related to but different from the actual play of the avatar, object and player character in the game.
[0029] Figure 1B A subsequent display 150 is shown later in the game session. In this display, it can be seen that in just a few seconds, Figure 1A 100, the player hit two additional targets. This is reflected by two changes in the icon 154 in the HUD. Another status display shows a corresponding decrease in the presence of a particular type of ammunition corresponding to the shots that hit the targets. By detecting these very specific changes, a determination can be made that an event or series of events occurred that led to the player hitting two targets. The detection of this event can then be used for a number of different purposes, as discussed in more detail later in this article. It is also possible to generate audio sounds corresponding to the targets hit by the player, etc.
[0030] Since such methods are looking for occurrences of specific types in games, or other media content, a set of detectors can be used to detect occurrences that may correspond to events of interest. Figure 1A and Figure 1BIn the example of , video content is analyzed (although in at least some embodiments audio and other content may also be analyzed). Detectors for such video may include detectors that attempt to detect or recognize specific patterns, icons, text, or images, and other such options. Further, because icons, text, or other content will typically be in specific locations in the game display, these detectors may be run on corresponding areas or portions of the display, which may save significant resources relative to running multiple detectors on the entire image (especially for high-resolution displays). For example, in Figure 1B , it is shown that the displayed portion or area 154, 156, 158 considered for detection includes at least some amount of padding around the expected position of the content to be detected. In at least some embodiments, it is desirable not to include more pixels than necessary in order to reduce resource requirements and increase detection speed. However, in at least some embodiments, it is desirable to have a sufficient amount of padding (e.g., a "spatial buffer" in one or more directions from the expected position of the content to be detected), or to consider an appropriate number of additional pixels to allow for slight variations. Changes may occur due to factors such as jitter of the presentation of screen content, changes in resolution or user settings, objects that appear or disappear from view. In some embodiments, the content may also move over time, or change in appearance. Thus, in at least some embodiments, the amount of padding to be used and the number of areas to be analyzed may be game-specific.
[0031] Figure 2A and Figure 2B Example displays 200 , 240 of other types of games that may be analyzed according to various embodiments are shown. Figure 2A The display 200 of shows an image presented for a vehicle-based game, in which the player may be rewarded for tasks such as performing tricks or causing damage to objects in the environment. For this example, the detector may analyze an area 202 corresponding to the HUD with different information, in this instance, the information includes information about the current speed, trick score, and damage level. Such information may be analyzed to determine a specific type of event, such as a collision that causes a sudden deceleration or an explosion that causes a rapid acceleration. A large change in the trick score at a point in time or over a short period of time may also indicate one or more stunts of interest. Similarly, a large change in the damage score at a point in time or over a short period of time may indicate an event of interest in the game. Another area 204 for analysis may include a map area, which may include icons or graphic elements of objects or game play elements near the player in the game, which may change, appear, or disappear corresponding to a specific type of event. The detector may be trained to detect these and other events on the map, which may indicate certain events of interest.
[0032] Figure 2BThe example display 240 of shows an image rendered for a golf-based game. In this example, region 242 is selected for analysis, and region 242 includes text information and updates about the state of the game. In this case, the detector may include a text detection algorithm (such as an OCR engine and a text analyzer) to determine when to display or update specific information. This information may include (for example) the current number of swings on a certain hole, changes in current holding, and other such information. In such a case, it may not necessarily be the information displayed that indicates an event of interest, but a specific type of change in the information, such as indicating that a double birdie is placed on the hole. However, it is possible that additional information can be displayed at certain times, such as text indicating "birdie" or an icon indicating "strike", which can also indicate an event of interest.
[0033] However, as mentioned, various embodiments may also analyze or detect additional types of information to attempt to more accurately identify events of interest. As an example, Figure 2C The display 280 again corresponds to a golf-based game. In addition to analyzing HUD-type data 292, detectors can also be used to try to detect other objects, features, actions or events in the game. This can include, for example, detecting the swinging action 286 of the player avatar, detecting the presence 282 and action 284 of the golf ball, or detecting the action (or no action) in the environment 290 (such as a golf course). In some embodiments, audio triggers or detectors can also be used. In this example, the player avatar hitting the golf ball with a golf club will cause the game to generate a specific type of sound 288 that can be identified as matching audio patterns or clips. The audio trigger can indicate the event of the player hitting the ball. Such a trigger or event can be used to quickly identify the points of the user's hit in the game session, and similar audio triggers can be used to identify when the ball falls to the ground, etc. Different motion, optical flow, audio and other such detectors, machine learning models or trained neural networks can be used to analyze the media stream or file of the game to detect such events, which can be used together to determine or identify potential events of interest and potentially provide a more accurate description of those individual actions.
[0034] Figure 3An example system 300 that can be used to detect events from game play data according to various embodiments is shown. In this example, an event identification module 304 (which can also take the form of a device, system, service or process in various embodiments) can accept one or more types of game play data 302 as input. The input may include, for example, live game play received in a media stream, recorded media stored in an accessible storage medium, or real-time rendering for media presented on a player device, and other such options. In at least some embodiments, additional game play data may also be received, as long as such information is available. This may include text, metadata, player input (e.g., audio, keystrokes or button presses) or other such information that can be used to identify events, determine the detector to be used, etc. In some embodiments, this may include at least information about the game being played and / or the player whose game play data is being analyzed.
[0035] In this example, event identification module 304 can receive all video frames on the stream of game session, or can receive sampling of frame, for example, one frame every 100ms or every ten frames. In some embodiments, module can receive all frames, but only analyzes this sampling. Frame to be analyzed (or other content) can be directed to pre-processing module 306, and this pre-processing module 306 can use one or more pre-processing algorithms to perform or manage the pre-processing of each frame. In this example, storage repository 308 can store a group of pre-processing algorithms, and pre-processing module 306 can select appropriate algorithm for content. In some embodiments, algorithm to be applied can be based at least in part on the type of content to be analyzed or the result of previous pre-processing step. In this example, game-specific configuration file 312 can be consulted, and this configuration file 312 can indicate the type of pre-processing to be performed for a certain game. Different other determination methods can also be used within the scope of different embodiments.
[0036] In at least one embodiment, dependent region processing may be performed on one or more video frames. When dependent region processing is performed, the detection or occurrence of an object may trigger additional processing to be performed on one or more other regions of the frame. For example, an icon may be detected to appear in a first region of a video frame. The appearance of the icon may indicate the presence of additional information elsewhere in the video frame. One or more corresponding regions of the frame may then be analyzed using one or more detectors associated with that type of additional information. In at least one embodiment, the detection of such an object or occurrence may trigger a sequence or series of detectors to attempt to obtain additional information about the state of the game, whether represented in audio, video, user input, or other such data. It may be the case that one or more of these additional detectors are not enabled when the icon is detected, but are activated or triggered upon such detection. In some embodiments, a combination of events is analyzed to determine a specific result. For example, an icon may appear on a screen indicating that a particular event has occurred, but this may be accompanied by another action or display indicating information about the party or player that caused or was affected by the event, as well as other such options.
[0037] In this example, a separate video frame can have a sequence of pre-processing algorithms applied. This can include, for example, first identifying which (areas) of the image frame to be analyzed from a configuration file. In this example, the area is a rectangle defined by coordinates or percentages. In some embodiments, percentages may be preferred because the game can be run at many different possible resolutions, and if discrete coordinates are used, coordinates need to be stored for each resolution or calculations need to be performed to convert into different coordinates of different resolutions. In one example, the area specification may indicate an area that occupies 10% of the display in width and height and is 5% from the top center of the display. These values are highly parameterizable and can be specified for individual games, levels, scenes, etc. As mentioned, a given area size can allow enough padding to ensure that the expected information or content is captured.
[0038] For each region of the frame selected for analysis, one or more pre-processing algorithms can be applied. These algorithms may include, for example, grayscale scaling, color isolation, conversion to HSV (hue, saturation, value) color space, amplification, reduction, smoothing, noise removal, filtering, stretching, distortion or perspective correction, and other such options. Different other image or content manipulation techniques are also used. As the final pre-processing step in this example, a certain level or type of thresholding can be applied to the pixels of the selected region to provide at least some levels of background removal. As mentioned, in at least some games, the content of interest (e.g., text) will be displayed against the background of the game. In order to make the detection algorithm (e.g., the detection algorithm that can be relied on for OCR) work more accurately, thresholding can be used to remove (or apply a specific value) background pixels so that once the processed region looks more like black and white content, particularly for the text that the type of content OCR engine may look more like is designed to process. Further, if not fully removed or explained in the process, then aspects such as anti-aliasing and blending can degrade the accuracy of the OCR engine. Where applicable, thresholding can also help remove transient background noise. In this example, the pre-processed region's data may then be temporarily stored in cache 310 or other such location.
[0039] Detection module 314 or engine (it can also take the form of device, system, service or processing) can then access regional data from cache 310 and use one or more detectors to process data. In this example, game-specific configuration file 312 can specify the detector to be used, which can also change according to the selection or type of the area to be analyzed. The detector can include any of various detector types, such as pattern detection, icon detection, text detection, audio detection, image detection, motion detection, etc. The detection module 314 can access the relevant detector from the detector repository 316 or other such locations (if not yet stored in the local memory). In different embodiments, the area corresponding to the HUD can have at least the text and icon detection performed as discussed elsewhere herein. In the case where additional game data is available, detection can also include user input analysis, such as for detecting the input or combination of inputs to keyboards, handles, controllers, etc. If the additional data includes sound or webcam video, the detector can also look for patterns in the audio, such as where the user makes a specific interpretation indicating the type of event, or patterns in the video, where the user makes a specific action or motion indicating the type of event. Other types of data may also be analyzed, such as biometric data of the player that may indicate actions or responses indicative of certain types of events. As mentioned, the analysis may be done in near real time using the data stream or after a game play session using stored data, among other such options. The type of data available may then depend, at least in part, on when the data is analyzed.
[0040] The detector module 314 can process the selected area of the frame (or other game content) using one or more designated detectors, which can generate one or more clues or other such outputs, which in this example can be stored in the local cache 318. The clue can be any appropriate clue that indicates or maps to the event type. As an example, the game can indicate the number of skull icons, indicating the number of kills that the player has caused during the current game session. A change in the number of skulls indicates a kill event. The visual clue in this example use case would be the skull itself, such as a third skull that appears in a position where it did not exist before. The appearance of the third skull can then be passed as a clue that can be used to determine the corresponding event. In at least some embodiments, the clue can be independent of what the clue means or the event indicated by the given clue. In this example, the detection engine 314 can only focus on detecting or determining the clue without trying to determine the event.
[0041] It is desirable to determine one or more events or event types indicated by determined (one or more) clues. In at least some embodiments, this can be performed by clue to event conversion module 320. This module 320 may include logic provided by game-specific scripts to determine the type of event from determined clues. Once the event type is determined, in at least some embodiments, it is desirable to provide or convey the information of the detected event in a human-readable and process-readable manner. In this example, clue to event conversion module 320 applies game-specific script 322 or logic, and uses the term from the dictionary 324 defined to transform or convert the clue into human-readable text that meets the provided dictionary. Various detectors can provide different types of outputs in different formats, and the clues to event conversion module 320 can provide at least some levels of standardization so that the output can be compared across various detectors. This may be particularly important in the case where multiple detectors can detect clues of the same event, and these clues then need to be appropriately related. These clues may include clues related to detected text, icons, motion, features, images, sounds, gestures, biometrics, etc. In at least some embodiments, the clue to event conversion module 320 may include one or more neural networks of link or other training, which can accept clues of a particular time sequence or playing period and infer the type of events occurring with corresponding confidence values. In this example, the converted event data can then be written to the event data log 326 or other such locations for access. As described above, the log can be human-readable so that a user or developer can read and understand the log data. The log can also store data in a format that can be used by one or more processes, algorithms or applications to perform one or more tasks as discussed herein, such as the generation of montage or highlight video, player skill analysis, player guidance, game adjustment, player matching, etc. that can be involved. In some embodiments, the event data log will include the data of all detected events, while in other embodiments, the log may only store the data of certain types or quantities of events, or the data of events determined with at least the minimum confidence, as well as other such options. In at least some embodiments, the parameters of the detection (such as the mapping of the state change of the search area, the desired clues, and the clues to the event log) can be configured via a human-readable script (e.g., JSON-JavaScript object notation).
[0042] In at least one embodiment, the output of a group of detectors (such as five or six detectors of a given game) will be a match or mismatch of an event type, with a corresponding confidence value or confidence level. These clues or other values can then be fed to a process such as a game-specific script 322 (e.g., JavaScript) in the available conversion module 320, which can perform additional heuristics per frame. These heuristics can help improve event matching determination. For example, an OCR detector may report a match for detecting specific text content, but heuristics can be applied to see how and when the text content changes, and how much and in what time period, to determine whether the event actually corresponds to an event of interest for a specific application. These heuristics can also help make the game-agnostic event recognition module customizable using scripts and configuration files per game, which describe the preprocessing and detection logic for the game, and a per-game script for performing heuristic analysis of the data coming out of the core detection module 314, in some embodiments, also referred to as an event detection engine.
[0043] A developer or other authorized user may provide information about events of interest to be detected. Figure 4 A system 400 including an event manager 402 that can be utilized according to various embodiments is shown. In this example, recorded game play data can be analyzed in an offline manner. A user can access the interface of the event manager to pull in frames of recorded game play, which can be processed by a video decoder 404 to generate previews of individual frames through a first user interface 406. The user can then use one or more interactive controls of the interface 410 to specify one or more frame areas indicating an event of interest. In many instances, this event may not be indicated in the frame, so that the user can advance to the next frame or subsequent frames in the video. If the user notices something indicating an event of interest, the user can use a control with a display interface to draw or indicate an area of the frame, such as drawing a bounding box around an area including content of interest. In some embodiments, the user should include a certain amount of padding in the area, while in other embodiments, padding can be added by the tool logic 408 of the event manager, as well as other such options. The user can use controls to further associate the area with the type of event and the type of content to be detected (such as specific text, images, icons, patterns, etc.). Then, information about these events (including the area to be analyzed and related information) can be written into the game-specific configuration file 312 of the game. When content associated with that game is subsequently received into the event recognition module 304, the game-specific configuration file may be accessed to determine the areas to be analyzed as well as the pre-processing to be performed and the detectors to be used for those areas for that particular game.
[0044] As mentioned, in various embodiments, the detection engine or module is game agnostic, but allows plugins and scripts to enable it to be customized for specific games. This can include, for example, specifications for different triggers and stability factors. The native core detection engine will not know the game to which the video corresponds, but will have information about the area to be analyzed and the preprocessing to be performed, as well as any models to be used for event matching. In at least one embodiment, the engine can use a state machine to trigger the found trigger when the pattern is in a frame that was not present in the previous frame. When the pattern is there but it has changed, such as where the text changes, the changed trigger can come. There may also be lost triggers, where the image was previously present but no longer exists on the frame. In at least one embodiment, these triggers can be controlled by configurable and parameterizable stability thresholds. The user can specify that it is expected to detect images with at least a minimum confidence within at least a specified time sample period. As an example, the specification may indicate that it is expected to detect images or icons in the area with at least 80% confidence on three samples, such as where the sampling rate is every 100ms. As mentioned, when it is desired to generate or filter event data, specific triggers may be established for certain types of events, either before or after the fact.
[0045] Event recognition engine 304 can be a part of overall framework or platform, and this overall framework or platform make it possible to use various types of game data to detect, transmit events and operate events for various purposes.The advantage of such framework is that it can make the user provide plug-in to add different types of detectors to be used, and define the event of the additional type to be detected.The user can also select which types of events are interested in for a particular game or application, and the form of the output to be recorded, stored or communicated.The user can also specify the type of output of pipeline, such as whether event data should be written into log, stored in central repository, directly forwarded to destination for processing etc.
[0046] In some embodiments, the user may also specify at least some processing levels to be performed on the event data. For example, in some embodiments, the user may want to automatically generate a highlight or montage video for a fragment of a game. In one embodiment, this can cause the application to read the event log to identify events that meet one or more criteria for inclusion in the video file to be generated. These can be general criteria for highlighting videos, for example, or can be game, user, session, or instance-specific criteria, such as generating a video that only shows kills, crashes, or specific types of events. The criteria can be applied to event data in, for example, an event log, and events that meet the criteria are identified. For video creation, this can then cause the application to pull video segments corresponding to those events from a stored copy of the game session video. These can include, for example, the number or duration of video frames before and after the timing of events in the game session. The duration or number may depend in part on the game and event type. Then, the fragments can be strung together with the corresponding audio and text or additional content that may be added related to the event, and then provided for display. The video can be available to the player of the game, or accessible to other users or viewers for different use cases and where permitted. Such videos may also be used for other purposes, such as performance review and coaching for e-sports players.
[0047] In some embodiments, one or more detectors may correspond to trained machine learning models, such as trained neural networks. These models may be trained for specific games to detect specific actions, objects, motions, or occurrences corresponding to specific types of actions of interest. Other detectors as discussed herein may also be used, such as may involve character recognition algorithms, optical flow mechanisms, feature recognition, etc.
[0048] In at least some embodiments, since content may change significantly between games, it may be desirable to perform game-specific customization. Although an object such as a breed of dog may have a relatively consistent appearance in the actual video, the artistic representation of the breed may vary significantly between games. Objects such as weapons may have a variety of appearances that vary across games and even within games, so that at least a certain level of game-specific training or event definitions can be used to improve performance. Methods that utilize a HUD or other types of information displays that are relatively consistent in both appearance and position can also help improve accuracy and reduce customization, rather than trying to identify actions based on objects whose appearance may vary greatly throughout a game session. In addition, player customizations that can further change the appearance and functionality of the game can be applied, but any changes to the HUD are likely to be consistent throughout the game process.
[0049] In some embodiments, event data can also be used to modify aspects of game play. For example, in a single player campaign, the game can adjust the number of enemies or difficulty of the computer AI based on the information in the event data. For online games, primary or novice players may receive clues for improving game play or understanding how to play the game based on detected events. In addition to other such options, players can also be matched with similar players or players with compatible skill types. If the player seems to prefer one type of mini-game or play style to another type of mini-game or play style based on event data, the game may choose to adjust the type of game options presented to the user to make the game more enjoyable. According to various embodiments, different other modifications can also be made.
[0050] In at least one embodiment, the game content can be processed using computer vision and machine learning-based techniques to detect events. In at least one embodiment, the game content can be analyzed to identify specific types of features in the scene, such as scenes where game play occurs, objects related to game play identified in a game session, and actions performed by players (or avatars or game play elements controlled by players) during one or more game sessions. In at least one embodiment, one or more game play segments can be analyzed for a game scene, and a trained neural network model can generate a set of keywords representing features determined for the game scene. In at least one embodiment, these keywords can be aggregated and passed to a detection engine.
[0051] In at least one embodiment, each game trains at least one neural network. In at least one embodiment, each game will train a set of neural networks, where different networks are trained to recognize different types of features, such as scenes, actions, or objects. In at least one embodiment, a network that can be used to reason across various games or at least across games with a particular type or category of game play that is at least slightly similar can be trained. In at least one embodiment, a first model can be trained to recognize features of a game type similar to a first-person shooter, while another model can be trained to recognize features of a game type similar to a platform or third-person adventure game, because there will be different types of features to be detected. In at least one embodiment, the type of features to be detected can vary from game to game type. In at least one embodiment, the training data for these models can include a video stream that includes annotations of features of the type to be recognized for the game or game type. In at least one embodiment, these annotations are performed manually or with the assistance of modeling. In at least one embodiment, the model can be configured to output one or more detected feature keywords with corresponding confidence values, and keywords with higher confidence values or values that at least meet the minimum confidence criteria can be used to update the player profile or generate recommendations.
[0052] Figure 5 An exemplary gaming environment 500 in which aspects of various embodiments can be implemented is shown. In this example, a player can play a game through a game application 510 using a player device 502. The player device 502 can be any suitable device including at least one processor 514, non-transitory memory 516 and memory 512, for executing game content, or at least for receiving game content and using a display 508, headphones 548 or other such mechanisms to make the content be presented to the player. Such devices include, for example, desktop computers, notebook computers, smart phones, tablet computers, game consoles, set-top boxes, etc. In some embodiments, the game can have one or more online aspects, which require the player device 502 to communicate with at least one game server 518 through at least one network 504. One or more networks may include any suitable network for transmitting game data, such as may include a wired or wireless network, the Internet, a cellular network, an Ethernet, a local area network (LAN), a peer-to-peer network, etc. The game server may host a game session that may involve players using other player devices 520 that communicate over at least one of the networks 504 , which may be the same or different than that used by the player device 502 .
[0053] As mentioned, in some embodiments, it will be expected that event detection will be performed for one or more game play sessions among these players.In different embodiments, event detection can be performed by a third party service or resource provider from provider environment 506 or by a third party content provider system 542 on player device 502, on game server 518 or related equipment.In some embodiments, an entity can play one or more of these effects.For embodiments where media such as audio and / or video are analyzed, the data can be stored in any appropriate location or streamed from any appropriate location.For example, game play media can be stored on its displayed player device 502, on the game server 518 responsible for managing game state, or on a third party system or environment 542, 506 receiving content streams.Similarly, although event detection is shown in this example as being performed "in the cloud" by a resource provider, as can be provided as a part of event detection services, event detection can be performed by these or other parties on any one of these or other such systems or devices.
[0054] In this example, a media stream may be sent from a player device 502 across a network 504 to a resource environment 506 to perform event detection. As discussed, at least some of the components of the resource environment may have counterparts on the player device to perform at least some of the same functions. Regardless of the location, media data may be received to an interface or interface layer 522, which may direct the media to an appropriate destination. The interface layer may include different components, such as (but not limited to) one or more application programming interfaces (APIs), routers, switches, load balancers, web servers, etc. In this example, the media may be directed to an event manager 524, which is responsible for making the event data analyzed and determined for the media available, such as to authorized users with an account with a resource provider. As described above, Figure 3 As discussed, the event manager 524 can pass media to an event recognition engine 526, which can utilize a game-specific configuration 530 and script data 532 from an event manager 528 to detect events, which can be passed to an event data manager 536 and written to an event log 534. The event data manager can also store game data 538 and user data 540 corresponding to the event data in the event data log 534. The event manager 524 can then make the event data available to the appropriate entities. This can include, for example, providing the event data to a player device 502, which can then use a local copy of the game play media to generate a highlight video or montage of the game session or across stored replays from multiple game sessions. Similarly, the game server 518 can receive the event data to generate a highlight or montage video of an online game session, which can then also be viewed by players on other player devices 520. In the case of online video hosting or streaming, the event data can be used to generate a highlight video, which can then be made available by a third-party content provider 542, such as or Facebook For example, you can use GeForce Come broadcast.
[0055] In some embodiments, additional data may be used to improve the accuracy of event detection as discussed herein. The data may include, for example, biometric data of a player captured using one or more biometric trackers 544 (such as a fitness tracker or heart rate monitor). The data may include a video of the player during game play captured by a webcam, which may indicate changes in the player's behavior or appearance during game play. A headset 548 or other device containing a microphone (e.g., may contain a webcam) may also capture a user's exclamation or a change in breathing pattern that may correspond to certain types of events. Different other types of data and mechanisms for capturing the data may also be utilized within the scope of various embodiments.
[0056] Figure 6 An example process 600 for performing event detection that can be utilized according to various embodiments is shown. It should be understood that for this and other processes discussed herein, unless otherwise stated, additional, alternative or fewer steps may be present in a similar or alternative order or performed in parallel within the scope of different embodiments. In this example, media corresponding to a game session of a player of a particular game is obtained 602. The media may include, for example, audio and video data that may be received on a data stream or transmitted from a media storage device, as well as other such options. The type or amount of pre-processing to be performed on the media may be determined 604, such as by viewing a configuration file corresponding to a particular game. In some embodiments, pre-processing may include determining one or more regions of the media associated with a specified event type of interest. Further pre-processing of such regions may also be performed, which may depend at least in part on the type of media or event. For example, audio data may be processed to reduce noise. Image data may be up-sampled, converted to another color space (e.g., grayscale or HSV) and thresholded to remove background pixel data. Various other types of pre-processing may be used and discussed and proposed elsewhere herein. The determined pre-processing may be performed 606 to generate one or more processed event regions for analysis.
[0057] In order to perform the analysis, one or more detectors to be used may be determined 608, as may also be specified in a configuration file for a particular game, and may depend at least in part on the type of media or event to be analyzed. As discussed, such detectors may involve object detectors, icon detectors, OCR engines, optical flow mechanisms, etc. If more than one event region is identified for a particular frame, fragment, or instance of a game playing media, the detector to be used may also vary between event regions. The determined detector may then be applied 610 to the corresponding region. The detector in this example may generate event clues and corresponding confidence values. In some embodiments, additional heuristics may be applied to these clues to determine whether the criteria for an event of interest are met. A determination may be made 612 as to whether at least one event of interest or an event of a specified type has been identified. If not, the event data may be discarded 614. If at least one event has been detected, then in some embodiments at least a minimum confidence may be present, and then the generated clues of the event may be transformed 616 into a text description to conform to an event dictionary. The description may be process and human-readable, and may correspond to a dictionary consistent across multiple games. The text description may then be made 618 to be stored in an event log for the session and / or player, such as may be stored on a game server, player device, or other such location. As discussed and suggested herein, this data may be made available to any authorized party for any appropriate reason or use.
[0058] Figure 7 A method for detecting an event (such as with respect to a video stream) when video data is received on the video stream is shown. Figure 6700 of an example process (discussed). In this example, which can be utilized according to various embodiments, a video data frame can be received 702 on a video stream corresponding to a game player's game play session. An event area specific to a game can be determined 704 within the frame. In at least some embodiments, the area can be specified by a game-specific configuration file, such as the position of a HUD or other such display. Preprocessing of the event area can be performed 706 to remove at least background pixel data. This can include, for example, performing amplification and changing to a determined color space, performing noise removal, and then thresholding to remove background noise. As mentioned, this preprocessing can produce an image that is substantially binarized, which can improve the performance of an OCR engine for at least text detection. Game-specific characters, icons, and / or object detection can be performed 708 on a processing area using a detector that can be specified by a game-specific configuration file to generate event clues. It can be determined 710 whether these clues correspond to an event of interest or a specified type of a specific game, such as by using various heuristics. If it is determined 712 that such an event is detected, the event data of the event can be written 714 to an event log or other such location, and can be used for access and use. If no event is detected, the event data and related data from the processing may be discarded 716.
[0059] As mentioned, in at least some embodiments, game events may be determined at least in part from text or characters displayed during game play, such as may be displayed by a heads-up display (HUD) or other information element. For many games, this text will be displayed or drawn on top of (e.g., above) a rendered or natural video of the scene or game world. Fig. 8A As shown in the game image 800 of , the edges of the example HUD 802 will often be drawn as soft edges, where the pixel values near the edges of the HUD will be some synthesis of the HUD elements and the game world background, such as may be caused by anti-aliasing. Anti-aliasing and related techniques are often used to provide higher visual fidelity and reduce the presence of aliased or rough edges in the image. Although such synthesis and anti-aliasing (or smoothing) can produce more visually appealing images, such processing can challenge different detection algorithms that will need to disambiguate the HUD element pixel values from the game world pixel values. As discussed elsewhere in this article, similar challenges arise in image and video content that is not related to the game.
[0060] As an example, Figure 8B An example "low resolution" character 810 with anti-aliasing is shown. "Low resolution" may be discussed in greater detail herein, and may correspond to different resolutions depending on the application, overall image resolution, or other such factors. In one embodiment, a low resolution character may be a character that is approximately ten pixels in height. Figure 8BAs shown, there are varying pixel values around the edges of characters in an attempt to smooth the appearance of the character edges. These pixels of different values can make it challenging to determine which pixels correspond to characters and which pixels correspond to background (or non-character image content). One way to disambiguate these pixels is to perform thresholding or pixelation of pixels for characters or near characters. In this process, pixels with values above (or below, depending on the implementation) a certain value threshold are determined to correspond to characters, and pixels below the threshold are determined to correspond to the game background. This method for "low resolution" characters can produce characters 820, such as Figure 8C , where pixels are clearly either characters or background. However, as illustrated, this thresholding can result in aliased edges and irregular character line widths, which can reduce the visual fidelity of the input to be provided to a detection algorithm (e.g., for optical character recognition (OCR)). This reduction in visual fidelity can reduce the accuracy of the detector because information about fine details of characters or HUD elements is lost.
[0061] Methods according to various embodiments may attempt to improve the visual fidelity of the input to such a detector or other such component or process by introducing resolution upscaling prior to using disambiguation preprocessing that may be applied prior to detection analysis. In at least one embodiment, a portion of an image to be analyzed (such as, which may correspond to a HUD) is determined. The portion may then be upscaled in resolution using interpolation that preserves fine-grained information for the portion or element. Subsequent disambiguation preprocessing may then be applied to higher resolution regions rather than original resolution regions, which may provide an input to the decoder that is both separated from the background and retains visual fidelity, ultimately resulting in better detection accuracy. This approach cuts down on the cost, resources, and processing time required if the entire image is upscaled prior to preprocessing and analysis.
[0062] consider Figure 8B In at least one embodiment, the character (or another such graphical element) can be enlarged in resolution, such as by using a bicubic enlarger on selected pixels of the bitmap to generate a higher resolution version, such as Fig.8D 830 shown in FIG. As shown, anti-aliasing is less pronounced and the edges are better defined. Subsequently, applying thresholding or binarization to this higher resolution character may result in Fig. 8EIn the binary character 840 shown in. This character still has some aliasing to the edge, but the influence is not too significant, and the shape or edge of the binary character is more clearly defined. Providing this character 840 as the input to the OCR engine or other such detectors is more likely to lead to accurate determination than using through binarization, lower resolution version 820. Although this example uses a single character for the sake of explanation, it should be understood that this process can be applied to any graphic element or graphic element group, alphanumeric or other, particularly in the case where those elements can be displayed or drawn on the background or can affect the appearance of the edge pixels in the rendered image. In the embodiment where pre-processing is not performed, providing a higher resolution character 830 with finer granularity anti-aliasing will also lead to higher accuracy than using a lower resolution character 810 with more prominent anti-aliasing.
[0063] This approach can be beneficially used in gaming content to detect events, as discussed in this article. Figure 3 , the amplifier may be included in the pre-processing module 306, or may be provided as a separate component (not shown) that receives at least some of the input data 302, identifies potential event regions, and then amplifies those regions before providing the data of those regions to the pre-processing module. In some embodiments, an amplification module may also be used in place of the pre-processing module 306. If the occurrence of interest is not related to an event, in at least some embodiments, the region may be a character region or any other region to be analyzed.
[0064] In some embodiments, a subset of video frames can be sampled in the background during game play, such as one frame per second, but all video frames can be analyzed in other embodiments. Those frames can be run through an image and character recognition system that can attempt to identify certain patterns at certain positions in those frames as discussed herein. Such a recognition system can be used as a lightweight version of a machine learning model, where the system looks for patterns or sequences of text, such as can correspond to similar displays of HUD or content. Certain patterns or sequences of text, or changes therein can indicate that a particular event occurs, such as a player terminates an opponent role or obtains a goal.
[0065] For many games, a graphical display such as a HUD provides information about the current state or status of the game play of the session. To avoid obscuring important game play objects, these HUDs are typically relatively small in size relative to the overall display size. In the presence of semi-transparent anti-aliased text, the text will blend with the background as it changes. Since the characters in the example HUD may only be on the order of about 10-15 pixels, such as Figure 8BAs shown, if not solved, this may lead to significant accuracy problems for detectors such as OCR systems. The enlarged resolution as discussed herein can help reduce the effects of factors such as low resolution, anti-aliasing, and changing backgrounds to improve overall detection accuracy, which in turn provides more accurate event determination. As mentioned, the entire HUD area can be relatively small, so the area to be upsampled can also be relatively small, such as about tens or hundreds of pixels, and only this relatively small area upsampling and processing can provide significant cost and resource savings relative to the entire image or content frame. In different embodiments, different advanced or high-quality enlargement algorithms can be used, such as cubic or bicubic algorithms, bilinear algorithms, edge-based enlargement algorithms, fractal scaling algorithms, etc. can be included. In at least some embodiments, the type of amplifier used can depend at least in part on the type of content to be analyzed or the type of analysis to be performed. Appropriate enlargement amounts that can vary based on different factors (such as the size or resolution of the area to be analyzed) can be applied. In one embodiment, an enlargement of four times the resolution is utilized. This enlargement can be used to generate a quasi-higher resolution quality image that will have fewer aliased edges or more subtle anti-aliasing effects.
[0066] This method can provide better accuracy for OCR engines that are primarily designed to analyze scanned documents or other fixed files that do not have changing backgrounds and content or significant anti-aliasing. Elements such as HUDs can also have different types of content, both text and graphics, such as different game states and statistics, such as health, scores, number of kills, remaining life, etc. Different HUDs use a combination of bitmap icons or icon maps and text to render this information, and in many cases, the text is presented relative to a colorful, changing background, as opposed to static black text on a plain white background in a book or document. In some embodiments, the position of the text in the game frame can also move over time, as discussed elsewhere herein.
[0067] In various embodiments, amplification is performed before steps such as binarization and background removal (e.g., applying a hue-saturation value threshold to pixels in the HSV color space). The thresholds used in different embodiments may be fixed, timed, or dynamic, such as may be user-configurable. In other embodiments, amplification may be performed after or simultaneously with any of these other preprocessing steps. For example, the image may be converted to a grayscale image before amplification, or have at least some threshold levels applied to remove a certain amount of anti-aliasing. In some embodiments, amplification may be performed, for example, by amplifying the entire video frame for analysis before steps such as event region determination. In such a case, the amount of padding may be determined after amplification. As described above, the amount of padding may depend on the presence of factors such as resolution changes, scene effects, game configurations, HUD configurations, and the like. In at least some embodiments, the amount of padding is selected to be large enough to contain the content of interest based on these factors while minimizing the number of redundant pixels to be processed. In at least some embodiments, multiple regions of a frame may be amplified for processing, and the processing may be performed sequentially or in parallel on the same or different processing hardware. In some embodiments, at least some of the processing may be performed by a remote computer or process, such as may be part of a shared resource or cloud offering.
[0068] Fig. 9 An example process 900 of an area of a frame of a game being played for text detection is shown that can be used according to various embodiments for processing. It should be understood that for this and other processes discussed herein, within the scope of various embodiments, there may be additional, fewer or alternative steps that are performed in a similar or alternative order or in parallel, unless otherwise specifically stated. In this example, a video data frame corresponding to a game player's game session is received 902. As discussed herein, different other types of video content or image data may be received. One or more regions of interest may be determined 904 from the received frame, such as other graphical displays or elements that may correspond to a HUD or include text content. The region may be determined using different methods discussed and suggested herein, such as pattern recognition, historical analysis or machine learning. The amount of padding to be used around the content in the region of interest may be selected 906 or determined to allow for potential changes in position. Each region of interest including the corresponding padding may then perform 908 resolution amplification. In some embodiments, the data for the padding region will be copied to a new image portion, which may be stored in a memory or stored separately for subsequent analysis. Amplification may be performed using any appropriate amplification algorithm, such as a bicubic amplification algorithm. The magnified area may then have different types of pre-processing performed 910, which may include binarization and background removal, for example. The data for this processed magnified area may then be provided 912 to an optical character recognition (OCR) engine for analysis.
[0069] Such a process may be used to provide content to be used in an event detection system. Fig.10 An example process 1000 for determining a game event from data processed using such an amplification method is shown. In this example, a video data frame corresponding to a game player's game play session is received 1002. Using techniques such as those discussed herein, a game-specific area 1004 may be determined within a frame, such as may correspond to a head-up display or context element. A suitable amplification algorithm may be used to perform the amplification of a 1006 region to provide an increase in the determined amplification amount or resolution of the determined region. One or more types of pre-processing may then be performed 1008 on the amplified region, which may include binarization and background removal, as well as other such options. This region may then be processed 1010 using character recognition to determine one or more event clues. As mentioned, these clues may include the presence or change of a text or character indicating a certain type of event in the current game or associated therewith. Event clues may be analyzed 1012 to determine whether a clue may correspond to an event of interest. If it is determined 1014 that an event clue corresponds to an event of interest, then event data may be written 1016 to a log or otherwise stored for subsequent analysis, use or presentation. If an event thread is determined not to correspond to an event of interest, the event thread data may be discarded, although the data may still be recorded in at least some embodiments.
[0070] Reasoning and training logic
[0071] Fig.11 Inference and / or training logic 1115 is shown for performing reasoning and / or training operations associated with at least one embodiment. Fig.11 and Fig.12 Provide details about the inference and / or training logic 1115.
[0072] In at least one embodiment, the inference and / or training logic 1115 may include, but is not limited to, code and / or data storage 1101 for storing forward and / or output weights and / or input / output data, and / or other parameters for configuring neurons or layers of a neural network trained and / or used for inference in aspects of one or more embodiments. In at least one embodiment, the training logic 1115 may include or be coupled to code and / or data storage 1101 for storing graphics code or other software to control timing and / or sequence, wherein weights and / or other parameter information are loaded to configure logic, including integer and / or floating point units (collectively referred to as arithmetic logic units (ALUs)). In at least one embodiment, the code (such as graphics code) loads weights or other parameter information into a processor ALU based on the architecture of the neural network to which the code corresponds. In at least one embodiment, the code and / or data storage 1101 stores input / output data during training and / or inference using aspects of one or more embodiments and / or weight parameters during forward propagation of each layer of a neural network trained or used in conjunction with one or more embodiments. In at least one embodiment, any portion of code and / or data storage 1101 may be included within other on-chip or off-chip data storage, including a processor's L1, L2, or L3 cache or system memory.
[0073] In at least one embodiment, any portion of code and / or data storage 1101 may be internal or external to one or more processors or other hardware logic devices or circuits. In at least one embodiment, code and / or code and / or data storage 1101 may be a cache memory, dynamic random addressable memory ("DRAM"), static random addressable memory ("SRAM"), non-volatile memory (e.g., flash memory), or other storage device. In at least one embodiment, the choice of whether code and / or code and / or data storage 1101 is internal or external to a processor, for example, or consists of DRAM, SRAM, flash memory, or some other storage type, may depend on the available storage space on or off-chip, the latency requirements of the training and / or inference functions being performed, the batch size of the data used in the inference and / or training of the neural network, or some combination of these factors.
[0074] In at least one embodiment, the inference and / or training logic 1115 may include, but is not limited to, code and / or data storage 1105 for storing backward and / or output weights and / or input / output data corresponding to neurons or layers of a neural network trained and / or used for inference in aspects of one or more embodiments. In at least one embodiment, during training and / or inference using aspects of one or more embodiments, the code and / or data storage 1105 stores weight parameters and / or input / output data for each layer of a neural network trained or used in conjunction with one or more embodiments during back propagation of input / output data and / or weight parameters. In at least one embodiment, the training logic 1115 may include or be coupled to code and / or data storage 1105 for storing graphics code or other software to control timing and / or sequence, wherein weights and / or other parameter information is loaded to configure logic, which includes integer and / or floating point units (collectively referred to as arithmetic logic units (ALUs)). In at least one embodiment, the code (such as graphics code) loads weights or other parameter information into a processor ALU based on the architecture of the neural network to which the code corresponds. In at least one embodiment, any portion of code and / or data storage 1105 may be included with other on-chip or off-chip data storage, including the processor's L1, L2, or L3 cache or system memory. In at least one embodiment, any portion of code and / or data storage 1105 may be internal or external to one or more processors or other hardware logic devices or circuits. In at least one embodiment, code and / or data storage 1105 may be cache memory, DRAM, SRAM, non-volatile memory (e.g., flash memory), or other storage devices. In at least one embodiment, the choice of whether code and / or data storage 1105 is internal or external to the processor, for example, whether it is composed of DRAM, SRAM, flash memory, or some other storage type, depends on whether the available storage is on-chip or off-chip, the latency requirements of the training and / or inference functions being performed, the data batch size used in the inference and / or training of the neural network, or some combination of these factors.
[0075] In at least one embodiment, code and / or data storage 1101 and code and / or data storage 1105 may be separate storage structures. In at least one embodiment, code and / or data storage 1101 and code and / or data storage 1105 may be the same storage structure. In at least one embodiment, code and / or data storage 1101 and code and / or data storage 1105 may be partially the same storage structure and partially separate storage structures. In at least one embodiment, any portion of code and / or data storage 1101 and code and / or data storage 1105 may be included with other on-chip or off-chip data storage (including the processor's L1, L2, or L3 cache or system memory).
[0076] In at least one embodiment, the inference and / or training logic 1115 may include, but is not limited to, one or more arithmetic logic units (“ALUs”) 910 (including integer and / or floating point units) for performing logical and / or mathematical operations based at least in part on or as directed by training and / or inference code (e.g., graph code), the results of which may produce activations (e.g., output values from a layer or neuron within a neural network) stored in activation storage 920, the activations being a function of input / output and / or weight parameter data stored in code and / or data storage 901 and / or code and / or data storage 905. In at least one embodiment, activations stored in activation storage 920 are generated according to linear algebra and / or matrix-based mathematics performed by the ALU in response to executing instructions or other code, wherein weight values stored in code and / or data storage 905 and / or code and / or data storage 901 are used as operands along with other values, such as bias values, gradient information, momentum values, or other parameters or hyperparameters, any or all of which may be stored in code and / or data storage 905 or code and / or data storage 901 or in another storage on or off-chip.
[0077] In at least one embodiment, one or more ALUs are included in one or more processors or other hardware logic devices or circuits, while in another embodiment, one or more ALUs may be external to a processor or other hardware logic device or circuit (e.g., a coprocessor) that uses them. In at least one embodiment, the ALUs may be included in an execution unit of a processor or otherwise included in a group of ALUs accessible by an execution unit of a processor, the execution units of the processor being within the same processor or distributed between different processors of different types (e.g., a central processing unit, a graphics processing unit, a fixed function unit, etc.). In at least one embodiment, code and / or data storage 901, code and / or data storage 905, and activation storage 920 may be on the same processor or other hardware logic device or circuit, while in another embodiment, they may be in different processors or other hardware logic devices or circuits or some combination of the same and different processors or other hardware logic devices or circuits. In at least one embodiment, any portion of activation storage 920 may be included with other on-chip or off-chip data storage devices, including the processor's L1, L2, or L3 cache or system memory. Additionally, inference and / or training code may be stored with other code accessible to a processor or other hardware logic or circuitry, and retrieved and / or processed using the processor's fetch, decode, schedule, execute, exit, and / or other logic circuitry.
[0078] In at least one embodiment, activation storage 920 may be a cache memory, DRAM, SRAM, non-volatile memory (e.g., flash memory), or other storage device. In at least one embodiment, activation storage 920 may be completely or partially internal or external to one or more processors or other logic circuits. In at least one embodiment, the choice of whether activation storage 920 is internal or external to a processor, for example, or includes DRAM, SRAM, flash memory, or some other storage type, may depend on the available storage on or off chip, the latency requirements of the training and / or inference functions being performed, the batch size of the data used in the inference and / or training of the neural network, or some combination of these factors. In at least one embodiment, Fig. 9 The inference and / or training logic 1115 shown in FIG. 1 may be used in conjunction with an application specific integrated circuit (“ASIC”), such as the one from Google. Processing unit, Inference Processing Unit (IPU) from GraphcoreTM, or from Intel (e.g., "Lake Crest") processor. In at least one embodiment, Fig. 9The inference and / or training logic 1115 shown in FIG. 1 may be used in conjunction with central processing unit (“CPU”) hardware, graphics processing unit (“GPU”) hardware, or other hardware such as a field programmable gate array (“FPGA”).
[0079] Fig.12 Inference and / or training logic 1215 is shown in accordance with at least one embodiment. In at least one embodiment, reasoning and / or training logic 1215 may include, but is not limited to, hardware logic in which computing resources are dedicated or otherwise used exclusively in conjunction with weight values or other information corresponding to one or more neuron layers within a neural network. In at least one embodiment, Fig.12 The inference and / or training logic 1215 shown in FIG. 1 may be implemented with an application specific integrated circuit (ASIC) such as the one from Google. Processing unit, Inference Processing Unit (IPU) from GraphcoreTM, or from Intel (e.g., "Lake Crest") processor. In at least one embodiment, Fig.12 The reasoning and / or training logic 1215 shown in FIG. 1 may be used in conjunction with central processing unit (CPU) hardware, graphics processing unit (GPU) hardware, or other hardware such as a field programmable gate array (FPGA). In at least one embodiment, the reasoning and / or training logic 1215 includes, but is not limited to, code and / or data storage device 1201 and code and / or data storage device 1205, which may be used to store code (e.g., graphics code), weight values, and / or other information, including bias values, gradient information, momentum values, and / or other parameter or hyperparameter information. Fig.12 In at least one embodiment shown, each of code and / or data storage 1201 and code and / or data storage 1205 is associated with a dedicated computing resource, such as computing hardware 1202 and computing hardware 1206, respectively. In at least one embodiment, each of computing hardware 1202 and computing hardware 1206 includes one or more ALUs that perform mathematical functions, such as linear algebraic functions, solely on the information stored in code and / or data storage 1201 and code and / or data storage 1205, respectively, with the results being stored in activation storage 1220.
[0080] In at least one embodiment, each of the code and / or data stores 1201 and 1205 and the corresponding computing hardware 1202 and 1206 corresponds to a different layer of the neural network, such that activations generated from the code and / or data store 1201 and computing hardware 1202 of one "storage / computation pair 1201 / 1202" are provided as inputs to the code and / or data store 1205 and computing hardware 1206 of "storage / computation pair 1205 / 1206" to reflect the conceptual organization of the neural network. In at least one embodiment, each of the storage / computation pairs 1201 / 1202 and 1205 / 1206 can correspond to more than one neural network layer. In at least one embodiment, additional storage / computation pairs (not shown) subsequent to or in parallel with the storage / computation pairs 1201 / 1202 and 1205 / 1206 can be included in the inference and / or training logic 1215.
[0081] You can use such as Fig.12 The reasoning and training logic discussed herein trains one or more neural networks to analyze a media stream or file of video data, such as may correspond to game play data. These neural networks, which may be run on the described hardware structure 1215, may be used for reasoning to detect objects or events, and to infer event types based on data of these detected objects or events. Different neural networks or machine learning models may be trained for different games, game types, video content types, or event types, and other such options.
[0082] Data Center
[0083] Fig.13 An example data center 1300 is shown in which at least one embodiment may be used. In at least one embodiment, the data center 1300 includes a data center infrastructure layer 1310, a framework layer 1320, a software layer 1330, and an application layer 1340.
[0084] In at least one embodiment, Fig.13As shown, the data center infrastructure layer 1310 may include a resource coordinator 1312, group computing resources 1314, and node computing resources ("node CRs") 1316(1)-1316(N), where "N" represents any complete positive integer. In at least one embodiment, the node CRs 1316(1)-1316(N) may include, but are not limited to, any number of central processing units ("CPUs") or other processors (including accelerators, field programmable gate arrays (FPGAs), graphics processors, etc.), memory devices (e.g., dynamic read-only memories), storage devices (e.g., solid-state or disk drives), network input / output ("NW I / O") devices, network switches, virtual machines ("VMs"), power modules, and cooling modules, etc. In at least one embodiment, one or more of the node CRs 1316(1)-1316(N) may be a server having one or more of the above-mentioned computing resources.
[0085] In at least one embodiment, the grouped computing resources 1314 may include separate groups of node CRs housed in one or more racks (not shown) or many racks housed in data centers at different geographic locations (also not shown). The separate groups of node CRs in the grouped computing resources 1314 may include grouped computing, network, memory, or storage resources that can be configured or allocated to support one or more workloads. In at least one embodiment, several node CRs including a CPU or processor may be grouped in one or more racks to provide computing resources to support one or more workloads. In at least one embodiment, one or more racks may also include any number of power modules, cooling modules, and network switches in any combination.
[0086] In at least one embodiment, resource coordinator 1312 may configure or otherwise control one or more nodes CR 1316(1)-1316(N) and / or grouped computing resources 1314. In at least one embodiment, resource coordinator 1312 may include a software design infrastructure ("SDI") management entity for data center 1300. In at least one embodiment, resource coordinator may include hardware, software, or some combination thereof.
[0087] In at least one embodiment, Fig.13As shown, the framework layer 1320 includes a job scheduler 1322, a configuration manager 1324, a resource manager 1326, and a distributed file system 1328. In at least one embodiment, the framework layer 1320 may include a framework that supports software 1332 of the software layer 1330 and / or one or more applications 1342 of the application layer 1340. In at least one embodiment, the software 1332 or the application 1342 may include network-based service software or applications, such as those provided by Amazon Web Services, Google Cloud, and Microsoft Azure. In at least one embodiment, the framework layer 1320 may be, but is not limited to, a free and open source software network application framework type, such as Apache Spark, which can utilize the distributed file system 1328 for large-scale data processing (e.g., "big data"). TM (hereinafter referred to as "Spark").
[0088] In at least one embodiment, job scheduler 1322 may include alternate drivers to facilitate scheduling of workloads supported by various layers of data center 1300. In at least one embodiment, configuration manager 1324 may be capable of configuring different layers, such as software layer 1330 and framework layer 1320, which includes Spark and a distributed file system 1328 for supporting large-scale data processing.
[0089] In at least one embodiment, the resource manager 1326 may be capable of managing clustered or grouped computing resources that are mapped to the distributed file system 1328 and the job scheduler 1322 or allocated to support the distributed file system 1328 and the job scheduler 1322. In at least one embodiment, the clustered or grouped computing resources may include grouped computing resources 1314 at the data center infrastructure layer 1310.
[0090] In at least one embodiment, resource manager 1326 may coordinate with resource coordinator 1312 to manage these mapped or allocated computing resources.
[0091] In at least one embodiment, software 1332 included in software layer 1330 may include software used by at least a portion of node CRs 1316(1)-1316(N), grouped computing resources 1314, and / or distributed file system 1328 of framework layer 1320. One or more types of software may include, but are not limited to, Internet web page search software, email virus scanning software, database software, and streaming video content software.
[0092] In at least one embodiment, the applications 1342 included in the application layer 1340 may include one or more types of applications used by at least a portion of the node CRs 1316(1)-1316(N), the grouped computing resources 1314, and / or the distributed file system 1328 of the framework layer 1320. The one or more types of applications may include, but are not limited to, any number of genomics applications, cognitive computing, and machine learning applications, including training or inference software, machine learning framework software (e.g., PyTorch, TensorFlow, Caffe, etc.), or other machine learning applications used in conjunction with one or more embodiments.
[0093] In at least one embodiment, any of configuration manager 1324, resource manager 1326, and resource coordinator 1312 may implement any number and type of self-modification actions based on any number and type of data acquired in any technically feasible manner. In at least one embodiment, the self-modification actions may save a data center operator of data center 1300 from making potentially poor configuration decisions and potentially avoiding underutilized and / or poorly performing portions of the data center.
[0094] In at least one embodiment, data center 1300 may include tools, services, software, or other resources to train one or more machine learning models or use one or more machine learning models to predict or infer information according to one or more embodiments described herein. For example, in at least one embodiment, a machine learning model may be trained by calculating weight parameters according to a neural network architecture using the software and computing resources described above with respect to data center 1300. In at least one embodiment, by using weight parameters calculated by one or more training techniques described herein, information may be inferred or predicted using trained machine learning models corresponding to one or more neural networks using the resources described above with respect to data center 1300.
[0095] In at least one embodiment, the data center may use a CPU, an application specific integrated circuit (ASIC), a GPU, an FPGA, or other hardware to use the above resources to perform training and / or reasoning. In addition, one or more software and / or hardware resources described above may be configured to allow a user to train or perform reasoning services on information, such as image recognition, speech recognition, or other artificial intelligence services.
[0096] The reasoning and / or training logic 1115 is used to perform reasoning and / or training operations associated with one or more embodiments. Fig.12 and / or Fig.13Provides details about the reasoning and / or training logic 1115. In at least one embodiment, the reasoning and / or training logic 1115 may be in the system Fig.13 for use in reasoning or predicting operations based at least in part on weight parameters calculated based on neural network training operations, neural network functions and / or architectures, or neural network usage scenarios described herein. Fig.13 The data center 1300 shown can be used to perform at least some of the processing and / or storage discussed herein away from the device on which the video is generated or analyzed or the game is played. In at least some embodiments, such a data center may also include servers hosting these games or other related applications.
[0097] Computer Systems
[0098] Fig.14 1400 is a block diagram illustrating an exemplary computer system, which may be a system of interconnected devices and components, a system on a chip (SOC), or some combination thereof formed with a processor that may include execution units for executing instructions, in accordance with at least one embodiment. In at least one embodiment, in accordance with the present disclosure, such as the embodiments described herein, computer system 1400 may include, but is not limited to, components employing execution units, such as processor 1402, which include logic for executing algorithms for processing data. In at least one embodiment, computer system 1400 may include a processor, such as the Intel ® processor available from Intel Corporation of Santa Clara, California. Processor family, Xeon TM , XScale TM and / or StrongARM TM , Core TM or Nervana TM microprocessor, but other systems (including PCs with other microprocessors, engineering workstations, set-top boxes, etc.) may also be used. In at least one embodiment, computer system 1400 may execute a version of the WINDOWS operating system available from Microsoft Corporation of Redmond, Washington, but other operating systems (such as UNIX and Linux), embedded software, and / or graphical user interfaces may also be used.
[0099] Embodiments may be used in other devices such as handheld devices and embedded applications. Some examples of handheld devices include cellular phones, Internet Protocol devices, digital cameras, personal digital assistants ("PDAs"), and handheld PCs. In at least one embodiment, the embedded application may include a microcontroller, a digital signal processor ("DSP"), a system on a chip, a network computer ("NetPC"), a set-top box, a network hub, a wide area network ("WAN") switch, or any other system that can execute one or more instructions according to at least one embodiment.
[0100] In at least one embodiment, computer system 1400 may include, but is not limited to, a processor 1402, which may include, but is not limited to, one or more execution units 1408, which are used to perform machine learning model training and / or reasoning according to the techniques described herein. In at least one embodiment, computer system 1400 is a single-processor desktop or server system, but in another embodiment, computer system 1400 may be a multi-processor system. In at least one embodiment, processor 1402 may include, but is not limited to, a complex instruction set computer ("CISC") microprocessor, a reduced instruction set computing ("RISC") microprocessor, a very long instruction word ("VLIW") microprocessor, a processor that implements a combination of instruction sets, or any other processor device, such as a digital signal processor. In at least one embodiment, processor 1402 may be coupled to a processor bus 1410, which may transmit data signals between processor 1402 and other components in computer system 1400.
[0101] In at least one embodiment, processor 1402 may include, but is not limited to, a level 1 ("L1") internal cache memory ("cache") 1404. In at least one embodiment, processor 1402 may have a single internal cache or multiple levels of internal cache. In at least one embodiment, the cache memory may reside external to processor 1402. Other embodiments may also include a combination of both internal and external caches, depending on the particular implementation and needs. In at least one embodiment, register file 1406 may store different types of data in various registers, including but not limited to integer registers, floating point registers, status registers, and instruction pointer registers.
[0102] In at least one embodiment, execution unit 1408 (including, but not limited to, logic for performing integer and floating point operations) is also present in processor 1402. In at least one embodiment, processor 1402 may also include a microcode ("ucode") read-only memory ("ROM") that stores microcode for certain macroinstructions. In at least one embodiment, execution unit 1408 may include logic for processing packed instruction set 1409. In at least one embodiment, by including packed instruction set 1409 and associated circuitry for executing the instructions in the instruction set of general purpose processor 1402, operations used by many multimedia applications may be performed using packed data in general purpose processor 1402. In one or more embodiments, many multimedia applications may be accelerated and executed more efficiently by performing operations on packed data using the full width of the processor's data bus, which may eliminate the need to transfer smaller units of data across the processor's data bus to perform one or more operations one data element at a time.
[0103] In at least one embodiment, execution unit 1408 may also be used in microcontrollers, embedded processors, graphics devices, DSPs, and other types of logic circuits. In at least one embodiment, computer system 1400 may include, but is not limited to, memory 1420. In at least one embodiment, memory 1420 may be implemented as a dynamic random access memory ("DRAM") device, a static random access memory ("SRAM") device, a flash memory device, or other memory device. In at least one embodiment, memory 1420 may store instructions 1419 and / or data 1421 represented by data signals that may be executed by processor 1402.
[0104] In at least one embodiment, the system logic chip may be coupled to the processor bus 1410 and the memory 1420. In at least one embodiment, the system logic chip may include, but is not limited to, a memory controller hub ("MCH") 1416, and the processor 1402 may communicate with the MCH 1416 via the processor bus 1410. In at least one embodiment, the MCH 1416 may provide a high bandwidth memory path 1418 to the memory 1420 for instruction and data storage and for storing graphics commands, data, and textures. In at least one embodiment, the MCH 1416 may direct data signals between the processor 1402, the memory 1420, and other components in the computer system 1400, and bridge data signals between the processor bus 1410, the memory 1420, and the system I / O 1422. In at least one embodiment, the system logic chip may provide a graphics port for coupling to a graphics controller. In at least one embodiment, the MCH 1416 may be coupled to the memory 1420 via a high bandwidth memory path 1418 , and the graphics / video card 1412 may be coupled to the MCH 1416 via an accelerated graphics port (“AGP”) interconnect 1414 .
[0105] In at least one embodiment, the computer system 1400 may couple the MCH 1416 to an I / O controller hub ("ICH") 1430 using a system I / O 1422 that is a dedicated hub interface bus. In at least one embodiment, the ICH 1430 may provide direct connection to some I / O devices via a local I / O bus. In at least one embodiment, the local I / O bus may include, but is not limited to, a high-speed I / O bus for connecting peripheral devices to the memory 1420, the chipset, and the processor 1402. Examples may include, but are not limited to, an audio controller 1429, a firmware hub ("flash BIOS") 1428, a wireless transceiver 1426, a data store 1424, a traditional I / O controller 1423 including a user input and keyboard interface 1425, a serial expansion port 1427 (such as a universal serial bus ("USB"), and a network controller 1434. The data store 1424 may include a hard drive, a floppy drive, a CD-ROM device, a flash memory device, or other mass storage device.
[0106] In at least one embodiment, Fig.14 A system is shown that includes interconnected hardware devices or "chips", while in other embodiments, Fig.14 An exemplary system on a chip ("SoC") may be shown. In at least one embodiment, Fig.14The devices shown in the can be interconnected with a proprietary interconnect, a standardized interconnect (eg, PCIe), or some combination thereof. In at least one embodiment, one or more components of computer system 1400 are interconnected using a compute express link (CXL) interconnect.
[0107] The reasoning and / or training logic 1115 is used to perform reasoning and / or training operations associated with one or more embodiments. Fig.12 and / or Fig.13 Provide details about the reasoning and / or training logic 1115. In at least one embodiment, the reasoning and / or training logic 1115 may be Fig.14 A system for performing inference or prediction operations based at least in part on weight parameters computed using neural network training operations, neural network functions and / or architectures, or neural network usage scenarios described herein.
[0108] Fig.15 1 is a block diagram illustrating an electronic device 1500 for utilizing a processor 1510 according to at least one embodiment. In at least one embodiment, the electronic device 1500 may be, for example, but not limited to, a notebook, a tower server, a rack server, a blade server, a laptop computer, a desktop computer, a tablet computer, a mobile device, a phone, an embedded computer, or any other suitable electronic device.
[0109] In at least one embodiment, system 1500 may include, but is not limited to, processor 1510, which is communicatively coupled to any suitable number or kind of components, peripherals, modules, or devices. In at least one embodiment, processor 1510 is coupled using a bus or interface such as an I2C bus, a system management bus ("SMBus"), a low pin count (LPC) bus, a serial peripheral interface ("SPI"), a high-definition audio ("HDA") bus, a serial advanced technology attachment ("SATA") bus, a universal serial bus ("USB") (versions 1, 2, 3), or a universal asynchronous receiver / transmitter ("UART") bus. In at least one embodiment, Fig.15 A system is shown that includes interconnected hardware devices or "chips", while in other embodiments, Fig.15 An exemplary system on a chip ("SoC") may be shown. In at least one embodiment, Fig.15 The devices shown in can be interconnected with a dedicated interconnect, a standardized interconnect (e.g., PCIe), or some combination thereof. In at least one embodiment, Fig.15 One or more components of the system are interconnected using a Compute Express Link (CXL) interconnect.
[0110] In at least one embodiment, Fig.15It may include a display 1524, a touch screen 1525, a touch pad 1530, a near field communication unit (“NFC”) 1545, a sensor hub 1540, a thermal sensor 1546, a fast chipset (“EC”) 1535, a trusted platform module (“TPM”) 1538, a BIOS / firmware / flash (“BIOS, FW flash”) 1522, a DSP 1560, a drive 1520 (such as a solid state disk (“SSD”) or a hard disk drive (“HDD”)), a wireless local area network unit (“WLAN”) 1550, a Bluetooth unit 1552, a wireless wide area network unit (“WWAN”) 1556, a global positioning system (GPS) 1555, a camera (“USB 3.0 camera”) 1554 (such as a USB 3.0 camera), and / or a low power double data rate (“LPDDR”) memory unit (“LPDDR3”) 1515 implemented therein, for example, the LPDDR3 standard. These components may each be implemented in any suitable manner.
[0111] In at least one embodiment, other components may be communicatively coupled to the processor 1510 through the components discussed above. In at least one embodiment, the accelerometer 1541, ambient light sensor (“ALS”) 1542, compass 1543, and gyroscope 1544 may be communicatively coupled to the sensor hub 1540. In at least one embodiment, the thermal sensor 1539, fan 1537, keyboard 1546, and touchpad 1530 may be communicatively coupled to the EC 1535. In at least one embodiment, the speaker 1563, earphone 1564, and microphone (“mic”) 1565 may be communicatively coupled to the audio unit (“audio codec and class-d amplifier”) 1562, which in turn may be communicatively coupled to the DSP 1560. In at least one embodiment, the audio unit 1564 may include, for example, but not limited to, an audio encoder / decoder (“codec”) and a class-D amplifier. In at least one embodiment, the SIM card (“SIM”) 1557 may be communicatively coupled to the WWAN unit 1556. In at least one embodiment, components such as the WLAN unit 1550 and the Bluetooth unit 1552 and the WWAN unit 1556 may be implemented in a next generation form factor ("NGFF").
[0112] The reasoning and / or training logic 1115 is used to perform reasoning and / or training operations associated with one or more embodiments. Fig.12 and / or Fig.13 Provide details about the reasoning and / or training logic 1115. In at least one embodiment, the reasoning and / or training logic 1115 may be Fig.15A system for performing inference or prediction operations based at least in part on weight parameters computed using neural network training operations, neural network functions and / or architectures, or neural network usage scenarios described herein.
[0113] Fig.16 A computer system 1600 is shown in accordance with at least one embodiment. In at least one embodiment, the computer system 1600 is configured to implement the various processes and methods described throughout this disclosure.
[0114] In at least one embodiment, computer system 1600 includes, but is not limited to, at least one central processing unit ("CPU") 1602 connected to a communication bus 1610 implemented using any suitable protocol, such as PCI ("Peripheral Component Interconnect"), Peripheral Component Interconnect Express ("PCI-Express"), AGP ("Accelerated Graphics Port"), HyperTransport, or any other bus or point-to-point communication protocol. In at least one embodiment, computer system 1600 includes, but is not limited to, main memory 1604 and control logic (e.g., implemented as hardware, software, or a combination thereof), and data is stored in main memory 1604, which may take the form of random access memory ("RAM"). In at least one embodiment, a network interface subsystem ("network interface") 1622 provides an interface to other computing devices and networks for receiving data from computer system 1600 and transmitting data to other systems.
[0115] In at least one embodiment, in at least one embodiment, computer system 1600 includes, but is not limited to, input device 1608, parallel processing system 1612, and display device 1606 that may be implemented using a cathode ray tube ("CRT"), liquid crystal display ("LCD"), light emitting diode ("LED"), plasma display, or other suitable display technology. In at least one embodiment, user input is received from input device 1608 such as a keyboard, mouse, touch pad, microphone, etc. In at least one embodiment, each of the foregoing modules may be located on a single semiconductor platform to form a processing system.
[0116] The reasoning and / or training logic 1115 is used to perform reasoning and / or training operations associated with one or more embodiments. Fig.12 and / or Fig.13 Provide details about the reasoning and / or training logic 1115. In at least one embodiment, the reasoning and / or training logic 1115 may be Fig.16 for performing inference or prediction operations based at least in part on weight parameters computed using neural network training operations, neural network functions and / or architectures, or neural network usages described herein.
[0117] Fig.17 An exemplary architecture is shown in which multiple GPUs 1710-1713 are communicatively coupled to multiple multi-core processors 1705-1706 via high-speed links 1740-1743 (e.g., buses, point-to-point interconnects, etc.). In one embodiment, the high-speed links 1740-1743 support 4GB / s, 30GB / s, 80GB / s, or higher communication throughput. Different interconnect protocols may be used, including but not limited to PCIe 4.0 or 5.0 and NVLink 2.0.
[0118] In addition, and in one embodiment, two or more of GPUs 1710-1713 are interconnected on high-speed links 1729-1730, which may be implemented using the same or different protocols / links as used for high-speed links 1740-1743. Similarly, two or more of multi-core processors 1705-1706 may be connected via high-speed link 1728, which may be a symmetric multiprocessor (SMP) bus operating at 20 GB / s, 30 GB / s, 120 GB / s, or higher. Alternatively, Fig.17 All communications between the different system components shown in can be achieved using the same protocol / links (e.g., through a common interconnect structure).
[0119] In one embodiment, each multi-core processor 1705-1706 is communicatively coupled to processor memory 1701-1702 via memory interconnects 1726-1727, respectively, and each GPU 1710-1713 is communicatively coupled to GPU memory 1720-1723 via GPU memory interconnects 1750-1753, respectively. Memory interconnects 1726-1727 and 1750-1753 may utilize the same or different memory access technologies. By way of example and not limitation, processor memory 1701-1702 and GPU memory 1720-1723 may be volatile memory, such as dynamic random access memory (DRAM) (including stacked DRAM), graphics DDR SDRAM (GDDR) (e.g., GDDR5, GDDR6), or high bandwidth memory (HBM), and / or may be non-volatile memory, such as 3D XPoint or Nano-Ram. In one embodiment, some portion of the processor memory 1701-1702 may be volatile memory and another portion may be non-volatile memory (eg, using a two-level memory (2LM) hierarchy).
[0120] As described below, although each processor 1705-1706 and GPU 1710-1713 may be physically coupled to a specific memory 1701-1702, 1720-1723, respectively, a unified memory architecture may be implemented in which the same virtual system address space (also referred to as an "effective address" space) is distributed across the various physical memories. For example, processor memories 1701-1702 may each include 64GB of system memory address space, and GPU memories 1720-1723 may each include 32GB of system memory address space (resulting in a total of 256GB of addressable memory in this example).
[0121] Fig.17 Additional details of the interconnection between the multi-core processor 1707 and the graphics acceleration module 1746 according to an exemplary embodiment are shown. The graphics acceleration module 1746 may include one or more GPU chips integrated on a line card that is coupled to the processor 1707 via a high-speed link 1740. Alternatively, the graphics acceleration module 1746 may be integrated with the processor 1707 on the same package or chip.
[0122] In at least one embodiment, the processor 1707 shown includes multiple cores 1760A-1760D, each core having a translation lookaside buffer 1761A-1761D and one or more caches 1762A-1762D. In at least one embodiment, the cores 1760A-1760D may include different other components (not shown) for executing instructions and processing data. Caches 1762A-1762D may include level 1 (L1) and level 2 (L2) caches. In addition, one or more shared caches 1756 may be included in caches 1762A-1762D and shared by a collection of cores 1760A-1760D. For example, one embodiment of the processor 1707 includes 24 cores, each core having its own L1 cache, twelve shared L2 caches, and twelve shared L3 caches. In this embodiment, one or more L2 and L3 caches are shared by two adjacent cores. The processor 1707 and the graphics acceleration module 1746 are connected to the system memory 1714, which may include Fig.17 Processor memory 1701-1702.
[0123] like Fig.18As shown, coherence is maintained for data and instructions stored in the various caches 1862A-1862D, 1856, and the system memory 1814 via inter-core communications over a coherence bus 1864. For example, each cache may have cache coherence logic / circuitry associated therewith to communicate over the coherence bus 1864 in response to detecting a read or write to a particular cache line. In one implementation, a cache snooping protocol is implemented on the coherence bus 1864 to snoop cache accesses.
[0124] In one embodiment, the proxy circuit 1825 communicatively couples the graphics acceleration module 1846 to the coherence bus 1864, thereby allowing the graphics acceleration module 1846 to participate in the cache coherence protocol as a peer of the cores 1860A-1860D. Specifically, the interface 1835 provides connectivity to the proxy circuit 1825 via a high-speed link 1840 (e.g., a PCIe bus, an NV link, etc.), and the interface 1837 connects the graphics acceleration module 1846 to the link 1840.
[0125] In one implementation, the accelerator integrated circuit 1836 provides cache management, memory access, context management, and interrupt management services on behalf of multiple graphics processing engines 1831, 1832, N of the graphics acceleration module 1846. The graphics processing engines 1831, 1832, N may each include a separate graphics processing unit (GPU). Alternatively, the graphics processing engines 1831, 1832, N may include different types of graphics processing engines within the GPU, such as a graphics execution unit, a media processing engine (e.g., a video encoder / decoder), a sampler, and a bit block transfer engine. In at least one embodiment, the graphics acceleration module 1846 may be a GPU having multiple graphics processing engines 1831-1832, N or the graphics processing engines 1831-1832, N may be individual GPUs integrated on a common package, line card, or chip.
[0126] In one embodiment, the accelerator integrated circuit 1836 includes a memory management unit (MMU) 1839 for performing various memory management functions, such as virtual to physical memory translation (also known as effective to real memory translation) and memory access protocols for accessing the system memory 1814. The MMU 1839 may also include a translation lookaside buffer (TLB) (not shown) for caching virtual / effective to physical / real address translations. In one implementation, the cache 1838 stores commands and data for efficient access by the graphics processing engine 1831-1832, N. In one embodiment, the data stored in the cache 1838 and the graphics memory 1833-1834, M is kept consistent with the core cache 1862A-1862D, 1856 and the system memory 1814. As described above, this may be accomplished via proxy circuitry 1825 acting on behalf of cache 1838 and memory 1833-1834, M (e.g., sending updates related to modifications / accesses of cache lines on processor caches 1862A-1862D, 1856 to cache 1838, and receiving updates from cache 1838).
[0127] Fig.18 The register group 1845 in the graphics processing engine 1831-1832 stores context data for threads executed by the graphics processing engine 1831-1832, and the context management circuit 1848 manages the thread context. For example, the context management circuit 1848 may perform save and restore operations to save and restore the context of each thread during a context switch (e.g., in the case where a first thread is saved and a second thread is stored so that the second thread can be executed by the graphics processing engine). For example, at the time of a context switch, the context management circuit 1848 may store the current register value to a specified area in the memory (e.g., identified by a context pointer). It can then restore the register value when returning to the context. In one embodiment, the interrupt management circuit 1847 receives and processes interrupts received from system devices.
[0128] In one embodiment, the virtual / effective address from the graphics processing engine 1831 is converted by the MMU 1839 to a real / physical address in the system memory 1814. One embodiment of the accelerator integrated circuit 1836 supports multiple (e.g., 4, 8, 16) graphics accelerator modules 1846 and / or other accelerator devices. The graphics accelerator module 1846 can be dedicated to a single application executed on the processor 1807, or can be shared between multiple applications. In one embodiment, a virtualized graphics execution environment is presented in which the resources of the graphics processing engines 1831-1832, N are shared with multiple applications or virtual machines (VMs). In at least one embodiment, resources can be subdivided into "slices" that are allocated to different VMs and / or applications based on the processing requirements and priorities associated with the VMs and / or applications.
[0129] In at least one embodiment, the accelerator integrated circuit 1836 performs as a bridge to the system of graphics acceleration modules 1846 and provides address translation and system memory cache services. In addition, the accelerator integrated circuit 1836 can provide virtualization facilities for the host processor to manage virtualization of graphics processing engines 1831-1832, N, interrupts, and memory management.
[0130] Because the hardware resources of the graphics processing engines 1831-1832, N are explicitly mapped to the real address space seen by the host processor 1807, any host processor can directly address these resources using effective address values. In one embodiment, one function of the accelerator integrated circuit 1836 is the physical separation of the graphics processing engines 1831-1832, N so that they appear as independent units to the system.
[0131] In at least one embodiment, one or more graphics memories 1833-1834, M are respectively coupled to each of the graphics processing engines 1831-1832, N. Graphics memories 1833-1834, M store instructions and data processed by each of the graphics processing engines 1831-1832, N. Graphics memories 1833-1834, M may be volatile memories, such as DRAM (including stacked DRAM), GDDR memories (e.g., GDDR5, GDDR6), or HBM, and / or may be non-volatile memories, such as 3DXPoint or Nano-Ram.
[0132] In one embodiment, to reduce data traffic on link 1840, biasing techniques are used to ensure that the data stored in graphics memory 1833-1834, M is the data that will be used most frequently by graphics processing engines 1831-1832, N and preferably not (at least not frequently) by cores 1860A-1860D. Similarly, the biasing mechanism attempts to keep data needed by the core (and preferably not graphics processing engines 1831-1832, N) within caches 1862A-1862D, 1856 of the core and system memory 1814.
[0133] In at least one embodiment, a single semiconductor platform may refer to a unique single semiconductor-based integrated circuit or chip. In at least one embodiment, multi-chip modules may be used with enhanced connectivity that emulates on-chip operation and makes substantial improvements over utilizing a central processing unit ("CPU") and bus implementation. In at least one embodiment, the various modules may also be located individually or in various combinations of semiconductor platforms as desired by the user.
[0134] In at least one embodiment, a computer program in the form of a machine-readable executable code or a computer control logic algorithm is stored in the main memory 1404 and / or the auxiliary memory. If the computer program is executed by one or more processors, the system 1400 is enabled to perform different functions according to at least one embodiment. In at least one embodiment, the memory 1404, the storage device and / or any other storage device are possible examples of computer-readable media. In at least one embodiment, the auxiliary storage device can refer to any suitable storage device or system, such as a hard disk drive and / or a removable storage drive, representing a floppy disk drive, a tape drive, a high-density disk drive, a digital versatile disk ("DVD") drive, a recording device, a universal serial bus ("USB") flash memory, etc. In at least one embodiment, the architecture and / or functions of the different previous figures are implemented in the context of a CPU; a parallel processing system; an integrated circuit that can implement at least a portion of the capabilities of two CPUs; a parallel processing system; a chipset (e.g., a group of integrated circuits designed to work and sell as a unit to perform related functions, etc.); and any suitable combination of one or more integrated circuits.
[0135] In at least one embodiment, the architecture and / or functions of different previous figures are implemented in the context of a general-purpose computer system, a circuit board system, a game console system dedicated to entertainment purposes, a dedicated system, and more systems. In at least one embodiment, the computer system can take the form of a desktop computer, a laptop computer, a tablet computer, a server, a supercomputer, a smart phone (e.g., a wireless handheld device), a personal digital assistant ("PDA"), a digital camera, a vehicle, a head-mounted display, a handheld electronic device, a mobile phone device, a television, a workstation, a game console, an embedded system, and / or any other type of logic. Such hardware can be used to execute applications and codes to support different types of processing, analysis, and storage discussed herein. For example, a given computer system can execute a game and analyze the video output by the game to determine an event, and then upload the event data to a remote server for analysis or storage. In other embodiments, a video data stream can be generated by a game server of a game console containing several different client devices, and the stream can be analyzed by another server or computer system to determine an event that occurs in playing the game. In some embodiments, the event data can then be used for processing by the same or another server or computer system, such as generating a highlight video or a video montage.
[0136] Other variations are within the spirit of the present disclosure. Thus, while the disclosed technology is susceptible to various modifications and alternative constructions, certain illustrated embodiments thereof are shown in the drawings and have been described in detail above. However, it should be understood that it is not intended to limit the present disclosure to one or more specific forms disclosed, but on the contrary, it is intended to cover all modifications, alternative constructions, and equivalents that fall within the spirit and scope of the present disclosure as defined by the appended claims.
[0137] The use of the terms "a" and "an" and "the" and similar indicators in the context of describing the disclosed embodiments (especially in the context of the following claims) should be interpreted as covering both the singular and the plural, unless otherwise indicated herein or clearly contradicted by the context, and not as a definition of the term. Unless otherwise indicated, the terms "comprising", "having", "including" and "containing" should be interpreted as open terms (meaning "including but not limited to") unless otherwise indicated. The term "connected" should be interpreted as partially or completely contained together, attached thereto, or connected together when not modified and referring to a physical connection, even if there is something intervening. Unless otherwise specified herein, the numerical ranges listed herein are intended only to be used as a shorthand method of individually referring to each individual value falling within the range, and each individual value is incorporated into the specification as if it were individually listed herein. Unless otherwise indicated or contradictory by the context, the use of the term "set" (e.g., "set of items") or "subset" should be interpreted as a non-empty set including one or more members. Further, unless otherwise indicated or contradicted by context, the term "subset" of a corresponding set does not necessarily mean a proper subset of the corresponding set, but a subset and a corresponding set may be equivalent.
[0138] Connective language, such as phrases of the form "at least one of A, B, and C," or "at least one of A, B, and C," unless otherwise expressly stated or clearly contradicted by context, is otherwise understood by context, which context is typically used to present items, terms, etc. as being either A or B or C, or any non-empty subset of the set of A and B and C. For example, in the illustrative example of a set having three members, the connective phrases "at least one of A, B, and C" and "at least one of A, B, and C" refer to any of the following sets: {A}, {B}, {C}, {A, B}, {A, C}, {B, C}, {A, B, C}. Thus, such connective language is generally not intended to imply that certain embodiments require the presence of at least one of A, at least one of B, and at least one of C, respectively. Furthermore, unless otherwise indicated or contradicted by context, the term "plurality" indicates a plural state (e.g., "plurality of items" indicates a plurality of items). A plurality is at least two items, but may be more when so indicated, either expressly or by context. Further, unless otherwise specified or otherwise clear from context, the phrase "based on" means "based at least in part on" rather than "based solely on."
[0139] Unless otherwise indicated herein or the context is clearly contradictory, the operations of the processes described herein may be performed in any suitable order. In at least one embodiment, processes such as those described herein (or variations and / or combinations thereof) are performed under the control of one or more computer systems configured with executable instructions and are implemented as codes (e.g., executable instructions, one or more computer programs, or one or more applications) that are executed together on one or more processors, by hardware or a combination thereof. In at least one embodiment, the code is stored on a computer-readable storage medium, for example, in the form of a computer program including multiple instructions that can be executed by one or more processors. In at least one embodiment, the computer-readable storage medium is a non-transitory computer-readable storage medium that excludes transient signals (e.g., propagated transient electrical or electromagnetic transmissions) but includes non-transitory data storage circuits (e.g., buffers, caches, and queues) within a transceiver of transient signals. In at least one embodiment, code (e.g., executable code or source code) is stored on a collection of one or more non-transitory computer-readable storage media on which executable instructions are stored (or other memory for storing executable instructions), and when executed by one or more processors of a computer system (i.e., due to being executed), causes the computer system to perform the operations described herein. In at least one embodiment, a set of non-transitory computer-readable storage media includes a plurality of non-transitory computer-readable storage media and one or more of the non-transitory computer-readable storage media in the plurality of non-transitory computer-readable storage media lack all of the code, while the plurality of non-transitory computer-readable storage media collectively store all of the code. In at least one embodiment, the executable instructions are executed so that different instructions are executed by different processors—for example, a non-transitory computer-readable storage medium stores instructions, and a main central processing unit ("CPU") executes some of the instructions, while a graphics processing unit ("GPU") executes other instructions. In at least one embodiment, different components of the computer system have separate processors, and different processors execute different subsets of instructions.
[0140] Thus, in at least one embodiment, a computer system is configured to implement one or more services that individually or collectively perform the operations of the processes described herein, and such a computer system is configured with applicable hardware and / or software that can enable the execution of the operations. Further, a computer system that implements at least one embodiment of the present disclosure is a single device, and in another embodiment, is a distributed computer system comprising multiple devices that operate differently, such that the distributed computer system performs the operations described herein and such that a single device does not perform all operations.
[0141] The use of any and all examples or exemplary language (e.g., "such as") provided herein is intended only to better illustrate embodiments of the present disclosure and does not limit the scope of the present disclosure unless otherwise required. No language in the specification should be construed as indicating any non-claimed element is essential to the practice of the present disclosure.
[0142] All references (including publications, patent applications, and patents) cited herein are hereby incorporated by reference to the same extent as if each reference were individually and specifically indicated to be incorporated by reference and were set forth in its entirety herein.
[0143] In the specification and claims, the terms "coupled" and "connected" and their derivatives may be used. It should be understood that these terms may not be intended as synonyms for each other. Rather, in specific examples, "connected" or "coupled" may be used to indicate that two or more elements are in direct or indirect physical or electrical contact with each other. "Coupled" may also refer to two or more elements that are not in direct contact with each other, but still cooperate or interact with each other.
[0144] Unless expressly stated otherwise, it is to be understood that throughout the specification terms such as "processing", "computing", "calculating", "determining" and the like refer to the action and / or process of a computer or computing system, or similar electronic computing device, which manipulates and / or transforms data represented as physical (such as electronic) quantities within registers and / or memories of a computing system into other data similarly represented as physical quantities within a computing system's memory, registers or other such information storage, transmission or display device.
[0145] In a similar manner, the term "processor" may refer to any device or part of a device that processes electronic data from registers and / or memory and converts the electronic data into other electronic data that can be stored in registers and / or memory. As a non-limiting example, a "processor" may be a CPU or a GPU. A "computing platform" may include one or more processors. As used herein, a "software" process may include, for example, software and / or hardware entities that perform work over time, such as tasks, threads, and intelligent agents. Moreover, each process may refer to multiple processes for executing instructions sequentially or in parallel, continuously or intermittently. The terms "system" and "method" are used interchangeably herein, as long as a system can embody one or more methods and a method can be considered a system.
[0146] In this document, reference may be made to obtaining, acquiring, receiving or inputting analog or digital data into a subsystem, a computer system or a computer-implemented machine. Obtaining, acquiring, receiving or inputting analog and digital data may be accomplished in various ways, such as by receiving the data of a parameter as a function call or a call to an application programming interface. In some implementations, the process of obtaining, acquiring, receiving or inputting analog or digital data may be accomplished by transmitting data via a serial or parallel interface. In another implementation, the process of obtaining, acquiring, receiving or inputting analog or digital data may be accomplished by transmitting data from providing an entity to acquiring an entity via a computer network. Reference may also be made to providing, outputting, transmitting, sending or presenting analog or digital data. In different examples, the process of providing, outputting, transmitting, sending or presenting analog or digital data may be accomplished by transmitting data as an input or output parameter of a function call, a parameter of an application programming interface or an interprocess communication mechanism.
[0147] Although the above discussion sets forth exemplary embodiments of the described technology, other architectures may be used to implement the described functionality and are intended to be within the scope of the present invention. In addition, although a specific distribution of responsibilities is defined above for discussion purposes, the various functions and responsibilities may be distributed and divided in different ways depending on the circumstances.
[0148] Furthermore, although the subject matter has been described in language specific to structural features and / or methodological acts, it should be understood that the subject matter claimed in the appended claims is not necessarily limited to the specific features or acts described. Rather, the specific features and acts are disclosed as exemplary forms of implementing the claims.
Claims
1. A computer-implemented method comprising: receiving video data corresponding to a game play session of a game; determining an event region in a frame of the video data, the event region including one or more characters associated with a type of gaming event; amplifying the image data of the event area to obtain a higher image resolution of the event area; processing the magnified image data using optical character recognition (OCR) to identify the one or more characters present in the event area; determining the gaming event based at least in part on at least one neural network determination of a type of at least one event cue and its association with the one or more characters identified from the event area; as well as Event data corresponding to the determined gaming event is provided.
2. The computer-implemented method of claim 1 , further comprising: Pre-processing of the image data is performed prior to processing using OCR, the pre-processing including binarizing the up-scaled image data to remove background values from pixels of the event area.
3. The computer-implemented method of claim 1 , further comprising: A size of the event area is determined, the size including at least a minimum amount of pixel padding around the one or more characters.
4. The computer-implemented method of claim 1 , further comprising: An upscaling algorithm for upscaling the image data is determined, the upscaling algorithm comprising at least one of a bicubic, bilinear, edge-based, or fractal upscaling algorithm.
5. The computer-implemented method of claim 1 , further comprising: The game event is determined based at least in part on a current state or change in state of the one or more characters in the event area.
6. The computer-implemented method of claim 1 , further comprising: The event regions are detected using a pattern recognition algorithm. 7 . The computer-implemented method of claim 1 , wherein the event area corresponds to a heads-up display (HUD) presented over the rendered game content.
8. The computer-implemented method of claim 1 , further comprising: Periodic subsets of frames of the video sequence are analyzed to determine a plurality of game events in the game play session.
9. The computer-implemented method of claim 1 , further comprising: Preprocessing of the image data is performed, the preprocessing comprising at least one of filtering, stretching, warping, perspective correction, noise removal, color space transformation, color isolation, or value thresholding.
10. The computer-implemented method of claim 1 , further comprising: receiving the at least one event clue from the OCR engine; as well as At least one cue-to-event conversion algorithm is utilized to determine the event data based at least in part on the at least one event cue.
11. The computer-implemented method of claim 1 , further comprising: The video data is received during or after the game play session in the form of a file or a stream.
12. A computer-implemented method comprising: determining a character region including one or more characters in a frame of video data; enlarging the image data of the character region to obtain a higher graphic resolution of the character region than a graphic resolution of a frame of the video data; performing preprocessing on the enlarged image data, the preprocessing comprising binarizing the enlarged image data to remove background values from pixels of the character area; processing the magnified and pre-processed image data using optical character recognition (OCR) to recognize the one or more characters present in the character region; as well as Based at least in part on at least one neural network determination of a type of at least one event cue and its association with the one or more characters, content related to the identified one or more characters is provided.
13. The computer-implemented method of claim 12, further comprising: A size of the character region is determined, the size including at least a minimum amount of padding around the one or more characters.
14. The computer-implemented method of claim 12, further comprising: An upscaling algorithm for upscaling the image data is determined, the upscaling algorithm comprising at least one of a bicubic, bilinear, edge-based, or fractal upscaling algorithm.
15. The computer-implemented method of claim 12, further comprising: The content to be provided is determined based at least in part on a current state or a change in state of the one or more characters in the character area.
16. The computer-implemented method of claim 12, further comprising: The character regions are detected using a pattern recognition algorithm.
17. A system comprising: one or more processors; as well as a memory comprising instructions that, when executed by the one or more processors, cause the system to: receiving video data corresponding to a game play session of a player of the game; determining an event region in a frame of the video data, the event region including one or more characters associated with a type of gaming event; amplifying the image data of the event area to obtain a higher image resolution of the event area; processing the magnified image data using optical character recognition (OCR) to identify the one or more characters present in the event area; determining the gaming event based at least in part on at least one neural network determination of a type of at least one event cue and its association with the one or more characters identified from the event area; as well as Event data corresponding to the determined gaming event is provided.
18. The system of claim 17, wherein: The instructions, when executed, further cause the system to: Pre-processing of the image data is performed prior to processing using OCR, the pre-processing including binarizing the up-scaled image data to remove background values from pixels of the event area.
19. The system of claim 17, wherein: The instructions, when executed, further cause the system to: A size of the event area is determined, the size including at least a minimum amount of padding around the one or more characters.
20. The system of claim 17, wherein: The instructions, when executed, further cause the system to: An upscaling algorithm for upscaling the image data is determined, the upscaling algorithm comprising at least one of a bicubic, bilinear, edge-based, or fractal upscaling algorithm.
