Automatically select objects in images using natural language processing and multiple object detection models
Through the combination of natural language processing and multi-object detection models, the flexibility, accuracy and efficiency problems of digital image editing systems in detecting and selecting objects are solved, and accurate and efficient automatic detection and selection of natural language input are achieved.
Patent Information
- Application Number
- CN202011408389.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-04
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-12-04
AI Technical Summary
Existing digital image editing systems have problems with flexibility, accuracy, and efficiency when detecting and selecting objects, especially when processing natural language input. Conventional systems have difficulty identifying slang terms and specialized or specific objects with high levels of granularity, and cannot Accurate handling of relationships between objects results in inaccurate and inefficient results.
Employs natural language processing tools and multi-object detection models to automatically detect and select objects in images through an object selection pipeline, utilizes mapping tables and object-relational models to identify unrecognized object items, and improves performance through specialized and known object class detection models Detection accuracy and efficiency.
It achieves accurate and efficient automatic detection of natural language object selection queries, enhances the flexibility and functionality of the system, reduces user interaction and waste of computing resources, and improves the accuracy and efficiency of object detection.
Smart Images

Figure CN113377932B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to digital image editing, and more particularly to automatically selecting objects in images using natural language processing and multiple object detection models. Background Art
[0002] Recent years have witnessed a significant increase in digital image editing. Indeed, advances in hardware and software have improved the ability of individuals to capture, create, and edit digital images. For example, the hardware on most modern computing devices (e.g., smartphones, tablets, servers, desktops, and laptops) enables digital image editing without significant lag time or processing delays. Similarly, improvements in software have enabled individuals to modify, combine, filter, or otherwise edit digital images. Examples of editing digital images include: detecting objects; copying objects from one image to a new background; or removing objects from an image.
[0003] Although there are these improvements in digital image editing, conventional systems have several difficulties with respect to the flexibility, accuracy and efficiency of operation for image editing systems, and in particular, for detecting and selecting objects in digital images. To illustrate, many conventional systems have limited functionality in terms of their ability to select objects based on natural language sentence input. For example, when the user input for selecting an object includes a slang term, many conventional systems cannot recognize the term. In fact, many conventional systems ignore the slang term as an unrecognizable object, and therefore, cannot select any object in a digital image. Similarly, many conventional systems cannot recognize specialized or specific terms that include a high level of granularity. In addition, conventional systems are too rigid to return sufficient results.
[0004] As another example of inflexibility, many conventional systems are unable to identify or process relationships between objects included in a natural language object selection request. For example, if a natural language object selection request requests selection of an object when the object is related to another object, many conventional systems are unable to correctly identify which object to select. Further, although a few conventional systems have recently begun to address this problem, these conventional systems are limited to general relational operators that can only process simple relationships.
[0005] Additionally, conventional systems are inaccurate. For example, as mentioned above, many conventional systems cannot identify one or more object terms in a natural language object selection request. Therefore, these conventional systems cannot provide any results to the user. Alternatively, some conventional systems incorrectly identify the object terms and return incorrect objects. In either case, conventional systems provide incorrect, imprecise, and inaccurate results to the user. Similarly, when conventional systems cannot distinguish the relationship between multiple objects in a natural language object selection request, these conventional systems cannot return accurate results to the user.
[0006] In addition, conventional systems are inefficient. For example, conventional systems have significant deficiencies with respect to automatic object detection and selection. For example, conventional systems waste computer processing resources and real-time memory when they provide inaccurate results. As another example, many conventional systems for detecting objects are end-to-end neural networks. When a failure occurs or the expected results are not achieved, the user or even the creator of the system cannot find which component of the system is not working properly. Instead, the entire system must be retrained and adjusted until the desired results are achieved - a process that can consume a lot of time and computing resources.
[0007] In addition, many conventional systems provide inefficient mouse-based input tools that also require the user to manually select the desired object. These tools are often imprecise and difficult for many selection tasks. As a result, the large amount of time spent by the user on and user interaction with different selection tools wastes a large amount of computing resources when detecting, displaying, selecting, and correcting object selections in digital images.
[0008] These and other challenges and problems exist in image editing systems for detecting and selecting objects in digital images. Summary of the invention
[0009] Implementations of the present disclosure utilize systems, non-transient computer-readable media, and methods for automatically selecting detected objects in digital images based on natural language input to provide benefits and / or solve one or more of the foregoing or other problems in the art. For example, the disclosed system can utilize natural language processing tools to detect objects and their corresponding relationships in natural language object selection queries. For example, the disclosed system determines alternative object items for unrecognized objects in natural language object selection queries. As another example, the disclosed system identifies multiple types of relationships between objects in a natural language object selection query, and utilizes different object relationship models to select the requested query object. As another example, the disclosed system can utilize an object selection pipeline consisting of interchangeable object detection neural networks and models to accurately detect and automatically select query objects identified in natural language object selection queries.
[0010] The following description sets forth additional features and advantages of one or more implementations of the disclosed systems, computer media, and methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] As briefly described below, the detailed description provides one or more implementations with additional particularity and detail through the use of the accompanying drawings.
[0012] Figure 1 A schematic diagram of an environment in which an object selection system may operate in accordance with one or more implementations is illustrated.
[0013] Figure 2 Schematic diagrams illustrating automatic detection and selection of query objects in an image based on natural language user input in accordance with one or more implementations.
[0014] FIG. 3A to FIG. 3D A graphical user interface illustrating a process for automatically detecting and selecting a query object in an image is illustrated in accordance with one or more implementations.
[0015] Figure 4 A schematic diagram of an object selection pipeline according to one or more implementations is illustrated.
[0016] Figure 5 A flow diagram for identifying and selecting a query object based on candidate object terms is illustrated according to one or more implementations.
[0017] FIG. 6A to FIG. 6B Illustrated are multiple mapping tables utilized to identify candidate mapping items for a query object according to one or more implementations.
[0018] 7A to 7D A graphical user interface illustrating a process of selecting a query object based on one or more alternatives is illustrated in accordance with one or more implementations.
[0019] Figure 8 A flow diagram is illustrated for utilizing an object relational model to detect a query object from a plurality of objects associated with a natural language user input in accordance with one or more implementations.
[0020] Fig.9A A graphical user interface for a digital image including a natural language object selection query is illustrated in accordance with one or more implementations.
[0021] Fig. 9B The diagram shows Fig.9A Component graph of a natural language object selection query shown in .
[0022] Fig.10 Block diagrams of multiple object relationship models are illustrated according to one or more implementations.
[0023] Fig.11 A schematic diagram illustrating selecting an object using a relative object position model is illustrated in accordance with one or more implementations.
[0024] FIG. 12A to FIG. 12D A graphical user interface illustrating a process of utilizing an object relational model to select a query object from a plurality of objects associated with a natural language user input is illustrated in accordance with one or more implementations.
[0025] Fig.13 Illustrated is a table evaluating various implementations of an object selection system according to one or more implementations.
[0026] Fig.14 Schematic diagrams of object selection systems are illustrated in accordance with one or more implementations.
[0027] Fig.15 A flow diagram illustrating a series of actions for detecting query objects using an object relational model according to one or more implementations is illustrated.
[0028] Fig.16 A flow diagram illustrating a series of actions for detecting a query object using candidate object terms and multiple object detection models according to one or more implementations is illustrated.
[0029] Fig.17 A block diagram of an example computing device for implementing one or more implementations of the present disclosure is illustrated. DETAILED DESCRIPTION
[0030] The present disclosure describes one or more implementations of an object selection system that accurately detects and automatically selects a user-requested object (e.g., a query object) in a digital image. In particular, in one or more implementations, the object selection system utilizes one or more natural language processing tools to identify object terms and relationships within a natural language object selection query. Additionally, the object selection system can build and update an object selection pipeline to select a requested query object from one or more query objects indicated in a natural language object selection query. Further, the object selection system can add, update, or replace portions of the object selection pipeline to improve the overall accuracy and efficiency of automatic object selection within an image.
[0031] As an overview, an object selection system can generate and utilize an object selection pipeline to detect objects within a query string (i.e., a natural language object selection query). Typically, the object selection pipeline includes multiple object detection models (e.g., neural networks) designed to identify different classes of objects. For example, the object selection pipeline can include specialized class object detection models, known class object detection models, concept-based object detection models, and / or large-scale object detection models. In this way, the object selection system can utilize the object detection model that most accurately and efficiently detects objects identified from the query string.
[0032] The object selection system may utilize natural language processing tools to detect a query object from a plurality of objects indicated in a natural language object selection query. To illustrate, in one or more implementations, the object selection system generates a component graph to identify a plurality of objects (and / or object classes) from a query string (i.e., a natural language object selection query). Additionally, the object selection system may identify a relationship type from the component graph, and based on the relationship type, identify an object relationship model from a plurality of object relationship models. Further, the object selection system may generate an object mask for each of the identified objects, and analyze the object masks to determine an object (e.g., a query object) that satisfies the object relationship model. Furthermore, the object selection system may provide a selected query object within a digital image in response to the natural language object selection query.
[0033] The object selection system can utilize one or more object relationship models to detect query objects from the query string. For example, in various implementations, the object selection system generates a component graph or tree indicating each of the objects (or object classes) included in the query string and the types of relationships between the objects. For each of the objects, the object selection system can utilize an object selection pipeline to identify a target object detection model that will accurately detect the object and / or generate an object mask for each detected instance of the object.
[0034] In another implementation, the object selection system may determine the object relationship model based on the relationship type indicated in the component graph. For example, based on the relationship type, the object selection system selects a target object relationship model from a plurality of object relationship models. For illustration, the object selection system may determine the object relationship model from an object touch model, a relative object position model, a background / foreground object model, or another object relationship model. After selecting the target object relationship model, the object selection system may determine which of the detected objects satisfies the target object relationship model, and the object selection system may then select the object as a query object to be provided within the digital image.
[0035] In another implementation, or in an alternative implementation, the object selection system may detect the query object using a natural language processing tool that determines candidate object terms. To illustrate, in one or more implementations, the object selection system identifies the query object from a natural language object selection query. Based on the identified query object, the object selection system determines that the query object does not correspond to any known object class identified by a known object class detection model. Therefore, the object selection system may utilize a mapping table to identify one or more candidate object terms for the query object. Based on one of the candidate object terms, the object selection system may utilize a known object class detection model to detect the query object and generate an object mask for the query object. Additionally, the object selection system may provide a selected query object within a digital image in response to the natural language object selection query.
[0036] Thus, the object selection system can utilize the mapping table to identify one or more candidate object terms for the query object or other objects detected in the query string. In various implementations, the object selection system utilizes the mapping table to identify synonyms for objects determined to correspond to an unknown object class (e.g., an unrecognized object). In some implementations, the mapping table provides hypernyms for the unrecognized object.
[0037] By providing synonyms and / or hyponyms as candidate object terms for objects belonging to unrecognized classes, the object selection system can more efficiently and accurately detect objects. For example, when the object selection system does not recognize an object in a query string, the object selection system will attempt to detect the object using a large-scale detector that detects objects of unknown object classes. However, if the object selection system recognizes a synonym of the object as belonging to a known object class, the object selection system can accurately and efficiently detect the object using a known class object detection neural network. Similarly, the object selection system can use a target object detection model in the object selection pipeline to more accurately detect hypernyms of unrecognized objects.
[0038] Additionally, the object selection system can modify the object selection pipeline depending on whether the object selection system detects synonyms or hypernyms. For example, as described below, if the object selection system utilizes hypernyms for unrecognizable objects, the object selection system can exclude various paths and / or object detection models from the object selection pipeline. Further, the object selection system can add additional stages to the object selection pipeline, such as a verification stage, depending on whether the object is a synonym or a hypernym.
[0039] As previously mentioned, the object selection system provides many advantages and benefits over conventional systems via practical applications (e.g., utilizing one or more natural language processing tools to automatically select objects within an image). For example, the object selection system can automatically detect and select objects among a wide range of object types and classes based on natural language user input (i.e., a natural language object selection query). In fact, the object selection system can utilize various natural language processing tools and techniques to detect objects that conventional systems would not detect or would only use an unnecessary amount of computing resources to detect. Thus, the object selection system provides enhanced flexibility, improved efficiency, and expanded functionality over conventional systems.
[0040] To illustrate, the object selection system provides enhanced flexibility by detecting objects that are not recognizable or do not belong to a known object class. For example, the object selection system can identify objects indicated by slang terms in a natural language object selection query that are not recognized by conventional systems. Similarly, the object selection system can identify objects indicated by very fine-grained or specific terms in a natural language object selection query that are also not recognized by conventional systems. In this way, the object selection system can flexibly expand the breadth and scope of objects that can be detected by more accurate and more effective object detection models (e.g., specialized object detection models and known object class detection models).
[0041] Additionally, the object selection system provides improved accuracy over conventional systems. For example, the object selection system improves object detection accuracy by better identifying the objects indicated in a natural language object selection query. In fact, if a conventional system does not recognize the object term, the conventional system is largely unable to detect the object. In the case where a conventional system can use a general object detection network to detect an object, the conventional system typically returns the wrong object or an inaccurate selection of the object. In contrast, by utilizing the natural language processing tools and techniques described herein, the object selection system can accurately identify objects using a specialized object detection model or a known object class detection model.
[0042] As another example, by utilizing a target object relationship model, an object selection system can more accurately identify a query object. In fact, each of the object relationship models is customized for a specific type of object relationship between objects. Therefore, by utilizing an object relationship model corresponding to the type of relationship between objects, an object selection system can achieve much more accurate results than conventional systems that use a general one-size-fits-all relationship model. In fact, in many cases, general relationship models cannot identify or correctly apply the relationship between objects.
[0043] Further, the object selection system provides improved efficiency over conventional systems by utilizing a target object detection model and utilizing an object selection pipeline. For example, utilizing a specialized object detection model or a known object class detection model to detect an object is more efficient and accurate than utilizing a general object detection network that includes many additional steps to identify an object. Similarly, utilizing a target object relationship model is more efficient and requires fewer computations and steps than utilizing a general relationship model.
[0044] Furthermore, unlike closed end-to-end conventional systems, when a failure occurs, the object selection system can pinpoint the failed component in the object selection pipeline and repair the component. Further, the object selection system can add additional components to improve accuracy. For example, the object selection system can add additional specialized object detection neural networks corresponding to frequently queried objects to the object selection pipeline. Similarly, the object selection system can replace and / or upgrade components in the object selection pipeline with more efficient versions.
[0045] Additionally, the object selection system significantly reduces the number of actions that many conventional systems require a user to perform to select an object within an image. Rather than the user manually selecting an object using an inefficient mouse-based input tool, the user "tells" (e.g., provides a verbal prompt in a natural language object selection query or query string) the object selection system which object to select, and the object selection system automatically detects and accurately selects that object. In effect, the object selection system greatly simplifies the object selection process to one or two simple actions that achieve a precise result for the user rather than the numerous steps that previously required only a moderate result.
[0046] In view of the following description, other advantages and benefits of the object selection system will become apparent. Further, as illustrated by the foregoing discussion, the present disclosure utilizes various terms to describe the features and advantages of the object selection system. Before describing the object selection system with reference to the following figures, additional details are now provided regarding the meaning of these terms.
[0047] As used herein, the term "digital image" (or simply "image") refers to a digital graphics file that displays one or more objects when rendered. In particular, an image may include one or more objects associated with any suitable object type or object class. In various implementations, an image editing system displays an image on a computing device (such as a client device). In other implementations, an image editing system enables a user to modify or change an image and generate a new image. For example, an image editing system enables a user to copy an object selected in a first image on the background of a second image. Additionally, a digital image may include one or more frames in a video or animation and other digital images.
[0048] As used herein, the term "object" refers to a visual representation of an object, concept, or sub-concept in an image. In particular, an object refers to a group of pixels that are combined in an image to form a visual depiction of an article, product, partial article, component, or element. An object can correspond to a variety of different classes and concepts. For example, an object includes a specialized object, an object category (e.g., a conceptual object), an object class, an object from a known class, and an unknown object class (e.g., an object that is not used in training any object detection neural network). In some implementations, an object includes multiple instances of an object. For example, an image of a rose bush includes multiple instances of roses, or the object item "furniture" may include sub-groupings of "chairs," "desks," and "sofas." In one or more implementations, an object includes sub-objects, parts, or portions. For example, a person's face or legs may be a part of another object (e.g., the person's body). As another example, a shirt is an object that can be a part of another object (e.g., a person).
[0049] As mentioned above, the object selection system can accurately detect and automatically select objects within an image based on a query string. As used herein, the term "natural language object selection query" or interchangeably, "query string" refers to a text string of one or more object terms (i.e., words) indicating a target object. The query string can be a natural language user input including a noun representing the query object. Additionally, the query string can include object terms of other objects that have a relationship with the query object. Typically, when a user requests the object selection system to automatically select an object in an image, the object selection system receives the query string. In some implementations, the query string is submitted as a text string. In an alternative implementation, the object selection system detects an alternative user input, such as voice data, and converts the alternative user input into text to obtain the query string.
[0050] As just mentioned, the query string may include a query object. The term "query object" refers to the object in the query string that the user requests to be detected and selected. For example, a noun in the query string indicates the query object. To a large extent, if the query string includes multiple objects (e.g., multiple nouns), the query object is the first listed object. In other implementations, the query string includes other words, such as adjectives and adverbs that indicate attributes of the query object. Further, as mentioned above, the query string may include other nouns (and corresponding attributes) that indicate a relationship with the query object. As used herein, the term "object attributes" refers to descriptive words that further identify the query object. Examples of object attributes include: color, size, length, shape, position, location, pattern, composition, expression, emotion, rigidity and / or flexibility.
[0051] As used herein, the term "alternative object terms" refers to alternatives for an object or object term in a query string. In one or more implementations, the alternative object terms include synonyms of the object term in the query string. In some implementations, the alternative object terms include hypernyms of the object term in the query string. In various implementations, the alternative object terms include hyponyms of the object term in the query string. As described herein, the object selection system may utilize one or more mapping tables to identify alternative object terms for an object term in a query string.
[0052] As used herein, the term "mapping table" refers to a data structure that associates related words together. For example, a mapping table is a database, chart, or list that includes items (e.g., object items) and corresponding alternative object items. A mapping table can provide synonyms, hypernyms, hyponyms, and / or other items for a given item. In some implementations, the object selection system utilizes multiple mapping tables, such as a synonym mapping table and a hypernym mapping table. The mapping table can be updated at regular intervals or when the object selection system detects a new alternative object item for a given object item.
[0053] As used herein, the terms "object mask," "segmentation mask," or "object segmentation" refer to an indication of a plurality of pixels that delineate an object. For example, an object mask may include a segmentation boundary (e.g., a boundary line or curve indicating the edge of one or more objects) or a segmentation mask (e.g., a binary mask identifying pixels corresponding to an object). Generating an object mask is sometimes referred to as "selecting" a target object (i.e., identifying pixels that represent a target object).
[0054] As used herein, the term "approximate boundary" refers to an indication of an area that includes an object that is more accurate and / or less accurate than an object mask. In one or more implementations, the approximate boundary may include at least a portion of the query object and a portion of the image that does not include the query object. The approximate boundary may include any shape, such as a square, rectangle, circle, ellipse, or other outline that surrounds the object. In one or more implementations, the approximate boundary includes a bounding box.
[0055] The term "object selection pipeline" refers to a collection of components and actions utilized to detect and select a query object in an image. In various implementations, an object selection system utilizes a subset of components and actions in an object selection pipeline to detect and select a query object in an image, where an output from one component is provided as an input to another component. The components and actions may include neural networks, machine learning models, heuristic models, and / or functions. Further, as described in further detail below, the components and actions in the object selection pipeline may be interchangeable, removable, replaceable, or upgradeable.
[0056] As used herein, the term "component graph" refers to a data structure that represents objects and relationships derived from a query string. For example, a component graph is a data tree that includes multiple objects to be detected and relationship types between the multiple objects. In one or more implementations, the component graph includes components "location", "correlation", and "intersection", where "location" indicates one or more objects to be detected, "correlation" indicates a relationship type, and "intersection" indicates an object relationship between objects based on the relationship type. Fig. 9B Additional details about component graphs and examples of component graphs are provided.
[0057] The term "relationship type" refers to a characteristic of the way in which objects in a query string (e.g., a digital image) relate to each other. For example, a relationship type provides an indication of an object relationship (e.g., a spatial relationship) between two or more objects. Examples of relationship types may include, but are not limited to: a spatial relationship, a proximity relationship, a depth relationship, a relative position relationship, an absolute position relationship, and an exclusion relationship.
[0058] As mentioned above, the object selection system can utilize an object relationship model to identify a query object in an image. As used herein, the term "object relationship model" refers to a relationship operator that can select an input object (i.e., a query object) based on its relationship to one or more input objects. In various implementations, the object relationship model utilizes heuristics and / or rules to select a query object. In some implementations, the object relationship model utilizes machine learning methods. Examples of object relationship models include, but are not limited to, object touch models, relative object position models, and background / foreground object models.
[0059] As mentioned above, the object selection system can utilize machine learning and various neural networks in various implementations. The term "machine learning model" refers to a computer representation that can be adjusted (e.g., trained) based on an input to approximate an unknown function. In particular, a machine learning model may include a model that utilizes an algorithm to learn from known data by analyzing the known data and make predictions on the known data to learn to generate outputs that reflect the patterns and properties of the known data. The term "machine learning model" may include: a linear regression model, a logistic regression model, a random forest model, a support vector machine (SVG) model, a neural network, or a decision tree model. Therefore, a machine learning model can make high-level abstractions in the data by generating data-driven predictions or decisions from known input data.
[0060] Machine learning can include neural networks (e.g., natural language processing neural networks, specialized object detection neural networks, concept-based object detection neural networks, known object class detection neural networks, object proposal neural networks, unknown object class detection neural networks, region proposal neural networks, concept embedding neural networks, object mask neural networks, object classification neural networks, object category detection neural networks, and / or selected object attribute detection neural networks), data-based models (e.g., natural language processing models, large-scale object detection models, unknown object class detection models, object recognition models, filtering models, and / or selected object attribute models), or a combination of networks and models.
[0061] As used herein, the term "neural network" refers to a machine learning model that includes interconnected artificial neurons that communicate and learn to approximate complex functions, and generate outputs based on multiple inputs provided to the model. For example, the term "neural network" includes algorithms (or sets of algorithms) that implement deep learning techniques that utilize a set of algorithms to model high-level abstractions in data using supervised data to adjust the parameters of the neural network. Examples of neural networks include: convolutional neural networks (CNNs), residual learning neural networks, recurrent neural networks (RNNs), graph neural networks, generative adversarial neural networks (GANs), region-CNNs (R-CNNs), faster R-CNNs, mask R-CNNs, and single shot detection (SSD) networks.
[0062] Referring now to the accompanying drawings, Figure 1 A schematic diagram of an environment 100 is illustrated in which an object selection system 106 may operate according to one or more implementations. Figure 1 As shown in FIG. 1 , environment 100 includes a client device 102 and a server device 110 connected via a network 108. Fig.17Additional details about computing devices (e.g., client device 102 and server device 110) are provided. Additionally, Fig.17 Additional details regarding networks, such as the illustrated network 108, are also provided.
[0063] Although Figure 1 The specific number, type, and arrangement of components in environment 100 are illustrated, but various other environment configurations are possible. For example, environment 100 may include any number of client devices. As another example, server device 110 may represent a group of connected server devices. As another example, client device 102 may communicate directly with server device 110, bypassing network 108 or utilizing separate and / or additional networks.
[0064] As shown, environment 100 includes client device 102. In various implementations, client device 102 is associated with a user (e.g., a user client device), such as a user who requests automatic selection of an object in an image. Client device 102 may include image editing system 104 and object selection system 106. In various implementations, image editing system 104 implements object selection system 106. In alternative implementations, object selection system 106 is separate from image editing system 104. Although image editing system 104 and object selection system 106 are shown on client device 102, as further explained below, in some implementations, image editing system 104 and object selection system 106 are located remotely from client device 102 (e.g., on server device 110).
[0065] Typically, the image editing system 104 supports the creation, modification, sharing, and / or deletion of digital images. For example, the image editing system 104 provides various tools related to image creation and editing (e.g., photo editing). For example, the image editing system 104 provides selection tools, color correction tools, and image manipulation tools. In addition, the image editing system 104 can operate in conjunction with one or more applications to generate or modify images. For example, in one or more implementations, the image editing system 104 operates in conjunction with a digital design application or other image editing application.
[0066] In some implementations, the image editing system 104 provides an intelligent image editing assistant that performs one or more automatic image editing operations for a user. For example, the image editing system 104 receives a natural language object selection query (or query string) inputting "make the red skirt yellow", "blur the background and make it gray", or "increase the contrast on the water". As part of fulfilling the request, the image editing system 104 utilizes the object selection system 106 to automatically select the corresponding query object identified in the query string. The image editing system 104 can then utilize additional system components (e.g., a color replacement tool, a blur filter, or an image adjustment tool) to perform the requested operation on the detected query object.
[0067] As mentioned above, the image editing system 104 includes an object selection system 106. As described in detail below, the object selection system 106 accurately detects and automatically selects objects in an image based on a user's request (e.g., a query string provided by the user). In many implementations, the object selection system 106 utilizes natural language processing tools and an object selection pipeline to determine which object detection neural networks to utilize based on the query object and which additional neural networks and / or models to utilize to select a particular requested query object.
[0068] As shown, the environment 100 also includes a server device 110. The server device 110 includes an object selection server system 112. For example, in one or more implementations, the object selection server system 112 represents and / or provides functionality similar to that described herein in conjunction with the object selection system. In some implementations, the object selection server system 112 supports the object selection system 106 on the client device 102.
[0069] Indeed, in one or more implementations, the server device 110 may include all or a portion of the object selection system 106. In particular, the object selection system 106 on the client device 102 may download an application (e.g., an image editing application from the object selection server system 112) or a portion of a software application from the server device 110.
[0070] In some implementations, the object selection server system 112 may include a web hosting application that allows the client device 102 to interact with content and services hosted on the server device 110. To illustrate, in one or more implementations, the client device 102 accesses a web page supported by the server device 110 that hosts a model that allows for automatic selection of objects in an image based on a query string provided by a user via the client device 102. As another example, the client device 102 includes an image editing application that provides the image and the query string to the object selection server system 112 on the server device 110, which then detects the query object using one or more natural language processing tools and one or more object detection models, and provides an object mask of the detected query object back to the client device 102. Then, using the object mask, the image editing application on the client device 102 selects the detected query object.
[0071] Turning to the next picture, Figure 2 An overview of using an object selection system to automatically select objects in an image is provided. In particular, Figure 2 A series of actions 200 are illustrated for automatically detecting and selecting a query object in an image based on natural language user input according to one or more implementations. In various implementations, the object selection system 106 performs the series of actions 200. In some implementations, an image editing system and / or an image editing application performs one or more actions included in the series of actions 200.
[0072] As in Figure 2 As shown in , the object selection system 106 performs an action 202 of identifying a query string indicating an object to be selected in an image. For example, a user utilizes an image editing program to edit an image. While editing the image, the user wishes to select a particular object within the image. Therefore, the object selection system 106 provides the user with a graphical interface that enables the user to enter a query string requesting automatic selection of an object. The object selection system 106 may enable the user to provide the query string as typed text, or as spoken words that the object selection system 106 then converts to text. As shown in Figure 2 As shown in conjunction with action 202, the object selection system 106 may receive the query string "the hat of the guy on the right".
[0073] In response to detecting the query string, the object selection system 106 performs an action 204 of utilizing a mapping table to identify alternative object terms for unknown object terms in the query string. For example, the object selection system 106 analyzes the query string and determines that the object term "hat" corresponds to a known object class. However, the object selection system 106 also determines that the object term "guy" is not recognized as belonging to a known object class. Therefore, the object selection system 106 can utilize the mapping table to find alternative object terms, such as synonyms or hypernyms. As shown, the object selection system 106 identifies the alternative object terms "man," "boy," and "male" for the unrecognized object term "guy." The following is an example of an object selection system 106 that identifies alternative object terms for the unknown object term "guy." Figures 5 to 7D Additional details are provided regarding the use of mapping tables and candidate object entries.
[0074] As shown, the series of actions 200 includes action 206, in which the object selection system 106 generates an object mask including candidate object terms for each object in the query string. For example, after identifying the objects in the query string directly or based on the candidate object terms, the object selection system 106 can use the object selection pipeline to generate a mask for each object. As shown in conjunction with action 206, the object selection system 106 has generated an object mask for each man (e.g., the candidate object term for "guy") and two hats. Figure 4 Additional details regarding utilizing the object selection pipeline are provided.As an example, the object selection system 106 can use an object detection model that is trained to select persons based on mapping query terms to men using a mapping table.
[0075] In some examples, the object selection system 106 detects multiple objects in the query string. For example, the query object is selected based on another object indicated in the query string. Therefore, as shown, the series of actions 200 includes an action 208, in which the object selection system 106 uses the component graph and the corresponding object relationship model to identify the query object from the object mask.
[0076] In various implementations, as part of act 208, the object selection system 106 can generate a component graph from the query string that locates the objects in the query string and indicates the relationships between the objects. As described below, the object selection system 106 can use the relationship type to select a target object relationship model to determine the query object from the objects in the query string. In this example, the object selection system 106 can use the object relationship model to identify the relationship between the two men to identify the man on the right. Figures 8 to 12D Additional details are provided on utilizing component graphs and object relational models to identify query objects.
[0077] As in Figure 2, the series of actions 200 includes an action 210 in which the object selection system 106 provides the selected query object within the image. For example, the object selection system 106 provides the query object automatically selected in response to receiving the query string to the image on the computing device. As shown, the hat of the boy on the left in the image is selected. In other implementations, the object selection system 106 can perform additional steps on the selected query object based on the instructions detected in the query string, such as, "Change the hat of the guy on the right to blue."
[0078] The object selection system 106 can perform acts 202 through 210 in various orders. For example, the object selection system 106 can perform act 208 of utilizing the component map before performing act 206 of generating the object mask. In some implementations, the object selection system 106 omits act 208 of utilizing the component map.
[0079] FIG. 3A to FIG. 3D Illustrated is a client device 300 having a graphical user interface 302 illustrating a process of selecting a query object in an image 304 based on an object detection request (ie, a natural language object selection query) in accordance with one or more implementations. FIG. 3A to FIG. 3B The client device 300 in the above may represent Figure 1 The client device 102 is described. For example, the client device 300 includes an image editing application that implements the image editing system 104 with the object selection system 106. For example, FIG. 3A to FIG. 3B The graphical user interface 302 in may be generated by an image editing application.
[0080] As in Figure 3A , graphical user interface 302 includes image 304 within an image editing application. Image 304 shows a woman walking into the water with a surfboard on the beach on the left side of the image, and a man running along the beach on the right side of the image. For ease of explanation, image 304 is simplified and does not include additional objects or object classes.
[0081] The image editing system and / or object selection system 106 can provide an object selection interface 306 in response to detecting that the user has selected an option that enables automatic object selection. For example, the object selection system 106 provides the object selection interface 306 as a selection tool within the image editing application. As shown, the object selection interface 306 can include a text field in which the user can enter a natural language object selection query in the form of a query string (i.e., "a lady holding a surfboard"). The selection interface 306 also includes optional options. For example, the object selection interface includes optional elements for confirming (i.e., "agree") or canceling (i.e., "cancel") the object detection request. In some implementations, the object selection interface 306 includes additional elements, such as, an optional option for capturing audio input from the user who dictated the query string.
[0082] Based on detecting the query string from the object detection request, the object selection system 106 can initiate detection and selection of the query object. For example, as described in detail below, the object selection system 106 uses natural language processing tools to identify the objects in the query string and classify the objects as known objects, special objects, object categories, or unknown objects.
[0083] To illustrate, the object selection system 106 can generate a component graph to determine that the query string includes multiple objects (i.e., "woman" and "surfboard") and a relationship between the two objects (i.e., "holding"). Additionally, the object selection system 106 can classify each object identified in the query string, such as classifying the term "woman" as belonging to an unknown object class and classifying the term "surfboard" as belonging to a known object class. Further, after determining that the object term "woman" is not recognized or is unknown, the object selection system 106 can use a mapping table to find an alternative object term, such as identifying an alternative object term "person" that corresponds to a known object class.
[0084] Using the identified objects in the query string, the object selection system 106 can utilize an object selection pipeline. For example, based on the classification of the object, the object selection system 106 can select an object detection model that will most effectively and accurately detect the corresponding object. For example, by using the term "person", the object selection system 106 can select a specialized object detection model to detect each person included in the image 304. Further, as shown in Figure 3B As illustrated in , a specialized object detection model and / or an additional object mask model may generate object masks for two persons.
[0085] Similarly, the object selection system 106 can utilize the object selection pipeline to select a known class object detection model to detect the surfboard in the image 304, and in some cases, also generate an object mask for the surfboard. For illustration, Figure 3CA mask of a surfboard in image 304 is shown.
[0086] As mentioned above, the object selection system 106 can isolate the query object from the detected objects. For example, in various implementations, the object selection system 106 can select an object relationship model using the relationship type indicated in the component graph. As previously mentioned, the component graph can indicate a "holding" relationship between the lady (i.e., person) and the surfboard. Therefore, based on the relationship type, the object selection system 106 can select an object relationship model that is customized to find the intersection of a first object "holding" a second object.
[0087] In one or more implementations, the object relational model utilizes a machine learning model to determine the intersection between two objects. In an alternative implementation, the object relational model utilizes a heuristic model. In either case, the object selection system 106 utilizes the selected object relational model to determine the query object by finding an intersection object mask that satisfies the object relational model.
[0088] For illustration, Figure 3D The object mask for selecting the lady holding a surfboard (rather than the surfboard or the running man) is shown. In this manner, the user can easily modify the lady as desired within image 304 within the image editing application. Additionally, in various implementations, the object selection system 106 may provide an automatic selection of the lady in response to the query string without showing the object mask associated with the query string. Figure 3B and Figure 3D In fact, in response to detecting Figure 3A In the query string, the object selection system 106 can automatically skip the query string provided in Figure 3D The results are shown in , while the intermediate steps are performed in the background.
[0089] Now turn to Figures 4 to 12D , provides additional details about the object selection system 106 generating and utilizing natural language processing tools and object selection pipelines to automatically select and accurately detect objects requested in object detection requests. In particular, Figure 4 An example implementation of an object selection pipeline is illustrated. Figures 5 to 7D Illustrated is the use of a mapping table and candidate object entries to select an object detection model within an object selection pipeline. Figures 8 to 12D Utilizing a component graph and an object relational model to identify a query object from a plurality of detected objects indicated in a query string is illustrated.
[0090] As mentioned, Figure 4A schematic diagram of an object selection pipeline 400 according to one or more implementations is illustrated. In various implementations, the object selection system 106 performs the actions included in the object selection pipeline 400. In alternative implementations, an image editing system and / or an image editing application may perform one or more of the included actions.
[0091] As shown, the object selection pipeline 400 includes an action 402 in which the object selection system 106 obtains a query string corresponding to an image (i.e., a digital image). For example, as previously described, an image enters an image editing application. Typically, an image includes one or more objects. For example, an image may include background objects (i.e., a landscape), foreground objects (i.e., an image subject), and / or other types of objects.
[0092] Additionally, action 402 may include: the object selection system 106 obtains the query string. For example, the object selection system 106 provides an object selection interface (e.g., Figure 3A ), in which the user can enter one or more words (e.g., user input) indicating the query objects they want the object selection system to automatically select. As described above, in some implementations, the object selection system 106 can enable alternative forms of user input, such as audio input that tells the object selection system 106 to select an object in an image.
[0093] Next, the object selection pipeline 400 includes an action 404 in which the object selection system 106 generates a component graph of the query string to identify one or more objects and / or relationship types. For example, the object selection system 106 may utilize one or more natural language processing tools (as described in further detail below) to generate the component graph. If the query string contains multiple objects, the component graph may also indicate the relationship types between the objects.
[0094] As shown, the object selection pipeline 400 includes an action 406 in which the object selection system 106 determines whether any objects (e.g., object items) correspond to an unknown object class. In one or more implementations, the object selection system 106 can compare each object to a known object class (e.g., a known object, a specialized object, a class of objects) to determine whether the object is known or unknown. In practice, the object selection system 106 can compare the object to a list or a lookup table to determine whether the object detection model has been trained to specifically detect the object.
[0095] If an object in the query string is determined not to correspond to an unknown object class (e.g., the object is not recognized), the object selection system 106 can proceed to action 408 in the object selection pipeline 400 of the object selection system 106, which uses the mapping table to identify candidate object items. Figures 5 to 7DAs described in detail, the object selection system 106 can generally identify synonyms or hypernyms for the unrecognized object terms, which the object selection system 106 can utilize to detect objects in conjunction with the object selection pipeline 400. In the event that the object selection system 106 is unable to identify an alternative object term, the object selection system 106 can jump to action 424 of the object selection pipeline 400, which action 424 is further described below. In addition, as described below, the object selection system 106 can utilize a mapping table to determine alternative object terms for terms in the query string that were not initially recognized by the object selection system 106 within the sop 400.
[0096] As shown, the object selection pipeline 400 includes an action 410 in which the object selection system 106 determines whether the candidate object term is a synonym or a hypernym. If the candidate object term is a synonym, the object selection system 106 can proceed to an action 412 in the object selection pipeline 400, which is described below. In practice, synonyms of the unrecognized object term typically include at least one candidate object term that is recognized by the object selection system 106 as belonging to a known object class. In this manner, the object selection system 106 treats the synonym candidate object term as being the object term (e.g., a replacement object term) for purposes of detecting an object using an object detection model.
[0097] If the candidate object term is a hypernym, then in one or more implementations, the object selection system 106 can proceed to action 416 of the object selection pipeline 400, which is described below. In practice, the object selection system 106 can skip action 412 for efficiency because the hypernyms of the unrecognized object will likely not detect the object because the scope of the hypernyms is broader than that of the unknown object. As with synonyms, in general, the hypernyms of the unrecognized object term typically include at least one candidate object term identified by the object selection system 106. In an alternative implementation, the object selection system 106 provides the hypernyms of the unrecognized object to action 412 instead of action 416.
[0098] As in Figure 4 , if the object selection system 106 identifies each object (e.g., act 406) or identifies a synonym for any unknown object (e.g., act 410), the object selection system 106 can proceed to act 412. As further illustrated by the dashed box, the object selection system 106 can iterate acts 412 through 426 of the object selection pipeline 400 for each object included in the query string.
[0099] As illustrated, action 412 of the object selection pipeline 400 includes the object selection system 106 determining whether an object term (e.g., the object term or an alternative object term) corresponds to a specialized network. If a specialized network exists for the query object, the object selection system 106 may identify a particular specialized network based on the query object. For example, the object selection system 106 may compare the object term to a plurality of specialized object detection neural networks to identify a specialized object detection neural network that best corresponds to the object. For example, for the object term "sky," the object selection system 106 may identify that a sky specialized object detection neural network is best suited to identify and select the query object.
[0100] As shown in action 414, the object selection system 106 may utilize the identified specialized network to detect the object (e.g., based on the object term or the candidate object term). More specifically, the object selection system 106 may utilize the identified specialized object detection neural network to locate and detect the object within the image. For example, the object selection system 106 may utilize the specialized object detection neural network to generate a bounding box around the detected object in the image. In some implementations, if multiple instances of the object are included in the image, the object selection system 106 may utilize the specialized object detection neural network to separately identify each of the multiple instances.
[0101] In one or more implementations, the object-specific network may include a body part-specific object detection neural network and / or a clothing-specific detection neural network. Additional details regarding utilizing specialized object detection neural networks are found in U.S. Patent Application No. 16 / 518,880 (Attorney Docket No. 20030.257.1), filed on July 19, 2019, “Utilizing Object Attribute Detection Models To Automatically Select Instances Of Detected Objects In Images,” which is incorporated herein by reference in its entirety.
[0102] As shown, the object selection pipeline 400 includes an action 426 that receives the output from action 414 and the outputs of actions 418, 422, and 424. Action 426 includes the object selection system 106 generating an object mask for the detected object. In some examples, action 426 includes the object selection system 106 utilizing an object mask neural network. For example, in various implementations, the object selection system 106 may provide a bounding box to the object mask neural network, which generates a mask for the detected query object. If multiple bounding boxes are provided, the object selection system 106 may utilize the object mask neural network to generate multiple object masks from the multiple bounding boxes (e.g., one object mask for each instance of the detected query object).
[0103] When generating an object mask for a detected object (or each detected object instance), the object mask neural network can segment the pixels in the detected object from other pixels in the image. For example, the object mask neural network can create a separate image layer that sets the pixels corresponding to the detected object to positive (e.g., binary 1) and sets the remaining pixels in the image to neutral or negative (e.g., binary 0). When the object mask layer is combined with the image, only the pixels of the detected object are visible. In effect, the generated object mask can provide a segmentation that enables the selection of the detected object within the image.
[0104] The object mask neural network can correspond to one or more deep neural networks or models that select objects within an image based on bounding box parameters corresponding to the objects. For example, in one or more implementations, the object mask neural network utilizes the techniques and methods found in "DeepGrabCut for Object Selection" by Ning Xu et al., published on July 14, 2017, the entire contents of which are incorporated herein by reference. For example, the object mask neural network can utilize a deep gradient method instead of a saliency mask transfer. As another example, an object mask neural network can utilize techniques and methods found in U.S. Patent Application Publication No. 2019 / 0130229, “Deep Salient Content Neural Networks for Efficient Digital Object Segmentation,” filed on October 31, 2017; U.S. Patent Application No. 16 / 035,410, “Automatic Trimap Generation and Image Segmentation,” filed on July 13, 2018; and U.S. Patent No. 10,192,129, “Utilizing Interactive Deep Learning To Select Objects In Digital Visual Media,” filed on November 18, 2015, each of which is incorporated herein by reference in its entirety.
[0105] Return to Figure 4 , if in action 412, the object selection system 106 determines that the object does not correspond to the specialized network, then the object selection system 106 can make another determination about the object. As shown, the object selection pipeline 400 includes an action 416 in which the object selection system 106 determines whether the object term (e.g., the object term or the alternative object term) corresponds to a known object class. For example, in various implementations, the object selection system 106 utilizes an object detection neural network that is trained to detect that an object belongs to a number of known object classes. Therefore, the object selection system 106 can compare the object class of the object (e.g., based on the object term or the alternative object term) with the known object class to determine whether the object is part of the known object class. If so, the object selection system 106 can proceed to action 418 of the object selection pipeline 400. Otherwise, the object selection system 106 can proceed to action 420 of the object selection pipeline 400 as further described below.
[0106] As just mentioned, the object selection pipeline 400 includes an action 418 in which the object selection system 106 utilizes a known object class network to detect an object. The known object class may include an object class that is marked in a training image and used to train an object detection neural network. Therefore, based on detecting that the object is associated with a known object class, the object selection system 106 may utilize the known object class detection neural network to optimally detect the object with respect to accuracy and efficiency. Further, as described above, the object selection system 106 may provide the detected object to an object mask neural network to generate an object mask (e.g., action 426). U.S. Patent Application No. 16 / 518,880 (Attorney Docket No. 20030.257.1), filed on July 19, 2019, “Utilizing Object Attribute Detection Models To Automatically Select Instances Of Detected Objects In Images,” provides additional details regarding action 418, which application is incorporated herein by reference in its entirety.
[0107] If the object selection system 106 determines that the object does not correspond to a specialized network (e.g., action 412) or a known object class (e.g., action 416), the object selection system 106 can make another determination. For illustration, the object selection pipeline 400 includes an action 420 in which the object selection system 106 determines whether the object item (e.g., the object item or the candidate object item) corresponds to an object category (e.g., an uncountable object such as water, road, and ceiling). As described below, if the object item corresponds to the object category, the object selection system 106 determines to detect the object using a concept-based object detection technique.
[0108] For illustration, the object selection pipeline 400 includes an action 422 in which the object selection system 106 utilizes a concept detection network (i.e., a concept-based object detection neural network and / or a panoptic semantic segmentation neural network) to detect an object. Typically, the concept detection network may include an object detection neural network that is trained to detect objects based on concepts, background scenery, and other high-level descriptions of the object (e.g., semantics). U.S. Patent Application No. 16 / 518,880 (Attorney Docket No. 20030.257.1), filed on July 19, 2019, "Utilizing Object Attribute Detection Models To Automatically Select Instances Of Detected Objects In Images," provides additional details regarding action 418, which is incorporated herein by reference in its entirety.
[0109] As in Figure 4 , the object selection system 106 provides the objects detected by the concept detection network to the object mask neural network to generate an object mask of the detected object (i.e., action 426). For example, the object selection system 106 provides the detected semantic region of the object concept within the image. As mentioned above, the object mask neural network can generate a segmentation of the detected object, which the object selection system 106 utilizes when selecting the detected object.
[0110] So far, in the object selection pipeline 400, the object selection system 106 has been able to detect objects corresponding to known object classes. In fact, using object terms or alternative object terms, the object selection system 106 has been able to map the object terms to an object detection model trained to detect object terms. However, although the list of known object classes is usually tens of thousands, in some instances, the object selection system 106 does not recognize objects. However, the object selection system 106 can further expand the object recognition capabilities by detecting objects of unknown classes. In this way, the object selection system 106 can add additional layers to the object selection pipeline 400 to support the detection of unknown objects.
[0111] For illustration, if the object selection system 106 determines in act 420 that the object is not part of an object category, the object selection system 106 can detect the object using a large-scale object detection network, as shown in act 424 of the object selection pipeline. In one or more implementations, the large-scale object detection network includes utilizing a concept mask model and / or an automatic labeling model.
[0112] As mentioned above, the object selection pipeline 400 can include various object detection models. For example, in one or more implementations, the object selection pipeline 400 includes a panoptic segmentation detection model. In one or more implementations, the panoptic segmentation detection model utilizes a segmentation-based approach to detect instances of objects. In practice, the object selection system 106 can utilize additional (or fewer) object detection models that can be easily inserted into (or removed from) the object selection pipeline 400.
[0113] As in Figure 4 , the object selection pipeline 400 may include an act 428 in which the object selection system 106 determines whether a relationship exists between the plurality of objects. For illustration, if the query string includes only a single object (i.e., the query object), the object selection system 106 may jump to an act 432 of providing a selected query object within the image. Alternatively, if the query string includes a plurality of objects for which the object selection system 106 has generated a plurality of object masks, the object selection system 106 may identify the query object from the plurality of detected objects.
[0114] More specifically, in various implementations, the object selection system 106 can determine the type of relationship between the detected objects. For example, the object selection system 106 analyzes the component graph (e.g., generated in act 404) to identify the relationship type. Based on the relationship type, the object selection system 106 can isolate the query object from the plurality of detected objects.
[0115] For illustration, the object selection pipeline 400 includes an action 430 in which the object selection system 106 detects a query object using an object relationship model. In particular, the object selection system 106 selects an object relationship model that is trained based in part on the objects having a given relationship type indicated in the component graph. Next, the object selection system 106 can isolate the query object from the plurality of objects based on finding objects that satisfy the object relationship model. Figures 8 to 12D Additional details are provided regarding identifying query objects based on corresponding object-relational models.
[0116] Once the object selection system 106 isolates the object mask of the query object, the object selection system 106 provides the query object within the image, as shown in action 432 of the object selection pipeline 400. For example, the object selection system 106 can provide the selected object (or the selected instance of the object) to a client device associated with the user. For example, the object selection system 106 can automatically select the object within the image for the user within the image editing application mentioned above.
[0117] Figure 4and the corresponding figures identified describe various implementations of selecting objects in an image. Figure 4 and subsequently identified figures (e.g., Figures 5 to 12D ) The actions and algorithms described provide an example structure and architecture for performing the following steps: the steps are used to detect objects using natural language processing tools and an object detection neural network selected from a plurality of object detection neural networks. In fact, in combination with Figure 4 , Figure 5 and Figure 8 The depicted flowchart provides a structure for one or more algorithms corresponding to the object selection system 106 .
[0118] As described above, the object selection pipeline 400 includes various components that the object selection system 106 utilizes to detect query objects. Additionally, many components are interchangeable with updated versions and new components. Therefore, when a failure occurs, the object selection system 106 can identify and update the source of the failure. Additionally, the object selection system 106 can also add other components to the object selection pipeline to improve the performance of objects detected in the image. Additional details about utilizing interchangeable modules to modify and update the object selection pipeline 400 are found in U.S. patent application Ser. No. 16 / 518,880 (Attorney Docket No. 20030.257.1), filed on July 19, 2019, “Utilizing Object Attribute Detection Models To Automatically Select Instances Of Detected Objects In Images,” which is incorporated herein by reference in its entirety.
[0119] Now let's turn to the next picture. Figure 5 1 is a flow chart illustrating a series of actions 500 for identifying and selecting a query object based on candidate object terms according to one or more implementations. Figure 5 Provides information about the above combination Figure 4 The following describes additional details of actions 408 to 410 of the object selection pipeline 400. In fact, Figure 5 The series of actions 500 in exemplify the manner in which the object selection system 106 may modify the object selection pipeline based on the mapping table.
[0120] For simplicity, the series of actions are described for a query string that includes a single object to be selected (i.e., the query object). However, as shown above in conjunction with the object selection pipeline, the query string can include multiple objects, the object selection system 106 uses one or more object detection models to detect the multiple objects, and the object selection system 106 can utilize the object relationship model to isolate the query object from the multiple objects.
[0121] As shown, the series of actions 500 includes an action 502 in which the object selection system 106 analyzes the query string to identify object terms representing the query object. As mentioned above, the object selection system 106 can identify the objects in the query string in various ways. For example, the object selection system 106 parses the query string to determine the nouns in the query string. In other implementations, the object selection system 106 generates a component graph indicating the objects within the query string.
[0122] Additionally, the series of actions 500 includes an action 504 in which the object selection system 106 determines that the object term of the query object does not correspond to a known object class. For example, as mentioned above, the object selection system 106 can search a list or database of known objects and / or known object classes for the object term. If the object selection system 106 does not identify the object term, the object selection system 106 can determine that the object term corresponds to an unknown object class.
[0123] Further, the series of actions 500 includes an action 506 in which the object selection system 106 utilizes a mapping table to identify one or more candidate object terms. For example, the object selection system 106 accesses one or more mapping tables to identify synonyms, hypernyms, hyponyms, or other candidate object terms for the unrecognized object term. As described above, synonyms include terms that are interchangeable with the unknown object term. Hypernyms include terms that are broader than the unknown object term. Hyponyms include terms that are narrower than the unknown object term (e.g., subcategories of the unknown object term). Fig. 6A and Figure 6B Provides examples of synonym maps and hypernym maps.
[0124] In many implementations, the alternative object item for the unknown object item is corresponding to the known object item. For example, in one or more implementations, the mapping table only includes the alternative object item as the known object item. In the alternative implementation, the mapping table can also include one or more alternative object items for the unknown object item, and these one or more alternative object items themselves are the unknown object items. In the implementations of these backs, the object selection system 106 can choose not to select this alternative object item, but search for other or different alternative object items.
[0125] As shown, the series of actions 500 includes an action 508 in which the object selection system 106 determines whether the candidate object term is a synonym or a hypernym. If the candidate object term for the query object is a synonym, the object selection system 106 may use the above combination of Figure 4Provided object selection pipeline: For example, the object selection system 106 replaces unknown object terms with known candidate object terms, and then identifies and utilizes in the object selection pipeline the object detection model that most accurately and efficiently detects the candidate object terms.
[0126] For illustration, Figure 5 It is shown that when the candidate object term is a synonym or a high confidence match, action 508 can proceed to multiple actions. For example, as shown in action 510, if the object selection system 106 determines that the synonym candidate object term is a known object, the object selection system 106 uses the known object class network to detect the candidate object term. Figure 4 Action 418 in describes the known object class network. As shown in action 512, if the object selection system 106 determines that the synonym candidate object term is a specialized object, the object selection system 106 uses the object-specific network to detect the candidate object term. Figure 4 Action 414 in describes the object-specific network.
[0127] Additionally, as shown in action 514, if the object selection system 106 determines that the synonym candidate object term is a known object concept or category, the object selection system 106 utilizes the concept detection network to detect the candidate object term. Figure 4 The concept detection network is described in action 422 of FIG. 5. Further, as shown in action 516, if the object selection system 106 does not identify a synonym candidate object term, the object selection system 106 can utilize a large-scale object detection network to detect the candidate object term. Figure 4 Action 424 in describes the large-scale object detection network.
[0128] As described above, each of the selected object detection networks can detect candidate object items. In another implementation, the selected object detection network can generate one or more object masks for one or more instances of the detected object. In an alternative implementation, the object selection system 106 utilizes an object mask neural network to generate one or more object masks for the query object.
[0129] Returning to action 508 in the series of actions 500, if the candidate object term is a hypernym or a low confidence match, the object selection system 106 can modify the object selection pipeline. For illustration, if the candidate object term is a hypernym, the object selection system 106 can limit the available actions from the series of actions to action 510 that uses a known object class network to detect the candidate object term. In fact, in various implementations, if the candidate object term is a hypernym, the object selection system 106 can exclude the option of proceeding to actions 512 to 516. In alternative implementations, the object selection system 106 can provide the hypernym to any of actions 512 to 516.
[0130] To further elaborate, action 510 can handle high confidence matches (i.e., synonyms) as well as low confidence matches (i.e., hypernyms). In fact, high confidence candidate object term matches do not require object selection system 106 to perform additional object verification to ensure that the query object is an object detected by the known object class network. However, if the candidate object term is a hypernym, object selection system 106 can perform one or more additional actions to verify whether the detected object correctly includes the query object indicated in the query string.
[0131] For example, when the alternative object term is a hypernym, as in Figure 5 , the series of actions 500 may include an action 518 of the object selection system 106 utilizing the labeling to filter out detected instances that do not correspond to the query object. For example, in one or more implementations, the object selection system 106 utilizes an automatic labeling model to label each of the detected objects, and then the object selection system 106 does not select instances of the query object that do not match the query. In an alternative implementation, the object selection system 106 utilizes another labeling method to label and does not select detected instances of the query object that are different from the query object.
[0132] To illustrate, if the query string includes the word "badminton player", the object selection system 106 can find the hypernym candidate object terms "person", "man", and "woman" as hypernyms of the object term "badminton player". In response, the known object class can identify multiple people in the image. However, because "person" is a much broader term than the query object term "badminton player", the known object class can identify more people in the image than just badminton players. Therefore, the object selection system 106 can use the automatic labeling model to verify that the mask and / or bounding box of each detected person in the image correctly includes a badminton player or another type of person.
[0133] As mentioned above, the object selection system 106 largely does not utilize other object detection models (i.e., actions 512 to 516) to detect hypernym candidate object terms for the query object. To elaborate, because hypernyms have a wide range of objects, most specialized object detection models are incompatible because they correspond to specific objects and object classes. Similarly, most concept detection networks are trained to detect specific object categories. With respect to large-scale object detection networks, because the object selection system 106 utilizes an automatic labeling model as part of filtering out non-query object selections, the object selection system 106 cannot use the automatic labeling model as an additional verification / filtering step.
[0134] In one or more implementations, the object selection system 106 identifies hyponyms or subgroups for query objects with unknown object classes. In many implementations, the object selection system 106 treats hyponyms as synonym candidate items. However, since hyponyms can include subcategories of the query object, the object selection system 106 can perform multiple iterations of this series of actions 500 to detect each instance of the query object. For example, if the query object is "furniture", hyponyms can include subcategory objects "table", "chair", "lamp" and "desk". Therefore, the object selection system 106 can repeat actions 510 to 516 for each subcategory instance of the query object.
[0135] As in Figure 5 , the series of actions may include an action 520 in which the object selection system 106 provides the selected query object mask within the image. As described above, the object selection system 106 may provide the query object that is automatically selected in response to the query string to the image. Thus, even if the query object in the query string does not initially correspond to a known object class, the object selection system 106 may use the mapping table and the one or more candidate object entries to more accurately and efficiently detect it. In fact, by pushing object detection of unknown objects in the query string to a target object detection model (such as a specialized object detection model and a known object class detection model) rather than defaulting to a large-scale object detection model, the object selection system 106 may greatly improve the performance of the object selection system 106 with respect to accuracy and efficiency.
[0136] Although Figure 5Involving the use of mapping tables to determine candidate object terms for nouns in a query string, the object selection system 106 may utilize one or more mapping tables at various stages of the object selection pipeline. For example, if the object selection system 106 determines that a term (e.g., an attribute) in the query string is inconsistent with one or more models in the object selection pipeline, the object selection system 106 may utilize a mapping table to identify candidate object terms (e.g., synonyms) identified by the object selection system 106. As another example, the object selection system 106 utilizes a mapping table to determine alternative terms for tags generated for potential objects. In this manner, the object selection system 106 may utilize smart matching to verify that the terms in the user's query match the object classes and models utilized by the object selection system 106.
[0137] Steering FIG. 6A to FIG. 6B , illustrates an example of a mapping table. In particular, FIG. 6A to FIG. 6B A plurality of mapping tables are illustrated that are utilized to identify candidate mapping items for a query object according to one or more implementations. Fig. 6A A synonym mapping table 610 is shown including a first column of object terms (ie, nouns) and a second column of corresponding synonyms. In a similar manner, Figure 6B A hypernym mapping table 620 is shown including a first column of object terms (ie, nouns) and a second column of corresponding hypernyms.
[0138] In the synonym mapping table 610, the object selection system 106 can look up object terms for unrecognized query objects (e.g., query objects with object terms that do not correspond to known object classes) and identify one or more synonyms corresponding to the object terms. For illustration, for the object term "Ms.", the object selection system 106 can identify the synonym candidate object term "woman."
[0139] As mentioned above, in various implementations, each synonym listed in synonym mapping table 610 can correspond to a known object class. For example, in one or more implementations, each object item in synonym mapping table 610 is mapped to at least one synonym corresponding to a known object class. In some implementations, synonym mapping table 610 only includes alternative object items corresponding to known object classes. In alternative implementations, synonym mapping table 610 can include additional alternative object items, such as, object items that do not correspond to known object classes.
[0140] In some implementations, synonyms are ranked based on detectability. As an example, the first listed synonyms correspond to objects detectable by a specialized object detection network, and the second listed synonyms correspond to objects detectable by a known object class network. In another example, the first listed synonyms correspond to objects detectable by a known object class network, and the next listed synonyms correspond to less effective and efficient object detection models (e.g., large-scale object detection models).
[0141] As mentioned above, Figure 6B Shown with Fig. 6A The synonym mapping table 610 is similar to the hypernym mapping table 620. As shown, the hypernym mapping table 620 includes hypernyms mapped to object items. For illustration, for the object item "dog", the hypernym mapping table 620 is mapped to the hypernyms "pet", "animal" and "mammal".
[0142] In various implementations, the object selection system 106 generates a combined mapping table that includes object term mappings for both synonyms and hypernyms. In some implementations, the mapping table may include hyponyms. Further, in one or more implementations, hyponyms may be determined by reversely looking up the object term in the second hypernym column and identifying the hyponyms from the first object term column. For example, for the object term "person," the object selection system 106 may find hyponyms "lady" and "dude" in other candidate object terms.
[0143] In addition, the object selection system 106 can modify one or more mapping tables. For example, when new slang terms or fine-grained terms are identified, the object selection system 106 can add entries for these terms to the mapping table. In some implementations, the object selection system 106 pulls new terms from external sources (such as online dictionary databases or crowdsourcing websites).
[0144] 7A to 7D A graphical user interface 702 for selecting a query object based on one or more alternatives is illustrated according to one or more implementations. For ease of explanation, 7A to 7D The client device 300 includes the client device 300 described above. For example, the client device 300 includes the image editing application and the object selection system 106 in the graphical user interface 702. In fact, as in Fig. 7A As shown in FIG. 7 , the graphical user interface 702 includes an image 704 of a room with various furniture. Additionally, the graphical user interface 702 includes an object selection interface 706, as described above in conjunction with Figure 3A As described, in the object selection interface 706, the user provides the query string "chair".
[0145] After detecting a user request to automatically select a chair from the image 704 based on the query string, the object selection system 106 can utilize natural language processing tools and the object selection pipeline 400 to determine how to best satisfy the request. For example, the object selection system 106 can determine that the query object in the query string is "chair." Further, the object selection system 106 can determine that the object term "chair" does not correspond to a known object class.
[0146] Based on determining that the query object does not correspond to a known object class, the object selection system 106 can access a mapping table to identify alternative object terms for the query object. In this example, the object selection system 106 is unable to identify synonyms for the query object. However, the object selection system 106 identifies a hypernym of "furniture".
[0147] Using the broad candidate object terms (i.e., "furniture"), the object selection system 106 can use a known object class network to identify each instance of furniture in the image. To illustrate, Figure 7B The object selection system 106 is shown generating object masks for lamp 708a, sofa 708b, and chair 708c because each of these items falls within the broad term of furniture.
[0148] As mentioned above, the object selection system 106 can modify the object selection pipeline described above to add a validation step when a hypernym is used as an alternative object term. For illustration, Figure 7C The object selection system 106 is shown utilizing an automatic labeling model to generate a label for each detected instance of a query object. In particular, Figure 7C The image 704 in FIG. 7 may be a lamp tag 710 a , a sofa tag 710 b , and a chair tag 710 c associated with the corresponding detected furniture.
[0149] In one or more implementations, the object selection system 106 utilizes the labels or tags to select the query object. For example, in some implementations, the object selection system 106 compares the unrecognized query object term to each label to determine which label has the strongest correspondence with the query object (e.g., a correspondence score above a correspondence threshold). In various implementations, the object selection system 106 does not find a strong correspondence between the unrecognized query object term (i.e., "chair") and the label. However, for another detected object in the image (i.e., lamp), the object selection system 106 determines a weaker correspondence score for the "chair" label and a stronger correspondence score for the "lamp" label. Therefore, based on the stronger correspondence score for the lamp label than the chair label, the object selection system 106 can deselect the lamp within the image.
[0150] In many implementations, the object selection system 106 can generate multiple labels for each detected instance of the query object. Further, the object selection system 106 can associate a confidence score with each generated label. In this manner, the object selection system 106 can use the confidence score of the label as a weight when determining a correspondence score between the label and the detected query object instance or when comparing labels to determine which object an unrecognized object corresponds to.
[0151] As in Fig.7D , object selection system 106 may select chair 708c as the query object and provide chair 708c within image 704 in response to the query string. In some implementations, if object selection system 106 is unable to deselect a detected instance due to lack of confidence, object selection system 106 may provide multiple selected objects within image 704. For example, if object selection system 106 is unable to identify and label the detected instance of "furniture," object selection system 106 provides all three selected objects to the user within image 704. In this manner, an image editing application may allow a user to manually deselect objects that are not query objects, which is a simple task compared to manually selecting objects.
[0152] Steering Figure 8 , illustrates a flow chart of a series of actions 800 for utilizing an object relationship model to detect a query object from a plurality of objects associated with a natural language user input according to one or more implementations. In practice, the series of actions 800 may include the object selection system 106 utilizing a component graph that provides a structure of a natural language input (e.g., a query string) to implement processing of a selection request that specifies an object or region (e.g., an object class) using relationships between objects or object parts. As mentioned above, Figure 8 Provides information about the above combination Figure 4 Additional details of act 404 and act 430 of object selection pipeline 400 are described.
[0153] As shown, the series of acts 800 includes an act 802 in which the object selection system 106 obtains a query string indicating a query object to be selected within an image. In one or more implementations, the query string includes multiple objects, such as the query string "woman in skirt". In these implementations, detection and selection of the query object are asserted based on another object included in the query string. Further, the first noun (i.e., "woman") is typically the query object, while the second noun (i.e., "skirt") is a secondary object used to identify the query object from multiple instances of the first noun in the image.
[0154] Additionally, the series of actions 800 includes an action 804 in which the object selection system 106 generates a component graph from the query string. As described above, the component graph identifies each object identified in the query string and the type of relationship between the objects when there are multiple objects. In one or more implementations, the component graph is structured as a tree. In alternative implementations, the component graph is structured in a table, list, or database format. The following FIG. 9A to FIG. 9B A visual example of a component graph based on a query string is provided, and further details on generating the component graph are also provided.
[0155] As shown, the series of actions 800 includes an action 806 in which the object selection system 106 identifies a plurality of object classes and relationships from a component graph. For example, the object selection system 106 analyzes the component graph to identify each object included in the query string. In many implementations, one or more of the objects will have an object class corresponding to a class of known objects. To illustrate, for the query string "woman in skirt", the object selection system 106 generates a component graph identifying the objects "woman" and "skirt". In some implementations, at least one of the objects in the query string has an object class corresponding to an object category (e.g., "sky", "water", or "background").
[0156] As mentioned above, in various implementations, the object selection system 106 can identify relationships between objects from the component graph. For example, based on analyzing the component graph, the object selection system 106 identifies what relationships exist between two or more objects. To illustrate, for the query string "woman wearing a skirt", the object selection system 106 generates a component graph that identifies the relational term "wearing (in)" within the query string.
[0157] In one or more implementations, the relationship between two objects is indicated by prepositions, such as the terms "in," "with," "of," "on," "above," and "at." In some implementations, the relationship between two objects is indicated by verbs (e.g., actions), such as the terms "holding," "wearing," "catching," "jumping," "driving," and "touching." In other implementations, the relationship between two objects is indicated by phrases, such as "on top of," "in the background," and "next to."
[0158] In one or more implementations, the object selection system 106 utilizes a lookup table, list, or database to map relationship terms in the component graph to relationship types. For example, the object selection system 106 may determine that the terms "on" and "wearing" correspond to a first relationship type, the terms "behind" and "on top of" correspond to a second relationship type object, and the terms "in the background" and "in the foreground" correspond to a third relationship type. In an alternative implementation, the object selection system 106 determines the relationship type for the component graph by using a machine learning model that analyzes the query string and the component graph and predicts the relationship type.
[0159] As shown, the series of acts 800 includes an act 808 in which the object selection system 106 detects a first set of objects for a first identified class of objects. For example, the image may include one or more instances of the first identified class of objects. To illustrate, for the first object "woman" in the query string "woman in skirt", the object selection system 106 detects each instance of woman detected in the image. As mentioned above, when the query string includes multiple objects, the first identified object in the query string typically includes the query object, and the user is requesting the object selection system 106 to automatically select a specific instance of the first object as the query object based on the relationship of the first object to another object (e.g., a secondary object included in the query string). Alternatively, if the image has only one instance of the query object, the query string need only include the query object without reference to other relative objects.
[0160] In various implementations, object selection system 106 utilizes the object selection pipeline as described above to select the best object detection model for the first object class for detecting each instance of the first object class. For example, if the first object class corresponds to a specialized object class, object selection system 106 utilizes a specialized object detection network targeted at detecting object classes to detect each instance of the first object class. Similarly, if the first object class corresponds to a known object class, object selection system 106 utilizes a known object class network to detect each instance of the first object class.
[0161] In one or more implementations, the object selection system 106 generates an object mask for each detected instance of the first object class. In alternative implementations, the object selection system 106 generates a bounding box for each detected instance of the first object class without generating an object mask. In these implementations, the object selection system 106 may generate the object mask after it has isolated one or more specific instances of the query object. In this manner, the object selection system 106 may reduce computation by not generating object masks for instances of objects that the user has not requested to select.
[0162] As shown, the series of actions 800 includes an action 810 in which the object selection system 106 detects a second set of objects for the second identified object class. As with the first object class, the object selection system 106 can utilize the object selection pipeline to detect one or more instances of the second object class. To illustrate, for the second object class "skirt" in the query string "woman wearing skirt", the object selection system 106 generates an object mask for each skirt detected in the image. In addition, as described above, in some implementations, the object selection system 106 can generate a bounding box and / or an object mask for each detected instance of the second object class (i.e., skirt).
[0163] As shown, the series of actions 800 includes an action 812 in which the object selection system 106 selects an object relationship model based on the identified relationship type. In one or more implementations, the object selection system 106 selects an object relationship model from a set of object relationship models based on the identified relationship type. In some implementations, the object selection system 106 utilizes a conical list of relational operators (i.e., object relationship models) that map relationship-based words and phrases (e.g., relationship types) in the query string to specific object relationship models. In practice, based on each relationship type indicating a pairwise relationship between objects, the object selection system 106 identifies a corresponding object relationship model (e.g., pairwise relationship operator) that is customized for the pairwise relationship (e.g., relationship type). Fig.10 Examples and additional disclosure of an object-relational model are provided.
[0164] Additionally, the series of acts 800 includes an act 814 in which the object selection system 106 determines an intersection between the first set of object classes and the second set of object classes using the selected object relationship model. For example, the object selection system 106 determines an intersection between the first set of detected objects and the second set of detected objects that satisfy a relationship constraint of the selected object relationship model. In practice, the object selection system 106 may determine whether one or more detected instances of the first object class satisfy a relationship threshold with one or more detected instances of the second object class as specified by the selected object relationship model.
[0165] In various implementations, the object selection system 106 tests each instance in the first detected set of objects with each instance in the second detected set of objects to determine whether any pairings satisfy the selected object relationship model. To illustrate, for the query string "woman in skirt" and an object relationship model that determines whether a first object is inside a second object, the object selection system 106 may test each detected instance of a woman in the image with each detected instance of a skirt to determine a pairing that satisfies the object relationship model.
[0166] In one or more implementations, the object relationship model utilizes a heuristic to determine whether a pair of detected objects satisfies the object relationship model. For example, the object relationship model is defined by a set of rules indicating when a first detected object intersects a second detected object. The rules used for each object relationship model may vary based on the type of relationship applied between the objects. Fig.10 Additional examples utilizing different object-relational models are provided.
[0167] In an alternative implementation, object relationship model training and / or a machine learning model is used to determine the intersection of detected objects that satisfy the object relationship model. For example, the object selection system 106 uses supervised training to teach an object relationship neural network to predict when a target intersection occurs between two objects based on the object, relationship type, and / or image.
[0168] As shown, the series of actions 800 includes an action 816 in which the object selection system 106 selects a query object based on the output of the selected object relationship model. For example, the selected object relationship model outputs one or more paired sets of objects that satisfy the object relationship model. Based on the output, the object selection system 106 can select the query object. For example, the object selection system 106 selects the first object instance included in the paired set. For illustration, for the query string "woman in a skirt", the selected object relationship model outputs a paired set of objects in which woman intersects with clothing. From the output, the object selection system 106 can select the instance of woman included in the paired set as the query object.
[0169] In one or more implementations, the object selection system 106 may generate an object mask for the selected query object. For example, the object selection system 106 utilizes the object mask neural network described above for the object selection pipeline. In an alternative implementation, if an object mask was previously generated, the object selection system 106 may select an object mask for the selected query object.
[0170] As shown, the series of acts 800 includes an act 818 in which the object selection system 106 provides the selected query object within the image. For example, as previously described, the object selection system 106 automatically selects the query object within the image in response to a query string (ie, a natural language object selection query).
[0171] As mentioned above, the following FIG. 9A to FIG. 9B A visual example of a component graph based on a query string is provided, and further details on generating the component graph are also provided. For context, Fig.9A A graphical user interface for a digital image including a natural language object selection query according to one or more implementations is illustrated. As shown, Fig.9AThe client device 300 described above includes the image editing application and the object selection system 106 within the graphical user interface 902 .
[0172] As shown, the graphical user interface 902 includes an image 904 of a man on a bicycle, a woman standing next to the bicycle, and a background landscape. Additionally, the graphical user interface 902 includes an object selection interface 906, as described above in conjunction with Figure 3A As described, in the object selection interface 906, the user provides the query string "person on a bicycle".
[0173] Steering Fig. 9B , illustrates the component diagram. In particular, Fig. 9B The component graph 910 generated based on the query string 912 is illustrated. As previously described, based on the component graph 910, the object selection system 106 can determine the structure of the query string, including which objects are involved in the relationship and what kind of relationship is required. For illustration, the component graph 910 is constructed as a binary tree with leaf nodes corresponding to the words in the query string 912. In an alternative implementation, as described above, the component graph 910 can be constructed in an alternative arrangement.
[0174] As shown, component graph 910 includes multiple node types. For example, component graph 910 includes positioning nodes (e.g., first positioning node 916a and second positioning node 916b) corresponding to the objects detected in query string 912. As described above, for each positioning node, object selection system 106 can utilize object selection pipeline to detect all instances of corresponding objects. Additionally, component graph 910 includes relationship node 918, which corresponds to the relationship between the objects in query string 912. As shown, relationship node 918 has two child nodes and describes the predicate in the relationship (e.g., "on...") and second positioning node 916b (e.g., "bicycle"). Additionally, as described above, object selection system 106 can select an object relationship model based on relationship node 918.
[0175] Additionally, component graph 910 includes intersection node 914. As shown, intersection node 914 includes two child nodes of first positioning node 916a and relationship node 918. In various implementations, intersection node 914 provides an indication of the object relationship from relationship node 918. As described above, object selection system 106 can utilize the selected object relationship model to eliminate the ambiguity of the correct instance of the object associated with first positioning node 916a, find the correct instance, and select the correct instance. For example, object selection system 106 executes a set of heuristic rules corresponding to the object relationship model to find the instance of the object associated with first positioning node 916a, and object selection system 106 selects the instance as the query object.
[0176] As previously described, the object selection system 106 can generate a component graph. For example, in various implementations, the object selection system 106 generates the component graph using a selection parsing model (e.g., a natural language decomposition model) for generating a component graph. For example, in one or more implementations, the object selection system 106 utilizes the techniques and methods found in “Using Syntax to Ground Referring Expressions in Natural Images” by Cirik et al., 2018, which is incorporated herein by reference in its entirety. Additionally, or alternatively, the object selection system 106 can utilize other methods to generate a structured decomposition of the query string to lay the foundation for the language input.
[0177] As mentioned above, Fig.10 Includes examples that utilize different object-relational models. For illustration, Fig.10 A block diagram of multiple object relationship models according to one or more implementations is shown. In particular, Fig.10 The action 812 of selecting an object relationship model based on the identified relationship type (as described above for Figure 8 In fact, as described in Fig.10 As shown in , action 812 includes various object relationship models that the object selection system 106 can select, including object touch model 1002, relative object position model 1004, background / foreground object model 1006, and other object relationship models 1008.
[0178] In one or more implementations, the object selection system 106 selects the object touch model 1002 as the selected object relationship model. For example, when the relationship type (e.g., relationship node) in the component graph corresponds to objects that are close to or touching each other in the image, the object selection system 106 selects the object touch model 1002. For example, when the relationship node includes an action (such as "holding", "wearing", "touching") or a preposition (such as "in", "having", "of"), the object selection system 106 selects the object touch model 1002.
[0179] In various implementations, the object selection system 106 implements a touch operator TOUCHING(Object_1, Object_2) to check if a first object (e.g., Object_1) and a second object (e.g., Object_2) intersect or overlap within an image. In various implementations, to obtain improved accuracy, the object touch model 1002 checks object regions within object masks of the first object and the second object for overlap. For example, in one or more implementations, the object touch model 1002 determines whether the intersection between the two object masks is greater than zero. In alternative implementations, the touch threshold is a distance greater than zero, such as 1, 2, 5, 10, or more pixels.
[0180] In some implementations, when the intersection threshold is zero, two adjacent object masks still fail to satisfy the object touch model 1002. For example, the object mask neural network utilized to generate the object masks fails to generate an exact object mask, and thus, the edges of the two adjacent object masks are several pixels away from each other, which results in a non-intersecting scene. In these implementations, the object selection system 106 and / or the object touch model 1002 can perform image dilation for one or more iterations on one or more object masks to expand their area before checking for intersection.
[0181] In some implementations, the object selection system 106 selects the relative object position model 1004 as the object relationship model. In many implementations, the relative object position model 1004 determines the relative position of a first object (i.e., an object instance) relative to a second object. Examples of relative position types include: "left", "right", "on top", "above", "bottom", "under", "below", and "beneath". In various implementations, the object selection system 106 selects the relative object position model 1004 based on identifying a relationship type corresponding to one of the relative positions indicated above.
[0182] In many implementations, the relative object position model 1004 includes a relative position table that maps positions to a canonical form. For example, for the position "top", the relative position table may include relative positions of "on", "above", "on top of", "on the top of", and "to the top of". Additionally, for the position "right", the relative position table may include relative positions of "on the right", "to the right of", and "to the right".
[0183] In various implementations, the relative object position model 1004 implements a relative position operator RELATIVE_POSITION(Bounding_Box_1, Bounding_Box_2, Relative_Position) to check whether a first bounding box (e.g., Bounding_Box_1) is at a Relative_Position relative to a second bounding box (e.g., Bounding_Box_2), where Relative_Position is one of the canonical forms of top, bottom, left, or right. Fig.11 An example of determining whether a first object satisfies a relative position with a second object is provided.
[0184] In various implementations, the object selection system 106 selects the background / foreground object model 1006 as the selected object relationship model. For example, if the object selection system 106 detects a relationship type corresponding to different depths between the background or foreground or objects of the image, the object selection system 106 may select the background / foreground object model 1006. For example, the object selection system 106 detects a relationship type of "in the background" or "in front" from the component map.
[0185] In various implementations, the background / foreground object model 1006 implements a foreground operator and / or a background operator. For example, in one or more implementations, the background / foreground object model 1006 implements an IN_BACKGROUND(Object_1) operation to determine that a first object (e.g., an object mask of the first object) is in the background of an image. In these implementations, the background / foreground object model 1006 can utilize a specialized model from an object selection pipeline to detect foreground and / or background in an image. In particular, the background / foreground object model 1006 can receive a background mask via a specialized model and / or an object mask neural network.
[0186] Further, the background / foreground object model 1006 may compare the first image object mask with the background mask to determine whether there is an intersection that satisfies the background / foreground object model 1006. For example, the background / foreground object model 1006 may determine whether a majority of the first object is in the background. To illustrate, in one or more implementations, the background / foreground object model 1006 may apply the following heuristic to determine that a majority of the first object mask overlaps the background mask: intersection (first object mask, background mask) / area (first object mask) ≥ 0.5.
[0187] Similarly, the background / foreground object model 1006 can implement an IN_FOREGROUND(Object_1) operation. Further, the background / foreground object model 1006 can utilize other operations, such as an IN_FRONT(Object_1, Object_2) operation or a BEHIND(Object_1, Object_2) operation, which utilizes a depth map to determine the relative depths of the first object and the second object.
[0188] In some implementations, the object selection system 106 selects one or more other object relationship models 1008 as the selected object relationship model. For example, the object selection system 106 selects an object relationship model that determines whether an object has a particular color (e.g., HAS_COLOR(Object_1, Color)). As another example, the object selection system 106 selects an object relationship model that compares the size between objects (e.g., IS_LARGER(Object_1, Object_2, ...)). Further, the object selection system 106 can utilize object relationship models that target other object attributes, such as size, length, shape, position, location, pattern, composition, expression, emotion, rigidity, and / or flexibility.
[0189] As mentioned above, Fig.11 Corresponding to determining whether a first object satisfies a relative position with a second object (e.g., based on a relationship type of "on top of..."). In particular, Fig.11 1004 is illustrated for selecting an object using a relative object position model according to one or more implementations. Fig.11 Included is a bounding box of a first object 1102 and a bounding box of a second object 1104 .
[0190] Additionally, Fig.11Also include a first height 1106 corresponding to the height of the bounding box of the first object 1102 and a second height 1108 proportional to the first height 1106. As shown, the second height 1108 is a quarter of the height of the first height 1106. In an alternative implementation, the second height 1108 is larger or smaller (e.g., half or one-eighth the height of the first height 1106). The size and shape of the relative position threshold area 1110 can change based on the relationship type and / or object relationship model utilized. For example, the relationship type above can extend from the top of the first object 1102 to the top edge of the image.
[0191] As also shown, the second height 1108 can be used to define a relative position threshold area 1110 that is based on the second height 1108 and the width of the bounding box of the first object 1102. The relative object position model 1004 can determine that the relative position is satisfied if the bounding box of the second object 1104 has one or more pixels within the relative position threshold area 1110. In some implementations, at least a minimum amount of area (e.g., 15% or more) of the bounding box of the second object 1104 must be within the relative position threshold area 1110 before the relative object position model 1004 is satisfied.
[0192] In one or more implementations, the relative object position model 1004 can generate a separate relative position threshold area corresponding to each canonical position. For example, for the right canonical position, the relative object position model 1004 can generate the right relative position threshold area using the same or different ratios for the relative position threshold area 1110.
[0193] In an alternative implementation, the relative object position model 1004 may utilize the same separate relative position threshold region and rotate the image before determining whether the relative position is satisfied. For example, for the relative object position operator RELATIVE_POSITION(Object_1, Object_2, right), the relative object position model 1004 may rotate the image 90° clockwise and apply Fig.11 In this manner, the relative object position model 1004 simplifies the relative object position operator to check any relative position based on a single canonical position (eg, top) and the relative position threshold region 1110.
[0194] FIG. 12A to FIG. 12D A graphical user interface 1202 is illustrated for selecting a query object from a plurality of objects associated with a natural language user input using an object relational model according to one or more implementations. For ease of explanation, FIG. 12A to FIG. 12DThe client device 300 described above is included. For example, the client device 300 includes an image editing application that implements the image editing system 104 and the object selection system 106. Fig. 12A As shown in FIG. 1 , the graphical user interface 1202 includes an image 1204 of a man on a bicycle, a woman standing next to the bicycle, and a background landscape. Additionally, the graphical user interface 1202 includes an object selection interface 1206, as described above in conjunction with Figure 3A As described, in the object selection interface 1206, the user provides the query string "person on a bicycle".
[0195] To automatically select query objects in a query string, as described above, the object selection system 106 can generate a component graph to identify objects and relationship types in the query string. For example, the object selection system 106 generates a component graph for the query string, such as Fig. 9B The component graph shown in , which was described previously. In fact, the component graph can identify two object classes (eg, "person" and "bicycle") and a relationship type "on...".
[0196] As previously described, object selection system 106 can utilize an object selection pipeline to select an object detection model (e.g., a specialized object detection neural network) that best detects a person, use the selected object detection model to detect each instance of a person in image 1204, and in some cases, generate an object mask for each detected instance. To illustrate, Fig. 12B The object selection system 106 is shown detecting a first person instance 1208a and a second person instance 1208b.
[0197] Additionally, the object selection system 106 can utilize the object selection pipeline to select an object detection model (e.g., a known object class neural network) that best detects a bicycle, use the selected object detection model to detect one or more instances of a bicycle in the image 1204, and in some examples, generate an object mask for each detected bicycle instance. To illustrate, Fig. 12C The object selection system 106 is shown detecting a first bicycle instance 1210a and a second bicycle instance 1210b.
[0198] In one or more implementations, the object selection system 106 does not initially identify an object detection neural network that corresponds to the object term "bicycle" (e.g., the term "bicycle" does not correspond to a known object class). As described above, the object selection system 106 can utilize a mapping table to identify synonyms, such as "bicycle," which the object selection system 106 recognizes as a known object class. Then, using the candidate object term "bicycle," the object selection system 106 can utilize a known object class neural network to detect each instance of bicycle.
[0199] As described above, the object selection system 106 can select an object relationship model based on the relationship type to determine the intersection between an instance of a person and an instance of a bicycle. For example, in one or more implementations, the object selection system 106 selects an object touch model based on the relationship type "on" to test the intersection between two sets of objects. In particular, the object touch model performs the following tests:
[0200] TOUCHING (first person instance 1208a, first bicycle instance 1210a),
[0201] TOUCHING (first person instance 1208a, second bicycle instance 1210b),
[0202] TOUCHING (second person instance 1208b, first bicycle instance 1210a), and
[0203] TOUCHING (second person instance 1208b, second bicycle instance 1210b).
[0204] After performing each of the above tests, the object selection system 106 can determine that the intersection between the first person instance 1208a and the first bicycle instance 1210a satisfies the object touch model, while the other tests do not satisfy the object touch model. Therefore, the object touch model can generate an output indicating that the first person instance 1208a is on a bicycle.
[0205] Based on the output of the object touch model (e.g., the selected object relationship model), the object selection system 106 can automatically select the first person instance 1208a. For illustration, Fig.12D A first person instance 1208a is shown selected within the image 1204. In practice, the object selection system 106 can automatically select the first person instance 1208a in the image 1204 in response to the query string.
[0206] Note that in many implementations, the object selection system 106 does not display the intermediate actions to the user. Instead, the object selection system 106 presents the query object automatically detected and accurately selected in response to the user's query string request. In other words, the graphical user interface 1202 Fig. 12A Jump to Fig.12D In an alternative implementation, the object selection system 106 displays one or more intermediate actions to the user. Fig. 12B and Fig. 12C As shown in , the object selection system 106 displays the graphical user interface and each selected object instance (and / or a bounding box for each detected object instance).
[0207] Steering Fig.13 , illustrates an evaluation table 1310 for evaluating various implementations of an object selection system according to one or more implementations. By way of context, the evaluator tested various implementations of the object selection system 106 to test whether the object selection system 106 provides an improvement over a baseline selection model.
[0208] For evaluation, the evaluator utilizes the quality measure of Intersection over Union (IoU) of the output masks compared to the ground truth masks for natural language object selection queries (i.e., query strings). In particular, the evaluator is run on a test dataset of approximately 1000 images and 2000 query strings.
[0209] For the implementation of the object selection system 106 described herein, the evaluator found substantial improvements over the baseline model. For example, as shown in the evaluation table 1310, the average IoU changed from 0.3036 (e.g., the first row of the evaluation table 1310) for the baseline selection model to 0.4972 (e.g., the last row of the evaluation table 1310) based on the added improvements of the natural language processing tools described herein (e.g., using the component graph and the mapping table). In fact, the evaluation table 1310 confirms that the object selection system 106 has empirically improved the accuracy of the object selection model.
[0210] Now refer to Fig.14 , provides additional details regarding capabilities and components of the object selection system 106 according to one or more implementations. In particular, Fig.14 A schematic diagram of an example architecture of an object selection system 106 implemented within the image editing system 104 and hosted on a computing device 1400 is shown. The image editing system 104 may be combined with the previously described Figure 1 The described image editing system 104 corresponds.
[0211] As shown, object selection system 106 is located on computing device 1400 within image editing system 104. In general, computing device 1400 can represent various types of client devices. For example, in some implementations, the client is a mobile device, such as a laptop, tablet computer, mobile phone, smart phone, etc. In other implementations, computing device 1400 is a non-mobile device (such as a desktop computer or server) or another type of client device. Fig.17 Additional details regarding computing device 1400 are discussed.
[0212] As in Fig.14 , the object selection system 106 includes various components for performing the processes and features described herein. For example, the object selection system 106 includes a digital image manager 1410, a user input detector 1412, an object term mapping manager 1414, an object relationship model manager 1416, an object detection model manager 1418, an object mask generator 1420, and a storage manager 1422. As shown, the storage manager 1422 includes a digital image 1424, an object term mapping table 1426, a component graph 1428, an object relationship model 1430, an object detection model 1432, and an object mask model 1434. Each of the components mentioned above is described below.
[0213] As mentioned above, the object selection system 106 includes a digital image manager 1410. In general, the digital image manager 1410 supports identifying, accessing, receiving, obtaining, generating, importing, exporting, copying, modifying, removing, and organizing images. In one or more implementations, the digital image manager 1410 operates in conjunction with the image editing system 104 (e.g., an image editing application) to access and edit images, as previously described. In some implementations, the digital image manager 1410 communicates with the storage manager 1422 to, for example, store and retrieve digital images 1424 within a digital image database managed by the storage manager 1422.
[0214] As shown, the object selection system 106 includes a user input detector 1412. In various implementations, the user input detector 1412 can detect, receive and / or support user input on the computing device 1400 in any suitable manner. In some instances, the user input detector 1412 detects one or more user interactions (e.g., a single interaction or a combination of interactions) relative to the user interface. For example, the user input detector 1412 detects user interactions from a keyboard, a mouse, a touch page, a touch screen, and / or any other input device associated with the computing device 1400. For example, the user input detector 1412 detects user input of a query string (i.e., a natural language object selection query) submitted from an object selection interface requesting automatic selection of an object within an image. Additionally, as described above, the user input detector 1412 detects additional user input from a mouse selection and / or touch input to indicate an object location within an image.
[0215] As shown, object selection system 106 includes object item mapping manager 1414. In one or more implementations, object item mapping manager 1414 creates, generates, accesses, modifies, updates, removes and / or otherwise manages object item mapping table 1426 (i.e., mapping table). For example, as described in detail above, object item mapping manager 1414 can generate, utilize and update one or more object item mapping tables 1426, which map object items to synonym object items, hypernym object items and / or hyponym object items (i.e., alternative object items). Usually, as explained above, object item mapping manager 1414 will not map the object items of the object corresponding to the known object class to one or more alternative object items.
[0216] In one or more implementations, the object selection system 106 may include a component graph manager. In various implementations, the component graph manager creates, generates, accesses, modifies, updates, removes, and / or otherwise manages the component graph 1428. In one or more implementations, the component graph manager generates the component graph. In alternative implementations, the component graph 1428 is generated by an external party or external source.
[0217] As shown, the object selection system 106 includes an object relationship model manager 1416. In various implementations, as described above, the object relationship model manager 1416 analyzes and uses the component graph 1428 to identify the objects in the corresponding query string and the relationship types between the objects. Additionally, in some implementations, the object relationship model manager 1416 selects an object relationship model from the object relationship model 1430 based on the relationship types identified in the component graph. Further, the object relationship model manager 1416 can determine the intersection of the objects identified in the query string / component graph that satisfies the selected object relationship model.
[0218] As shown, the object selection system 106 includes an object detection model manager 1418. In various implementations, the object detection model manager 1418 maintains, creates, generates, trains, updates, accesses, and / or utilizes the object detection neural network disclosed herein. As described above, the object detection model manager 1418 detects one or more objects (e.g., query objects) within an image and generates boundaries (e.g., bounding boxes) to indicate the detected objects.
[0219] Additionally, in several implementations, the object detection model manager 1418 can communicate with the storage manager 1422 to store, access, and utilize the object detection model 1432. In various implementations, the object detection model 1432 includes one or more specialized object detection models 1434 (e.g., sky detection neural network, face detection neural network, body / body part detection neural network, skin detection neural network, clothing detection neural network, and waterfall detection neural network), known object class detection neural network 1436 (e.g., detecting objects with classes learned from training data), category-based object detection neural network 1438 (e.g., detecting uncountable objects such as floor, water, and sand), and large-scale object detection neural network 1440 (e.g., detecting objects belonging to unknown object classes), each of which is described above. Additionally, the object detection model manager 1418 can include one or more neural networks related to the above-described object detection neural network to detect objects within an image, such as, an auto-labeling neural network 1442, an object proposal neural network 1444, a region proposal neural network 1446, and a concept embedding neural network 1448, each of which is described above. In practice, as previously described, the object detection model manager 1418 may utilize various object detection neural networks in the object selection pipeline to detect objects in the query string.
[0220] Additionally, as shown, the object selection system 106 includes an object mask generator 1420. In one or more implementations, the object mask generator 1420 generates, creates, and / or produces an accurate object mask from the detected object. For example, as described above, the object detection model manager 1418 provides the boundaries of the object (e.g., the detected query object) to the object mask generator 1420, which utilizes one or more object mask models 1432 to generate an object mask for the detected object. Also as explained above, in various implementations, when multiple instances of the query object are detected, the object mask generator 1420 generates multiple object masks.
[0221] Each of the components 1410 to 1450 of the object selection system 106 may include software, hardware, or both. For example, the components 1410 to 1450 may include one or more instructions stored on a computer-readable storage medium and executable by a processor of one or more computing devices (such as, a client device (e.g., a mobile client device) or a server device). When executed by one or more processors, the computer-executable instructions of the object selection system 106 may cause the computing device to perform the feature learning method described herein. Alternatively, the components 1410 to 1450 may include hardware, such as a dedicated processing device for performing a function or group of functions. Additionally, the components 1410 to 1450 of the object selection system 106 may include a combination of computer-executable instructions and hardware.
[0222] In addition, the components 1410 to 1450 of the object selection system 106 can be implemented as one or more operating systems, one or more independent applications, one or more modules of an application, one or more plug-ins, one or more library functions or functions that can be called by other applications, and / or a cloud computing model. Therefore, the components 1410 to 1450 can be implemented as independent applications, such as desktop computers or mobile applications. Additionally, the components 1410 to 1450 can be implemented as one or more web-based applications hosted on a remote server. The components 1410 to 1450 can also be implemented in a series of mobile device applications or "apps". For illustration, the components 1410 to 1450 can be implemented in applications, including but not limited to: Adobe Adobe "ADOBE", "INDESIGN", "ACROBAT", "ILLUSTRATOR", "PHOTOSHOP" and "CREATIVE CLOUD" are registered trademarks or trademarks of Adobe Inc. in the United States and / or other countries.
[0223] Figures 1 to 14 , and corresponding text and examples provide several different methods, systems, apparatuses, and non-transitory computer-readable media of the object selection system 106. Additionally, the actions described herein may be repeated or performed in parallel with each other or with different instances of the same or similar actions.
[0224] As mentioned, Fig.15 and Fig.16 The flowcharts of a series of actions according to one or more implementations are respectively illustrated. Fig.15 and Fig.16The actions according to one implementation are respectively illustrated, but alternative implementations may omit, add to, reorder and / or modify any of the actions shown. Fig.15 and Fig.16 The actions shown may be performed as part of a method. Alternatively, a non-transitory computer-readable medium may include instructions that, when executed by one or more processors, cause a computing device to perform Fig.15 and Fig.16 In some implementations, the system may perform Fig.15 and Fig.16 Action shown.
[0225] For illustration, Fig.15 A flow chart of a series of actions 1500 for detecting query objects using an object relationship model according to one or more implementations is shown. In various implementations, the series of actions 1500 is implemented on one or more computing devices (such as, client device 102, server device 110, client device 300, or computing device 1400). Additionally, in some implementations, the series of actions 1500 is implemented in a digital environment for creating or editing digital content (e.g., digital images). For example, the series of actions 1500 is implemented on a computing device having a memory that includes a digital image, a component graph of a query string indicating that a first object is to be selected based on a second object within the digital image, and one or more object detection neural networks.
[0226] The series of actions 1500 includes an action 1510 of generating a component graph of the query string. In particular, action 1510 may involve: generating a component graph of the query string to identify a plurality of object classes and relationship types between the plurality of object classes. In one or more implementations, action 1510 includes: analyzing the component graph of the query string to identify a relationship type identifier between a first object and a second object. In various implementations, action 1520 includes: utilizing a natural language decomposition model to generate the component graph from the query string.
[0227] As shown, the series of actions 1500 also includes an action 1520 of generating an object mask for each object instance identified in the component graph. In particular, action 1520 may involve: utilizing one or more object detection models to generate one or more object masks for each of a plurality of object classes. In one or more implementations, action 1520 includes: generating one or more object mask instances for each of a first object and a second object by utilizing one or more object detection neural networks. In some implementations, the plurality of object classes include specialized objects, known objects, object categories, conceptual objects, or unknown objects.
[0228] As in Fig.15 As shown in , the series of actions 1500 also includes an action 1530 of identifying an object relationship model from a component graph. In particular, action 1530 may include: identifying an object relationship model from a plurality of object relationship models based on a relationship type. In one or more implementations, action 1530 includes: identifying an object relationship model based on a relationship type by matching the relationship type with the object relationship model. In various implementations, the plurality of object relationship models include an object touch model, a relative object position model, and a background / foreground object model.
[0229] As shown, the series of actions 1500 also includes an action 1540 of analyzing the object mask to identify the query object that satisfies the object relationship model. In particular, action 1540 may include: analyzing one or more object masks generated for each object category in a plurality of object classes to identify the query object that satisfies the object relationship model. In one or more implementations, action 1540 includes: determining the query object by identifying an intersection between one or more object mask instances for the first object and one or more object mask instances for the second object that satisfies the object relationship model.
[0230] In some implementations, act 1540 includes determining the query object based on the object relationship model by utilizing a heuristic rule for determining the query object. In alternative implementations, act 1540 includes determining the query object based on the object relationship model by utilizing machine learning for determining the query object. In various implementations, act 1540 may include identifying the query object that satisfies the object relationship model by identifying an intersection between one or more object mask instances for the first object and one or more object mask instances for the second object that satisfies the object relationship model.
[0231] As shown, the series of actions 1500 also includes an action 1550 of providing the selected query object to the digital image. In particular, action 1550 may include providing the query object selected in response to receiving the query string to the digital image. In one or more implementations, action 1550 includes providing an object mask to the digital image in response to receiving the query string.
[0232] The series of actions 1500 may also include several additional actions. In another implementation, the series of actions 1500 includes an action of identifying an object class in a plurality of object classes using a mapping table based on determining one or more candidate object items for the object class. In one or more implementations, the series of actions 1500 includes an additional action of identifying object attributes associated with objects belonging to one or more object classes, and detecting a target instance of the object based on the object attributes and one or more object detection models.
[0233] As mentioned above, Fig.16 A flow chart of a series of actions 1600 for detecting query objects using an object relational model according to one or more implementations is illustrated. In various implementations, the series of actions 1600 is implemented on one or more computing devices (such as client device 102, server device 110, client device 300, or computing device 1400).
[0234] The series of actions 1600 includes an action 1610 of identifying a query string that includes a query object. In particular, action 1610 may involve: analyzing the query string that indicates a query object to be selected in a digital image. In some implementations, action 1610 also includes: analyzing the query string to identify a noun that indicates the query object. In various implementations, action 1610 also includes: analyzing the noun to determine an object class type of the query object. In an example implementation, action 1610 includes: receiving text input from a user associated with a client device, and identifying the text input as a query string (i.e., a natural language object selection query).
[0235] As shown, the series of actions 1600 also includes an action 1620 of determining that the query object is not a recognizable object. In particular, action 1620 may involve: determining that the query object does not correspond to a known object class. In one or more implementations, action 1620 includes not identifying the query object in a list or database of known object classes.
[0236] As in Fig.16 As shown in , the series of actions 1600 also includes an action 1630 of identifying an alternative object item for the query object using a mapping table. In particular, action 1630 may include: identifying one or more alternative object items for the query object using a mapping table based on the query object not corresponding to a known object class. In one or more implementations, the one or more alternative object items include synonyms of the query object corresponding to a known object class. In some implementations, action 1630 includes: updating the mapping table to modify the one or more alternative object items for the query object.
[0237] As shown, the series of actions 1600 also includes an action 1640 of selecting a known object detection neural network. In particular, action 1640 may include: determining to select a known object detection neural network based on at least one of the one or more candidate object terms for the query object. In one or more implementations, the known object detection neural network includes a specialized object detection neural network corresponding to the one or more candidate object terms for the query object. In an alternative implementation, the known object detection neural network includes an object class detection neural network corresponding to the one or more candidate object terms for the query object.
[0238] In various implementations, the one or more candidate object terms include a hypernym of the query object corresponding to a known object class. In other implementations, action 1640 may include: using a tag model to identify the query object from a plurality of instances of the query object corresponding to the hypernym of the query object. For example, in one or more implementations, action 1640 may also include: using a tag model to tag a plurality of instances of the query object corresponding to the hypernym of the query object, using a mapping table to identify one or more additional candidate object terms for the tagged instances of the query object from the plurality of instances of the query object, and filtering out the tagged instances of the query object based on the one or more additional candidate object terms not corresponding to the query object.
[0239] As shown, the series of actions 1600 also includes an action 1650 of generating an object mask for the query object. In particular, action 1650 may involve: utilizing a known object detection neural network to generate an object mask for the query object. In various implementations, the object mask neural network utilizes a boundary (e.g., a bounding box) to identify the detected query object and generates an accurate object mask for the detected query object.
[0240] As shown, the series of actions 1600 also includes an action 1660 of providing an object mask to the digital image. In particular, action 1660 may involve: providing an object mask for a query object to the digital image in response to receiving the query string. In particular, action 1660 may involve: providing the image with the object mask of the query object to a client device associated with the user. In some implementations, action 1660 includes: automatically selecting the detected query object within the image editing application by utilizing the object mask of the query object.
[0241] As used herein, the term "digital environment" generally refers to an environment implemented as, for example, a standalone application (e.g., a personal computer or mobile application running on a computing device), an element of an application, a plug-in of an application, one or more library functions, a computing device, and / or a cloud computing system. The digital media environment allows the object selection system to create, execute, and / or modify the object selection pipeline as described herein.
[0242] As discussed in more detail below, implementations of the present disclosure may include or utilize a special or general-purpose computer including computer hardware (such as, for example, one or more processors and system memory). Implementations within the scope of the present disclosure also include physical and other computer-readable media for carrying or storing computer-executable instructions and / or data structures. In particular, one or more of the processes described herein may be implemented at least in part as instructions implemented in a non-transient computer-readable medium and executable by one or more computing devices (e.g., any of the media content access devices described herein). Typically, a processor (e.g., a microprocessor) receives instructions from a non-transient computer-readable medium (e.g., a memory), and executes those instructions, thereby executing one or more processes, including one or more of the processes described herein.
[0243] Computer-readable media can be any available media that can be accessed by a general or special purpose computer system. A computer-readable medium that stores computer-executable instructions is a non-transient computer-readable storage medium (device). A computer-readable medium that carries computer-executable instructions is a transmission medium. Therefore, by way of example and not limitation, implementations of the present disclosure may include at least two distinct types of computer-readable media: non-transient computer-readable storage media (devices) and transmission media.
[0244] Non-transitory computer-readable storage media (devices) include: RAM, ROM, EEPROM, CD-ROM, solid-state drives ("SSD") (e.g., based on "RAM"), flash memory, phase-change memory ("PCM"), other types of memory, other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store desired program code components in the form of computer-executable instructions or data structures and that can be accessed by a general or special purpose computer.
[0245] "Network" is defined as one or more data links that enable the transmission of electronic data between computer systems and / or modules and / or other electronic devices. When information is transferred or provided to a computer via a network or another communication connection (hard-wired connection, wireless connection, or a combination of hard-wired connection or wireless connection), the computer appropriately regards the connection as a transmission medium. The transmission medium may include a network and / or data link, which may be used to carry computer executable instructions or data structure forms and desired program code components that may be accessed by general or special computers. Combinations of the foregoing should also be included within the scope of computer-readable media.
[0246] Further, after the program code parts in the form of computer executable instructions or data structure arrive various computer system components, these program code parts can be automatically transferred to non-transient computer readable storage medium (equipment) (or vice versa) from transmission medium. For example, it is possible to buffer computer executable instructions or data structures received by network or data link in the RAM in the network interface module (for example, "NIC"), and then, finally transfer it to the computer system RAM and / or the not so volatile computer storage medium (equipment) at the computer system. Therefore, it should be understood that non-transient computer readable storage medium (equipment) can be included in the computer system component that also (or even mainly) utilizes transmission medium.
[0247] Computer executable instructions include, for example, instructions and data that cause a general-purpose computer, a special-purpose computer, or a special-purpose processing device to perform a function or group of functions when executed by a processor. In some implementations, computer executable instructions are executed by a general-purpose computer to convert a general-purpose computer into a special-purpose computer that implements the elements in the present disclosure. Computer executable instructions can be, for example, binary, intermediate format instructions (such as, assembly language) or even source code. Although the subject matter has been described in a language specific to structural features and / or method actions, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the described features or the actions described above. Instead, the described features and actions are disclosed as example forms of implementing the claims.
[0248] Those skilled in the art will appreciate that the present disclosure can be practiced in a network computing environment with many types of computer system configurations, including: personal computers, desktop computers, laptop computers, message processors, handheld devices, multiprocessor systems, microprocessor-based or programmable consumer electronics, network PCs, minicomputers, mainframe computers, mobile phones, PDAs, tablet computers, pagers, routers, switches, etc. The present disclosure can also be practiced in a distributed system environment, in which local computer systems and remote computer systems that are linked (by hardwired data links, wireless data links, or by a combination of hardwired data links and wireless data links) through a network all perform tasks. In a distributed system environment, program modules can be located in local memory storage devices and remote memory storage devices.
[0249] Implementations of the present disclosure may also be implemented in a cloud computing environment. As used herein, the term "cloud computing" refers to a model for implementing on-demand network access to a shared pool of configurable computing resources. For example, cloud computing may be utilized in a marketplace to provide universal and convenient on-demand access to a shared pool of configurable computing resources. A shared pool of configurable computing resources may be rapidly provided via virtualization, and may be published with less management effort or service provider interaction, and then scaled accordingly.
[0250] The cloud computing model may consist of various characteristics, such as, for example, on-demand self-service, broad network access, resource pooling, rapid elasticity, measured services, etc. The cloud computing model may also expose various service models, such as, for example, software as a service ("SaaS"), platform as a service ("PaaS"), and infrastructure as a service ("IaaS"). The cloud computing model may also be deployed using different deployment models, such as private cloud, community cloud, public cloud, hybrid cloud, etc. Additionally, as used herein, the term "cloud computing environment" refers to an environment that utilizes cloud computing.
[0251] Fig.17 A block diagram of an example device 1700 that can be configured to perform one or more of the processes described above is illustrated. It should be understood that one or more computing devices (such as computing device 1700) can represent the computing devices described above (e.g., client device 102, server device 110, client device 300, or computing device 1400). In one or more implementations, computing device 1700 can be a mobile device (e.g., a laptop, tablet computer, smart phone, mobile phone, camera, tracker, watch, wearable device, etc.). In some implementations, computing device 1700 can be a non-mobile device (e.g., a desktop computer, server device, web server, file server, social networking system, program server, application store, or content provider). Further, computing device 1700 can be a server device including cloud-based processing and storage capabilities.
[0252] As in Fig.17 As shown in , computing device 1700 may include one or more processors 1702, memory 1704, storage device 1706, I / O interface 1708 (i.e., input / output interface), and communication interface 1710, which may be communicatively coupled via a communication infrastructure (e.g., bus 1712). Fig.17 1700 is shown in FIG. Fig.17The components illustrated in are not intended to be limiting. In other implementations, additional or alternative components may be used. Furthermore, in some implementations, computing device 1700 includes more than Fig.17 The components shown in FIG. 1 are fewer than those shown in FIG. 1 . Fig.17 Components of computing device 1700 are shown in .
[0253] In a particular implementation, processor(s) 1702 include hardware for executing instructions, such as those that make up a computer program. As an example and not by way of limitation, to execute instructions, processor(s) 1702 may retrieve (or fetch) instructions from internal registers, internal cache memory, memory 1704, or storage device 1706, and decode and execute them.
[0254] The computing device 1700 includes a memory 1704 coupled to the processor(s) 1702. The memory 1704 may be used to store data, metadata, and programs for execution by the processor(s). The memory 1704 may include one or more of a volatile memory and a non-volatile memory, such as a random access memory ("RAM"), a read-only memory ("ROM"), a solid state disk ("SSD"), a flash memory, a phase change memory ("PCM"), or other types of data storage. The memory 1704 may be an internal memory or a distributed memory.
[0255] The computing device 1700 includes a storage device 1706, which includes a storage device for storing data or instructions. As an example and not by way of limitation, the storage device 1706 may include the non-transient storage medium described above. The storage device 1706 may include a hard disk drive (HDD), a flash memory, a universal serial bus (USB) drive, or a combination of these or other storage devices.
[0256] As shown, computing device 1700 includes one or more I / O interfaces 1708, which are provided to allow a user to provide input (such as user strokes) to computing device 1700, receive output from computing device 1700, and otherwise transfer data to and from computing device 1700. These I / O interfaces 1708 may include a mouse, a keypad or keyboard, a touch screen, a camera, an optical scanner, a network interface, a modem, other known I / O devices, or a combination of these I / O interfaces 1708. The touch screen may be activated with a stylus or a finger.
[0257] The I / O interface 1708 may include one or more devices for presenting output to a user, including, but not limited to: a graphics engine, a display (e.g., a display screen), one or more output drivers (e.g., a display driver), one or more audio speakers, and one or more audio drivers. In some implementations, the I / O interface 1708 is configured to provide graphical data to the display for presentation to the user. The graphical data may represent one or more graphical user interfaces and / or any other graphical content that may serve a particular implementation.
[0258] The computing device 1700 may also include a communication interface 1710. The communication interface 1710 may include hardware, software, or both. The communication interface 1710 provides one or more interfaces for communication (such as, for example, packet-based communication) between the computing device and one or more other computing devices or one or more networks. As an example and not by way of limitation, the communication interface 1710 may include a network interface controller (NIC) or network adapter for communicating with an Ethernet or other wiring-based network, or a wireless NIC (WNIC) or wireless adapter for communicating with a wireless network (such as, WI-FI). The computing device 1700 may also include a bus 1712. The bus 1712 may include hardware, software, or both that connect the components of the computing device 1700 to each other.
[0259] In the foregoing description, the present invention has been described with reference to specific example implementations thereof. Various implementations and aspects of the present invention are described with reference to the details discussed herein, and the accompanying drawings illustrate the various implementations. The above description and drawings are illustrative of the present invention and should not be construed as limiting the present invention. Many specific details are described to provide a thorough understanding of the various implementations of the present invention.
[0260] Without departing from the spirit or essential characteristics of the present invention, the present invention may be implemented in other specific forms. The described implementations should be considered in all respects to be illustrative only and not restrictive. For example, the method described herein may be performed with fewer or more steps / actions, or the steps / actions may be performed in different orders. Additionally, the steps / actions described herein may be repeated or performed in parallel with each other or with different instances of the same or similar steps / actions. Therefore, the scope of the present invention is indicated by the appended claims rather than the foregoing description. All changes within the equivalent meaning and scope of the claims will be included within the scope of the claims.
Claims
1. A non-transitory computer-readable medium storing instructions that, when executed by at least one processor, cause a computing device to: generating a component graph of the query string to identify a plurality of object classes and types of relationships between the plurality of object classes, wherein the component graph includes a data structure representing objects and relationships of the query string; generating one or more object masks for each of the plurality of object classes using one or more object detection models; identifying an object relationship model from a plurality of object relationship models based on the relationship type; analyzing the one or more object masks generated for each of the plurality of object classes by identifying an intersection between the one or more object mask instances for the first object and the one or more object mask instances for the second object to identify a query object that satisfies the object relationship model; as well as The query object selected in response to receiving the query string is provided to a digital image. 2 . The non-transitory computer-readable medium of claim 1 , wherein the plurality of object classes comprises specialized objects, known objects, object categories, conceptual objects, or unknown objects.
3. The non-transitory computer-readable medium of claim 1 , further comprising instructions that, when executed by the at least one processor, cause the computing device to: determine the query object based on the object relational model by utilizing a heuristic rule for determining the query object.
4. The non-transitory computer-readable medium of claim 1 , further comprising instructions that, when executed by the at least one processor, cause the computing device to: determine the query object based on the object relational model by utilizing machine learning for determining the query object. 5 . The non-transitory computer-readable medium of claim 1 , wherein the plurality of object relationship models include an object touch model, a relative object position model, and a background / foreground object model.
6. The non-transitory computer-readable medium of claim 1, further comprising instructions that, when executed by the at least one processor, cause the computing device to: utilize a natural language decomposition model that generates the component graph from the query string.
7. The non-transitory computer-readable medium of claim 1, further comprising instructions that, when executed by the at least one processor, cause the computing device to: identify the object class in the plurality of object classes using a mapping table based on determining one or more candidate object items for the object class in the plurality of object classes.
8. The non-transitory computer-readable medium of claim 7, wherein an alternative object term of the one or more alternative object terms comprises a synonym of the object class.
9. A system for processing a digital image, comprising: One or more memory devices, the one or more memory devices comprising: a component map of a query string indicating a first object to be selected based on a second object within the digital image and one or more object detection neural networks, wherein The component graph includes a data structure representing objects and relationships of the query string; One or more server devices, the one or more server devices being configured to enable the system to: analyzing the component graph of the query string to identify a relationship type identifier between the first object and the second object; generating one or more object mask instances for each of the first object and the second object by utilizing the one or more object detection neural networks; identifying an object relationship model based on the relationship type by matching the relationship type to the object relationship model; determining a query object by identifying an intersection between the one or more object mask instances for the first object and one or more object mask instances for the second object that satisfies the object relationship model; and The object mask is provided to the digital image in response to receiving the query string.
10. The system of claim 9, wherein the one or more server devices are further configured to cause the system to utilize a mapping table to identify one or more candidate object items for the first object.
11. The system of claim 9, wherein the object relationship model comprises one of: an object touch model, a relative object position model, or a background / foreground object model.
12. The system of claim 9, wherein the one or more object detection neural networks include a specialized object detection neural network, a concept-based object detection neural network, a known object class detection neural network, and an unknown object class detection neural network.
Citation Information
Patent Citations
Utilizing interactive deep learning to select objects in digital visual media
US10192129B2
Automatic trimap generation and image segmentation
US10692221B2
Utilizing object attribute detection models to automatically select instances of detected objects in images
US11107219B2
Deep salient content neural networks for efficient digital object segmentation
US20190130229A1
Detecting objects using a weakly supervised model
CN110276366A
