Automatically select user-requested objects in an image using multiple object detection models
By utilizing multiple object detection neural networks and models, the object selection system automatically detects and selects objects in images based on natural language input, overcoming the shortcomings of existing systems in terms of flexibility, accuracy, and efficiency, and achieving efficient and accurate selection and mask generation for various object types.
Patent Information
- Application Number
- CN202010168321.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-07-22
- Filing Date
- 2020-03-11
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-03-11
AI Technical Summary
Existing digital image editing systems suffer from low flexibility, accuracy, and operational efficiency in object detection and selection. They struggle to effectively detect and select various object types in images, especially background and conceptual objects. Furthermore, conventional systems often require manual correction and adjustment, resulting in low efficiency.
An object selection system is adopted, which utilizes multiple object detection neural networks and models to automatically detect and select objects in images based on natural language input. This includes expert object detection, concept-based object detection, known category object detection, and unknown category object detection. Object masks are generated, and multimodal user input is supported, thereby improving the accuracy and efficiency of detection and selection.
It enables automatic detection and selection of any type of object in an image, improving detection accuracy and efficiency, reducing user interaction, simplifying the operation process, and automatically recognizing multiple object instances and providing accurate object masks.
Smart Images

Figure CN112287156B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application is related to U.S. patent application serial number 16 / 518,795 (attorney docket number 20030.257.4) filed on July 22, 2019, U.S. patent application serial number 16 / 518,810 (attorney docket number 20030.257.2) filed on July 22, 2019, and U.S. patent application serial number 16 / 518,850 (attorney docket number 20030.257.3) filed on July 22, 2019, all of which are incorporated herein by reference in their entirety. Technical Field
[0003] Embodiments of the present invention relate to the field of digital images, and more particularly to utilizing multiple object detection models in digital images. Background Art
[0004] In recent years, digital image editing has increased significantly. Indeed, advances in hardware and software have increased the ability of individuals to capture, create, and edit digital images. For example, the hardware on most modern computing devices (e.g., servers, desktops, laptops, tablets, and smartphones) enables digital image editing without noticeable lag time or processing delays. Similarly, improvements in software enable 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.
[0005] Despite these improvements in digital image editing, conventional systems have many problems with flexibility, accuracy, and operational efficiency in image editing systems, particularly with respect to detecting and selecting objects in digital images. As an example, many conventional systems have limited functionality in terms of the types of objects they can detect in an image. To provide context, an object in an image may correspond to one or more object types or classes (e.g., foreground objects, background objects, conceptual objects), and an object class may include an almost unlimited number of objects. Conventional systems are typically limited to a small number of object classes. Furthermore, conventional systems primarily detect only a small subset of objects within an object class. For example, some conventional systems may only detect dogs in an image, but not other types or classes of objects.
[0006] Furthermore, many conventional systems are limited to a single function or a small number of functions. For example, most conventional systems that perform object detection are unable to perform additional functions. To illustrate, conventional systems that can detect a small number of object categories are largely unable to perform additional actions, such as selecting a detected object and / or generating an object mask for a detected object.
[0007] In addition, conventional systems are inaccurate. For example, many conventional systems that provide object detection often identify the wrong objects or fail to identify any objects. For example, many conventional systems do not identify objects that are background objects or conceptual objects (e.g., concept-based objects). Furthermore, when a user desires to select a specific instance of an object, conventional systems often identify and group multiple instances of the object in a single selection because these systems cannot distinguish between the instances of the object detected in the image.
[0008] Moreover, some conventional systems are inaccurate because they provide imprecise results. For example, although a small number of conventional systems can select a single mask of an object, the boundaries of these masks are rough and imprecise. In fact, these conventional systems often generate object masks that excessively include additional portions of the image or do not include the entire object. As a result, the user must manually correct the selection and / or manually select the desired object.
[0009] Furthermore, conventional systems are inefficient. For example, conventional systems have significant deficiencies in automatic object detection and selection. For example, many conventional systems for detecting objects are end-to-end neural networks. When something fails or does not achieve the desired results, the user of the system or even the creator of the system cannot locate 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 take a lot of time and computing resources.
[0010] In addition, many conventional systems provide inefficient mouse-based input tools, which further 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 detecting, displaying, selecting and correcting object selections in digital images and the user interaction with different selection tools wastes a lot of computing resources.
[0011] These and additional problems and issues exist in image editing systems regarding detecting and selecting objects in digital images. Summary of the invention
[0012] Embodiments of the present disclosure provide multiple benefits and / or solve one or more of the foregoing or other problems in the art using systems, non-transitory computer-readable media, and methods for automatically selecting detected objects in digital images based on natural language-based input. For example, the disclosed system can utilize an object selection pipeline consisting of object detection neural networks and models to accurately detect and automatically select objects identified in a natural language user query. In addition, the disclosed 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.
[0013] To illustrate, the disclosed system may identify a user selection query (e.g., text or voice input) requesting selection of a given object within an image. Based on analyzing the query, the disclosed system may select an object detection neural network to use to detect the given object. For example, the disclosed system may select an object detection neural network from an expert object detection neural network, a concept-based object detection neural network, a known class object detection neural network, or an unknown class object detection neural network. Additionally, the disclosed system may select the detected object by generating an object mask of the detected object using an object mask neural network. Furthermore, the disclosed system may provide the selected object to the user within the image.
[0014] As described in detail below, the disclosed system can automatically detect and select objects corresponding to any type of object category or object type. In fact, the disclosed system can automatically determine the object category of an object indicated in a user query and utilize (multiple) appropriate neural networks to accurately identify and isolate the object. Thus, the disclosed system can identify specific objects, foreground objects, background objects, general objects, concept-based objects, and objects with unknown categories.
[0015] In some embodiments, the disclosed system can also accurately detect specified instances of an object based on a user query. As an example, if there are multiple instances of a desired object in an image, the disclosed system can identify and select each instance individually. In addition, if an image includes multiple instances of an object, the disclosed system can identify specified attributes from the user query and select instances of the object that match the specified attributes. In various embodiments, the disclosed system can select instances of an object based on color, position, size, location, material, expression, shape, or other attributes.
[0016] Although the present invention content refers to the system for simplicity, the present invention content also applies to certain disclosed methods and non-transitory computer-readable media. The following description sets forth additional features and advantages of one or more embodiments of the disclosed systems, computer media, and methods. In some cases, such features and advantages will be obvious to those skilled in the art from the description or can be learned by practicing the disclosed embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] As briefly described below, the detailed description provides additional specificity and detail for one or more embodiments through the use of the accompanying drawings.
[0018] Figure 1 A schematic diagram of an environment in which an object selection system operates in accordance with one or more embodiments is illustrated.
[0019] Figure 2 A schematic diagram of automatically detecting and selecting a query object in an image according to one or more embodiments is illustrated.
[0020] Figure 3A-3B Illustrated is a graphical user interface for automatically detecting and selecting a query object in an image in accordance with one or more embodiments.
[0021] Figure 4 A schematic diagram of an object selection pipeline is illustrated in accordance with one or more embodiments.
[0022] Figure 5 A flow diagram is illustrated for analyzing a query string to identify a query object in accordance with one or more embodiments.
[0023] Figure 6 A flow chart of identifying an expert network based on a query object and detecting a query object according to one or more embodiments is illustrated.
[0024] Figure 7A-7B An illustration of a graphical user interface for detecting query objects using an expert network in accordance with one or more embodiments.
[0025] Figure 8 A flow chart for detecting a concept-based query object using a concept-based object detection network is illustrated in accordance with one or more embodiments.
[0026] Figure 9A-9B Illustrated is a graphical user interface for detecting query objects using a concept-based object detection network in accordance with one or more embodiments.
[0027] Fig.10 A flow chart is illustrated for detecting a query object using a known object category detection network in accordance with one or more embodiments.
[0028] Figures 11A-11D An illustration of a graphical user interface for detecting a query object using a known object class detection network in accordance with one or more embodiments.
[0029] Fig.12 A flow diagram is illustrated for utilizing multiple networks to detect a query object corresponding to an unknown object class in accordance with one or more embodiments.
[0030] Figures 13A-13D A graphical user interface is illustrated for utilizing multiple networks to detect a query object corresponding to an unknown object class in accordance with one or more embodiments.
[0031] Fig.14 A flow diagram of detecting a specific instance of a query object is illustrated in accordance with one or more embodiments.
[0032] Figures 15A-15D An illustration of a graphical user interface for utilizing a property detection network to detect specific instances of a query object in accordance with one or more embodiments.
[0033] Fig.16 A flow diagram is illustrated for detecting a specific instance of a query object based on object properties in accordance with one or more embodiments.
[0034] Fig.17 Illustrated is a graphical user interface for selecting a query object instance based on a color object attribute in accordance with one or more embodiments.
[0035] Fig.18 Illustrated is a graphical user interface for selecting a query object instance based on location object properties in accordance with one or more embodiments.
[0036] Fig.19 A flow diagram is illustrated for detecting and selecting a query object in an image based on multimodal input in accordance with one or more embodiments.
[0037] Fig. 20 A flow diagram of an update object selection pipeline is illustrated in accordance with one or more embodiments.
[0038] Fig.21 A schematic diagram of an object selection system is illustrated in accordance with one or more embodiments.
[0039] Fig. 22 A flow chart illustrating a series of actions for detecting a query object using one of a plurality of object detection neural networks in accordance with one or more embodiments.
[0040] Fig.23 A block diagram of an example computing device for implementing one or more embodiments of the present disclosure is illustrated. DETAILED DESCRIPTION
[0041] The present disclosure describes one or more embodiments 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 embodiments, the object selection system builds and utilizes an object selection pipeline to determine which object detection neural network to utilize to detect the query object based on analyzing the object category of the query object. Additionally, 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.
[0042] To illustrate, in one or more embodiments, the object selection system identifies a user query requesting detection of an object (i.e., a query object) within an image. Based on analyzing the user query, the object selection system may select which of a plurality of object detection neural networks is best suited to detect the query object. For example, the object selection system may select an object detection neural network from a dedicated class object detection neural network, a concept-based object detection neural network, a known class object detection neural network, or an unknown class object detection neural network. Additionally, the object selection system may utilize an object mask neural network to select the detected query object, thereby generating an object mask of the detected query object. Furthermore, the object selection system may provide the selected query object within the image to the user.
[0043] In some embodiments, the object selection system detects multiple instances of a query object within an image. If the user query does not specify a particular instance of the query object to select, the object selection system may return each detected instance of the query object individually selected. Otherwise, if the user query includes an indication of a particular instance, the object selection system may utilize one or more object attribute detection models to select the specified instance of the query object and provide it to the user.
[0044] As described above, the object selection system can detect objects corresponding to a variety of object types and categories. In this way, a user can request the object selection system to find any type of object, rather than objects belonging to a limited number of categories. In fact, in various embodiments, the object selection system employs an object selection pipeline that provides a framework for the object selection system to select the optimal object detection neural network for each query object requested by the user.
[0045] To illustrate, in one or more embodiments, the object selection system detects a query string from a user requesting automatic selection of a given object within an image and / or editing of the image with respect to a given object. In some embodiments, the object selection system parses the query string and / or utilizes natural language processing to determine various parts of speech, such as nouns and adjectives. For example, a noun in the query string corresponds to a query object that the user is requesting the object selection system to automatically select in the image. Additionally, adjectives in the query string identify which instances of the query object to select when multiple query objects are included in the image.
[0046] The object selection system can analyze the query object in the query string to determine the object type or category. For example, in one or more embodiments, the object selection system can detect that the query object corresponds to a set of specialty objects, concept-based objects, known objects, or unknown objects. Based on the object type or category, the object selection system can determine which object detection neural network or model to utilize to best detect the query object.
[0047] To further illustrate, if the object selection system determines that the query object corresponds to a set of professional objects, the object selection system may select an object detection method that utilizes an expert object detection neural network. In embodiments where the query object corresponds to a concept, the object selection system may select a concept-based object detection neural network. Additionally, in embodiments where the query object corresponds to a known object, the object selection system may select an object detection neural network that is trained to detect objects of known classes. Furthermore, in embodiments where the query object corresponds to an unknown object, the object selection system may select an unknown object class model (e.g., a region object proposal neural network and a concept embedding neural network) to detect the query object.
[0048] As described above, in some embodiments, the object selection system utilizes an expert object detection neural network. For example, the object selection system detects that the query object in the query string is an object for which the object selection system has trained a dedicated object detection neural network. Typically, an expert object detection neural network is an object detection neural network that is trained to detect specific objects (e.g., the sky, a waterfall, or a face) with high precision and accuracy. By using an object selection pipeline with interchangeable components, the object selection system can add additional expert object detection neural networks when needed.
[0049] As also described above, in various embodiments, the object selection system utilizes a concept-based object detection neural network. For example, the object selection system detects that the query object in the query string is a recognized concept. Typically, the concept-based object detection neural network is trained to identify concepts corresponding to hundreds or thousands of semantic concepts. Examples of concepts include high-level category descriptions of objects that typically cover multiple object categories (e.g., clothing, elderly, female, holding, happy, or healthy). Typically, concepts correspond to salient areas in an image (e.g., mountains, roads, water, sand, hills). In some cases, concepts are referred to as background object categories, background categories, or background objects.
[0050] Additionally, as described above, in one or more embodiments, the object selection system utilizes an object detection neural network that detects objects having known object categories. For example, the object selection system detects that a query object in a query string belongs to a known object category. Typically, known object category detection neural networks are trained to identify objects corresponding to various object categories. Examples of object categories include dogs, cars, buildings, bottles, phones, and trees. In some embodiments, the object selection system identifies the query object by utilizing the known object category detection neural network to identify other objects in the image and filtering out other objects that do not correspond to the query object.
[0051] In addition, as described above, the object selection system can detect objects with unknown object categories. For example, the object selection system determines that the query object is not associated with a professional object, object concept, or known object category. More specifically, in an example embodiment, the object selection system utilizes a region object proposal neural network and a concept embedding neural network to detect the query object. In this way, the object selection system is able to detect any query object that a user may request to select from an image.
[0052] In various embodiments, upon detecting a query object, the object selection system generates an approximate boundary (e.g., a bounding box) around the object within the image. In additional embodiments, the object selection system provides the detected query object to an object mask neural network. In various embodiments, the object mask neural network generates an object mask for the detected object. In effect, the object mask enables the object selection system to select the detected query object in the image.
[0053] In some embodiments, the object mask neural network generates multiple object masks for multiple instances of the detected query object. In these embodiments, the object selection system can provide the multiple instances of the detected query object to the user. In additional embodiments, when multiple instances of the detected query object are detected, the object selection system can provide a separate selection for each instance.
[0054] As described above, in some embodiments, in addition to indicating the query object, the query string also includes one or more object attributes that specify a specific instance of the query object. For example, the query string indicates the size, color, position, location, material, emotion, or another attribute of the query object. In response to detecting the object attribute in the query string, the object selection system can further determine which instance of the query object to select. In particular, the object selection system can utilize an attribute detection model (e.g., a neural network or a metric) to determine which instance of the detected query object in the image to select and provide it to the user.
[0055] In one or more embodiments, the object selection system detects that an object attribute corresponds to a color. In these embodiments, the object selection system may select and utilize a color attribute detection neural network to identify instances of the detected object query that match the color specified in the query string. In some embodiments, the object selection system detects that an object attribute corresponds to a location. In these embodiments, the object selection system may select and utilize a location model to identify instances of the detected object query that match the specified location. In still other embodiments, the object selection system may select and utilize another attribute detection neural network to select a specific instance specified in the query string.
[0056] In various embodiments, the object selection system facilitates multimodal user input to detect a query object or identify a specific instance of a query object. For example, the object selection system utilizes both a query string and a mouse / touch input to identify a query object or a specific instance of a query object. In some embodiments, the mouse / touch input provides an indication or selection of an object or a specific object instance requested by the user. In some embodiments, the object selection system can select an object in an image based solely on the user's mouse / touch input (e.g., without "verbal" user input).
[0057] As previously described, object selection systems provide many advantages, benefits, and practical applications over conventional systems. For example, object selection systems can detect and select objects across a wide range of object types and categories. As described above, object selection systems are not limited to specific object categories or single object types, but can detect specialized objects, foreground objects, background objects, concept-based objects, and even unknown objects. In this way, object selection systems provide flexibility over conventional systems.
[0058] As another example and as described above, the object selection system performs multiple functions regarding object detection, isolation, and selection. In practice, the object selection system can detect an object in an image requested by a user, and generate an object mask that selects the detected object within the image. In additional embodiments, the object selection system can also determine that the user is requesting a specific instance of an object within the image and provide the specific requested instance. Thus, the object selection system provides increased flexibility and expanded functionality compared to conventional systems.
[0059] Furthermore, the object selection system provides increased flexibility by detecting objects in an image and specific instances of objects based on multiple user inputs. For example, the object selection system utilizes both a query string (e.g., a "language" prompt) as well as a mouse selection or touch input selection to detect the requested object. Similarly, as described above, the object selection system can also select a specific instance of the requested object based on object attributes detected in the query string.
[0060] As another example, the object selection system provides increased accuracy compared to conventional systems. For example, the object selection system improves object detection accuracy by determining an object detection neural network that best corresponds to a query object from a set of different object detection neural networks. In fact, by utilizing an object detection neural network customized for the query object, the object selection system achieves improved accuracy in object detection and object selection.
[0061] In addition, the object selection system provides improved accuracy over conventional systems by separating selections of multiple instances of a detected object, rather than providing a single selection that includes all instances of the detected object. In addition, the object selection system can detect that a user is requesting a specific instance (e.g., by detecting object properties in a query string), isolate the specific instance using multiple object detection models, and provide selection of the specific instance of the object requested by the user.
[0062] Furthermore, by utilizing an object selection pipeline, the object selection system provides improved efficiency over conventional systems. In fact, unlike closed end-to-end conventional systems, when a failure occurs, the object selection system can pinpoint a failed component in the object selection pipeline and repair the component. Furthermore, the object selection system can add additional components to improve accuracy. For example, the object selection system can add additional expert object detection neural networks to the object selection pipeline corresponding to frequently queried objects. Similarly, the object selection system can replace and / or upgrade components in the object selection pipeline with more efficient versions.
[0063] Additionally, the object selection system significantly reduces the number of user actions required by many conventional systems to select an object within an image. Rather than manually selecting an object using an inefficient mouse-based input tool, the user "tells" (e.g., provides a verbal prompt in a query string) the object selection system which object to select, and the object selection system automatically detects and selects the object. In effect, the object selection system greatly simplifies the object selection process to one or two simple actions by the user.
[0064] In view of the following description, additional advantages and benefits of the object selection system will become apparent. In addition, as the previous discussion illustrates, 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 about the meaning of these terms are now provided.
[0065] As used herein, the term "digital image" (or simply "image") refers to a digital graphics file that, when presented, displays one or more objects. In particular, an image may include one or more objects associated with any suitable object type or object class. In various embodiments, an image editing system displays an image on a computing device such as a client device. In additional embodiments, the image editing system enables a user to modify or change an image and to generate a new image. For example, the image editing system enables a user to copy an object selected in a first image onto the background of a second image.
[0066] 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 set of pixels in an image that combine to form a visual description of an item, article, part of an item, component, or element. An object can correspond to a wide range of categories and concepts. For example, objects include professional objects, conceptual objects, objects from known categories, and unknown object categories (e.g., objects that are not used to train any object detection neural network). In some embodiments, an object includes multiple instances of the object. For example, an image of a rose bush includes multiple instances of roses. In one or more embodiments, an object includes sub-objects, parts, or portions. For example, a person's face or leg can be an object that is part of another object (e.g., the person's body). As another example, a shirt is an object that can be part of another object (e.g., a person).
[0067] As described 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 "query string" refers to a text string of one or more words indicating a target object. The query string may include a noun representing 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 embodiments, the query string is submitted as a text string. In an alternative embodiment, 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.
[0068] As used herein, the term "object mask" or "segmentation mask" or "object segmentation" refers to an indication of a plurality of pixels that depict 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 that identifies 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).
[0069] As used herein, the term "approximate boundary" refers to an indication of an area that includes an object that is larger and / or less accurate than an object mask. In one or more embodiments, 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 around the object. In one or more embodiments, the approximate boundary includes a bounding box.
[0070] 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. In additional embodiments, the query string includes additional words, such as adjectives and adverbs that indicate attributes of 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.
[0071] The term "object selection pipeline" refers to a collection of components and actions for detecting and selecting a query object in an image. In various embodiments, the object selection system utilizes a subset of the components and actions in the object selection pipeline to detect and select a query object in an image, where the 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. In addition, the components and actions in the object selection pipeline may be interchangeable, removable, replaceable, or upgradeable, as described in further detail below.
[0072] As described above, in various embodiments, the object selection system can employ machine learning and various neural networks. As used herein, the term "machine learning" refers to the process of constructing and implementing algorithms that can learn from data and make predictions about it. Typically, machine learning can operate by building a model from example inputs (such as image exposure training pairs within a training data set of images) to make data-driven predictions or decisions. Machine learning can include neural networks (e.g., natural language processing neural networks, dedicated object detection neural networks, concept-based object detection neural networks, known object category detection neural networks, object proposal neural networks, unknown object category detection neural networks, region proposal neural networks, concept embedding neural networks, object mask neural networks, object classification neural networks, and / or selected object attribute detection neural networks), data-based models (e.g., natural language processing models, unknown object category detection models, object recognition models, filtering models, and / or selected object attribute models), or a combination of networks and models.
[0073] As used herein, the term "neural network" refers to a machine learning model that can be adjusted (e.g., trained) based on inputs to approximate unknown functions. In particular, the term neural network can include a model of interconnected 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 an algorithm (or set of algorithms) that implements 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), regional CNNs (R-CNNs), faster R-CNNs, mask R-CNNs, and single shot detection (SSD).
[0074] Now referring to the accompanying drawings, Figure 1 1 illustrates a schematic diagram of an environment 100 in which an object selection system 106 may operate according to one or more embodiments. Figure 1 As shown in FIG. 1 , environment 100 includes client device 102 and server device 110 connected via network 108. Fig.23Provides additional details about computing devices (e.g., client device 102 and server device 110). In addition, Fig.23 Additional details regarding a network, such as the illustrated network 108, are also provided.
[0075] although Figure 1 A specific number, type, and arrangement of components within environment 100 are illustrated, but various additional environment configurations are possible. For example, environment 100 may include any number of client devices. As another example, server device 110 may represent a collection 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.
[0076] As shown, environment 100 includes client device 102. In various embodiments, 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 embodiments, image editing system 104 implements object selection system 106. In alternative embodiments, 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, in some embodiments, image editing system 104 and object selection system 106 are located remotely from client device 102 (e.g., located on server device 110), as further described below.
[0077] In general, the image editing system 104 facilitates the creation, modification, sharing, and / or deletion of digital images within an application. 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. Moreover, 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 embodiments, the image editing system 104 can operate in conjunction with tools such as digital design applications or other image editing applications.
[0078] In some embodiments, the image editing system 104 provides an intelligent image editing assistant that performs one or more automatic image editing operations for the user. For example, given an image of three men, the user requests the image editing system to "remove the man on the left." As part of satisfying the request, the image editing system 104 utilizes the object selection system 106 to automatically select the man on the left. The image editing system 104 can then utilize additional system components (e.g., a hole filling neural network) to remove and replace the selected man on the left (e.g., the detected query object).
[0079] As described 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 embodiments, the object selection system 106 utilizes an object selection pipeline to determine which object detection neural networks to utilize based on a query object, as well as which additional neural networks and / or models to utilize to select the particular requested query object.
[0080] As shown, environment 100 also includes server device 110. Server device 110 includes object selection server system 112. For example, in one or more embodiments, object selection server system 112 represents and / or provides functionality similar to that described herein in conjunction with object selection system. In some embodiments, object selection server system 112 supports object selection system 106 on client device 102.
[0081] Indeed, in one or more embodiments, server device 110 may include all or a portion of object selection system 106. In particular, object selection system 106 on client device 102 may download an application (e.g., an image editing application from object selection server system 112) or a portion of a software application from server device 110.
[0082] In some embodiments, 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 embodiments, the client device 102 accesses a web page supported by the server device 110, which automatically selects an object in an image based on a query string provided by the user via the client device 102. As another example, the client device 102 provides an image editing application that provides an image and a query string to the object selection server system 112 on the server device 110, which then detects the query object 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.
[0083] As mentioned above, Figure 1 An example environment 100 is shown in which the object selection system 106 may operate. Turning to the next figure, Figure 2 An overview of using an object selection system to automatically select objects in an image is provided. In particular, Figure 2 Illustrated is a series of acts 200 for automatically detecting and selecting a query object in an image in accordance with one or more embodiments. In various embodiments, the object selection system 106 performs the series of acts 200 .
[0084] like Figure 2 As shown in , the object selection system 106 performs action 202, which identifies a query string indicating an object in an image. For example, a user edits an image using an image editing program. When editing an image, the user desires to select a specific object within the image. Therefore, the object selection system 106 provides a graphical interface for the user, which enables the user to enter a query string requesting automatic selection of an object. Figure 2 As shown in conjunction with action 202 , the user provides a query string of “middle car” to be selected from images of three cars.
[0085] In response to receiving the query string, the object selection system 106 performs act 204, which determines an object detection neural network to utilize based on the query string. For example, the object selection system 106 utilizes natural language processing to identify the query object from the query string. In additional embodiments, the object selection system 106 analyzes the query object to determine an object type or category. Based on the object type or category, the object selection system 106 can select an object detection neural network that will optimally detect the query object. For example, based on determining that the query object of "car" corresponds to a known object category, the object selection system 106 selects a known object category detection neural network. Notably, although Figure 2Dedicated object detection neural networks, concept detection neural networks, and known object category detection neural networks are shown, but the object selection system 106 can utilize other object detection neural networks.
[0086] As illustrated, the object selection system 106 performs action 206, which uses the selected object detection neural network to detect the query object indicated in the query string. For example, the object selection system 106 utilizes a known object category detection neural network to detect a car within the image. In additional embodiments, when multiple instances of the query object are included in the image, the object selection system 106 can detect each of the multiple instances. For illustration, action 206 shows a known object category detection neural network detecting each of three cars in the image.
[0087] As shown in action 208, the object selection system 106 generates an object mask for the detected query object. For example, the object selection system 106 provides the detected object to an object mask neural network, which generates an object mask (e.g., a selection mask) for the object. In some embodiments, when multiple instances of an object are detected, the object mask neural network can generate a separate object mask for each instance, as shown in conjunction with action 208.
[0088] like Figure 2 , the object selection system 106 performs action 210, which determines a specific detected query object indicated in the query string. As described above, in some cases, the object selection system 106 determines object properties from the query string. When multiple instances of the query object are included in the image, the query string typically includes object properties of the query object. In this way, the specific instance of the query object that the object property indicates the user is requesting is automatically selected.
[0089] When object attributes are detected, the object selection system 106 can analyze the object attributes to determine whether to utilize a particular attribute detection model. As described below, in various embodiments, the object selection system 106 utilizes a selected attribute detection model to detect a particular instance of the query object based on the object attributes. For example, as shown in conjunction with action 210, the object selection system 106 selects the middle car based on the object attribute "middle".
[0090] When selecting one or more specific instances of the query object that satisfy the object properties, the object selection system 106 may provide the one or more specific instances to the user as one or more selections. In an alternative embodiment, when the query string does not indicate an object property, the object selection system 106 may provide the one or more detected instances of the query object to the user as one or more selections within the image.
[0091] Note that the object selection system 106 may perform some of the actions 202-210 in the series of actions 200 in various orders. For example, the object selection system 106 may determine a particular detected query object (e.g., action 210) before generating one or more object masks (e.g., action 208). In some embodiments, the order utilized by the object selection system 106 is based on the object type or category and / or object attribute of the query object. For example, if the object attribute is color or position, the object selection system 106 may perform action 210 before action 208.
[0092] Figure 3A-3B Illustrated is a client device 300 having a graphical user interface 302 illustrating a selected query object in an image based on an object detection request (ie, a selection request) in accordance with one or more embodiments. Figure 3A-3B The client device 300 in the embodiment may represent the above 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, Figure 3A-3B The graphical user interface 302 in may be generated by an image editing application.
[0093] like Figure 3A As shown in FIG. 3 , graphical user interface 302 includes image 304 within an image editing application. Image 304 may correspond to the above-mentioned Figure 2 For ease of illustration, image 304 is simplified to show three cars without background or other objects.
[0094] In response to the user selecting the option to cause the object to be automatically selected, the object selection system 106 may provide an object selection interface 306. For example, the object selection system 106 may provide the object selection interface 306 as a selection tool within an image editing application. As shown, the object selection interface 306 may include a text field in which the user may enter a query string (i.e., "middle car"). The object selection interface 306 may also include an optional option for confirming or canceling the object detection request. In some embodiments, the object selection interface 306 may include additional elements, such as an optional option for capturing audio input from the user indicating the query string.
[0095] Based on receiving an object detection request including a query string (i.e., "middle car"), object selection system 106 may automatically detect and select the query object. In particular, object selection system 106 may detect each instance of the query object in image 304 (e.g., each of the three cars) and identify the specific instance specified in the query string (e.g., the "middle" car). To illustrate, Figure 3B The result of object selection system 106 automatically selecting middle car 308 within image 304 in response to the object detection request is shown. Once selected, the image editing application can enable the user to edit, copy, cut, move, and / or otherwise modify the selected object.
[0096] As shown, the object selection system 106 enables the user to provide a query string within the object selection interface 306. In some embodiments, the object selection system 106 enables the user to provide audio or other input to indicate the query string. For example, the client device 300 may include a microphone that captures the user speaking the query string, and performs speech-to-text processing to convert the query string into text. Moreover, as described below, in some embodiments, the object selection system 106 enables the user to provide additional input such as a mouse or touch gesture to further assist the object selection system 106 in automatically selecting a particular query object.
[0097] Now turn to Figure 4-Figure 18 , provides additional details about the object selection system 106, which generates and utilizes the object selection pipeline to automatically select and accurately detect objects requested in object detection requests. In particular, Figure 4 An example embodiment of an object selection pipeline is illustrated. Figure 5-Figure 18 An extended portion of the object selection pipeline and an example corresponding graphical user interface are illustrated.
[0098] As mentioned, Figure 4 A schematic diagram of an object selection pipeline 400 is illustrated in accordance with one or more embodiments. In various embodiments, the object selection system 106 performs the actions included in the object selection pipeline 400. In alternative embodiments, an image editing system and / or an image editing application may perform one or more of the included actions.
[0099] As shown, the object selection pipeline 400 includes an action 402 in which the object selection system 106 obtains an image (i.e., a digital image). For example, as described above, a user loads an image into 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.
[0100] Additionally, the object selection pipeline includes an action 404 in which 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 a user can enter one or more words indicating the objects they want the object selection system to automatically select. As described above, in some embodiments, 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.
[0101] Next, the object selection pipeline 400 includes an action 406 of the object selection system 106 analyzing the query string to identify the query object. In general, the object selection system 106 can parse the query string and use natural language processing to identify the query object. Figure 5 Additional details regarding act 406 are provided.
[0102] As shown, the object selection pipeline 400 includes an action 408 in which the object selection system 106 determines whether an expert network exists for the query object. For example, in one or more embodiments, the object selection system 106 can analyze the query object to identify an object type or category. Additionally, the object selection system 106 can compare the query object type or object category to a list or lookup table to determine whether the object detection neural network has been trained to optimally detect the query object.
[0103] If an expert network exists for the query object, the object selection system 106 can identify a particular expert network based on the query object, as shown in act 410. For example, the object selection system 106 can compare the object type or category of the query object to multiple expert object detection neural networks to identify the expert object detection neural network that best corresponds to the query object.
[0104] In many embodiments, act 408 and act 410 are combined into a single act. For example, when determining whether there is an expert object detection neural network for the query object (e.g., act 408), object selection system 106 may also identify a particular expert network based on the query object (e.g., act 410). For example, for a query object of "waterfall", object selection system 106 may identify that a waterfall expert object detection neural network is best suited to identify and select the query object.
[0105] As shown in action 412, object selection system 106 may utilize the identified specialized network to detect the query object. More specifically, object selection system 106 may utilize the identified specialized object detection neural network to locate and detect the query object within the image. For example, object selection system 106 may utilize the specialized object detection neural network to generate a bounding box around the detected query object in the image. In some embodiments, if the image includes multiple instances of the query object, object selection system 106 may utilize the specialized object detection neural network to separately identify each instance of the multiple instances. Figure 6-7B Additional details are provided regarding act 410 and act 412.
[0106] As shown, the object selection pipeline 400 includes an action 414 in which the object selection system 106 generates an object mask for the query object using the object mask neural network. For example, in various embodiments, 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 generate multiple object masks from the multiple bounding boxes using the object mask neural network (e.g., one object mask for each instance of the detected query object).
[0107] When generating an object mask for a detected query object (or each detected query object instance), the object mask neural network can segment pixels in the detected query object from other pixels in the image. For example, the object mask neural network can create a separate image layer that sets pixels corresponding to the detected query object to positive (e.g., binary 1) while setting the rest of the pixels in the image to neutral or negative (e.g., binary 0). When this object mask layer is combined with the image, only the pixels of the detected query object are visible. In effect, the generated object mask can provide a segmentation that enables selection of the detected query object within the image.
[0108] The object mask neural network may correspond to one or more deep neural networks or models that select objects based on bounding box parameters corresponding to objects within an image. For example, in one or more embodiments, the object mask neural network utilizes techniques and methods found in "Deep GrabCut 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 may utilize a deep grad cut method instead of a saliency mask transfer. As another example, the 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.
[0109] Furthermore, with respect to embodiments in which the object mask neural network performs instance-level segmentation (e.g., semantic segmentation), the object mask neural network may utilize techniques and methods found in U.S. Patent Application Publication No. 2018 / 0108137, “Instance-Level Semantic Segmentation System,” filed on October 18, 2016. Additionally or alternatively, the object mask neural network may utilize techniques and methods found in U.S. Patent No. 9,129,191, “Semantic Object Selection,” issued on September 8, 2015, each of which is incorporated herein by reference in its entirety.
[0110] return Figure 4, in act 408, if the object selection system 106 determines that the query object does not correspond to an expert network, the object selection system 106 may make additional determinations regarding the query object. As shown, the object selection pipeline 400 includes an act 416 of determining whether the query object is a foreground object. If the object selection system 106 determines that the query object is a foreground object, the object selection system 106 may make additional determinations regarding the query object (e.g., act 420). Otherwise, if the query object is not a foreground object (i.e., a background object), the object selection system 106 may detect the query object using a concept-based object detection technique as described in conjunction with act 418.
[0111] In various embodiments, the object selection system 106 may determine whether the query object is a foreground object based on correlating the query object, object type, or object class with known foreground objects, object types, and object classes (e.g., action 416). For example, the object selection system 106 may compare the object class of the query object to a list of known foreground object classes. If a match or correlation is found, the object selection system 106 may classify the query object as a foreground object. In practice, if the foreground object relevance score meets (e.g., meets or exceeds) a foreground object relevance threshold (e.g., 80% confidence that it is a foreground object), the object selection system 106 may follow the object selection pipeline 400 to action 420.
[0112] In additional or alternative embodiments, the object selection system 106 may compare the query object to known background objects and concepts to determine whether the query object is a background object, a concept-based object, or a high-level description of an object. For example, the object selection system 106 may analyze the query object to determine whether the query object is related to (e.g., matches, synonyms, or similar to) a known concept (e.g., clothes, people, old, woman, holding, happy, or healthy). If the relevance (e.g., relevance score) of the query object does not meet the background object threshold, the object selection system 106 may classify the query object as a foreground object.
[0113] As described above, in act 416, if the object selection system 106 determines that the query object is not a foreground object, the object selection system 106 can utilize a concept detection network to detect the query object. For illustration, act 418 includes the object selection system 106 utilizing a concept detection network (i.e., a concept-based object detection neural network) to detect the query object. As described below, the concept detection network can include an object detection neural network that is trained to detect objects based on concepts, background scenery, and other high-level descriptions of objects. Figure 8-9B Additional details regarding act 418 are provided.
[0114] like Figure 4 As shown in , the object selection system 106 provides the query object detected by the concept detection network to the object mask neural network to generate an object mask of the detected query object (i.e., action 414). As described above, the object mask neural network can generate a segmentation of the detected query object, which the object selection system 106 uses to select the detected query object.
[0115] In some embodiments, there may be overlap between object concepts and foreground objects. For example, object selection system 106 may train a concept detection network based on one or more object concepts including foreground objects. Thus, in these embodiments, object selection system 106 may determine that the query object may be both an object concept (i.e., a background object) and a foreground object.
[0116] In these embodiments, the object selection system 106 may utilize a concept detection network, an object category detection network (described below), or both. For example, the object selection system 106 may utilize two object detection neural networks and select the network that better detects the query object. Alternatively, the object selection system 106 may select a network that has a stronger correspondence with the query object, and in some cases, the other network may be used to verify the detection of the object. In some embodiments, the object selection system 106 may utilize two networks and combine the detection results (e.g., generate a weighted aggregate).
[0117] If the object selection system 106 determines in act 416 that the query object is a foreground object, the object selection system 106 may perform additional determinations. To illustrate, the object selection pipeline 400 includes an act 420 of the object selection system 106 determining whether the query object is part of a known object category. For example, in various embodiments, the object selection system 106 utilizes an object detection neural network that is trained to detect objects belonging to multiple known object categories. Therefore, the object selection system 106 may compare the object category of the query object to the known object categories to determine whether the query object is part of a known object category. If so, the object selection system 106 may proceed to act 422 of the object selection pipeline 400. Otherwise, the object selection system 106 may proceed to act 424 of the object selection pipeline 400, which is further described below.
[0118] As just mentioned, the object selection pipeline 400 includes an act 422 in which the object selection system 106 detects the query object using the known object category network. The known object categories may include object categories that are marked in training images and used to train the object detection neural network. Therefore, based on detecting that the query object is associated with the known object category, the object selection system 106 may utilize the known object category detection neural network to optimally detect the query object. In addition, as described above, the object selection system 106 may provide the detected object to the object mask neural network to generate an object mask (e.g., act 414). Figure 10-11D Additional details regarding action 422 are provided.
[0119] Thus far, in the object selection pipeline 400, the object selection system 106 has been able to detect query objects corresponding to known object categories. Although the list of known object categories is typically in the tens of thousands, the object selection system 106 can automatically detect a much larger number of objects. Thus, the object selection system 106 can further expand the object recognition capabilities by detecting objects of unknown categories. In fact, the object selection system 106 can add additional layers to the object selection pipeline 400 to facilitate the detection of unknown objects.
[0120] To illustrate, if the object selection system 106 determines in action 420 that the query object is not part of a known object category, the object selection system 106 may use a series of additional neural networks and models to detect the query object. In many embodiments, the series of additional neural networks and models are included within the unknown object category detection neural network. As shown, the object selection pipeline 400 includes an action 424 in which the object selection system 106 utilizes a region proposal network to detect potential objects (i.e., candidate objects) in the image. For example, the region proposal network can detect any detectable object in the image. In particular, the region proposal network generates a bounding box around each potential object detected in the image. An example region proposal network is "Faster r-cnn: Towards real-time object detection with region proposal networks" by S. Ren, K. He, R. Girshick, and J. Sun, 2015, NIPS, the entire contents of which are incorporated herein by reference.
[0121] In addition, the object selection pipeline 400 includes an action 426 in which the object selection system 106 detects the query object using the concept embedding network. For example, in one or more embodiments, the object selection system 106 uses the concept embedding network to filter potential objects and detect the query object. In addition, as described above, the object selection system 106 can provide the detected object to the object mask neural network to generate an object mask (e.g., action 414). Figure 12-13D Additional details of act 424 and act 426 are provided.
[0122] like Figure 4 As shown in , the object selection pipeline 400 includes an optional action 428 of identifying a particular instance of the detected query object from among the multiple instances of the detected query object. For example, as follows in conjunction with Figure 14-18 As described, the object selection system 106 may determine the specific instance of the query object that is detected based on one or more object properties of the query object indicated in the query string.
[0123] Furthermore, the object selection pipeline 400 includes an action 430 in which the object selection system 106 provides the detected query object within the image to the user. For example, the object selection system 106 can provide the selected query object (or an instance of the selected query object) to a client device associated with the user. For example, the object selection system 106 can automatically select the query object within the image for the user in the above-mentioned image editing application.
[0124] Figure 4 and the corresponding figures identified describe various embodiments of selecting an object in an image. Figure 4 The actions and algorithms described and the diagrams subsequently identified (e.g., Figure 5-Figure 18 ) provides an example structure and architecture for performing steps for detecting a query object using an object detection neural network selected from a plurality of object detection neural networks. In practice, in combination Figure 4 , Figure 5 , Figure 6 , Figure 8 , Fig.10 , Fig.12 , Fig.14 and Fig.16 The depicted flowcharts provide structure for one or more algorithms corresponding to the object selection system 106 .
[0125] Now, moving on to the next figure, Figure 5 A flowchart of analyzing a query string to identify a query object according to one or more embodiments is illustrated. As described above, Figure 5 Corresponding to the above combination Figure 4 The described object selects action 406 of pipeline 400. In particular, Figure 5 Various actions 502 - 508 are included that provide additional details regarding action 406 of object selection pipeline 400 .
[0126] As shown, act 406 may include act 502 in which object selection system 106 parses the query string to identify one or more input words. For example, in various embodiments, object selection system 106 separates the query string into individual words. For example, object selection system 106 assigns each word in the query string to an element of a vector corresponding to the query string. Additionally, as described above, in some embodiments, the query string consists of a single word.
[0127] As also shown, action 406 may include action 504 of the object selection system 106 utilizing natural language processing to determine a word category for each of the one or more input words. In practice, upon parsing out each word in the query string, the object selection system 106 may classify each input word in the query string and assign it to a word category. In various embodiments, the word category includes a part of speech (e.g., noun, proper noun, verb, article, adjective, adverb, pronoun, preposition, or conjunction).
[0128] In one or more embodiments, the object selection system 106 utilizes a machine learning model trained based on natural language processing to identify a word category for each word in the query string. For example, the object selection system 106 trains and / or utilizes a long short-term memory (LSTM) neural network to identify a word category for each of the words in the query string. In alternative embodiments, the object selection system 106 utilizes other methods to determine the word category of the input words in the query string.
[0129] As shown, action 406 may include action 506 of the object selection system 106 identifying a noun indicating a query object. More specifically, the object selection system 106 may identify the nouns in the query string while assigning a word category to each of the words. First, the nouns in the query string correspond to the query object. Typically, when the query string includes a single word, the word is a noun corresponding to the query object.
[0130] In some cases, the query string includes multiple nouns. In these cases, the object selection system 106 can determine whether the two nouns are connected to indicate a single query object (e.g., "Germans" and "Chopin"). In an alternative embodiment, the object selection system 106 can determine whether the query string includes multiple query objects for the object selection system 106 to automatically select.
[0131] Additionally, action 406 may include an optional action 508 in which the object selection system 106 identifies adjectives that indicate object properties of the query object. Similar to identifying nouns in a query string, the object selection system 106 may also identify adjectives in the query string as object properties. Typically, a query string having multiple words will include a query object and one or more adjectives that specify specific properties of the query object. As described below, an object property may specify the color, size, position, shape, material, location, rigidity, or expression of the query object.
[0132] In one or more embodiments, the object selection system 106 may also identify adverbs or other parts of speech (i.e., word categories) in the query string. In some embodiments, the object selection system 106 may assign adverbs as object attributes of the query object. Additionally, in one or more embodiments, the object selection system 106 may group adverbs with corresponding adjectives (e.g., "very tall"). In alternative embodiments, the object selection system 106 may ignore words that are not nouns or adjectives.
[0133] Similarly, in one or more embodiments, the object selection system 106 can filter out words of the query string, such as articles (e.g., "the," "a," "an"). In some embodiments, the object selection system 106 can identify conjunctions that indicate the possibility of requesting multiple query objects and / or providing multiple object properties. Similarly, in some embodiments, the object selection system 106 identifies negation words, such as "not," "except," or "without," which can indicate the exclusion of specific objects when selecting query objects.
[0134] Steering Figure 6 , which illustrates a flow chart of identifying an expert network based on a query object and detecting a query object according to one or more embodiments. As described above, Figure 6 Can correspond to the above combination Figure 4 The described object selection pipeline 400 includes actions 410 and 412. In particular, Figure 6 Various actions 602 - 608 are included that provide additional details regarding actions 410 and 412 of the object selection pipeline 400 .
[0135] As shown, act 410 of identifying an expert network based on the query object may include act 602 of object selection system 106 comparing the query object to a plurality of expert object detection neural networks to determine a match. As described above, an expert object detection neural network (or simply "expert network") may be an object detection neural network that is trained to detect a specific and only specific object type or class of objects. Because there are a limited number of expert networks, object selection system 106 may quickly determine whether the query object is detectable by one of the expert networks. Examples of expert object detection neural networks include, but are not limited to, expert networks that detect sky, body and skin, human faces, or waterfalls.
[0136] Action 410 may also include action 604 of object selection system 106 selecting an expert object detection neural network trained to identify the query object. In the example above, if the query object is identified as a man's face, object selection system 106 selects an expert network corresponding to the query object to best detect the man's face within the image.
[0137] In one or more embodiments, the object selection system 106 can analyze previous query strings to determine which objects are most frequently requested. Based on this data, the object selection system 106 can create, obtain, and / or train additional expert networks to more accurately detect frequently requested objects. As more expert networks are trained, the object selection system 106 can add them to the object selection pipeline 400. In this way, if a user subsequently requests to select a query object corresponding to a newly added expert network, the object selection system can identify and select the expert network without modifying, retraining, or reconfiguring the object selection pipeline 400.
[0138] Figure 6 An action 412 of utilizing the identified expert network to detect the query object may also be included. As shown, action 412 includes an action 606 of the object selection system 106 utilizing the selected expert object detection neural network to analyze the image to detect the query object. For example, the object selection system 106 provides the image to the selected expert network. Then, utilizing the selected expert network, the object selection system 106 analyzes the image to detect the query object within the image.
[0139] Additionally, action 412 may include action 608 for the object selection system 106 to generate an approximate bounding box indicating the detected query object using the selected expert object detection neural network. For example, in one or more embodiments, the selected expert network generates a bounding box when the query object is detected. In additional embodiments, the object selection system 106 may also annotate the bounding box with a label, such as a name of the detected query object, a location of the bounding box, and / or dimensions of the bounding box.
[0140] In one or more embodiments, act 412 may include detecting multiple instances of a query object in the image. For example, while analyzing the image using the selected expert object detection neural network (e.g., act 606), object selection system 106 may detect more than one instance of the query object. Furthermore, for each of the detected instances of the query object, object selection system 106 may generate a corresponding bounding box (e.g., act 608). In these embodiments, object selection system 106 may provide each of the bounding boxes to an object mask network (e.g., act 608). Figure 4 Action 414 in ).
[0141] As described above, the object selection system 106 can utilize an expert network to detect a particular query object within an image. As also mentioned, one example of an expert network includes an object detection neural network trained to detect the sky in an image. For example, the object selection system 106 utilizes the techniques, methods, and / or expert networks described in Yi-Hsuan Tsai et al., “Sky is Not the Limit: Semantic-Aware Sky Replacement,” SIGGRAPH, 2016, the entire contents of which are incorporated herein by reference.
[0142] Figure 7A-7B FIG. 7 is a graphical user interface 702 illustrating the use of an expert network to detect a query object according to one or more embodiments. For ease of illustration, Figure 7A-7B The 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 with the object selection system 106 .
[0143] like Fig. 7A As shown in , graphical user interface 702 includes image 704 within an image editing application. Image 704 shows a baseball field. The image editing application also includes various tools (e.g., a side toolbar) with selection options and other image editing options. In addition, graphical user interface 702 includes object selection interface 706, as described above in conjunction with Figure 3A As described, the user provides the query string "sky".
[0144] When a user requests that the sky (i.e., the query string) be automatically selected from image 704, object selection system 106 may utilize object selection pipeline 400 to determine how to best satisfy the request. For example, object selection system 106 may determine that the query object in the query string is "sky." Further, object selection system 106 may determine that a sky expert network has been specifically trained to detect the query object. Therefore, object selection system 106 selects and utilizes a sky expert network (e.g., a sky object detection neural network) to detect and select sky 708 (e.g., actions 410 and 412 of object selection pipeline 400). As shown by Figure 7B As shown, the object selection system 106 may generate a mask (eg, darker pixels) to select the sky 708 .
[0145] Steering Figure 8 , which illustrates a flow chart of using a concept detection network to detect a query object based on a concept according to one or more embodiments. As described above, Figure 8 Corresponding to the above combination Figure 4 The object selection pipeline 400 is described as action 418. In particular, Figure 8 Various actions 802 - 810 are included that provide additional details regarding action 418 of object selection pipeline 400 .
[0146] As shown, act 414 of detecting a query object using a concept detection neural network (e.g., a concept mask model) may include act 802 of analyzing an image using a concept-based object detection neural network (or simply "concept detection neural network") by the object selection system 106. For example, the object selection system 106 may provide the image to a concept detection neural network that is trained to detect concept-based objects (e.g., concept objects). For example, the object selection system 106 may utilize a concept-based training data set that enables the concept detection neural network to detect thousands (e.g., 18,000) of different concepts. As described above, concept-based objects may include high-level category descriptions of objects that typically go beyond general category category descriptions (background object categories). Typically, concepts correspond to salient regions in an image (e.g., mountains, roads, water, sand, hills).
[0147] Additionally, act 418 can include act 804 of object selection system 106 analyzing the query object using a concept-based object detection neural network. For example, object selection system 106 can provide the query string and / or query object to a concept detection neural network to assist the concept detection neural network in detecting the query object.
[0148] In addition, as shown, action 418 can include an action 806 in which the object selection system 106 utilizes a concept detection neural network to detect a query object in the image. In particular, because the concept detection neural network is trained to detect concepts that include the query object, the concept detection neural network can identify the query object within the image. An example of a concept-based object detection neural network is further described in Yufei Wang et al., "Concept Mask: Large-Scale Segmentation from Semantic Concepts," European Conference on Computer Vision (ECCV), August 18, 2018, which is incorporated herein by reference in its entirety.
[0149] As shown, action 418 may include action 808 of the object selection system 106 generating a boundary, using a concept detection neural network, that indicates the detected query object. For example, upon detecting the query object, the concept detection neural network generates a bounding box that surrounds the detected query object. As described above, the approximate boundary (e.g., a bounding box) may approximately cover the detected query object and may take the form of any shape, such as a square, rectangle, circle, ellipse, a rough outline or the detected query object, a precise outline, or another shape. In additional embodiments, the object selection system 106 further annotates the bounding box with a label, such as a name of a background object category for the detected query object, a location of the bounding box, or a dimension of the bounding box.
[0150] In various embodiments, the object selection system 106 performs actions 806 and 808 in a different order. For example, the object selection system 106 can utilize a concept detection neural network to first detect objects or regions in the image and generate a bounding box for each region. The object selection system 106 and / or the concept detection neural network can then apply bounding box suppression (described below) to narrow down potential regions that include the query object. For example, the object selection system 106 utilizes an intersection over union (IoU) score to perform bounding box suppression.
[0151] As described above, the object selection system 106 may provide the detected query object (e.g., an approximate boundary region indicating the detected query object) to an object mask network to generate an object mask of the detected query object (e.g., Figure 44. In alternative embodiments, the object selection system 106 utilizes the concept detection neural network itself to generate an object mask (i.e., a concept mask) for the detected query object (e.g., to segment the detected query object for selection). In these embodiments, the object selection system 106 jumps to either action 428 or action 430 of the object selection pipeline 400, as described above.
[0152] In one or more embodiments, the image includes multiple instances of the query object. For example, the concept-based query object is split by a foreground object. In these embodiments, the object selection system 106 can generate a single boundary that encompasses the multiple instances of the detected query object. As described above, the object selection system 106 can provide the boundary to the object mask network.
[0153] In an alternative embodiment, object selection system 106 generates separate bounding boxes for each detected instance of the query object. To illustrate, action 418 may include optional action 810 in which object selection system 106 segments the detected query object into multiple instances. For example, a concept detection neural network generates separate bounding boxes and / or concept masks for each detected instance of the query object.
[0154] Additionally, in some embodiments, the object selection system 106 utilizes an additional neural network or additional neural network layers in the concept detection neural network to assist in object segmentation. For example, the object selection system 106 utilizes an instance segmentation neural network to predict individual bounding boxes and / or instance object masks. Figure 4 Description) provides additional details about instance segmentation neural networks.
[0155] As described above, the object selection system 106 can train a concept detection neural network to detect background object categories. In additional embodiments, the object selection system 106 also trains a concept detection neural network to detect additional object categories (e.g., more specific objects), such as foreground objects and / or parts of objects. For example, a concept detection neural network can detect a person or a part of a person (e.g., a face, a head, an arm, a leg). In some embodiments, the object selection system 106 utilizes a concept detection neural network to verify (e.g., double check) detection of a query object detected using another object detection neural network (such as a known object category detection neural network) to ensure that the query object is correctly detected.
[0156] Figure 9A-9B Two graphical user interfaces 902a, 902b are illustrated, which illustrate the use of a concept-based object detection neural network to detect concept-based query objects according to one or more embodiments. For ease of illustration, Figure 9A-9B The 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 using the object selection system 106 .
[0157] like Fig. 9A As shown in , graphical user interface 902a includes image 904 within an image editing application. Image 904 shows a boat on a lake and a mountain scenery in the background. The image editing application also includes various tools (e.g., a side toolbar) with image selection and editing options. In addition, graphical user interface 902a includes object selection interface 906a, as described above in conjunction with Figure 3A As described, the user provides a query string of "mountain".
[0158] When a user provides a query string, the object selection system 106 can utilize the object selection pipeline 400 to determine how to best detect the requested object. For example, the object selection system 106 can determine that the query object in the query string is "mountain". The object selection system 106 can determine that no expert network has been trained to detect this object class. In addition, the object selection system 106 can determine that the query object of "mountain" corresponds to a background object class, for which a concept-based object detection neural network has been trained. Therefore, the object selection system 106 can select and utilize the concept-based object detection neural network to detect and select the mountain 908 (e.g., action 418 of the object selection pipeline 400).
[0159] Similarly, Fig. 9B The object selection system 106 is shown automatically detecting a query object of “water” from the image 904. In particular, the object selection system 106 can perform a similar determination that a concept-based object detection neural network can best detect the query object of “water.” As shown, in response to a user providing a query string of “water” into the object selection interface 906 b, the graphical user interface 902 b includes the image 904 within the image editing application with water automatically selected (e.g., via a mask).
[0160] Steering Fig.10 , which illustrates a flow chart of detecting a query object using a known object category detection network according to one or more embodiments. As described above, Fig.10 The object selection system 106 detects the query object using the known object category network 422. In particular, Fig.10 Various actions 1002 - 1010 are included that provide additional details regarding action 422 of object selection pipeline 400 .
[0161] As described above, based on determining that the query object does not correspond to the expert network, and that the query object does not correspond to the concept-based object network, the object selection system 106 reaches action 422 of utilizing the known object category detection neural network. In addition, the object selection system 106 can determine that the query object is a foreground object associated with a known object category. In fact, the object selection system 106 can determine that the query object is associated with an object category used to train the known object category detection neural network.
[0162] As shown, action 422 includes action 1002 of object selection system 106 utilizing an object proposal neural network to detect known objects in an image. In various embodiments, the object proposal neural network is part of a known object category detection neural network or model. For example, the object proposal neural network forms one or more layers of a known object category detection neural network. In alternative embodiments, the object proposal neural network is separate from the known object category detection neural network, but is combined with the known object category detection neural network to form a known object category detection model.
[0163] Typically, the object selection system 106 can train an object proposal neural network to detect objects of known object categories. For example, in various embodiments, the object selection system 106 trains a proposal neural network to recognize hundreds of object categories (e.g., 600 categories). In practice, the object selection system 106 can train an object detection network to analyze an image and determine one or more known objects (e.g., the proposed query object) included in the image. In some embodiments, the object proposal neural network is a CNN (e.g., R-CNN or Faster R-CNN).
[0164] Additionally, in various embodiments, the object selection system 106 generates bounding boxes for each of the known objects using an object proposal neural network, as shown in action 1004. For example, the object proposal neural network can create an approximate boundary around each detected known object. In some embodiments, the object proposal neural network processes tiny portions (e.g., sub-portions) of an image to identify smaller objects within the image that cannot be detected using whole image object detection methods. Thus, the object proposal neural network can generate a plurality of bounding boxes, each of which indicates an object in the image that may be a query object (e.g., a candidate object).
[0165] In various embodiments, the known object category detection neural network utilizes boundary suppression to reduce the number of bounding boxes. For example, the known object category detection neural network may apply one or more criteria or heuristics to suppress large, redundant bounding boxes that include multiple smaller boxes. For example, the known object category detection neural network and / or the object selection system 106 may utilize an intersection over union (IoU) score to perform bounding box suppression. As an example of boundary suppression, the known object category detection neural network may suppress (e.g., remove) a large box around two dogs that includes two smaller bounding boxes (e.g., one bounding box for each dog) because the large bounding box is redundant. In some embodiments, this simplification process avoids the object selection system 106 from generating overlapping object masks.
[0166] In addition, as shown in action 1006, the object selection system 106 can utilize a known object category detection neural network (e.g., an object classification neural network) to label each of the known objects with an object category. For example, the object selection system 106 can label each bounding box with a prediction of one or more known objects identified within the bounding box. In some embodiments, the labels include a known object detection confidence score (e.g., a prediction probability score) for each of the object labels predicted for the bounding box. In some embodiments, the known object category detection neural network can generate a list of detected known objects and their corresponding labels to indicate what objects have been detected in the image.
[0167] like Fig.10 As shown, action 422 may include an optional action 1008 in which the object selection system 106 filters out object category labels that do not correspond to the query object. For example, in one or more embodiments, the object selection system 106 may eliminate any bounding boxes having one or more labels with known object categories that do not match the query object. In general, the process may de-detect any object that does not match the query object.
[0168] Additionally or alternatively, the object selection system 106 can determine known objects that match the query object, as shown in action 1010. In particular, the object selection system 106 can label each match in the detected known objects (before or after filtering) to identify which detected known object matches the query object. In some embodiments, the object selection system 106 determines that multiple known detected objects match the query object. In other words, as described above, the image includes multiple instances of the query object.
[0169] The known object category detection neural network may correspond to one or more deep neural networks or models that detect objects of known object categories. For example, the known object category detection neural network (including the object proposal neural network) utilizes the techniques and methods found in U.S. Patent Application No. 16 / 388,115, filed on April 8, 2019, “Robust Training of Large-Scale Object Detectors with Noisy Data,” the entire contents of which are incorporated herein by reference in their entirety. In addition, the object selection system 106 may additionally or alternatively utilize other object detection models or techniques to detect objects of known categories.
[0170] Figures 11A-11D A graphical user interface 1102 is illustrated that illustrates the object selection system 106 utilizing a known object category detection neural network to detect a query object in accordance with one or more embodiments. For ease of illustration, Figures 11A-11D The 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 using the object selection system 106 .
[0171] like Fig.11A As shown in FIG. 1 , graphical user interface 1102 includes image 1104 within an image editing application. Image 1104 shows a woman with a turtle in front of a row of trees. As also shown, the image editing application also includes various tools (e.g., a side toolbar) with image selection and editing options. In addition, graphical user interface 1102 includes object selection interface 1106, as described above in conjunction with Figure 3A As described, the user provided a query string of "turtle".
[0172] As previously described, when a user provides a query string, the object selection system 106 can utilize the object selection pipeline 400 to determine how to best detect the requested object. In this illustrative example, the object selection system 106 can determine that the query object in the query string is "turtle." First, the object selection system 106 can determine that no expert network has been trained to detect the object class of the query object. Additionally, the object selection system 106 can determine that the query object of "turtle" does not correspond to a background object class for which a concept-based object detection neural network has been trained. Furthermore, the object selection system 106 can determine that the query object corresponds to a known object class used in training a known object class detection neural network. Therefore, the object selection system 106 can select and utilize a known object class detection neural network (e.g., action 422 of the object selection pipeline 400).
[0173] like Fig. 11B , object selection system 106 can utilize a known object category detection neural network to identify known objects 1108a-1108f within image 1104. In particular, the known object category detection neural network detects known objects within image 1104, generates bounding boxes around the objects, and labels each of the bounding boxes with a label. In some embodiments, the known object category detection neural network may include additional data associated with each detected known object, such as a confidence score and secondary known object predictions. As shown, the known object category detection neural network can detect known objects of trees 1108a-1108d, woman 1108e, and turtle 1108f.
[0174] As described above, in some embodiments, the known object category detection neural network can filter out detected known objects that do not match the query object. For example, the known object category detection neural network can discard detected known objects corresponding to trees 1108a-1108d and woman 1108e. Additionally or alternatively, the known object category detection neural network can identify detected known objects that have the same object category as the query object. For example, the known object category detection neural network determines that detected turtle 1108f matches the object category query object of "turtle". As shown, Fig. 11C The turtle is indicated as the detected query object 1110.
[0175] When the detected query object 1110 is identified, the object selection system 106 can select the object for the user. For illustration, Fig.11D The object selection system 106 is shown automatically selecting the detected known object (i.e., turtle). In particular, as described above, the object selection system 106 can provide the detected query object 1110 to the object mask neural network and / or generate an object mask for the detected query object 1110, thereby producing the selected query object 1112.
[0176] In addition, if Fig.11D As shown in , the object selection system 106 can provide a selected query object 1112 in response to selecting a query (e.g., a query string). In practice, the object selection system 106 can automatically select a turtle for the user within the image editing application by providing a mask of the turtle. Note that Fig. 11B and Fig. 11C The object selection system 106 is shown to detect the query object using a known object category detection neural network. In many embodiments, the object selection system 106 does not display intermediate actions to the user. Instead, the object selection system 106 appears to automatically detect and accurately select the query object in response to the user's query string request. In other words, the graphical user interface 1102 is automatically displayed to the user. Fig.11A Jump to Fig.11D In an alternative embodiment, the object selection system 106 displays one or more intermediate actions to the user. For example, the object selection system 106 displays a bounding box for each detected object using a label, such as Fig. 11C as shown in .
[0177] Steering Fig.12 , which illustrates a flow chart of using multiple networks to detect query objects corresponding to unknown object categories according to one or more embodiments. As described above, Fig.12 Corresponding to the above combination Figure 4 The described object selection pipeline 400 is an action 424 and an action 426. In particular, Fig.12 Various actions 1202-1214 are included that provide additional details about actions 424 and 426 of the object selection pipeline 400. As described above, in various embodiments, actions 424 and 426 are part of an unknown object class detection neural network.
[0178] As shown, the action 424 of detecting potential objects (i.e., candidate objects) using a region proposal network may include the action 1202 of the object selection system 106 detecting potential objects in the image using an object proposal neural network. In one or more embodiments, the object proposal neural network corresponds to the above combined Fig.10 and the object proposal neural network described in action 1002. For example, in some instances, the object proposal neural network forms the first part of a known object category detection neural network. In other instances, the object proposal neural network is a separate neural network for identifying both known and unknown object categories.
[0179] As described above in connection with act 1002, the object proposal neural network may identify objects having known object categories. With respect to act 1202, the object selection system 106 may utilize the object proposal neural network to identify potential objects for which no known object categories have been identified. For example, the object proposal neural network may utilize similar techniques to identify potential objects within an image, but without attempting to predict, identify, or label the objects.
[0180] In an alternative embodiment, the object proposal neural network is separate from the object proposal neural network described above. For example, the object proposal neural network in act 1202 is a region proposal neural network that selects sub-regions of the image that encompass potential objects. In practice, the object proposal neural network is trained to identify and indicate portions of the image (i.e., regions) that include potential objects.
[0181] As shown in action 1204, when potential objects are detected, the object proposal neural network may generate bounding boxes (i.e., approximate boundaries) for each of the potential objects. Unlike the object detection neural network described in conjunction with action 1002, the object proposal neural network in action 1202 may not label proposal boxes because the region proposal neural network is detecting unknown objects. At this point, each bounding box includes potential candidate objects that may correspond to the query object.
[0182] Upon detecting potential objects within the image, object selection system 106 may determine whether any of the potential objects correspond to the query object. To illustrate, act 426 of detecting the query object using a concept embedding network may include act 1206 of object selection system 106 determining a vector for each potential object. For example, object selection system 106 may utilize a concept embedding neural network to generate an image vector for each portion (e.g., a bounding box) of the image that includes a potential object.
[0183] As also shown, action 426 may include action 1208 of determining a vector for the query object. In particular, the object selection system 106 may utilize a concept embedding neural network to generate a word vector for the query object from the query string. In one or more embodiments, the concept embedding neural network may generate an image vector and a word vector in the same vector space.
[0184] As described above, the object selection system 106 can train a concept embedding neural network to map images and text representing the same object, object category, and / or object-based concept to the same location in a vector space (e.g., an embedded space). To illustrate, in some embodiments, the object selection system 106 can train a concept embedding neural network using training data that includes approximately 20,000 object categories and corresponding image samples. Through training, the concept embedding neural network can generate a shared embedding vector space and learn how to generate embeddings for both potential objects (e.g., images) and query objects (e.g., text) mapped to the shared embedding vector space.
[0185] For each image of a potential object, object selection system 106 may determine a correspondence with a query object. To illustrate, action 426 may include an action 1210 in which object selection system 106 generates a relevance score by measuring the similarity between each potential object vector and the query object vector. In other words, object selection system 106 may determine which potential object embedding vector is closest to the query object embedding vector in the learned vector space. In some embodiments, object selection system 106 may rank the potential objects based on their distance from the query object in the vector space.
[0186] In addition, the object selection system 106 can generate a relevance score to indicate the similarity between each potential object and the query object. In some embodiments, the relevance score of the potential object is inversely proportional to the vector space distance between the potential object and the query object. Therefore, the smaller the vector space distance between the embeddings, the greater the relevance score. In multiple embodiments, the object selection system 106 generates a relevance score between 0-100 (e.g., an absolute score or a percentage) to indicate the similarity between the potential object and the query object.
[0187] like Fig.12 As shown in , action 426 may include optional action 1212 in which the object selection system 106 filters out potential objects having relevance scores below a similarity threshold. In some embodiments, the object selection system 106 may utilize the similarity threshold to determine which potential objects are likely to match the query object. For example, potential objects having a relevance score of less than 75% with the query object are filtered out and ignored. In some embodiments, the object selection system 106 filters out the bottom x percent of potential objects (e.g., discarding the bottom 90%) from consideration as query objects. In many instances, by filtering out potential objects having low confidence scores, the object selection system 106 may achieve object detection results similar to the known object class detection neural networks described above.
[0188] Next, the object selection system 106 may detect the query object from the potential objects. Fig.12 As shown in , action 426 may include action 1214 of object selection system 106 detecting a query object in the image based on the relevance score. In one or more embodiments, object selection system 106 may select the potential object with the highest relevance score as the detected query object. In some embodiments, object selection system 106 selects the highest number or percentage of potential objects as detected instances of the query object. In other embodiments, object selection system 106 determines that each potential object remaining after filtering (e.g., action 1212) is an instance of the detected query object, particularly where the similarity threshold is high (e.g., above 90%).
[0189] In some embodiments, the object selection system 106 may label the detected bounding box of the query object. For example, upon determining that the potential object in the image is associated with the query object, the object selection system 106 may label the detected bounding box of the query object with a label that matches the query object and / or the object class of the query object. In additional embodiments, the object selection system 106 may also label the detected bounding box of the query object with a label that indicates a relevance score for the determined potential object, which is described above.
[0190] The concept embedding neural network may correspond to one or more deep neural networks or models that map visual images and text strings to a shared embedding space. For example, the concept embedding neural network may utilize the techniques and methods found in U.S. Patent No. 10,216,766, filed on March 20, 2017, “Large-Scale Image Tagging Using Image-To-TopicEmbedding”, or those found in U.S. Patent Application No. 15,921,492, filed on March 14, 2018, “Detecting Objects Using A WeaklySupervised Model”, the entire contents of the foregoing patents and applications are incorporated herein by reference in their entirety.
[0191] Upon selecting one or more detected instances of the query object, the object selection system 106 may provide the one or more detected instances of the query object to an object mask network, as described above (e.g., action 414 of the object selection pipeline 400). Additionally, the object selection system 106 may also train a concept embedding neural network to generate an object mask from the one or more detected instances of the query object.
[0192] Figures 13A-13D A graphical user interface 1302 is illustrated that illustrates the object selection system 106 utilizing an unknown object category detection model to detect a query object corresponding to an unknown object category according to one or more embodiments. For ease of illustration, Figures 13A-13D The 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 using the object selection system 106 .
[0193] like Fig.13A As shown in , graphical user interface 1302 includes image 1304 within the image editing application. Image 1304 shows a road disappearing through a mountain pass, with a road sign on the right side of the road. As also shown, the image editing application includes various tools (e.g., a side toolbar) with selection options and other image editing options. In addition, graphical user interface 1302 includes object selection interface 1306, as described above in conjunction with Figure 3A As described, the user supplies a query string "flag".
[0194] As previously described, when a user provides a query string, the object selection system 106 can utilize the object selection pipeline 400 to determine how to best detect the requested object. In this illustrative example, the object selection system 106 can determine that the query object in the query string is "logo." For example, the object selection system 106 can determine that no expert network has been trained to detect the object class of the query object. In addition, the object selection system 106 can determine that the query object of "logo" does not correspond to a background object class for which a concept-based object detection neural network has been trained. Furthermore, the object selection system 106 can determine that the query object does not correspond to a known object class used to train a known object class detection neural network. Therefore, the object selection system 106 can select and utilize an unknown object class detection model to detect a query object corresponding to an unknown object class (e.g., actions 424 and 426 of the object selection pipeline 400).
[0195] like Fig. 13B As shown in , the object selection system 106 can utilize a region proposal neural network (e.g., an object proposal neural network) to identify potential objects 1308a-1308c (e.g., known objects and / or unknown objects) within the image 1304. Upon detecting potential objects within the image 1304, the object selection system 106 can generate bounding boxes around the objects. However, the object selection system 106 does not mark or label the bounding boxes because the contents of each box are unknown. Fig. 13B As shown in , object selection system 106 detects three potential objects 1308a - 1308c in image 1304 .
[0196] After determining the potential objects 1308a-1308c, the object selection system 106 can use the concept embedding neural network to identify the relevance score between each of the potential objects 1308a-1308c and the query object. For example, the object selection system 106 can use the concept embedding neural network to generate an embedding for each of the potential objects 1308a-1308c, as well as an embedding for the query object. Then, as described above, the object selection system 106 can compare each of the potential object embeddings with the query object embedding to determine the relevance score. Although not shown, the object selection system 106 can determine a favorable relevance score for the third potential object 1308c of the flag and the query object of "flag".
[0197] like Fig. 13C, the object selection system 106 selects the third potential object 1308c as the detected query object 1310. As described above, in some embodiments, the object selection system 106 can filter out the potential objects 1308a-1308c with low relevance scores to help select the detected query object. For example, the object selection system 106 can filter out the first potential object 1308a and the second potential object 1308b based on their relevance scores not satisfying the similarity threshold. Here, the object selection system 106 is left to select the remaining potential object (the third potential object 1308c) as the detected query object 1310. Additionally or in the alternative, the object selection system 106 can select the third potential object 1308c as the detected query object 1310 based on the third potential object 1308c having the most favorable (e.g., highest) relevance score among the potential objects 1308a-1308c.
[0198] When the query object 1310 is identified, the object selection system 106 can select the object for the user. For illustration, Fig.13D 13. The object selection system 106 is shown to automatically select the detected query object 1310. In particular, as described above, the object selection system 106 can provide the detected query object 1310 to an object mask neural network and / or generate an object mask for the detected query object 1310, thereby producing the selected query object 1312. In addition, the object selection system 106 can provide the selected query object 1312 to the user. In practice, as described above, Fig.13D As shown in , the object selection system 106 automatically selects a logo for a user within an image editing application.
[0199] It is worth noting that Fig. 13B and Fig. 13C An object selection system 106 is shown that utilizes a region proposal neural network and a concept embedding neural network to detect query objects (e.g., an unknown object category detection model). In many embodiments, the object selection system 106 does not display corresponding actions to the user. Instead, the object selection system 106 appears to automatically detect and accurately select the query object in response to the user's query string request (e.g., the graphical user interface 1302 displays the query object from the user's query string request). Fig.13A Jump to Fig.13D ).
[0200] Steering Fig.14 , which illustrates a flow chart for detecting a specific instance of a query object according to one or more embodiments. As described above, Fig.14 Corresponding to optional action 428 included in object selection pipeline 400, action 428 identifies a specific instance of the detected query object from multiple instances of the detected query object, as described above in conjunction with Figure 4described. In particular, Fig.14 Various actions 1402 - 1410 are included that provide additional details regarding action 428 of object selection pipeline 400 .
[0201] As described above, in various embodiments, object selection system 106 may detect more than one instance of a query object in an image. For example, if object selection system 106 detects a query object of "tree" in an image of a landscape or a forest, object selection system 106 may detect multiple trees. In some embodiments, object selection system 106 may generate a single aggregate selection of the detected multiple instances of the query object within the image editing application. In alternative embodiments, object selection system 106 may generate and provide a separate selection for each detected instance of the query object.
[0202] In one or more embodiments, object selection system 106 may identify and select one or more but less than all instances of the detected query object. In particular, object selection system 106 may select one or more specific instances based on a query string provided by a user (e.g., action 428). To illustrate, Fig.14 Acts 1402 - 1410 of act 428 in describe an embodiment in which the object selection system 106 selects a particular instance of a detected query object from a plurality of detected instances.
[0203] As shown, action 428 may include action 1402 in which object selection system 106 identifies two or more instances of the detected query object. As described above, object selection system 106 may detect more than one instance of the query object in an image. For example, object selection system 106 detects multiple instances of a dog, a mountain, a road, a car, a sign, or a person within various images.
[0204] Action 428 may also include action 1404 of the object selection system 106 identifying an adjective that indicates an attribute of the query object (ie, an object attribute). Figure 5 As described, in one or more embodiments, the object selection system 106 can identify one or more adjectives in the query string as object attributes. Typically, a query string having multiple words will include a query object and one or more adjectives that specify specific attributes of the query object.
[0205] As shown, action 428 may also include action 1406 in which the object selection system 106 determines a property type based on the object properties. For example, as described above, the object properties may specify the color, size, length, position, shape, pattern, material, location, depth, rigidity, protrusion, body posture, or facial expression of the query object. Thus, the object selection system 106 may analyze each object property to determine whether it corresponds to a known or unknown object property type.
[0206] In one or more embodiments, the object selection system 106 can perform a table lookup to determine whether an object property corresponds to a particular object property type. For example, the lookup table can include a list of colors listed by name and indicate that these object properties are associated with colors. Additionally, the object selection system 106 can include similar entries for other object property types, such as shape, material, and location. In an alternative embodiment, the object selection system 106 trains an object property type neural network to predict the object property type of an object property.
[0207] As shown, action 428 may include action 1408 of the object selection system 106 selecting a property detection model based on the object property type. In various embodiments, the object selection system 106 maintains multiple object property models corresponding to various object property types. Thus, upon detecting a particular object property type, the object selection system 106 may select a corresponding object property model that will accurately process the object properties in the query string to select the correct instance of the detected query object.
[0208] To illustrate, if the object attribute type is color, the object selection system 106 may select a color attribute detection neural network to identify and select the color (i.e., the object attribute) provided in the query string. Similarly, if the object attribute type is location, the object selection system 106 may select a location attribute detection model to identify and select instances of the detected query object having the location indicated in the query string. Additionally, the object selection system 106 may select additional specific attribute detection models and / or general attribute detection models based on the object attribute type.
[0209] like Fig.14 As shown in , action 428 may include action 1410 of the object selection system 106 identifying detected instances of the query object corresponding to the object attribute using the selected attribute detection model. For example, if the object attribute is "blue" (e.g., the query string is "blue balloon"), the object selection system 106 utilizes the color attribute detection neural network to identify each detected balloon in the image that is blue. Figure 16-Figure 18 Additional details on various object attribute detection neural networks and models are provided.
[0210] In various embodiments, the object selection system 106 may identify and select a particular instance based on the object mask (e.g., instance-level pixel selection). In these embodiments, the object selection system 106 may increase the accuracy of the selection by only considering pixels belonging to the object itself rather than to the background surrounding the instance (e.g., in the case of color, material, relative position, or shape). In alternative embodiments, the object selection system 106 may determine the particular instance from the boundaries corresponding to each instance of the detected query object (e.g., location, expression, depth, or size). Thus, depending on the object attribute type, the object selection system 106 utilizes the boundaries corresponding to each instance to select the particular instance before generating the respective instance object mask, which may reduce processing and reduce selection time.
[0211] Figures 15A-15D A graphical user interface for detecting a specific instance of a query object using an attribute detection neural network according to one or more embodiments is illustrated. For ease of illustration, Figures 15A-15D The 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 using the object selection system 106 .
[0212] like Fig.15A As shown in , graphical user interface 1502 includes image 1504 within an image editing application. Image 1504 shows three men talking. As also shown, the image editing application includes various tools (e.g., a side toolbar) with image selection and editing options. In addition, graphical user interface 1502 includes object selection interface 1506, as described above in conjunction with Figure 3A As described, the user provided the query string "man in stripes".
[0213] exist Fig. 15B , the object selection system 106 can detect three instances of the detected query object (i.e., “man”) in the image 1504, which are indicated by three bounding boxes 1508a-1508c. For example, after the user receives the query string from the object selection interface 1506, the object selection system 106 can utilize the object selection pipeline 400 to utilize one or more object detection neural networks to detect multiple instances of the detected query object, as described above.
[0214] In addition, the object selection system 106 may perform instance segmentation on each of the detected instances of the query object, such as Fig. 15C For example, the object selection system 106 utilizes an object mask neural network (e.g., Figure 44) in the object selection pipeline 400 to generate a separate object mask for each of the detected men in the image. Fig. 15C As shown in FIG. 1 , the graphical user interface 1502 includes a first object mask 1510 a , a second object mask 1510 b , and a third object mask 1510 c .
[0215] Additionally, the object selection system 106 can detect that the query string includes an object attribute (i.e., "stripes"). For example, the object selection system 106 can parse the query string to determine an adjective that corresponds to the object attribute of the query object. Additionally, the object selection system 106 can determine an object attribute type (e.g., clothing pattern) for the object attribute.
[0216] In various embodiments, based on the object attributes and / or object attribute types, the object selection system 106 may select an attribute detection neural network or model to detect instances that best correspond to the object attributes requested by the user. For example, the object selection system 106 may detect a pattern attribute detection neural network to identify each of the instances of wearing stripes. Fig.15D As shown in , the object selection system can deselect the first object mask 1510a and the third object mask 1510c because these object masks (i.e., the set of pixels included in each object mask) do not include the object attribute of the stripe. Therefore, the object selection system 106 returns the selected specific query object 1512 to the user within the image editing application.
[0217] It is worth noting that Fig. 15B and Fig. 15C The object selection system 106 is shown utilizing an attribute detection neural network to select a specific instance of a detected query object. In many embodiments, the object selection system 106 does not display a corresponding action to the user. Instead, the object selection system 106 appears to automatically detect and accurately select a specific query object in response to the user's query string request (e.g., the graphical user interface 1502 displays the query object from the user's query string request). Fig.15A Jump to Fig.15D ). In addition, as described above, in some embodiments, the object selection system 106 utilizes three bounding boxes 1508a-1508c ( Fig. 15B ), in conjunction with the attribute detection neural network, to select a specific instance of the detected query object. Then, when selecting a specific instance, the object selection system 106 generates an object mask only for the selected specific query object.
[0218] Steering Fig.16 , which illustrates a flow chart for detecting a specific instance of a query object based on object attributes according to one or more embodiments. As shown and described above, Fig.16 Expanding on the above Fig.14Described actions 1408 and 1410, Fig.14 is itself an extension of action 428 of the object selection pipeline 400. As also shown, Fig.16 Includes actions 1602-1606, 1612-1616 and 1622-1626.
[0219] More specifically, actions 1408 and 1410 may include multiple action sets. Each action set corresponds to a different attribute detection model. For example, actions 1602-1606 correspond to a color attribute detection neural network. Actions 1612-1616 correspond to a location attribute determination model. Actions 1622-1626 correspond to other object attribute detection models.
[0220] As described above, action 1408 corresponds to the object selection system 106 selecting an attribute detection model based on the object attribute type. More specifically, in various embodiments, the object selection system 106 may detect multiple instances of the detected query object indicated in the query string. Additionally, the object selection system 106 determines that the query string includes one or more adjectives that specify a particular query object instance. To select the particular query object instance, the object selection system 106 may utilize one of the attribute detection models that are trained or created to identify instances based on the object attribute type.
[0221] To illustrate, in one or more embodiments, action 1408 may include action 1602 in which the object selection system 106 determines that the attribute type corresponds to a color. For example, the object selection system 106 analyzes the object attributes (i.e., adjectives) within the query string to identify that the user is requesting selection of an instance of the detected query object within the image that has a particular color. In some embodiments, the object selection system 106 determines that the object attribute is a color based on matching the object attribute with the name or description of a known color. In various embodiments, the object selection system 106 also detects that the one or more object attributes further specify a hue, shade, opacity, brightness, saturation, temperature, and / or color (e.g., light brown, soft yellow, green, dark purple, peach, gray-blue, or burnt orange) of the color.
[0222] Based on detecting that the object attribute is color, the object selection system 106 can select a color attribute detection neural network, as shown in action 1604. For example, the object selection system 106 selects a color attribute detection neural network from a number of various attribute detection neural networks and models.
[0223] As shown, the act 1410 of utilizing the selected attribute detection model to identify a specific instance of the detected query object corresponding to the object attribute may include an act 1606 of the object selection system 106 utilizing the color attribute detection neural network and the color indicated in the query string (e.g., the color object attribute) to identify the specific instance of the detected query object. In practice, the object selection system 106 may utilize the color attribute detection neural network to determine the specific instance from the provided color and multiple instances of the detected query object.
[0224] More specifically, in one or more embodiments, the object selection system 106 utilizes a color attribute detection neural network to convert or map a color into a mathematical representation (e.g., a color embedding vector), such as a point or region in a color space (e.g., a vector space). Additionally, the color attribute detection neural network can generate similar embeddings for pixels in a given instance of a detected query object. Furthermore, the color attribute detection neural network can compare (i.e., measured using cosine similarity) the distance between a color object attribute and a given instance to determine which instance or instances correspond to the color object attribute.
[0225] In one or more embodiments, the color attribute detection neural network generates a color embedding for all pixels of a given instance. In some embodiments, the color attribute detection neural network generates a color embedding for a subset of pixels of a given instance. Since many adjacent pixels in an image share the same color attribute, the object selection system 106 can reduce computational costs by generating a color embedding for a selected group of pixels in a given instance.
[0226] In some examples, the object selection system 106 may determine whether a pixel of a given instance is a "valid" pixel. In many embodiments, a pixel is valid if the pixel color is close (e.g., within a predetermined vector space distance) to a query color (i.e., a color object attribute). Additionally, in some embodiments, the object selection system 106 may determine whether a threshold percentage, a threshold fraction, and / or a threshold number of pixels of a given instance are valid. For example, if more than half of the pixels of a given instance are invalid (e.g., do not match the query color), the object selection system 106 filters (e.g., discards) the given instance from consideration as a particular instance.
[0227] Similarly, if the object selection system 106 determines that the ratio of valid pixels of a given instance satisfies (e.g., reaches 10% or above 10%), the object selection system 106 may indicate the given instance as a specific instance. In fact, in instances where any detected instance of the query object has a ratio of valid pixels above a predefined threshold, the object selection system 106 may maintain the selection of multiple instances.
[0228] As previously described, in some embodiments, the object selection system 106 can identify a particular instance based on the object properties and the boundaries of the detected instance of the query object. In other embodiments, the object selection system 106 utilizes a mask of the instance. To a large extent, with respect to determining color matches, the object selection system 106 can utilize a mask of the instance rather than a less precise approximate boundary (e.g., a bounding box) because the approximate boundary typically covers the instance approximately and includes background pixels having a color that does not match the color object properties.
[0229] In various embodiments, the object selection system 106 trains or otherwise obtains a color attribute detection neural network to identify instances (e.g., defined groups of pixels) corresponding to input colors. For example, the object selection system 106 generates a color vector space through iterative training, and trains the color attribute detection neural network to accurately map pixel colors to the color vector space.
[0230] To illustrate, Fig.17 A graphical user interface is shown for utilizing a color attribute detection neural network to detect a specific instance of a query object in accordance with one or more embodiments. Fig.17 The 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 using the object selection system 106 .
[0231] like Fig.17 As shown in , the graphical user interface 1702 includes an image 1704 within the image editing application. The image 1704 shows a white bottle and a black bottle. In addition, the graphical user interface 1702 includes an object selection interface 1706, as described above in conjunction with Figure 3A As described, the user provides a query string of "white bottle".
[0232] As previously described, the object selection system 106 utilizes the object selection pipeline 400 to detect two bottles based on the query object (i.e., "bottle") from the query string. In addition, as described above, the object selection system 106 determines the object property of "white" in the query string, which corresponds to a color object property. Therefore, the object selection system 106 selects and utilizes the color property detection neural network to identify and select the white bottle in the image (e.g., the selected specific query object 1708). Therefore, as Fig.17 As shown in , the object selection system 106 returns the selected specific query object 1708 to the user within the image editing application.
[0233] Back to Fig.161408, action 1408 may include an action 1612 in which the object selection system 106 determines that the attribute type corresponds to a location. For example, based on analyzing the object attribute within the query string, the object selection system 106 determines that the user is requesting to select an instance of the detected query object having a specific location within the image. In some examples, the object selection system 106 identifies the location object attribute by detecting adjectives in the query string that match a location dictionary, such as "left", "center", "right", "top", "middle", "bottom", "upper", "lower", "above", "below", "outside", "inside".
[0234] Based on detecting that the object attribute is a location, the object selection system 106 may select a location attribute detection model, as shown in action 1614. For example, as described above, the object selection system 106 may select a location attribute detection model from a plurality of attribute detection neural networks and models.
[0235] As shown, the act 1410 of utilizing the selected attribute detection neural network to identify a specific instance of the detected query object corresponding to the object attribute may include an act 1616 of the object selection system 106 utilizing the position attribute detection model and the location indicated in the query string to identify the specific instance of the detected query object. In practice, the object selection system 106 may utilize the position attribute detection model to determine the specific instance from the provided location and multiple instances of the detected query object.
[0236] To illustrate, in some embodiments, object selection system 106 may utilize a positional attribute detection model to identify the location of each instance of a detected query object within an image. In some embodiments, the positional attribute detection model utilizes one or more heuristics to compare the location of each query object instance. For example, the positional attribute detection model may generate image coordinates (e.g., Cartesian coordinates) for each query object instance. Additionally, the positional attribute detection model may add the image coordinates of each instance to a table or chart to enable object selection system 106 to compare corresponding instance locations within the image.
[0237] In multiple embodiments, the location attribute detection model determines the location of the query object instance based on the center of mass of the query object instance. For example, the location attribute detection model determines the location of the query object instance as its mass point coordinates. In some embodiments, the center of mass corresponds to the center of mass of the bounding box associated with the query object instance. In alternative embodiments, the center of mass corresponds to the center of mass of the object mask associated with the query object instance.
[0238] In some embodiments, the position attribute detection model determines the position of the query object instance based on an outer edge (e.g., image coordinates of an outer side, corner, or point) of the query object instance (e.g., a bounding box or object mass). In additional embodiments, the position attribute detection model selects the outer edge based on the position object attribute. For example, if the position object attribute is "left", the position attribute detection model will select the leftmost edge or point of each query object instance. Similarly, if the position object attribute is "bottom right", the position attribute detection model will select the corner point where the bottom edge and the right edge intersect on each query object instance. Additionally, if the position object attribute is "top center", the position attribute detection model will select the midpoint of the top edge of each query object instance.
[0239] Upon determining the position of each of the detected instances of the query object, object selection system 106 (and / or the position attribute detection model) may determine which query object instances satisfy the position object attribute. For example, for a position object attribute of "top", object selection system 106 may identify query object instances in the image that have a relative position (e.g., based on their image coordinates) that is above other query object instances. As another example, for a position object attribute of "center", object selection system 106 may identify query object instances that have a relative position that is closest to the center of the image. In some instances, for a position object attribute of "middle", object selection system 106 may identify query object instances that have a relative position between at least two other query object instances.
[0240] In some embodiments, object selection system 106 determines that multiple instances of the detected query object satisfy a position object attribute. For example, if the position object attribute is "above", object selection system 106 may select each query object instance above a central horizontal line (or another vertical coordinate).
[0241] Similarly, in various embodiments, object selection system 106 may select two query object instances if the two query object instances have positions within a threshold tolerance of each other. To illustrate, if the position object attribute is "right," object selection system 106 may select the query object instance having the rightmost position in the image (e.g., based on its x-axis image coordinate). Additionally, object selection system 106 may also select additional query object instances having x-axis coordinates within a threshold distance (e.g., 5% of the width or 20 pixels) of the first selected query object instance.
[0242] As described above, object selection system 106 may select one or more query object instances that satisfy the location object property, as further described below. In practice, object selection system 106 may select one or more query object instances based on a spatial comparison of each query object instance within the image. Additionally, in some embodiments, object selection system 106 also filters out one or more query object instances that do not have a location that satisfies the location object property.
[0243] As previously described, depending on the location object property, object selection system 106 may determine and identify the location of each query object instance based on the bounding box of each query object instance before determining the object mask. For example, object selection system 106 may often perform a simple spatial comparison of the query object instances with high accuracy using the corresponding bounding boxes of the query object instances. In this way, object selection system 106 may avoid calculating an accurate object mask for instances that do not satisfy the location property (i.e., the location object property) specified by the user in the query string.
[0244] In various embodiments, the object property corresponding to the location may include depth. In an alternative embodiment, the object selection system 106 utilizes a separate depth property detection neural network to identify a specific instance corresponding to a specified depth. For example, the depth property detection neural network can generate a depth map of the image to determine the relative depth of each of the multiple instances of the query object detected. Examples of depth object properties include "in front", "behind", "closer", "further", "in front of", and "behind". In addition, in a manner similar to that described above, the object selection system 106 can select one or more query object instances that satisfy the depth object property.
[0245] Fig.18 An illustration of a graphical user interface for utilizing a location attribute detection neural network to detect a specific instance of a query object in accordance with one or more embodiments. Fig.18 The 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 using the object selection system 106 .
[0246] like Fig.18 As shown in , graphical user interface 1802 includes an image 1804 within an image editing application. Image 1804 shows two boys in the foreground and trees and mountains in the background. Graphical user interface 1802 also includes object selection interface 1806, as described above in conjunction with Figure 3A As described, the user provides a query string of "boy on the left".
[0247] As described above, the object selection system 106 utilizes the object selection pipeline 400 described above to determine the two boys based on the query object of "boy" in the query string. In addition, as described above, the object selection system 106 can determine the object attribute of "left" in the query string, which corresponds to the position object attribute. Therefore, the object selection system 106 selects and utilizes the position attribute detection neural network to identify and select the boy on the left in the image (e.g., the selected specific query object 1808). Therefore, as described above, the object selection system 106 can determine the object attribute of "left" in the query string, which corresponds to the position object attribute. Therefore, the object selection system 106 selects and utilizes the position attribute detection neural network to identify and select the boy on the left in the image (e.g., the selected specific query object 1808). Fig.18 As shown in , the object selection system 106 can return the selected specific query object 1808 to the user within the image editing application.
[0248] return Fig.16 And returning to act 1408, act 1408 may include act 1622 that the object selection system 106 determines that the attribute type is another object attribute (e.g., in addition to color or location). For example, based on analyzing adjectives in the query string as described above, the object selection system 106 may determine that the attribute is size, length, shape, material, pattern, location, depth, rigidity / flexibility, protrusion, body posture, emotion, or facial expression of the query object. Alternatively, the object selection system 106 determines that the object attribute corresponds to an unrecognized object attribute type.
[0249] As illustrated in action 1624, based on detecting the object property type, the object selection system 106 may select a corresponding property detection model. For example, if the object property type is material, the object selection system 106 selects a material property detection neural network that identifies the material associated with each query object instance (e.g., wood, metal, fabric, plastic, ceramic, concrete, glass, composite material, or other material). As another example, if the object property type is shape, the object selection system 106 selects a shape property model that identifies the shape of each query object instance. In a similar manner, the object selection system 106 may select various property detection neural networks or models based on the identified object property type.
[0250] Furthermore, upon determining that the object attribute type is unknown or does not correspond to any dedicated attribute detection neural network or model, the object selection system 106 can select a generic attribute detection neural network. As described below, the generic attribute detection neural network can determine whether one or more of the query object instances correspond to an object attribute specified in the query string.
[0251] As shown, Fig.16Action 1410 in may include action 1626 of the object selection system 106 identifying a specific instance of the detected query object using the selected object attribute detection model and the object attributes. In the case of a dedicated attribute detection neural network or model, the object selection system 106 may utilize the object attributes indicated in the query string in conjunction with the selected dedicated attribute detection neural network or model to select a specific instance from the multiple instances of the detected query object.
[0252] As described above, the object selection system 106 can utilize a generic attribute detection neural network to select specific instances. In various embodiments, the generic attribute detection neural network can generate labels for each query object instance (e.g., utilizing automatic tagging techniques) to associate each instance with various attributes. For example, the generic attribute detection neural network is trained to predict labels based on one or more attributes and / or characteristics identified from a given query object instance and assign labels to the given query object instance. In practice, the generic attribute detection neural network can identify and extract relevant adjective labels from the query object instance.
[0253] After the general attribute detection neural network automatically labels each of the query object instances, object selection system 106 can compare the object attributes provided in the query string with the attribute labels generated for each of the query object instances. To illustrate, in one or more embodiments, object selection system 106 filters out instances that have no correlation between the attribute labels and the object attributes or have less than a minimum correlation threshold. In practice, by analyzing the attribute labels of the query object instances with the object attributes from the query string, object selection system 106 can ignore query object instances that do not match the object attributes.
[0254] In additional or alternative embodiments, the object selection system 106 can match the attribute tags of the query object instances with the object attributes from the query string to identify which instances correspond to the object attributes. For example, if the object attribute is "happy" from the query string of "happy man", the object selection system 106 analyzes the attribute tags of each query object instance to determine whether the tags include "happy" or a synonym of "happy".
[0255] After filtering out instances with non-corresponding labels and / or identifying instances with corresponding labels, the object selection system 106 can select specific one or more query object instances corresponding to the object attributes. Therefore, even if a dedicated object attribute detection model is not available for the object attributes, in most cases, the object selection system 106 can still identify specific query object instances from the object attributes using a general attribute detection neural network.
[0256] Steering Fig.19, which provides additional description of detecting objects within an image based on additional user input indicating a location in the image. In particular, Fig.19 A flowchart for detecting and selecting objects in an image based on a user query based on multimodal input according to one or more embodiments is illustrated. As shown, Fig.19 Included is a series of actions 1900 that the object selection system 106 may perform.
[0257] As shown, a series of actions 1900 may include an action 1902 in which the object selection system 106 obtains an image. For example, a user captures an image using a camera on a client device associated with the user. In addition, as previously described, a series of actions 1900 may include an action 1904 in which the object selection system 106 obtains a query string from the user.
[0258] In addition, a series of actions 1900 includes an action 1906 in which the object selection system 106 obtains additional user input indicating a location within the image. In one or more embodiments, the additional user input is a touch input selection within the image indicating a specific location. In some embodiments, the additional user input is a mouse (or equivalent) input selection within the image indicating a specific location. The location can range from a single point (e.g., pixel coordinates) to a portion of the image within the image (e.g., a group of pixels). In addition, examples of additional user input include tapping, clicking, sliding, hovering, dragging, smearing, drawing a wavy line, drawing a line, or clicking. Other examples of additional user input may include rectangular selection, lasso selection, trace selection, magnetic selection, another type of selection.
[0259] As shown, a series of actions 1900 may include an action 1908 in which the object selection system 106 utilizes the multimodal user input to detect a query object. More specifically, the query string is a first user input, and the location indication is an additional user input. These multiple different user inputs together provide the object selection system 106 with a multimodal user input that enables the object selection system 106 to more accurately detect and select the query object.
[0260] In various embodiments, the query string indicates that the additional user input includes location information. For example, the object selection system identifies text such as "this" (e.g., "this car") or "here" (e.g., "here cup") in the query string, which indicates that the user has provided (or will provide) location input in conjunction with the query string. For example, after the object selection system 106 may receive a request to select "this elephant", the object selection system 106 provides an additional prompt for the user to click, tap, outline, draw a squiggle, or otherwise indicate the location of the elephant within the image.
[0261] In addition, the object selection system 106 can utilize the user location input to select and / or filter out potential detected objects. As described above, the object selection system 106 utilizes the selected object detection neural network to detect multiple potential objects in the image that may correspond to the query object in the query string (e.g., generate bounding boxes). Then, utilizing the indicated location from the additional user input, the object selection system 106 can filter out the following bounding boxes (e.g., after region or object proposals) that do not match the indicated location or are more than a threshold distance from the indicated location. As another example, the object selection system 106 ranks or sorts the bounding boxes based on their distance to the indicated location, where a higher ranking corresponds to a higher probability of including the query object.
[0262] In some embodiments, the object selection system 106 can utilize user location input similar to object attributes. For example, the object selection system 106 detects multiple instances of the detected query object. Then, utilizing the user location input, the object selection system 106 selects the instance that matches or corresponds to the location indication. For example, the object selection system 106 selects the object mask of the instance having the center that is closest to the indicated location.
[0263] Additionally, in some embodiments, the object selection system 106 utilizes the indicated location as a starting point for object detection within the image. For example, the object selection system 106 provides the image, the query object, and the indicated location within the image to one of the object detection neural networks described above in conjunction with the object selection pipeline 400. Additionally, the object selection system 106 utilizes the indicated location to determine a location within the image at which to detect the query object. In effect, the indicated location indicates to the selected object detection neural network that the query object is located at a particular image location.
[0264] like Fig.19 As shown in , a series of actions 1900 may include an action 1910 in which the object selection system 106 provides the selected query object or instance to the user. As described above, the object selection system 106 may automatically select the detected query object and / or query object instance within the image editing application, in which case this is a response to a multimodal input.
[0265] In some embodiments, the object selection system 106 can automatically detect and select objects based on the user location input without identifying the query object in the query string. For example, if the full query string is "here", the object selection system 106 can attempt to select an object corresponding to the indicated location. In another example, the object selection system 106 provides a location detection tool that receives a user location input within an image and, in response, uses the object selection system 106 to identify an object at that location. For example, the user clicks on a point within the image, and the object selection system 106 detects an object at that location. In another instance, the user uses a selection tool to roughly outline the object, and the object selection system 106 automatically generates an object mask and selects the object at the indicated location for the user.
[0266] In addition, based on the indicated location, the object selection system 106 attempts to detect an object. In various embodiments, the object selection system 106 utilizes the above-described object proposal neural network to detect important objects. If no candidate object is detected, the object selection system 106 can utilize the above-described region proposal neural network to return the detected object that is closest to the indicated location.
[0267] Now turn to Fig. 20 , which illustrates a flow chart of an update object selection pipeline 400 according to one or more embodiments. As shown, Fig. 20 Included is a series of actions 2000 that the object selection system 106 can perform with respect to the object selection pipeline 400 .
[0268] As described above, the object selection pipeline 400 includes various components that the object selection system 106 utilizes to detect query objects. Additionally, many of these components are interchangeable with updated versions and new components. Thus, 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 additional components to the object selection pipeline to improve the performance of objects detected in an image.
[0269] To illustrate, series of acts 2000 may include act 2002 of object selection system 106 utilizing object selection pipeline 400 to detect query objects indicated by a user. As described in detail above, object selection system 106 may utilize object selection pipeline 400 as a framework to detect most objects submitted in a query string regardless of their object type.
[0270] Additionally, the series of acts 2000 may include an act 2004 in which the object selection system 106 determines whether a failure is detected within the object selection pipeline 400. In some embodiments, the object selection system 106 may determine that the object selection system 106 correctly and accurately detects the query object submitted by the user. In these embodiments, the object selection system 106 may provide the selected object to the user, as shown in act 2010. For example, as described above, the object selection system 106 selects the query object within the image editing application.
[0271] In other embodiments, the object selection system 106 detects a failure within the object selection pipeline 400. Based on detecting the failure, the object selection system 106 can determine at which component of the object selection pipeline the failure occurred, as shown in act 2006. For example, in one or more embodiments, the object selection system 106 examines the output of each stage of the object selection pipeline to determine where the failure occurred.
[0272] In some embodiments, the object selection system 106 isolates the branch of the object selection pipeline where the failure was detected to narrow down the possible components where the failure occurred. For example, if a query object of "sand" does not correctly select sand in an image, the object selection system 106 first looks at components within the concept detection branch (e.g., Figure 4 In this way, the object selection system 106 can determine that the failure occurred at the concept detection network.
[0273] At the location of the failure detected, the object selection system 106 can upgrade or replace the failed component, as shown in action 2008. For example, the object selection system 106 can replace the failed component with an improved version. Similarly, when the newer version becomes available, the object selection system 106 can replace the older component with a new component of the newer version. In addition, the object selection system 106 can upgrade and / or replace the component without changing, retraining, reconfiguring, and / or modifying other components of the object selection pipeline. Additionally, the object selection system 106 can continue to utilize the object selection pipeline (e.g., action 2002) until another failure is detected (e.g., action 2004).
[0274] In addition to replacing or upgrading components, in one or more embodiments, the object selection system 106 adds additional components to the object selection pipeline 400. For example, the object selection system 106 adds additional expert object detection neural networks to detect specific types of object categories. The object selection system 106 can similarly add additional specialized attribute detection models to improve the detection and selection of query object instances based on object attributes.
[0275] As described above, the object selection system 106 can detect within an image an object that the user "tells" the object selection system 106 to detect (e.g., via a query string input). In some embodiments, the user requests multiple queries about an image. For example, the user first requests to select a red balloon in an image that includes balloons of various colors. In response, the object selection system 106 detects each of the balloons in the image, identifies the red balloon from the object mask generated for each of the balloons, and provides the automatically selected red balloon to the user. Subsequently, in the event that the user requests to select a blue balloon in the same image, instead of re-detecting each balloon in the image and generating a new object mask, the object selection system 106 can access and utilize the previously generated object mask to detect the blue balloon.
[0276] Indeed, in various embodiments, the object selection system 106 may store the output of one or more components in conjunction with the image. For example, the object selection system 106 stores bounding boxes from one or more object selection requests. Additionally or alternatively, the object selection system 106 may store object masks from previous object detections. In this way, the object selection system 106 may reduce computer processing by using stored bounding boxes and / or object masks when performing multiple object detections in an image.
[0277] Reference now Fig.21 , which provides additional details regarding the capabilities and components of object selection system 106 according to one or more embodiments. In particular, Fig.21 1 is a schematic diagram showing an example architecture of an object selection system 106 implemented within an image editing system 104 and hosted on a computing device 2100. The image editing system 104 may correspond to the one previously described in connection with Figure 1 An image editing system 104 is described.
[0278] As shown, the object selection system 106 is located on a computing device 2100 within the image editing system 104. In general, the computing device 2100 can represent various types of client devices. For example, in some embodiments, the client is a mobile device, such as a laptop, a tablet, a mobile phone, a smart phone, etc. In other embodiments, the computing device 2100 is a non-mobile device, such as a desktop computer or a server, or another type of client device. Fig.23 Additional details regarding computing device 2100 are discussed.
[0279] like Fig.21As shown in , 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 2110, a user input detector 2112, an object detection neural network manager 2114, an object mask generator 2116, an object instance selector 2118, and a storage manager 2120. As shown, the storage manager 2120 includes a digital image 2122, an object detection neural network 2124, an object mask neural network 2126, and an object attribute detection model 2128. Each of the above components is described in turn below.
[0280] As described above, the object selection system 106 includes a digital image manager 2110. In general, the digital image manager 2110 facilitates identifying, accessing, receiving, obtaining, generating, importing, exporting, copying, modifying, removing, and organizing images. In one or more embodiments, the digital image manager 2110 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 embodiments, the digital image manager 2110 communicates with the storage manager 2120 to store and retrieve digital images 2122, for example, within a digital image database managed by the storage manager 2120.
[0281] As shown, the object selection system 106 includes a user input detector 2112. In various embodiments, the user input detector 2112 can detect, receive, and / or facilitate user input on the computing device 2100 in any suitable manner. In some instances, the user input detector 2112 detects one or more user interactions (e.g., a single interaction or a combination of multiple interactions) relative to the user interface. For example, the user input detector 2112 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 2100. For example, the user input detector 2112 detects user input of a query string submitted from an object selection interface that requests automatic selection of an object within an image. In addition, as described above, the user input detector 2112 detects additional user input from a mouse selection and / or touch input to indicate an object location within an image.
[0282] As shown, the object selection system 106 includes an object detection neural network manager 2114. In various embodiments, the object detection neural network manager 2114 maintains, creates, generates, trains, updates, accesses, and / or utilizes the object detection neural network disclosed herein. As described above, the object detection neural network manager 2114 detects one or more objects (e.g., query objects) within an image and generates boundaries (e.g., bounding boxes) to indicate the detected objects.
[0283] Additionally, in various embodiments, the object detection neural network manager 2114 can communicate with the storage manager 2120 to store, access, and utilize the object detection neural network 2124. In various embodiments, the object detection neural network 2124 includes one or more expert object detection neural networks 2130 (e.g., sky detection neural network, face detection neural network, body detection neural network, skin detection neural network, and waterfall detection neural network), object-based concept detection neural network 2132, known object category detection neural network 2134, unknown object category detection neural network 2136, object proposal neural network 2138, region proposal neural network 2140, concept embedding neural network 2142, each of which is described in detail above.
[0284] Additionally, as shown, the object selection system 106 includes an object mask generator 2116. In one or more embodiments, the object mask generator 2116 produces, creates, and / or generates an accurate object mask based on the detected object. For example, the object detection neural network manager 2114 provides the boundary of the object (e.g., the detected query object) to the object mask generator 2116, and the object mask generator 2116 utilizes the object mask neural network 2126 to generate an object mask for the detected object, as described above. Also as described above, in various embodiments, when multiple instances of the query object are detected, the object mask generator 2116 generates multiple object masks.
[0285] As shown, the object selection system 106 includes an object instance selector 2118. In some embodiments, the object instance selector 2118 determines, analyzes, detects, identifies, filters, and / or selects one or more specific instances of a detected object from a plurality of detected instances of the object. In various embodiments, as described above, the object instance selector 2118 utilizes one or more object property detection models 2128 to identify the specific instances. For example, the object instance selector 2118 utilizes object properties to select a specific instance of the plurality of detected instances of the object.
[0286] Examples of object attribute detection models 2128 include, but are not limited to, color attribute detection neural network 2146, position attribute detection model 2148, general attribute detection neural network 2150, and / or other object attribute detection neural networks and models (e.g., depth attribute detection neural network, material attribute detection neural network, shape attribute detection model, size attribute detection neural network, length attribute detection neural network, pattern attribute detection neural network, location attribute detection model, body posture attribute detection neural network, prominence attribute detection neural network, facial expression attribute detection neural network, or mass attribute detection neural network).
[0287] Each of the components 2110-2150 of the object selection system 106 may include software, hardware, or both. For example, the components 2110-2150 may include one or more instructions that are stored on a computer-readable storage medium and may be executed 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 2110-2150 may include hardware, such as a dedicated processing device for performing a specific function or group of functions. In addition, the components 2110-2150 of the object selection system 106 may include a combination of computer-executable instructions and hardware.
[0288] In addition, the components 2110-2150 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 implemented as a cloud computing model. Therefore, the components 2110-2150 can be implemented as independent applications, such as desktop applications or mobile applications. Additionally, the components 2110-2150 can be implemented as one or more web-based applications hosted on a remote server. The components 2110-2150 can also be implemented in a set of mobile device applications or "apps". For illustration, the components 2110-2150 can be implemented in applications, including but not limited to Adobe Adobe CREATIVE "ADOBE", "INDESIGN", "ACROBAT", "ILLUSTRATOR", "PHOTOSHOP" and "CREATIVE CLOUD" are registered trademarks or trademarks of Adobe Systems Incorporated in the United States and / or other countries.
[0289] exist Figure 1-Figure 21 , the corresponding text and examples provide many different methods, systems, devices and non-transitory computer-readable media of the object selection system 106. In addition to the foregoing, one or more embodiments may also be described in terms of a flowchart including actions for achieving a particular result, such as Fig. 22 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.
[0290] As mentioned, Fig. 22A flow chart illustrating a series of actions 2200 for detecting a query object using one of a plurality of object detection neural networks in accordance with one or more embodiments. Fig. 22 The actions according to one embodiment are illustrated, but alternative embodiments may omit, add, reorder, and / or modify Fig. 22 Any action shown in . Fig. 22 The actions of 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. 22 In some embodiments, the system may perform Fig. 22 action.
[0291] In one or more embodiments, the series of actions 2200 is implemented on one or more computing devices, such as client device 102, server device 110, client device 300, or computing device 2100. Additionally, in some embodiments, the series of actions 2200 is implemented in a digital environment for creating or editing digital content (e.g., a digital image). For example, the series of actions 2200 is implemented on a computing device having a memory that includes a digital image; a plurality of object detection neural networks, including an expert object detection neural network, a known object category detection neural network, and / or an unknown object category detection model; and an object mask neural network.
[0292] The series of actions 2200 includes an action 2210 of identifying a query string including a query object. In particular, action 2210 may involve identifying a query string that includes a query object to be selected in a digital image. In some embodiments, action 2210 also includes analyzing the query string to identify a noun indicating the query object. In various embodiments, action 2210 also includes analyzing the noun to determine an object category type of the query object. In an example embodiment, action 2210 includes: receiving text input from a user associated with a client device, and identifying the text input as a query string. In an alternative embodiment, action 2210 includes: receiving audio input from a user associated with a client device; converting the audio input to text; and identifying the converted text as a query string.
[0293] As shown, the series of actions 2200 also includes an action of determining an object detection neural network from a plurality of object detection neural networks 2220. In particular, action 2220 may involve: based on analyzing the query object, determining to utilize a first object detection neural network from a plurality of object detection neural networks, the plurality of object detection neural networks including an expert object detection neural network, a concept-based object detection neural network, a known object category detection neural network, and an unknown object category detection neural network (e.g., a model including a plurality of neural networks).
[0294] In some embodiments, the unknown object class detection neural network includes a region proposal neural network and a concept embedding neural network. Additionally, in various embodiments, action 2220 includes determining that the noun corresponds to a first expert object detection neural network that is trained to detect objects that match the noun. Furthermore, in additional embodiments, action 2220 includes selecting a first expert object detection neural network. In one or more embodiments, action 2220 includes determining that the noun corresponds to a first known object class detection neural network that is trained to detect multiple known object classes, wherein the multiple known object classes include nouns. In additional embodiments, action 2220 includes selecting a first known object class detection neural network. In various embodiments, action 2220 includes determining that the noun corresponds to a first unknown object class detection neural network that is trained to detect the noun using concept embedding filtering. In additional embodiments, action 2220 includes selecting a first unknown object class detection neural network.
[0295] like Fig. 22 As shown in , the series of actions 2200 also includes an action 2230 of detecting a query object using the determined object detection neural network. In particular, action 2230 may include detecting the query object within the image using the first object detection neural network. In multiple embodiments, action 2230 also includes: generating a boundary (e.g., a bounding box) of the detected query object based on determining the query object and providing the detected boundary of the query object to the object mask neural network. In various embodiments, action 2230 includes excluding one or more potential objects from a plurality of potential objects within the image based on the one or more potential objects not satisfying a corresponding threshold with the query object, and detecting the query object from the remaining potential objects in the plurality of potential objects.
[0296] As shown, the series of acts 2200 also includes an act 2240 of generating an object mask of the detected query object. In particular, act 2240 may include: based on detecting the query object in the digital image by the first object detection neural network, generating a first object mask of the detected query object using an object mask neural network. In various embodiments, the object mask neural network identifies the detected query object using a boundary (e.g., a bounding box), and generates an accurate object mask for the detected query object.
[0297] As shown, the series of actions 2200 also includes providing the image with the first object mask to the user. Action 2250. In particular, action 2250 can involve providing the image with the first object mask to a client device associated with the user. In some embodiments, action 2250 includes automatically selecting the detected query object within the image editing application by utilizing the first object mask.
[0298] The series of actions 2200 may also include a plurality of additional actions. In one or more embodiments, the series of actions 2200 include the following actions: utilizing a first object detection neural network and detecting multiple instances of a query object indicated in a query string within a digital image; and utilizing an object mask neural network based on detecting the multiple instances of the detected query object, to generate a second object mask of a second instance of the detected query object. In various embodiments, the first object mask corresponds to the first instance of the detected query object. In one or more embodiments, the second object mask is separate from the first object mask.
[0299] In various embodiments, the series of actions 2200 includes the actions of analyzing the query string to identify an object property associated with the query object, and determining that a detected first instance of the query object has a greater correspondence with the object property than a second instance of the query object. In additional embodiments, the series of actions 2200 includes the actions of analyzing the query string to identify the object property by identifying an adjective within the query string that corresponds to the query object. In some embodiments, the adjective has a greater correspondence with the detected first instance of the query object than with the detected second instance of the query object. In one or more embodiments, the object property is a color object property or a position object property.
[0300] In one or more embodiments, the series of acts 2200 includes an act of adding or replacing an object detection neural network from the plurality of object detection neural networks before determining to utilize the first object detection neural network. In these embodiments, the added or replaced object detection neural network may be determined (e.g., selected) as the first object detection neural network that is utilized to detect the query object.
[0301] In some embodiments, series of actions 2200 includes the following actions: detecting additional user input indicating a location within the image, and detecting a query object within the image based on the query object and the first object detection neural network, the additional user input indicating the location within the image. In some instances, the additional user input is a mouse selection or a touch input selection.
[0302] As used herein, the term "digital environment" generally refers to an environment that is implemented, for example, as 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 described herein.
[0303] Embodiments of the present disclosure may include or utilize a special-purpose or general-purpose computer including computer hardware, such as, for example, one or more processors and system memory, as discussed in more detail below. Embodiments 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 processes described herein may be implemented at least in part as instructions embodied in a non-transient computer-readable medium and executable by one or more computing devices (e.g., any media content access device 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 to perform one or more processes, including one or more processes described herein.
[0304] 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, embodiments of the present disclosure may include at least two distinct types of computer-readable media: a non-transient computer-readable storage medium (device) and a transmission medium.
[0305] Non-transitory computer-readable storage media (devices) include RAM, ROM, EEPROM, CD-ROM, solid-state drives (“SSD”) (e.g., RAM-based), flash memory, phase change memory (“PCM”), other types of memory, other optical disk storage devices, magnetic disk storage devices 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.
[0306] "Network" is defined as one or more data links that enable electronic data to be transported between computer systems and / or modules and / or other electronic devices. When information is transmitted or provided to a computer via a network or another communication connection (hardwired, wireless, or a combination of hardwired or wireless), the computer will correctly view the connection as a transmission medium. The transmission medium may include a network and / or a data link that can be used to carry desired program code components in the form of computer executable instructions or data structures and can be accessed by general or special computers. The above combination should also be included in the scope of computer-readable media.
[0307] In addition, upon reaching various computer system components, program code components in the form of computer executable instructions or data structures can be automatically transferred from the transmission medium to the non-transient computer readable storage medium (device) (or vice versa). For example, the computer executable instructions or data structures received over a network or data link can be buffered in RAM within a network interface module (e.g., "NIC") and then ultimately transferred to the computer system RAM and / or a less volatile computer storage medium (device) at the computer system. Therefore, it should be understood that non-transient computer readable storage media (devices) can be included in computer system components that also (or even primarily) utilize transmission media.
[0308] Computer executable instructions include, for example, instructions and data, which, when executed by a processor, cause a general-purpose computer, a special-purpose computer, or a special-purpose processing device to perform certain functions or groups of functions. In some embodiments, computer executable instructions are executed by a general-purpose computer to transform a general-purpose computer into a special-purpose computer that implements an element of 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 should be understood that the subject matter defined in the appended claims is not necessarily limited to the features or actions described above. Instead, the features and actions described are disclosed as example forms for implementing the claims.
[0309] 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 and remote computer systems are linked by a network (by a hardwired data link, a wireless data link, or a combination of hardwired and wireless data links), and both perform tasks. In a distributed system environment, program modules can be located in both local and remote storage devices.
[0310] Embodiments 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 enabling on-demand network access to a shared pool of configurable computing resources. For example, cloud computing may be employed in the marketplace to provide ubiquitous and convenient on-demand access to a shared pool of configurable computing resources. A shared pool of configurable computing resources may be rapidly provisioned via virtualization and released with less management effort or service provider interaction, and then scaled accordingly.
[0311] The cloud computing model may include various features, such as, for example, on-demand self-service, broad network access, resource pooling, rapid elasticity, measured services, and the like. 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, and the like. Additionally, as used herein, the term "cloud computing environment" refers to an environment in which cloud computing is employed.
[0312] Fig.23A block diagram of an example computing device 2300 is illustrated, which can be configured to perform one or more of the above processes. It will be understood that one or more computing devices such as computing device 2300 can represent the above computing devices (e.g., client device 102, server device 110, client device 300, or computing device 2100). In one or more embodiments, computing device 2300 can be a mobile device (e.g., a laptop, tablet computer, smart phone, mobile phone, camera, tracker, watch, wearable device, etc.). In some embodiments, computing device 2300 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). In addition, computing device 2300 can be a server device including cloud-based processing and storage capabilities.
[0313] like Fig.23 As shown in , computing device 2300 may include one or more processors 2302, memory 2304, storage device 2306, input / output ("I / O") interface 2308, and communication interface 2310, which may be communicatively coupled by way of a communication infrastructure (e.g., bus 2312). Fig.23 The computing device 2300 is shown in FIG. Fig.23 The components illustrated in the figure are not intended to be limiting. Additional or alternative components may be used in other embodiments. Furthermore, in some embodiments, the computing device 2300 includes more than Fig.23 The components shown in FIG. are fewer than those shown in FIG. 1 . The components shown in FIG. 1 are fewer than those shown in FIG. Fig.23 Components of computing device 2300 are shown in .
[0314] In certain embodiments, processor(s) 2302 include hardware for executing instructions, such as those that make up a computer program. By way of example and not limitation, to execute instructions, processor(s) 2302 may retrieve (or fetch) instructions from internal registers, internal cache, memory 2304, or storage device 2306, and decode and execute them.
[0315] The computing device 2300 includes a memory 2304 coupled to the processor 2302. The memory 2304 may be used to store data, metadata, and programs for execution by the processor(s). The memory 2304 may include one or more of volatile memory and non-volatile memory, such as a random access memory ("RAM"), a read-only memory ("ROM"), a solid state disk ("SSD"), flash memory, phase change memory ("PCM"), or other types of data storage. The memory 2304 may be an internal or distributed memory.
[0316] The computing device 2300 includes a storage device 2306, which includes a storage device for storing data or instructions. By way of example and not limitation, the storage device 2306 may include the non-transitory storage medium described above. The storage device 2306 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.
[0317] As shown, computing device 2300 includes one or more I / O interfaces 2308, which are provided to allow a user to provide input to computing device 2300 (e.g., user swipes), receive output from computing device 2300, and otherwise transfer data to and from computing device 2300. These I / O interfaces 2308 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 2308. The touch screen may be activated using a stylus or a finger.
[0318] The I / O interface 2308 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 embodiments, the I / O interface 2308 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.
[0319] The computing device 2300 may also include a communication interface 2310. The communication interface 2310 may include hardware, software, or both. The communication interface 2310 provides one or more interfaces for communicating between the computing device and one or more other computing devices or one or more networks (such as, for example, packet-based communications). As an example and not limitation, the communication interface 2310 may include a network interface controller (NIC) or a network adapter for communicating with an Ethernet or other wired-based network, or a wireless NIC (WNIC) or a wireless adapter for communicating with a wireless network (such as, WI-FI). The computing device 2300 may also include a bus 2312. The bus 2312 may include hardware, software, or both that connect the components of the computing device 2300 to each other.
[0320] In the foregoing description, the present invention has been described with reference to specific example embodiments of the present invention. Various embodiments and aspects of the present invention are described with reference to the details discussed herein, and the accompanying drawings illustrate various embodiments. 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 embodiments of the present invention.
[0321] Without departing from the spirit or essential features of the present invention, the present invention may be implemented in other specific forms. The described embodiments should be considered in all respects only as illustrative and not restrictive. For example, the method described herein may be performed using 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 examples 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 meaning and scope of the equivalents of the claims should be included within their scope.
Claims
1. A non-transitory computer-readable medium storing instructions that, when executed by at least one processor, cause a computing device to: determining, based on a selection query, a query object to be selected from a plurality of objects in the digital image; Determining an object category or an object type by analyzing the query object from the select query; Based on the object category or object type of the query object, selecting to utilize a first object detection neural network from a plurality of object detection neural networks, the plurality of object detection neural networks comprising an expert object detection neural network, a concept-based object detection neural network, a known object category detection neural network, and an unknown object category detection neural network; detecting the query object in the digital image using the first object detection neural network; generating, based on the detected query object in the digital image, a first object mask of the detected query object using an object mask neural network; as well as In response to the selection query, the first object mask is provided for the image.
2. The non-transitory computer-readable medium of claim 1 , further comprising instructions for causing the computing device to: detecting, using the first object detection neural network, a plurality of instances of the query object within the digital image; and A second object mask for a second instance of the detected query object is generated using the object mask neural network, wherein the first object mask corresponds to the first instance of the detected query object, and wherein the second object mask is separate from the first object mask.
3. The non-transitory computer-readable medium of claim 2, further comprising instructions for causing the computing device to: analyzing the select query to identify object properties associated with the query object; and It is determined that the first detected instance of the query object has a greater correspondence with the object attribute than the second instance of the query object.
4. The non-transitory computer readable medium of claim 3, wherein the instructions cause the computing device to: analyzing the select query to identify the object attributes by identifying adjectives within the select query that correspond to the query object; and wherein the adjective has a greater correspondence with the first instance of the detected query object than the second instance of the detected query object. 5 . The non-transitory computer readable medium of claim 3 , wherein the object property is a color object property or a position object property. 6 . The non-transitory computer-readable medium of claim 1 , further comprising instructions that cause the computing device to analyze the select query to identify a noun that indicates the query object.
7. The non-transitory computer-readable medium of claim 6, further comprising instructions for causing the computing device to: determining that the noun corresponds to a first expert object detection neural network, the first expert object detection neural network trained to detect objects matching the noun, and Wherein the first object detection neural network comprises the first expert object detection neural network.
8. The non-transitory computer-readable medium of claim 6, further comprising instructions for causing the computing device to: determining that the noun corresponds to a first known object class detection neural network, the first known object class detection neural network trained to detect a plurality of known object classes, wherein the plurality of known object classes includes the noun, and The first object detection neural network includes the first known object category detection neural network.
9. The non-transitory computer-readable medium of claim 6, further comprising instructions for causing the computing device to: determining that the noun corresponds to a first unknown object class detection neural network trained to detect the noun using concept embedding filtering based on the noun corresponding to an unknown class, and The first object detection neural network includes the first unknown object category detection neural network.
10. The non-transitory computer-readable medium of claim 1, further comprising instructions for causing the computing device to: Based on determining the query object, generating an approximate boundary of the detected query object; and The approximate boundaries of the detected query object are provided to the object mask neural network.
11. The non-transitory computer-readable medium of claim 10, further comprising instructions causing the computing device to detect the query object within the image based on: detecting a plurality of potential objects within the digital image; excluding one or more potential objects from among the plurality of potential objects within the image based on the one or more potential objects not satisfying a correspondence threshold with the query object; and The query object is detected from remaining potential objects among the plurality of potential objects.
12. A system for automatically selecting an object within a digital image, comprising: Memory, including: Digital images; Multiple object detection neural networks, including expert object detection neural network, concept-based object detection neural network, known object category detection neural network, region proposal neural network, and concept embedding neural network; and Object mask neural network; at least one processor; and at least one non-transitory computer-readable storage medium storing instructions that, when executed by the at least one processor, cause the system to: determining, from a selection query, a noun identifying a query object to be selected within the digital image; analyzing the noun to determine the object category type of the query object; determining to utilize the first object detection neural network from the plurality of object detection neural networks based on associating the object class type of the query object with a first object detection neural network; Detecting the query object and generating an approximate boundary for the query object using the first object detection neural network; generating a first object mask of the detected query object based on the object mask neural network and the approximate boundary of the detected query object; and In response to the selection query, the first object mask is provided for the digital image.
13. The system of claim 12, further comprising instructions causing the system to receive the select query as natural language via a client device.
14. The system of claim 13, further comprising instructions for causing the system to: receiving the select query as audio input from the client device; and The audio input is converted to text.
15. The system of claim 12, further comprising instructions for causing the system to: before determining to utilize the first object detection neural network, adding or replacing an object detection neural network from the plurality of object detection neural networks; and The first object detection neural network includes an added or replaced object detection neural network.
16. The system of claim 12, further comprising instructions for causing the system to: detecting additional user input indicating a location within the digital image; and The query object is detected within the digital image based on the query object, the additional user input indicating the location within the digital image, and the first object detection neural network.
17. The system of claim 16, wherein the additional user input is a mouse selection or a touch input selection.
18. In a digital media environment for creating or editing digital images, a computer-implemented method for selecting a query object, comprising: identifying a query string, the query string identifying a query object in the digital image; a step for detecting the query object using an object detection neural network selected from a plurality of object detection neural networks; generating a first object mask of the detected query object using an object mask neural network; as well as The digital image with the first object mask is provided to a client device associated with a user.
19. The computer-implemented method of claim 18, further comprising: identifying a plurality of instances of the detected query object; as well as Based on detecting the multiple instances of the detected query object, generating, using the object mask neural network, a second object mask for a second instance of the detected query object, wherein the first object mask corresponds to the first instance of the detected query object, and wherein the second object mask is separate from the first object mask.
20. The computer-implemented method of claim 19, further comprising: analyzing the query string to identify object properties associated with the query object; as well as It is determined that the first detected instance of the query object has a greater correspondence with the object attribute than the second instance of the query object.
