Techniques for modifying query images
By generating decoder neural networks and convolutional neural networks that mix latent variable vectors, custom query images are constructed, which solves the inflexibility problem of traditional image-based search engines and improves search efficiency and computing resource utilization.
Patent Information
- Application Number
- CN202080034471.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-05-09
- Filing Date
- 2020-03-17
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2040-03-17
AI Technical Summary
Traditional image-based search engines are inflexible and make it difficult for users to modify or optimize initial query images, resulting in low search efficiency and waste of computing resources.
Build custom query images through a decoder neural network that generates mixed latent variable vectors, allowing the user to specify weights and combine input image features, generate query images and submit them to search engines, leveraging generative models and convolutional neural networks for image matching.
Improves search engine flexibility and efficiency, allowing users to optimize queries multiple times, reducing search session time and computing resource usage.
Smart Images

Figure CN113795834B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure generally relate to techniques for modifying a query image. Background Art
[0002] Image-based search engines allow users to submit queries in the form of an input image. Image-based search engines identify one or more candidate images that display similar content to the input image. However, this type of search engine has various limitations due to its inflexibility. Summary of the invention
[0003] A computer-implemented technique for performing image-based search is described herein that allows a user to craft a custom query image that expresses the user's search intent, rather than accepting a fixed given input query image. The technique generates a query image based on one or more user-supplied input images and / or one or more user-supplied information items that describe at least one desired characteristic of the query image. The technique then submits the query image to a search engine and, in response, receives a set of candidate images that match the query image.
[0004] In one implementation, the technique constructs a query image using a decoder neural network operating on a mixed latent variable vector. The technique generates the mixed latent variable vector by, in sequence: using an encoder to generate a first latent variable vector based on a first input image; using an encoder to generate a second latent variable vector based on a second input image; and then combining the first latent variable vector with the second latent variable vector to generate the mixed latent variable vector.
[0005] According to another illustrative aspect, the technique includes various graphical controls that allow a user to specify weighting values to be applied to one or more input images.
[0006] According to another illustrative aspect, the technology uses a generative adversarial network (GAN) to generate a decoder neural network. Alternatively, the technology can generate the encoder neural network and the decoder neural network by training a variational autoencoder (VAE) or a flow-based neural network system.
[0007] The techniques outlined above can be embodied in various types of systems, apparatus, components, methods, computer-readable storage media, data structures, graphical user interface presentations, articles of manufacture, and the like.
[0008] This Summary is provided to introduce some concepts in a simplified form; these concepts are further described in the Detailed Description below. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 An illustrative computing environment for generating image-based queries and for conducting searches using image-based queries is shown.
[0010] Figure 2 shows that it can be used to implement Figure 1 computing environment.
[0011] Figure 3 Shows Figure 1 An implementation of a computing environment is referred to herein as a machine learning (ML) computing environment.
[0012] Figure 4 Shows Figure 3 An example of the operation of an implementation of.
[0013] Figure 5 A portion of a neural network is shown. Figure 3 An implementation may include one or more neural networks.
[0014] Figure 6 shows the method for generating Figure 3 The implementation applies the weighted values to the first graphical control.
[0015] Figure 7 A second graphical control for generating weighted values is shown.
[0016] Figure 8 Graphical controls for modifying different properties of the generated image are shown.
[0017] Fig. 9 The use of a generative adversarial network (GAN) for generating Figure 3 The decoder neural network used in the implementation of the training system.
[0018] Fig.10 Shown for Figure 3 The first version of the encoder used in the implementation.
[0019] Fig.11 Shown is the Figure 3 Another version of the encoder used in the implementation of .
[0020] Fig.12 shows that it can be used to implement Figure 3 Implementation of the various components of a Convolutional Neural Network (CNN).
[0021] Fig.13 shows the use of a variational autoencoder (VAE) to generate Figure 3 The encoder and decoder training system used in .
[0022] Fig.14 shows the use of a flow-based neural network system to generate Figure 3 The encoder and decoder training system.
[0023] Fig.15 Shown Figure 1 A process for obtaining an overview of the operations of a computing environment.
[0024] Fig.16 and Fig.17 Together they show Figure 3 An overview of the operation of the ML computing environment.
[0025] Fig.18 An illustrative type of computing device is shown that may be used to implement any aspect of the features shown in the above-described figures.
[0026] The same reference numbers are used throughout this disclosure and the accompanying drawings to refer to similar components and features. Figure 1 Features found in the series 200 number refer to the original Figure 2 Features found in the series 300 number refer to the original Figure 3 features found in , and so on. DETAILED DESCRIPTION
[0027] The present disclosure is organized as follows. Section A describes a computing environment for assisting a user in constructing image-based queries. Section B sets forth an illustrative method for explaining the operation of the computing environment of Section A. Section C describes illustrative computing functionality that may be used to implement any aspect of the features described in Sections A and B.
[0028] As a preliminary matter, the term "hardware logic circuit" corresponds to one or more hardware processors (e.g., CPU, GPU, etc.) that execute machine-readable instructions stored in memory, and / or one or more other hardware logic units (e.g., FPGA) that use a task-specific collection of fixed and / or programmable logic gates to perform operations. Section C provides additional information about an implementation of hardware logic circuits. In certain contexts, each of the terms "component" and "engine" refers to a portion of a hardware logic circuit that performs a specific function.
[0029] In one case, the division of various parts into different units illustrated in the drawings may reflect the use of corresponding different physical and tangible parts in actual implementation. Alternatively or additionally, any single part illustrated in the drawings may be implemented by multiple actual physical parts. Alternatively or additionally, the depiction of any two or more separate parts in the drawings may reflect different functions performed by a single actual physical part.
[0030] Other figures describe this concept in the form of a flow chart. In this form, certain operations are described as constituting different blocks that are executed in a specific order. Such an implementation is illustrative and not restrictive. Certain blocks described herein can be combined together and executed in a single operation, certain blocks can be decomposed into multiple component blocks, and certain blocks can be executed in an order different from the order illustrated in this article (including a parallel mode of executing blocks). In one implementation, the blocks of processing-related functions shown in the flow chart can be implemented by the hardware logic circuit described in Part C, which in turn can be implemented by one or more hardware processors and / or other logic units, which include a task-specific set of logic gates.
[0031] With respect to terminology, the phrase "configured to" encompasses various physical and tangible mechanisms for performing the identified operations. These mechanisms may be configured to perform the operations using the hardware logic circuitry of Part C. The term "logic" likewise encompasses various physical and tangible mechanisms for performing tasks. For example, each processing-related operation illustrated in the flowchart corresponds to a logic component for performing that operation. The logic component may perform its operations using the hardware logic circuitry of Part C. When implemented by a computing device, the logic component represents an electrical component that is a physical part of the computing system, regardless of how it is implemented.
[0032] Any storage resource described herein or any combination of storage resources can be considered as computer-readable medium. In many cases, computer-readable medium represents a physical and tangible entity of some form. The term computer-readable medium also encompasses propagation signals transmitted or received, for example, via physical conduits and / or air or other wireless media. However, the specific term "computer-readable storage medium" explicitly excludes the propagation signal itself, while including all other forms of computer-readable media.
[0033] The following explanation may identify one or more features as "optional." This type of statement should not be interpreted as an exhaustive description of features that may be considered optional; that is, other features may be considered optional but are not explicitly identified in the text. In addition, any description of a single entity is not intended to preclude the use of multiple such entities; similarly, a description of multiple entities does not preclude the use of a single entity. In addition, while the description may explain certain features as alternative ways of performing an identified function or implementing an identified mechanism, these features may also be combined together in any combination. Finally, the terms "exemplary" or "illustrative" refer to one implementation among potentially many implementations.
[0034] A. Illustrative Computing Environment
[0035] Traditional text-based search engines allow a user to gradually refine his or her search until the user obtains satisfactory search results. For example, consider a user who wishes to discover the date of Thanksgiving within a particular year. The user may begin his or her search by entering the keyword "Thanksgiving". However, a text-based search engine may respond to this query by identifying a general article about the Thanksgiving holiday, which does not answer the user's question. The user may then enter the keyword "Thanksgiving 2019". This revised query may provide results that answer the user's question.
[0036] Traditional image-based search provides a different search experience. Here, the user performs the search in a single-shot manner. That is, the user selects the image that best conveys his search intent and submits it to the image-based search engine. The engine will provide a set of candidate images that match the user's image-based query. If these results do not provide the desired results, the user may decide to start over by finding another input image and submitting the image to the image-based search engine. In other words, in this scenario, the image-based search engine does not provide a mechanism that allows the user to correct previously submitted images. Users may find this "hit-or-miss" image retrieval method to be both time-consuming and inefficient. In terms of the long search sessions it can lead to, it also makes inefficient use of computing resources.
[0037] Figure 1 A computing environment 102 is shown that solves at least the above problems by allowing a user to make a custom query image and, if necessary, later modify the query image. The computing environment 102 generates a custom query image based on one or more input images. The user can use one or more techniques to provide the input images. In one scenario, the user can provide each input image by selecting an image within a larger collection of images. For example, the user can identify the input image by clicking on a thumbnail representation associated with it within a larger collection of thumbnail representations. Or the user can identify the input image by clicking on it within a content item (such as a web page, document, video stream, etc.) in which it appears.
[0038] In yet another scenario, a user may provide an input image by taking a digital photo of an object of interest ("object") using a camera. For example, a user may take a photo of an object (such as a product, a landmark, etc.) with the intent to retrieve information about the object. Or a user may take multiple digital photos of an object from one or more viewing angles relative to the object. A user may perform this task by moving to different photographing positions relative to the object. Or a user may rely on a system that uses multiple cameras positioned at different angles relative to the object. A user may synchronize the cameras to simultaneously take photos of an object.
[0039] In yet another scenario, a user may indirectly specify an input image by describing one or more characteristics of the input image. For example, suppose a user wishes to apply an input image that displays a particular fabric pattern. The user may specify the image by providing a text-based description of the fabric pattern, such as by specifying "large canines," "wide stripes," "paisley pattern," and the like. The computing environment 102 may then map the text-based description to the input image or some representation thereof. For example, the computing environment 102 may submit the text-based description to a search engine (described below). The search engine may then perform a search based on the user's text-based description to provide images that display a canine fabric pattern. The search engine may perform this task by matching the text-based description against text-based metadata associated with multiple images. The computing environment 102 may then automatically select the top-ranked images retrieved by the search, or generate an average of the top-ranked set of images retrieved by the search (after converting them to latent variable vectors). In this mode of operation, the computing environment 102 does not need to display an image showing the desired fabric pattern to the user. The user may be able to determine the desired fabric pattern by observing their response to the generated image I G The contribution of is used to judge whether the fabric pattern is satisfactory (as described below).
[0040] The first information extraction component 104 extracts the first input image I l The first information item is extracted from the second input image I2. The optional second information extraction component 106 extracts the second information item from the second input image I2. The computing environment 102 can incorporate any number of these information extraction components that operate on the corresponding input images to generate the corresponding information items. In one implementation described below, the information extraction components (104, 106) correspond to encoders, and the information items correspond to latent variable vectors produced by the encoder. The latent variable vectors represent characteristics of the input image in a low-dimensional semantic vector space.
[0041] In some implementations, the computing environment 102 may also optionally receive one or more text-based information items from the user, the text-based information items specifying one or more expected image characteristics. For example, the received text-based information items may textually specify an expected color or pattern to be used in the query image. The computing environment 102 may then process the text-based information item(s) and the image-based information item(s). This is not simply using text to identify the input image; here, the computing environment 102 forms a generated image based on both the image information and the text information. G .
[0042] The image generator component 108 generates a generated image based on the information items fed to it. GIn one implementation described below, the image generator component 108 uses a machine-trained decoder neural network to generate the image I G The decoder neural network operates based on a generative model
[0043] The computing environment 102 then submits the generated query image to a search engine 112 using a retrieval component 110. For example, the retrieval component 110 may use a browser application that submits the query image to an Internet accessible search engine 112. The search engine 112 performs search and retrieval operations based on index information stored in an index, which in turn is provided in a data store 114. A crawler tool (not shown) creates the index information by periodically surveying image resources provided in a distributed database. The distributed database may correspond to distributed resources provided by the Internet.
[0044] The search engine 112 identifies zero, one, or more candidate images that match the query image. C1 ,I C2 ,…). For example, the search engine 112 may calculate a feature set for the query image to generate a query feature set. The search engine 112 may then find one or more candidate images having corresponding feature sets that match the query feature set. Note that the search engine 112 may calculate and store the feature sets of the candidate images as an offline task.
[0045] More specifically, in one implementation, the search engine 112 may use a convolutional neural network (CNN) or other deep neural network (DNN) to map the query image to a query feature vector in a low-dimensional semantic space. It may use an approximate nearest neighbor (ANN) technique or other techniques and then find those candidate feature vectors that are closest to the query feature vector in the semantic space. Those candidate vectors are associated with corresponding candidate images.
[0046] After identifying a set of candidate images, the search engine 112 can supply those images or representations thereof to the retrieval component 110. The retrieval component 110 can then present those matching images to the user via a user interface presentation provided by an output device. For example, the retrieval component 110 can display a set of thumbnails associated with the matching candidate images.
[0047] In one implementation, the computing environment 102 does not display the generated image to the user. G ; Instead, it only displays the (multiple) input images (I1, I2, etc.) and the matching candidate images. G This is an ideal choice in those cases where there are artifacts that the user may find unsightly. Note that in the generated image I GThe presence of artifacts or other anomalies in the image will generally not impair the search engine 112 from finding images that are visually similar to the generated image I G This is because the search engine 112 uses the generated image I G The high-level semantic features are used to find matching candidate images, and these high-level semantic features are not affected by the presence of artifacts. For legal considerations, developers can also choose to prevent the presentation of generated images. G .
[0048] In some scenarios, the image(s) retrieved from the search engine 112 satisfy the user's search intent, and the user thereafter terminates his search because it is relevant to that particular search intent. In other scenarios, the user may repeat the above search operation at least one additional time, treating the one or more images retrieved from the search engine 112 as one or more corresponding new input images (I1, I2). In this mode of operation, the user may effectively reformulate his or her image-based query multiple times.
[0049] The user interface (UI) component 116 allows the user to interact with the computing environment 102. For example, the input item selection component 118 may provide various tools that allow the user to select or create input images and other input items. For example, the input item selection component 118 may allow the user to select an image by clicking on an image within a larger image collection, or by clicking on an image within any type of source document (such as a web page). Alternatively or additionally, the item selection component 118 may allow the user to specify a name associated with the expected input image in a text input field, such as by entering the word "brown", "dog teeth", etc. Alternatively or additionally, the item selection component 118 may allow the user to specify a code associated with an expected image attribute (color, pattern, etc.) in a text input field. Alternatively or additionally, the item selection component 118 may allow the user to specify a characteristic associated with the expected input image by selecting an expected point within a range of points (e.g., by selecting an expected color within a spectrum of colors) or by manipulating a graphical control that controls the appearance of a pattern (e.g., by changing the width of a stripe, etc.). The item selection component 118 may use other mechanisms to select input images and / or image features. The input term weighting component 120 allows the user to specify weighting values that affect the combination of input terms. The following explanation provides an example of a graphical mechanism that the input term weighting component 120 can use to perform this task. The UI component 116 also provides functionality that enables the retrieval component 110 to display (or otherwise communicate) search results provided by the search engine 112. Note that although Figure 1 The UI component 116 is shown as a single monolithic component, but the computing environment 102 may distribute the functionality associated with the component across one or more elements of the computing environment 102 .
[0050] Figure 2 shows that it can be used to implement Figure 1 102. The computing device 202 includes one or more servers 204 coupled to one or more user computing devices 206 via a computer network 208. The user computing device 206 may correspond to any of the following: a desktop computing device, a laptop computing device, any type of handheld computing device (smart phone, tablet computing device, etc.), a mixed reality device, a game console, a wearable computing device, a smart Internet of Things (IoT) device, etc. Each user computing device (such as a representative user computing device 210) includes local program functionality (such as a representative local program functionality 212). The computer network 208 may correspond to a wide area network (e.g., the Internet), a local area network, one or more point-to-point links, etc., or any combination thereof.
[0051] Figure 1 The functionality of the computing environment 102 can be distributed between the server 204 and the user computing device 206 in any manner. In one implementation, the server 204 implements Figure 1 Here, the user uses a browser application provided by the user computing device to access these functions. In another implementation, each user computing device implements Figure 1 In another implementation, the server 204 implements some functions of the computing environment, while each user computing device implements other functions. For example, the server 204 can implement the search engine 112, while each local user computing device can implement the rest of the computing environment 102.
[0052] As a preface to the following explanation, note that this detailed description explains various implementations of computing environment 102 in the context of a user's search for clothing items. However, computing environment 102 can be applied to any subject matter, such as furniture items, home decor items, fashion accessories, interior design selections, clip art items, etc.
[0053] Figure 3 One implementation of a computing environment 102 for generating image-based queries is shown, referred to as a machine learning (ML) computing environment 302. The ML computing environment 302 formulates an image-based query based on two or more input images (e.g., I1, I2, etc.). A user may provide each image using any of the techniques described above, such as by capturing an image using a camera, selecting an image within a corpus or document, performing a text-based search on an image, and the like.
[0054] The first encoder 304 (for brevity, "first encoder") maps the first image I1 to a first latent variable vector z1, and the second encoder 306 (for brevity, "second encoder") maps the second image I2 to a second latent variable vector z2. In one implementation, the first encoder 304 and the second encoder 306 correspond to neural networks built based on the same machine training model. For example, the first encoder 304 and the second encoder 306 can represent two instances of the same neural network computer code. The first encoder 304 and the second encoder 306 can operate in parallel or in series. In another implementation, the encoders (304, 306) are implemented by a technology other than a neural network, as described below in conjunction with Fig.10 Described.
[0055] In one implementation, the neural network provided by each encoder (if used) may correspond to a combination of Fig.12 Some variants of convolutional neural networks (CNNs) described in more detail. CNNs map each input image to a latent variable vector in a low-dimensional semantic space. The latent variable vector provides a distributed representation of the content conveyed by the input image.
[0056] The mixer 308 combines the first latent variable vector z1 and the second latent variable vector z2 to generate a mixed latent variable vector Z mixed For example, the mixer 308 may add the first latent variable vector z1 to the second latent variable vector z2, subtract the first latent variable vector z1 from the second latent variable vector Z2 (or vice versa), average multiple latent variable vectors, etc. Two latent variable vectors are combined by combining their corresponding elements in the corresponding dimensions. That is, if z1 has elements [a1, a2, a3, ..., a n ], and z2 has elements [b1, b2, b3, ..., b n ], then the combination of these two vectors produces the elements [a1+b1, a2+b2, a3+b3, ..., a n +b n ]. Combining two latent variable vectors is appropriate when the user wants to produce a composite image in which features of one image modify features of another image. Averaging the latent variable vectors is appropriate when the user wants to produce a generated image that represents a generalized description of the object of interest.
[0057] In some implementations, the mixer 308 also applies one or more weighting values when combining the latent variable vectors (Z1, Z2). For example, assume that a user specifies a weighting value w1 for a first input image and a weighting value w2 for a second input image. The mixer 308 can then calculate the sum: w1z1+w2z2. Alternatively or additionally, the user can specify weighting values that affect various dimensions of the latent variable vectors. Alternatively or additionally, the mixer 308 can apply fixed weighting values selected by a developer rather than an end user. Alternatively or additionally, the mixer 308 can apply weighting values generated by an offline machine training component (not shown).
[0058] The decoder neural network 310 (referred to as “decoder” for short) converts the mixed latent variable vector z mixed Mapped to the generated image I G The decoder 310 generates a generated image I based on a machine-trained generative model. G . The generative model generates synthetic images I G , synthetic images usually have no pre-existing “real” corresponding images. However, the generative model is trained on a corpus of real images, and therefore, in generating images I G The retrieval component 110 then performs a search based on the query image in the same manner as described above.
[0059] The training system 312 generates a machine-trained model used by the ML computing environment 302 in an offline training process. It performs this task based on a corpus of real images provided in the data store 314. Additional information about the operation of the training system 312 is provided below in conjunction with Fig. 9 , Fig.13 and Fig.14 Description provided.
[0060] Figure 4 Shows Figure 11. An example of the operation of the ML computing environment 302 of FIG. 1. In this scenario, a user selects a first input image 402 that shows a short-sleeved T-shirt in any of the ways specified above. The user selects a second input image 404 that shows a fabric pattern with a blue star pattern. For example, the user can interact with the input item selection component 118 to select the second input image 404 from a larger image collection or from a web page that displays the image 404. Or the user can enter a description of the desired pattern into a text field of the input item selection component 118, for example by typing "blue stars". The ML computing environment 302 can consult a lookup table to map the phrase to a stock image showing a star pattern. Or the ML computing environment 302 can implement a text-based search based on the key phrase to retrieve one or more images showing a fabric with a star pattern. In these cases, the ML computing environment 302 does not need to show the user the actual second input image(s) it retrieves. The ML computing environment 302 can pick the top-ranked image it identifies, or it can pick the top-ranked image collection.
[0061] The ML computing environment 302 converts the first input image 402 into a first latent variable vector Z1 using the first encoder 304, and converts the second input image 404 into a second latent variable vector Z2 using the second encoder 306. The ML computing environment 302 adds the first latent variable vector Z1 and the second latent variable vector Z2 to generate a mixed latent variable vector Z mixed The ML computing environment 302 then uses the decoder 310 to convert the mixed latent variable vector Z mixed 406. Note that the generated image 406 shows clothing items and styles similar to the first input image 402, with patterns similar to the second input image 404. The generated image 406 is a computer synthesized image that does not necessarily have any direct relationship to a single pre-existing real image.
[0062] In other cases (not shown), the second input image 404 may correspond to another item of clothing. For example, the second input image 404 may show a collar style. In another case, the ML computing environment 302 may accept any kind of three or more input items.
[0063] The ML computing environment 302 submits the generated image 406 as a query image to the search engine 112. The search engine 112 returns a set of candidate images 408 that determine that the query image matches with a confidence level specific to the environment. For example, the search engine 112 can return thumbnail representations of matching images. The search engine 112 can also provide text information describing the product shown in each image. The search engine 112 can also provide links that allow the user to access more information about the product shown in the image and optionally purchase the product. Each matching image corresponds to a real pre-existing image stored in the data store.
[0064] Note that matching candidate images 408 are visually similar to query image 406. However, each matching image may also differ from the query image in one or more aspects. For example, first matching image 410 shows a pattern of stars, where the shape of each star is somewhat different from the shape of the stars shown in second input image 404. First matching image 410 also includes a collar, while first input image 402 omits the collar. Fourth matching image 412 includes stars of the same shape as second input image 404, but includes a lower density of stars than second input image 404. It also includes a collar.
[0065] Go to Figure 5 , the ML computing environment 302 may include one or more neural networks. Figure 5 A portion of two layers of a feedforward neural network 502 is shown. In the fully connected case, each neuron in a layer j of the neural network is connected to each neuron in the previous layer j-1. More specifically, in the fully connected case, layer j produces the equation z j =f(W j z j-1 +b j ) gives the output value z j , where j = 2, ... N. Symbol W j denotes the machine learning weight matrix for layer j, and the symbol b j refers to the machine learning bias vector for layer j. The activation function f(·) can be expressed in different ways, such as tanh function or sigmoid function or rectified linear unit (ReLU) function.
[0066] Figure 6 and Figure 7 Two corresponding graphical controls are shown that allow the user to pick weighting values. The ML computing environment 302 applies the weighting values to modify the latent variable vectors provided by the encoders (304, 306). The mixer 308 performs this modification operation by multiplying each latent variable vector by its associated weighting value.
[0067] from Figure 6Initially, the first graphical control 602 includes three input images (604, 606, 608) selected by the user. It also includes three corresponding slider bars (610, 612, 614) associated with the corresponding input images (604, 606, 608). The user can select the weighting values to be applied to the input images by interacting with the slider bars associated with the input images. The mixer 308 responds to the user's weighting selection for the input images by modifying the appropriate latent variable vector using the selected weighting values.
[0068] For example, each slider bar may allow the user to select a weighted value between 0.0 and 1.0 by moving the slider element from the left end (0.0) to the right end (1.0). Figure 6 In the scenario shown in , the user chooses a relatively high weighting value to be applied to the latent variable vector associated with the first input image 604 to express that she wants the query image to be very similar in style to that shown in the first input image 604. The user chooses relatively low weighting values to be applied to the latent variable vectors associated with the second and third input images (606, 608); this is because the user places a lower priority on the features conveyed by the second and third input images (606, 608).
[0069] Figure 5 The use of the slider bar shown in is merely illustrative. In other cases, the user can specify the weight value of each image by manipulating a scroll wheel, by rotating a graphical knob, by selecting a numerical value in an input field presented in a user interface, by issuing a voice command, etc.
[0070] Figure 7 A second graphical control 702 is shown including a cursor navigation space 704 having a triangular shape. Each vertex of the navigation space 704 is associated with a specific input image. To convey this association, the second graphical control 702 displays thumbnail images (706, 708, 710) at corresponding vertices of the navigation space 704.
[0071] In operation, a user interacts with any kind of input device to select a location of a cursor 712 within the navigation space 704 (where "cursor" corresponds to an indicator having any visual attributes that mark a location). In response, the ML computing environment 302 determines a weighting value to be applied to each latent variable vector (associated with the corresponding input image) based on the distance between the cursor 712 and the vertices of the navigation space 704 associated with the input image. For example, in Figure 7In the example of , the cursor 712 is located at a distance d1 from the first input thumbnail 706, a distance d2 from the second thumbnail 708, and a distance d3 from the third thumbnail 710. In response to the position of the cursor 712, the mixer 308 modifies the latent variable vector of the first input image to a weighted value based on d1, modifies the latent variable vector of the second input image to a weighted value based on d2, and modifies the latent variable vector of the third input image to a weighted value based on d3.
[0072] More specifically, in one non-limiting implementation, each reference point corresponds to a vertex of a Gaussian probability density function (PDF) of weighted values. The weighted value of each Gaussian distribution decreases gradually from its vertex in proportion to the distance of the vertex. At the current position of the cursor 712, the ML computing environment 302 finds a first component weighted value λ1 based on a Gaussian distribution emanating from a vertex associated with the first input image, finds a second component weighted value λ2 with respect to a Gaussian distribution emanating from a vertex associated with the second input image, and finds a third component weighted value λ3 with respect to a Gaussian distribution emanating from a vertex associated with the third input image. It then calculates a normalized weighted value w for each image for each input. For example, the ML computing environment 302 may calculate the final weighted value w1 for the first input image as λ1 / (λ1+λ2+λ3). The second graphical control 702 may also optionally show weighted indicators (714, 716, 718) associated with the three thumbnail images (706, 708, 710). Each weighting indicator provides a graphical representation of a weighting value associated with a corresponding image, ranging from 0.0 to 1.0. These indicators (714, 716, 718) change as the user moves the cursor 712 in the navigation space 704.
[0073] Additionally, second graphical control 702 may show a representation of a generated image 720 corresponding to a composite of the three input images produced in real time by ML computing environment 302. The representation of generated image 720 changes as the user moves cursor 712 in navigation space 704. For example, by moving cursor 712 closer to one of the thumbnail images, generated image 720 will exhibit a greater similarity to that thumbnail image.
[0074] The second graphic control 702 can adopt a navigation space having any other shape (except a triangle) and can accommodate any number of input images. For example, the second control graphic control 702 can show a square navigation space in the case of four input images, a pentagonal navigation space in the case of five input images, etc.
[0075] Figure 8A graphical control 802 is shown that allows a user to modify various aspects of a generated image 804. More specifically, the graphical control 802 includes a set of slider bars 806 associated with the generated image 804. In turn, each slider bar is associated with a different aspect of the generated image 804. For example, a first slider bar may be associated with sleeve length, a second slider bar may be associated with fabric color, a third slider bar may be associated with density of fabric pattern, and so on. The user may select the level associated with each identified characteristic by adjusting the slider element of the corresponding slider bar. For example, to modify the length of the sleeve, the user may move the slider element of the slider bar associated with the sleeve length.
[0076] The mixer 308 responds to the user's manipulation of the slider bar by making appropriate changes to the value of the mixed latent variable vector. For example, suppose the user manipulates the slider bar associated with sleeve length. The mixer 308 responds to the command by modifying the vector components of the mixed latent variable vector associated with sleeve length. The offline process can establish a connection between the image attribute (such as sleeve length) and the associated vector components of the mixed latent variable vector. For example, the offline process can involve methodically making changes to the value of the mixed latent variable vector and observing the resulting image I G Aspects that change in response thereto.The offline process may then optionally use Latent Dirichlet Allocation (LDA) to identify vector components associated with different image characteristics.
[0077] The three graphical controls described herein are set forth for the purpose of illustration and not limitation; other implementations may employ other types of graphical controls that a user may manipulate to select weighted values. Alternatively or additionally, the ML computing environment 302 may apply fixed weighted values. The developer may select these weighted values based on offline ad hoc experiments. Alternatively or additionally, the ML computing environment 302 may apply weighted values generated by an offline machine-trained component (not shown). The machine-trained component may select these weighted values to achieve optimal results for different input scenarios. For example, the machine-trained component may select weighted values to be applied to the pattern image for an input scenario in which a user attempts to combine an image of an item of clothing with a pattern image. Figure 4 An example of this input scenario is shown. The training system can generate a machine-trained model based on a corpus of training examples; each such training example includes a set of weighted values, a generated image produced using those weighted values, and a score indicating whether the set produced expected or unexpected results, as judged by a human observer or some proxy thereof.
[0078] Alternatively or additionally, the ML computing environment 302 may provide a semi-automatic experimentation platform that helps developers or users pick weighting values for specific input scenarios. (The input scenario is defined by the specific type of input images that the user is trying to combine and the user's desired goals when combining the images.) The experimentation platform may include Figure 7 The experiment platform iteratively explores the search space defined by the possible range of weighting values, while synchronously showing the effect of each change in the weighting values on the generated image 720. When the user sees a generated image 720 with the expected characteristics, he or she can activate a graphical control (not shown), which causes the experiment platform to store the set of weighting values that produced the expected result. When in a future situation, the user attempts to combine images in a similar input scene, he or she can retrieve the stored set of weighting values and apply them to the input image.
[0079] Fig. 9 A training system 902 is shown that uses a generative adversarial network (GAN) to generate a decoder 310 as part of a preliminary offline training process. The GAN includes two main components: a generator component 904 and a discriminator component 906. The generator component 904 corresponds to a set of parameter values θ g The discriminator component 906 also corresponds to a neural network (e.g., CNN) defined by the parameter value set θ d A neural network (e.g., CNN) defined in FIG. 1 . In operation, the generator component 904 accepts an input vector Z representing random noise, for example, as selected from a Gaussian distribution. The generator component 904 maps the input vector z to a synthetic or "fake" image For simplicity, it is also expressed as In any particular instance, the discriminator component 906 receives a real image x selected from the data store 314 of real images, or a "fake" image generated by the generator component 904 (image (“fake” because it is synthesized rather than selected from a data store of real pre-existing images). The discriminator component 906 produces a classification result that indicates whether the input image is real (associated with a classification result of 1) or fake (associated with a classification result of 0).
[0080] The parameter update component 908 iteratively adjusts the parameter values of the generator component 904 and the discriminator component 906 based on the classification results of the discriminator component 906. More specifically, the parameter update component 908 adjusts the parameter values of the generator component 904 and the discriminator component 906 to increase their ability to distinguish between true and false images. The parameter update component 908 adjusts the parameter values of the generator component 904 so that it produces images that are more likely to "fool" the discriminator component 906, that is, by causing the discriminator component 906 to classify the fake images generated by the generator component 904 as real. In this mode of operation, the training component pits the generator component 904 and the discriminator component 906 against each other, which is why this type of arrangement is called adversarial.
[0081] More formally, the parameter update component 908 performs training based on an objective function defined by:
[0082]
[0083] The first part of the objective function (before the plus sign) depends on the output of the discriminator component 906 when applied to a real image x. data This means that the input image is taken from the real image (p data ). The second part of the object function (after the plus sign) depends on what the discriminator component 906 treats as the generated (fake) image The objective function as a whole defines a minimax optimization objective, where, for the discriminator, the parameter update component 1008 attempts to maximize those chances that the discriminator component outputs 1 for real images and 0 for fake images. With respect to the generator component 1004, the parameter update component 1008 attempts to minimize those chances that the discriminator 1006 outputs 1 for fake images. The parameter update component 908 can iteratively adjust parameter values using any technique such as stochastic gradient descent (or ascent) to achieve this minimax objective.
[0084] In another implementation (not shown), the training system 902 can use conditional GAN to train the decoder neural network 310. In conditional GAN, the generator component 904 adjusts the fake image it generates based on the random input vector in combination with contextual information. In the current case, the contextual information can specify (for example) the category of the clothing item associated with the input image.
[0085] Fig.10 Shown is the Figure 3The first version of the encoder 1002 used in the ML computing environment 302 of FIG. As an overview, the encoder 1002 relies on a real-time optimization process to generate a latent variable vector z based on a real input image x. That is, the encoder 1002 is referred to as a real-time operation because it performs its optimization work not in a preliminary training phase but in an application phase when a user inputs the input image x. In order to reduce the latency associated with this iterative real-time operation, the encoder 1002 may optionally use a downsampling component 1004 to reduce the size of the input image to produce a reduced-size input image x′. For example, the downsampling component 1004 may generate a thumbnail representation 1006 of the input image x by downsampling the pixels in the input image x. However, for ease of explanation, the following explanation will assume that the encoder 1002 operates on the original image x.
[0086] In operation (10.a), the feature generation component 1008 calculates a feature set associated with the input image x. For example, the feature generation component 1008 may correspond to mapping the input image x to a feature vector f in a low-dimensional semantic space. x CNN. In operation (10.b), ( Figure 3 The decoder 310 generates the generated image in response to the candidate version of the latent variable z. For example, decoder 310 may represent Fig. 9 The training model generated by the GAN-based training system 1002. In operation (10.c), the feature generation component 1008 uses the same CNN to generate the generated image Map to another feature vector In operation (10.d), the distance evaluation component 1010 uses any distance metric (such as Euclidean distance, cosine similarity, etc.) to determine the distance between two feature vectors. In operation (10.e), the z update component 1012 uses any optimization technique (such as gradient descent) to modify the value of z so that the two feature vectors are reduced in the next calculation. As represented by loop 1014, encoder 1002 repeats these steps (10.a to 10.e) multiple times until the two feature vectors are within a specified distance of each other. At this stage, encoder 1002 outputs the final version of z. More formally, z selection component 1012 performs the The optimization routine given is
[0087] Fig.11 Shown is the Figure 3The encoder 1102 also optionally uses a downsampling component 1104 to reduce the size of the input image x to produce a thumbnail representation 1106. However, here, the encoder 1102 replaces the reference image x with a feedforward neural network 1108 (or other type of neural network). Fig.10 The feed-forward neural network 1108 uses a model trained on a corpus of training pairs, each training pair associating an input image X with an appropriate latent variable vector z for the input image. For example, the corpus may include Fig.10 The encoder 1002 generates pairs during any offline data collection process. The feed-forward neural network 1108 can map the input image x to the latent variable z without any iterative calculations and is therefore consistent with Fig.10 Compared to encoder 1002, lower latency can be expected.
[0088] Fig.12 A convolutional neural network (CNN) 1202 is shown, which can be used to implement Figure 3 The various components of the ML computing environment 302. For example, Fig.12 The type of architecture shown in can be used to implement several types of encoders, ( Fig. 9 ) discriminator component 906, Fig.10 In the context of the encoder, the CNN 1202 maps the input image to a latent variable vector z. In the context of the discriminator component 906, the CNN 1202 maps the input vector to a decision (which indicates whether the input image is considered real or fake). In the context of the feature generation component 1008, the CNN 1202 maps the input image to a feature vector.
[0089] CNN 1202 performs analysis in the pipeline of the stage. One or more convolution components 1204 perform convolution operations on the input image 1206. One or more pooling components 1208 perform downsampling operations. One or more fully connected components 1210 respectively provide one or more fully connected neural networks, each neural network including any number of layers. More specifically, CNN1202 can intersperse the above three components in any order. For example, CNN 1202 may include two or more convolution components interlaced with pooling components. In some implementations (such as where CNN 1202 is used to implement the discriminator component 906), CNN 1202 may include a final post-processing component that outputs a classification result based on a feature vector provided by a previous layer. For example, a post-processing component may correspond to a Softmax component, a support vector machine (SVM) component, and the like.
[0090] In each convolution operation, the convolution component moves an n×m kernel over the input image (where "input image" in this general context refers to any image fed to the convolution component). In one case, at each position of the kernel, the convolution component generates a dot product of the kernel value and the underlying pixel value of the image. The convolution component stores this dot product as the output value at the location in the output image corresponding to the current position of the kernel. More specifically, the convolution component can perform the above operations on a set of different kernels with different machine learning kernel values. Each kernel corresponds to a different pattern. In early processing layers, the convolution component can apply kernels that identify relatively primitive patterns in the image, such as edges, corners, etc. In later layers, the convolution component can apply kernels that find more complex shapes, such as shapes that resemble human legs, arms, etc.
[0091] In each pooling operation, the pooling component moves a window of predetermined size over the input image (where the input image corresponds to any image fed to the pooling component). The pooling component then performs some aggregation / summary operation on the values of the input image enclosed by the window, such as by identifying and storing the maximum value in the window, generating and storing the average of the values in the window, etc.
[0092] A fully connected component can begin its operation by forming a single input vector. It can perform this task by concatenating the rows or columns of the (multiple) input images fed to it to form a single input vector. The fully connected component then processes the input vector using a fully connected neural network.
[0093] The decoder 310 replaces the above-described convolution component(s) 1204 and pooling component(s) 1208 with one or more deconvolution components. The deconvolution component performs operations opposite to the convolution component(s) 1204 and pooling component(s) 1208. For example, the deconvolution component may take a value in the input image and expand it to an n×n image region in the output image. The deconvolution component repeats this operation for each input value as it sorts the input values in the input image. Each of the output values may reflect the contribution of multiple input values in the input image.
[0094] Fig.13 Another training system 1302 is shown using a parameter update component 1304 to train an encoder component 1306 and a decoder component 1308. The encoder component 1306 maps an input vector x to a latent variable vector z, and the decoder component 1308 maps the latent variable z to a generated image More specifically, the encoder component 1306 and the decoder component 1308 together implement a variational autoencoder (VAE). In this setting, the loss function used in training can be given by:
[0095]
[0096] Mark p θ (·) represents the function implemented by the encoder component 1306, which is defined by the parameter value set θ. Represents the function performed by the decoder component 1308, which is represented by a set of parameter values Definition. Label D KL Denotes the Kullback-Leibler divergence measure. When training is complete, the encoder component 1306 provides a Figure 3 The parameter values used in the encoder (304, 306) of the decoder component 1308 are provided for Figure 3 Therefore, unlike the parameter values used in the decoder 310 of Fig. 9 In the GAN example, the training system 1302 trains the encoder and the decoder simultaneously.
[0097] Fig.14 Another training system 1402 is shown using a parameter update component 1404 to train an encoder component 1406 and a decoder component 1408. Fig.13 Similar to the case of , the encoder component 1406 maps the input vector x to a latent variable vector Z, and the decoder component 1408 maps the latent variable Z to the generated image More specifically, the encoder component 1406 and the decoder component 1408 in this implementation provide a flow-based neural network system. Here, the decoder component 1408 implements a function that is the inverse of the function f(x) provided by the encoder component 1406. In this case, the loss function is the negative log-likelihood calculated on the training image set G:
[0098]
[0099] and Fig.13 Similar to the situation, the training system 1402 also generates Figure 3 Model used by the encoder (304, 306) and decoder 310.
[0100] Other variations of the above techniques are also possible. The illustrated variations are explained below with reference to the computing environment 102, but these variations are also applicable to the more specific ML computing environment 302. For example, in another implementation, one or more information extraction components (e.g., 104, 106) can operate on the input image (e.g., I1, I2) as described above to produce image-based information items (e.g., one or more image-based latent variable vectors). In addition, the computing environment 102 can receive one or more text-based information items, such as a phrase describing a particular color or pattern (e.g., "large canine"). The image generator component 108 can then generate the generated image I by operating on both the image-based information item(s) and the text-based information item(s). G For example, the image generator component 108 may include a machine-trained generative model that uses (multiple) text-based information items as influencing information. G The generated complementary input.
[0101] In another implementation, one or more text-based information extraction components (not shown) may convert one or more text-based information items into distributed representations of (multiple) those information items. For example, a machine-trained text-based encoder may convert input text into n-gram representations, which are then mapped into text-based latent variable vectors. The image generator component 108 may then use a machine-trained generative model to generate a generated image based on (multiple) image-based variable vectors and (multiple) text-based variable vectors. G .
[0102] In another implementation, computing environment 102 can mix text-based search operations and image-based search operations in a flexible manner. For example, assume that a user performs a first text-based search to find a ball gown of a desired style. For example, the user submits a text-based query "strapless ball gown" to search engine 112. In response, search engine 112 returns a collection of images with text-based metadata that match the user's text-based query. Assume that the user selects one of these images (such as a top-ranked image), which constitutes a first input image I1.
[0103] But suppose the user inputs an image I lFor example, suppose the input image I1 shows a white dress, and the user wants to see the same style of dress in a different color, such as red. In response, the user modifies her earlier text-based query so that it now reads "strapless red ball gown." Or suppose the search engine result detail page for image I1 includes a text input box that allows the user to specify a new attribute associated with the input image I1. In this case, the user can simply enter the attribute "red" in the text box. In response to any of these input actions, the search engine 112 performs a new search based on the modified text query "strapless red ball gown." Suppose the search engine 112 returns N supplemental images (I1) that have metadata that matches the revised text-based query. 21 ,I 22 ,I 23 ,...,I 2N )'s collection.
[0104] The first information extraction component 104 is based on the first input image I l Generate a first information item. One or more supplementary information extraction components extract the first information item based on the retrieved supplementary image (I 21 ,I 22 ,I 23 ,...,I 2N ) generates a second information item. The image generator component 108 then provides a generated image I based on the first information item and the second information item. G .
[0105] More specifically, in Figure 3 In the context of the ML computing environment 302, the first encoder 304 maps the first image I1 to a first latent variable vector Z1. One or more supplementary encoders supplement the input image (I 21 , I 22 , I 23 , ..., I 2N ) is mapped to a complementary latent variable vector (Z 21 , Z 22 , Z 23 , ..., Z 2N ). The mixer 308 can combine these latent variable vectors Z in an environment-specific manner mixedThe mixer 308 may then modify the first latent variable vector Z1 in the identified direction by a specified amount. In the specific example developed above, this operation will have the effect of moving the semantic space representation of the ball gown in the direction associated with the color red.
[0106] The rest of the process operates in the same manner as described above. For example, the decoder neural network 310 mixes the latent variable vector Z mixed Mapped to the generated image I G , and the retrieval component 110 generates the image I G Submitted as a search query to the search engine 112. In general, the above variations allow the user to reformulate the query in a manner that combines text-based search and image-based search. The user can also extend the above operations by using any image retrieved from the search engine 112 as a new input image.
[0107] In the above example, the user uses a second text-based query to find images that operate to modify the images retrieved by the first text-based query. But more generally, the user can use the above techniques to combine any number of images retrieved by any input mechanism(s). For example, the user can perform another text-based search based on the text-based query "stripes" to find another set of complementary images. The mixer 308 can determine the following ways: (a) the red dress image diverges from the original image I1, and (b) the striped dress image diverges from the original image I1. It can then modify the first latent variable vector Z1 so that it moves in both the "red" direction and the "stripes" direction in the semantic vector space. In yet another variation, the user can use multiple ball gown images to generate the first latent variable vector Z1, rather than selecting only one of the images returned by the text-based image search.
[0108] B. Illustrative Process
[0109] Figure 15-17The process of explaining the operation of the computing environment 102 of Part A is shown in the form of a flow chart. Since the principles on which the operation of the computing environment 102 is based have been described in Part A, certain operations will be discussed in a generalized manner in this section. As pointed out in the preface of the detailed description, each flow chart is represented as a series of operations performed in a specific order. However, the order of these operations is only representative and can be changed in any way.
[0110] Fig.15 Shown Figure 1 15. In block 1504, the computing environment 102 receives a selection of an input image from a user in response to manipulation of an input device by the user. In block 1506, the computing environment 102 extracts a first information item from the input image, the first information item representing at least one existing characteristic of the input image. In block 1508, the computing environment 102 provides a second information item specifying at least one expected image characteristic. In block 1510, the computing environment 102 generates a query image based on the first information item and the second information item, the query image containing content representing a combination of at least one existing characteristic of the input image and at least one expected image characteristic. In block 1512, the computing environment 102 submits the query image to a computer-implemented search engine 112. In block 1514, the computing environment 102 receives a set of candidate images that match the query image, as evaluated by the search engine 112. In block 1516, the computing environment 102 presents the set of candidate images to the user using an output device.
[0111] Fig.16 and Fig.17 Together they show Figure 3 The process 1602 provides an overview of the ML computing environment 302. Fig.16 In block 1604 of the embodiment, the ML computing environment 302 receives at least the first input image and the second input image in response to a user selection of the first input image and the second input image. In block 1606, the ML computing environment 302 optionally receives at least one weighting value in response to a selection made by the user by interacting with a graphical control presented by the user interface. In block 1608, the ML computing environment 302 generates a first latent variable vector based on the first input image using the first encoder 304. In block 1610, the ML computing environment 302 generates a second latent variable vector based on the second input image using the second encoder 306. In one implementation, the first encoder operates based on the same machine trained model as the second encoder 306. In block 1612, the ML computing environment 302 combines the first latent variable vector and at least the second latent variable vector using the mixer 308 to generate a mixed latent variable vector, the combining operation being affected by the at least one weighting value.
[0112] Go to Fig.17 In block 1702, the ML computing environment 302 generates a query image based on the hybrid latent variable vector using a decoder neural network 310, the decoder neural network 310 operating based on parameter values provided by the generative machine training model. In block 1704, the ML computing environment 302 submits the query image to the computer-implemented search engine 112. In block 1706, the ML computing environment 302 receives a set of candidate images that match the query image as evaluated by the search engine 112. In block 1708, the ML computing environment 302 presents the set of candidate images to a user using an output device.
[0113] C. Representative Computational Functionality
[0114] Fig.18 A computing device 1802 is shown, which can be used to implement any aspect of the mechanisms described in the above figures. Figure 2 , Fig.18 The type of computing device 1802 shown in the figure can be used to implement any server or any user computing device. In all cases, computing device 1802 represents a physical and tangible processing mechanism.
[0115] The computing device 1802 may include one or more hardware processors 1804. The hardware processor(s) may include, but are not limited to, one or more central processing units (CPUs) and / or one or more graphics processing units (GPUs) and / or one or more application specific integrated circuits (ASICs), etc. More generally, any hardware processor may correspond to a general purpose processing unit or a special purpose processor unit.
[0116] The computing device 1802 may also include a computer-readable storage medium 1806, corresponding to one or more computer-readable medium hardware units. The computer-readable storage medium 1806 retains any kind of information 1808, such as machine-readable instructions, settings, data, etc. For example and not limitation, the computer-readable storage medium 1806 may include one or more solid-state devices, one or more magnetic hard disks, one or more optical disks, magnetic tapes, etc. Any instance of the computer-readable storage medium 1806 may use any technology for storing and retrieving information. In addition, any instance of the computer-readable storage medium 1806 may represent a fixed or removable unit of the computing device 1802. In addition, any instance of the computer-readable storage medium 1806 may provide volatile or non-volatile retention of information.
[0117] The computing device 1802 may utilize any instance of the computer-readable storage medium 1806 in different ways. For example, any instance of the computer-readable storage medium 1806 may represent a hardware memory unit (such as random access memory (RAM)) for storing transient information during execution of a program by the computing device 1802, and / or a hardware storage unit (such as a hard disk) for retaining / archiving information on a more permanent basis. In the latter case, the computing device 1802 also includes one or more drive mechanisms 1810 (such as a hard disk drive mechanism) for storing and retrieving information from the instance of the computer-readable storage medium 1806.
[0118] Computing device 1802 may perform any of the functions described above when hardware processor(s) 1804 execute computer-readable instructions stored in any instance of computer-readable storage medium 1806. For example, computing device 1802 may execute computer-readable instructions to perform each of the process blocks described in Part B.
[0119] Alternatively or additionally, the computing device 1802 may rely on one or more other hardware logic units 1812 to perform operations using a task-specific set of logic gates. For example, the (multiple) hardware logic units 1812 may include a fixed configuration of hardware logic gates, such as those that are created and set at the time of manufacturing and cannot be changed thereafter. Alternatively or additionally, the (multiple) other hardware logic units 1812 may include a set of programmable hardware logic gates that can be set to perform different application-specific tasks. The latter class of devices includes, but is not limited to, programmable array logic devices (PALs), general array logic devices (GALs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs), and the like.
[0120] Fig.18 The hardware logic circuitry 1814 is generally indicated to include any combination of hardware processor(s) 1804, computer-readable storage media 1806, and / or other hardware logic unit(s) 1812. The computing device 1802 may employ any combination of hardware processor(s) 1804 that execute machine-readable instructions provided in the computer-readable storage media 1806 and / or one or more other hardware logic units 1812 that perform operations using fixed and / or programmable sets of hardware logic gates. More generally, the hardware logic circuitry 1814 corresponds to one or more hardware logic units(s) of any type that perform operations based on logic stored in and / or otherwise embodied in the hardware logic unit(s).
[0121] In some cases (e.g., where computing device 1802 represents a user computing device), computing device 1802 also includes an input / output interface 1816 for receiving various inputs (via input devices 1818) and for providing various outputs (via output devices 1820). Illustrative input devices include a keyboard device, a mouse input device, a touch screen input device, a digitizer tablet, one or more still image cameras, one or more video cameras, one or more depth camera systems, one or more microphones, a voice recognition mechanism, any motion detection mechanism (e.g., accelerometer, gyroscope, etc.), and the like. A specific output mechanism may include a display device 1822 and an associated graphical user interface presentation (GUI) 1824. Display device 1822 may correspond to a liquid crystal display device, a light emitting diode display (LED) device, a cathode ray tube device, a projection mechanism, and the like. Other output devices include a printer, one or more speakers, a tactile output mechanism, an archiving mechanism (for storing output information), and the like. Computing device 1802 may also include one or more network interfaces 1826 for exchanging data with other devices via one or more communication conduits 1828. One or more communication buses 1830 communicatively couple the above-mentioned units together.
[0122] The communication conduit(s) 1828 may be implemented in any manner, for example, through a local area computer network, a wide area computer network (e.g., the Internet), a point-to-point connection, etc., or any combination thereof. The communication conduit(s) 1828 may include any combination of hardwired links, wireless links, routers, gateway functionality, name servers, etc. governed by any protocol or combination of protocols.
[0123] Fig.18 Computing device 1802 is shown as being composed of a discrete collection of individual units. In some cases, the collection of units may correspond to discrete hardware units provided in a computing device rack having any form factor. Fig.18 An illustrative form factor is shown with its bottom portion. In other cases, computing device 1802 may include an integrated Figure 1 For example, computing device 1802 may include a system on chip (SoC or SOC), corresponding to Fig.18 An integrated circuit in which the functions of two or more units shown are combined.
[0124] The following summary provides a non-exhaustive collection of illustrative aspects of the techniques set forth herein.
[0125] According to a first aspect, one or more computing devices for performing image-based searches are described. The computing device(s) include hardware logic circuitry that itself includes: (a) one or more hardware processors that perform operations by executing machine-readable instructions stored in a memory, and / or (b) one or more other hardware logic units that perform operations using a task-specific set of logic gates. The operations include: receiving a selection of an input image from a user in response to manipulation of an input device by the user; extracting a first information item from the input image, the first information item representing at least one existing characteristic of the input image; providing a second information item that specifies at least one expected image characteristic; generating a query image based on the first information item and the second information item, the query image containing content representing a combination of at least one existing characteristic of the input image and at least one expected image characteristic; submitting the query image to a computer-implemented search engine; receiving a set of candidate images that match the query image as evaluated by the search engine; and presenting the set of candidate images to a user using an output device.
[0126] According to a second aspect, the input image corresponds to a first input image. The first information item corresponds to a first latent variable vector associated with the first input image, and the second information item corresponds to a second latent variable vector associated with a received second input image. The extraction operation includes: using an encoder implemented by a hardware logic circuit to generate a first latent variable vector based on the first input image. The providing operation includes: using an encoder implemented by a hardware logic circuit to generate a second latent variable vector based on the second input image. The operation also includes: combining the first latent variable vector and at least the second latent variable vector to generate a mixed latent variable vector. The generation operation includes: using a decoder neural network implemented by a hardware logic circuit to generate a query image based on the mixed latent variable vector, the decoder neural network operating based on parameter values provided by a generative machine training model.
[0127] According to a third aspect related to the second aspect, the operation further includes: receiving text information describing the second input image from a user; and retrieving the second input image by performing a search based on the text information.
[0128] According to a fourth aspect related to the second aspect, the first input image shows a product and the second input image shows a desired characteristic of the product.
[0129] According to a fifth aspect related to the second aspect, the combining operation includes: combining the first latent variable vector and a plurality of supplementary latent variable vectors to generate a mixed latent variable vector. The plurality of supplementary latent variable vectors are associated with a plurality of input images retrieved by performing a text-based image search. In addition, the plurality of supplementary latent variable vectors include a second latent variable vector.
[0130] According to a sixth aspect related to the second aspect, the operation also includes: receiving one or more weighting values in response to one or more selections made by a user by manipulating a graphical control provided by a user interface; and modifying one or more latent variable vectors associated with one or more corresponding input images based on the one or more weighting values.
[0131] According to a seventh aspect related to the sixth aspect, the graphic control includes at least one slider bar.
[0132] According to an eighth aspect related to the sixth aspect, the graphical control includes a cursor navigation space. Different reference points on the periphery of the cursor navigation space correspond to corresponding input images. The weighted values to be applied to the input images are based on the position of the cursor relative to the reference points in the cursor navigation space.
[0133] According to a ninth aspect related to the second aspect, the operation also includes: changing one or more weighted values applied to one or more corresponding latent variable vectors associated with one or more corresponding input images; in response to the change, displaying a changed representation of the generated image generated based on the one or more latent variable vectors; and receiving an instruction from a user to save a set of weighted values, the user making the instruction after observing the expected state of the generated image.
[0134] According to a tenth aspect related to the second aspect, the training system generates a decoder neural network by training a generator component in a generative adversarial network.
[0135] According to an eleventh aspect related to the second aspect, each encoder operates in the following manner: (a) converting a given input image into a feature space representation of a given input item; (b) using a decoder neural network to convert a candidate latent variable vector associated with the given input image into a candidate output image; (c) converting the candidate output image into a feature space representation of the candidate output image; (d) determining the distance between the feature space representation of the given input image and the feature space representation of the candidate output image; (e) adjusting the candidate latent variable vector based on the distance; and repeating operations (a) to (e) multiple times until the optimization target is reached.
[0136] According to a twelfth aspect related to the second aspect, each encoder is implemented using a feed-forward neural network that approximates a result of a process for iteratively finding a latent variable vector.
[0137] According to a thirteenth aspect related to the second aspect, each encoder operates by downsampling a given input image into an input image of reduced size.
[0138] According to a fourteenth aspect related to the second aspect, the training system generates each encoder and decoder neural network by respectively training an encoder component and a decoder component of a variational autoencoder (VAE).
[0139] According to a fifteenth aspect related to the second aspect, the training system generates each encoder and decoder neural network by respectively training an encoder component and a decoder component of a flow-based neural network system, in which the decoder component implements an inverse function of a function provided by the encoder component.
[0140] According to a sixteenth aspect, a method for performing an image-based search is described. The method includes: receiving at least a first input image and a second input image in response to a selection of the first input image and the second input image by a user; using an encoder to generate a first latent variable vector based on the first input image; using an encoder to generate a second latent variable vector based on the second input image; combining at least the first latent variable vector and the second latent variable vector to generate a mixed latent variable vector; using a decoder neural network to generate a query image based on the mixed latent variable vector; submitting the query image to a computer-implemented search engine; receiving a set of candidate images that match the query image evaluated by the search engine; and presenting the set of candidate images to the user using an output device.
[0141] According to a seventeenth aspect related to the sixteenth aspect, the decoder neural network operates based on parameter values provided by a generative machine training model.
[0142] According to an eighteenth aspect related to the seventeenth aspect, the generative machine training model is generated using a generative adversarial network.
[0143] According to a nineteenth aspect related to the sixteenth aspect, the method further comprises: receiving at least one weighting value in response to a selection made by a user by interacting with a graphical control provided by the user interface presentation. The combining operation is affected by the at least one weighting value.
[0144] According to the twentieth aspect, a computer-readable storage medium for storing computer-readable instructions is described. The computer-readable instructions, when executed by one or more hardware processors, perform a method comprising the following steps: in response to a selection of a first input image and a second input image by a user, receiving at least a first input image and a second input image; using an encoder to generate a first latent variable vector based on the first input image; using an encoder to generate a second latent variable vector based on the second input image; combining the first latent variable vector and at least the second latent variable vector to generate a mixed latent variable vector; using a decoder neural network to generate a query image based on the mixed latent variable vector, a training system generating the decoder neural network by training a generator component in a generative adversarial network; submitting the query image to a computer-implemented search engine; receiving a set of candidate images that match the query image evaluated by the search engine; and presenting the set of candidate images to the user using an output device.
[0145] The twenty-first aspect corresponds to any combination (eg, any logically consistent arrangement or subset) of the first to twentieth aspects described above.
[0146] The twenty-second aspect corresponds to any method counterpart, device counterpart, system counterpart, apparatus plus function counterpart, computer-readable storage medium counterpart, data structure counterpart, product counterpart, graphical user interface presentation counterpart, etc. associated with the first to twenty-first aspects.
[0147] Finally, the functionality described herein may employ various mechanisms to ensure that any user data is processed in a manner consistent with applicable laws, social norms, and the expectations and preferences of individual users. For example, the functionality may allow a user to explicitly opt-in (and then explicitly opt-out) of provisions of the functionality. The functionality may also provide suitable security mechanisms to ensure the privacy of user data (such as data cleansing mechanisms, encryption mechanisms, password protection mechanisms, etc.).
[0148] Furthermore, the description may have presented various concepts in the context of an illustrative challenge or problem. This interpretation is not intended to imply that others have understood and / or articulated the challenge or problem in the manner specified herein. Furthermore, this interpretation is not intended to imply that the subject matter recited in the claims is limited to solving only the identified challenge or problem; that is, the subject matter in the claims may be applied in the context of challenges or problems other than those described herein.
[0149] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
Claims
1. One or more computing devices for performing an image-based search, comprising: Hardware logic circuitry comprising: (a) one or more hardware processors that perform operations by executing machine-readable instructions stored in a memory, and / or (b) one or more other hardware logic units that use a task-specific set of logic gates to perform the operations, the operations comprising: receiving, in response to manipulation of an input device by a user, a selection of an input image from the user; extracting a first information item from the input image, the first information item representing at least one existing characteristic of the input image; generating a second information item specifying at least one expected image characteristic; generating a query image based on the first information item and the second information item, the query image comprising content representing a combination of the at least one existing characteristic of the input image and the at least one expected image characteristic; submitting the query image to a computer-implemented search engine; receiving a set of candidate images evaluated by the search engine that match the query image; and presenting the candidate image set to the user using an output device, wherein the input image corresponds to a first input image, wherein the first information item corresponds to a first latent variable vector associated with the first input image, and the second information item corresponds to a second latent variable vector associated with a received second input image, wherein the extracting comprises: using a first encoder implemented by the hardware logic circuit to generate the first latent variable vector based on the first input image, wherein the generating comprises: using a second encoder implemented by the hardware logic circuit to generate the second latent variable vector based on the second input image, The operation further comprises: combining the first latent variable vector and at least the second latent variable vector to generate a mixed latent variable vector, and wherein the generating comprises: using a decoder neural network implemented by the hardware logic circuit to produce the query image based on the mixed latent variable vector, the decoder neural network operating based on parameter values provided by a machine trained model, The query image is synthesized by the decoder neural network by mapping the mixed latent variable vector into the query image using the machine trained model, rather than selecting the query image from a data store of real pre-existing images.
2. The one or more computing devices of claim 1, wherein the operations further comprise: receiving from the user information describing the textuality of the second input image; as well as The second input image is retrieved by performing a search based on the textuality information. 3 . The one or more computing devices of claim 1 , wherein the first input image shows a product and the second input image shows a desired characteristic of the product.
4. One or more computing devices according to claim 1, The combinations include: combining the first latent variable vector and a plurality of supplementary latent variable vectors to generate the mixed latent variable vector, The plurality of supplemental latent variable vectors are associated with a plurality of input images retrieved by performing a text-based image search, The plurality of supplemental latent variable vectors include the second latent variable vector.
5. The one or more computing devices of claim 1, wherein the operations further comprise: receiving one or more weighted values in response to one or more selections made by the user by manipulating a graphical control provided by a user interface presentation; as well as modifying one or more latent variable vectors associated with one or more corresponding input images based on the one or more weighted values, The graphic control includes a cursor navigation space, wherein a plurality of reference points on the periphery of the cursor navigation space correspond to corresponding input images, and Wherein a weighting value to be applied to an input image associated with a reference point is based on a positioning of a cursor in said cursor navigation space at least relative to said reference point.
6. The one or more computing devices of claim 1, wherein the operations further comprise: changing one or more weighting values applied to one or more respective latent variable vectors associated with the one or more respective input images; In response to the changing, displaying a changed representation of a generated image produced based on the one or more latent variable vectors; as well as An instruction to save the set of weighted values is received from the user, the user making the instruction after observing the expected state of the generated image.
7. One or more computing devices according to claim 1, wherein the training system generates the decoder neural network by training a generator component in a generative adversarial network to generate a machine learning model.
8. The one or more computing devices of claim 1 , wherein each encoder operates by performing at least one of the following: (a) converting a given input image into a feature space representation of the given input image; (b) converting, using the decoder neural network, a candidate latent variable vector associated with the given input image into a candidate output image; (c) converting the candidate output image into a feature space representation of the candidate output image; (d) determining a distance between a feature space representation of the given input image and a feature space representation of the candidate output image; and (e) adjusting the candidate latent variable vector based on the distance.
9. The one or more computing devices of claim 1, wherein each encoder is implemented using a feed-forward neural network that approximates the results of a process for iteratively finding a latent variable vector.
10. The one or more computing devices of claim 1, wherein each encoder operates by downsampling a given input image to an input image of reduced size.
11. One or more computing devices according to claim 1, wherein the training system generates each encoder and decoder neural network by separately training an encoder component and a decoder component of a variational autoencoder (VAE).
12. One or more computing devices according to claim 1, wherein the training system generates each encoder and decoder neural networks by respectively training an encoder component and a decoder component of a flow-based neural network system, in which the decoder component implements an inverse function of a function provided by the encoder component.
13. The one or more computing devices of claim 1, wherein the query image has no corresponding pre-existing image.
14. One or more computing devices according to claim 5, wherein the cursor navigation space defines a shape having a position that can be described using at least two dimensions, and wherein the graphical control is configured to allow the user to move the cursor to any position within the shape.
15. A method for performing an image-based search, comprising: In response to selection of a first input image and a second input image by a user, receiving at least the first input image and the second input image; Using a first encoder to generate a first latent variable vector based on the first input image; using a second encoder to generate a second latent variable vector based on the second input image; combining the first latent variable vector and at least the second latent variable vector to produce a mixed latent variable vector; using a decoder neural network to generate a query image based on the mixed latent variable vector, wherein the query image corresponds to a synthetic image produced by the decoder neural network by mapping the mixed latent variable vector to the query image using a machine trained model, rather than selecting the query image from a data store of real pre-existing images; submitting the query image to a computer-implemented search engine; receiving a set of candidate images evaluated by the search engine that match the query image; and The set of candidate images is presented to the user using an output device.
16. The method of claim 15, wherein the machine-trained model is a generative machine-trained model.
17. The method of claim 16, wherein the generative machine trained model is generated using a generative adversarial network.
18. A computer-readable storage medium for storing computer-readable instructions, which, when executed by one or more hardware processors, perform a method comprising the steps of: In response to selection of a first input image and a second input image by a user, receiving at least the first input image and the second input image; Using a first encoder to generate a first latent variable vector based on the first input image; using a second encoder to generate a second latent variable vector based on the second input image; combining the first latent variable vector and at least the second latent variable vector to produce a mixed latent variable vector; using a decoder neural network to generate a query image based on the mixed latent variable vector, wherein the query image corresponds to a synthetic image produced by the decoder neural network by mapping the mixed latent variable vector to the query image using a machine-trained model, rather than selecting the query image from a data store of real pre-existing images, the training system producing the machine-trained model by training a generator component in a generative adversarial network; submitting the query image to a computer-implemented search engine; receiving a set of candidate images evaluated by the search engine that match the query image; as well as The set of candidate images is presented to the user using an output device.
19. A method for performing an image-based search, comprising: receiving, in response to manipulation of an input device by a user, a selection of an input image from the user; encoding the input image into a first representation representing at least one existing characteristic of the input image; encoding the other image into a second representation representing at least one expected image characteristic; combining the first representation and the second representation into a combined representation; synthesizing a query image using a decoder neural network by mapping the combined representation to the query image using a machine trained model, rather than selecting the query image from a data store of real pre-existing images, the query image comprising content representing a combination of the at least one existing characteristic of the input image and the at least one desired image characteristic; displaying the synthesized query image; receiving one or more weighted values in response to one or more selections made by the user by manipulating a graphical control provided by a user interface presentation; generating another combined representation taking into account the one or more weighted values; synthesizing the modified query image using the decoder neural network by mapping the another combined representation to the modified query image using the machine trained model of the decoder neural network, rather than selecting the modified query image from the data store of real pre-existing images; displaying the modified query image; submitting the modified query image to a computer-implemented search engine; receiving a set of candidate images evaluated by the search engine that match the modified query image; as well as The set of candidate images is presented to the user using an output device.
Citation Information
Patent Citations
Interactive multi-modal image search
CN103946838A
Modifying At Least One Attribute Of Image With At Least One Attribute Extracted From Another Image
CN106560809A
Method and device for matching images with content items, and data processing system
CN107766398A
Method and system for searching and selecting images and machine readable media
CN107784059A
