# US 2025/0148759 A1 · Open-vocabulary object detection in images

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0148759 A1
- Document ID: US20250148759A1
- Status: Published application
- Kind: A1
- Application number: 19/014,029
- Filed: 2025-01-08
- Published: 2025-05-08
- Earliest claimed: 2022-05-06
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Matthias Johannes Lorenz Minderer; Alexey Alexeevich Gritsenko; Austin Charles Stone; Dirk Weissenborn; Alexey Dosovitskiy; Neil Matthew Tinmouth Houlsby
- Web page: https://patentgrep.com/patent/US20250148759A1

## CPC

- G06V 10/764: using classification, e.g. of video objects
- G06F 18/253: {of extracted features}
- G06F 40/40: Processing or translation of natural language (natural language analysis G06F40/20; semantic analysis G06F40/30)
- G06V 10/225: {based on a marking or identifier characterising the area}
- G06V 10/761: {Proximity, similarity or dissimilarity measures}
- G06V 10/774: Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
- G06V 10/776: Validation; Performance evaluation
- G06V 10/82: using neural networks
- G06V 10/86: using syntactic or structural representations of the image or video pattern, e.g. symbolic string recognition; using graph matching
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, for object detection. In one aspect, a method comprises: obtaining: (i) an image, and (ii) a set of one or more query embeddings, wherein each query embedding represents a respective category of object; processing the image and the set of query embeddings using an object detection neural network to generate object detection data for the image, comprising: processing the image using an image encoding subnetwork of the object detection neural network to generate a set of object embeddings; processing each object embedding using a localization subnetwork to generate localization data defining a corresponding region of the image; and processing: (i) the set of object embeddings, and (ii) the set of query embeddings, using a classification subnetwork to generate, for each object embedding, a respective classification score distribution over the set of query embeddings.

## Claims

### Claim 1

(canceled)

### Claim 2

A method performed by one or more computers, the method comprising:
obtaining: (i) an input image, and (ii) a set of one or more query embeddings, wherein each query embedding represents a respective category of object, wherein one or more of the query embeddings are image-conditioned query embeddings are each derived from a respective set of one or more query images;
processing the input image and the set of query embeddings using an object detection neural network to generate object detection data for the input image, comprising:
processing the input image using an image encoding subnetwork of the object detection neural network to generate a set of object embeddings;
processing each object embedding using a localization subnetwork of the object detection neural network to generate localization data defining a corresponding region of the input image; and
processing: (i) the set of object embeddings, and (ii) the set of query embeddings, using a classification subnetwork of the object detection neural network to generate, for each object embedding, a respective classification score distribution over the set of query embeddings,
wherein the respective classification score distribution for each of the object embeddings defines, for each query embedding, a likelihood that the region of the input image corresponding to the object embedding depicts an object that is included in the category represented by the query embedding.

### Claim 3 (depends on 2)

The method of claim 2, wherein for each image-conditioned query embedding, obtaining the image-conditioned query embedding comprises:
obtaining a set of one or more query images, wherein each query image includes a respective target region that depicts an example of a target object;
generating a respective embedding of the target object in each query image; and
generating the query embedding by combining the embeddings of the target objects in the query images.

### Claim 4 (depends on 3)

The method of claim 3, wherein for each query image, generating the embedding of the target object in the query image comprises:
processing the query image using the image encoding subnetwork to generate a set of object embeddings for the query image;
processing each object embedding for the query image using the localization subnetwork to generate localization data defining a corresponding region of the query image;
determining, for each object embedding for the query image, a respective measure of overlap between: (i) the target region of the query image that depicts the example of the target object, and (ii) the region of the query image corresponding to the object embedding for the query image; and
selecting an object embedding from the set of object embeddings for the query image as the embedding of the target object in the query image based on the measures of overlap.

### Claim 5 (depends on 2)

The method of claim 2, wherein the image encoding subnetwork comprises one or more self-attention neural network layers.

### Claim 6 (depends on 2)

The method of claim 2, wherein processing the image using the image encoding subnetwork to generate the set of object embeddings comprises:
generating a set of initial object embeddings by an embedding layer of the image encoding subnetwork, wherein each initial object embedding is derived at least in part from a corresponding patch in the image; and
processing the set of initial object embeddings by a plurality of neural network layers, including one or more self-attention neural network layers of the image encoding subnetwork, to generate a set of final object embeddings.

### Claim 7 (depends on 6)

The method of claim 6, wherein processing an object embedding using the localization subnetwork to generate localization data defining the corresponding region of the image comprises:
generating a set of offset coordinates, wherein the offset coordinates define an offset of the corresponding region of the image from a location of the image patch corresponding to the object embedding

### Claim 8 (depends on 2)

The method of claim 2, wherein processing: (i) the set of object embeddings, and (ii) the set of query embeddings, using a classification subnetwork of the object detection neural network to generate, for each object embedding, a respective classification score distribution over the set of query embeddings, comprises:
processing each object embedding using one or more neural network layers of a classification neural network to generate a corresponding classification embedding; and
generating, for each object embedding, the classification score distribution over the set of query embeddings using: (i) the classification embedding corresponding to the object embedding, and (ii) the query embeddings, comprising:
generating a respective measure of similarity between the classification embedding and each query embedding, wherein the measure of similarity between the classification embedding and a query embedding defines a likelihood that the region of the image corresponding to the object embedding depicts an object that is included in the category represented by the query embedding.

### Claim 9 (depends on 8)

The method of claim 8, wherein processing each object embedding using one or more neural network layers of the classification neural network to generate a corresponding classification embedding comprises:
generating each classification embedding by projecting the corresponding object embedding into a latent space that includes the query embeddings.

### Claim 10 (depends on 8)

The method of claim 8, wherein generating the respective measure of similarity between the classification embedding and each query embedding comprises, for each query embedding:
computing an inner product between the classification embedding and the query embedding.

### Claim 11 (depends on 2)

The method of claim 2, wherein processing the image using the image encoding subnetwork to generate the set of object embeddings comprises:
generating a set of initial object embeddings by an embedding layer of the image encoding subnetwork, wherein each initial object embedding is derived at least in part from a corresponding patch in the image; and
processing the set of initial object embeddings by a plurality of neural network layers, including one or more self-attention neural network layers of the image encoding subnetwork, to generate a set of final object embeddings.

### Claim 12

A system comprising:
one or more computers; and
one or more storage devices communicatively coupled to the one or more computers, wherein the one or more storage devices store instructions that, when executed by the one or more computers, cause the one or more computers to perform operations comprising:
obtaining: (i) an input image, and (ii) a set of one or more query embeddings, wherein each query embedding represents a respective category of object, wherein one or more of the query embeddings are image-conditioned query embeddings are each derived from a respective set of one or more query images;
processing the input image and the set of query embeddings using an object detection neural network to generate object detection data for the input image, comprising:
processing the input image using an image encoding subnetwork of the object detection neural network to generate a set of object embeddings;
processing each object embedding using a localization subnetwork of the object detection neural network to generate localization data defining a corresponding region of the input image; and
processing: (i) the set of object embeddings, and (ii) the set of query embeddings, using a classification subnetwork of the object detection neural network to generate, for each object embedding, a respective classification score distribution over the set of query embeddings,
wherein the respective classification score distribution for each of the object embeddings defines, for each query embedding, a likelihood that the region of the input image corresponding to the object embedding depicts an object that is included in the category represented by the query embedding.

### Claim 13 (depends on 12)

The system of claim 12, wherein for each image-conditioned query embedding, obtaining the image-conditioned query embedding comprises:
obtaining a set of one or more query images, wherein each query image includes a respective target region that depicts an example of a target object;
generating a respective embedding of the target object in each query image; and
generating the query embedding by combining the embeddings of the target objects in the query images.

### Claim 14 (depends on 13)

The system of claim 13, wherein for each query image, generating the embedding of the target object in the query image comprises:
processing the query image using the image encoding subnetwork to generate a set of object embeddings for the query image;
processing each object embedding for the query image using the localization subnetwork to generate localization data defining a corresponding region of the query image;
determining, for each object embedding for the query image, a respective measure of overlap between: (i) the target region of the query image that depicts the example of the target object, and (ii) the region of the query image corresponding to the object embedding for the query image; and
selecting an object embedding from the set of object embeddings for the query image as the embedding of the target object in the query image based on the measures of overlap.

### Claim 15 (depends on 12)

The system of claim 12, wherein the image encoding subnetwork comprises one or more self-attention neural network layers.

### Claim 16 (depends on 12)

The system of claim 12, wherein processing the image using the image encoding subnetwork to generate the set of object embeddings comprises:
generating a set of initial object embeddings by an embedding layer of the image encoding subnetwork, wherein each initial object embedding is derived at least in part from a corresponding patch in the image; and
processing the set of initial object embeddings by a plurality of neural network layers, including one or more self-attention neural network layers of the image encoding subnetwork, to generate a set of final object embeddings.

### Claim 17

One or more non-transitory computer storage media storing instructions that when executed by one or more computers cause the one or more computers to perform operations comprising:
obtaining: (i) an input image, and (ii) a set of one or more query embeddings, wherein each query embedding represents a respective category of object, wherein one or more of the query embeddings are image-conditioned query embeddings are each derived from a respective set of one or more query images;
processing the input image and the set of query embeddings using an object detection neural network to generate object detection data for the input image, comprising:
processing the input image using an image encoding subnetwork of the object detection neural network to generate a set of object embeddings;
processing each object embedding using a localization subnetwork of the object detection neural network to generate localization data defining a corresponding region of the input image; and
processing: (i) the set of object embeddings, and (ii) the set of query embeddings, using a classification subnetwork of the object detection neural network to generate, for each object embedding, a respective classification score distribution over the set of query embeddings,
wherein the respective classification score distribution for each of the object embeddings defines, for each query embedding, a likelihood that the region of the input image corresponding to the object embedding depicts an object that is included in the category represented by the query embedding.

### Claim 18 (depends on 17)

The non-transitory computer storage media of claim 17, wherein for each image-conditioned query embedding, obtaining the image-conditioned query embedding comprises:
obtaining a set of one or more query images, wherein each query image includes a respective target region that depicts an example of a target object;
generating a respective embedding of the target object in each query image; and
generating the query embedding by combining the embeddings of the target objects in the query images.

### Claim 19 (depends on 18)

The non-transitory computer storage media of claim 18, wherein for each query image, generating the embedding of the target object in the query image comprises:
processing the query image using the image encoding subnetwork to generate a set of object embeddings for the query image;
processing each object embedding for the query image using the localization subnetwork to generate localization data defining a corresponding region of the query image;
determining, for each object embedding for the query image, a respective measure of overlap between: (i) the target region of the query image that depicts the example of the target object, and (ii) the region of the query image corresponding to the object embedding for the query image; and
selecting an object embedding from the set of object embeddings for the query image as the embedding of the target object in the query image based on the measures of overlap.

### Claim 20 (depends on 17)

The non-transitory computer storage media of claim 17, wherein the image encoding subnetwork comprises one or more self-attention neural network layers.

### Claim 21 (depends on 17)

The non-transitory computer storage media of claim 17, wherein processing the image using the image encoding subnetwork to generate the set of object embeddings comprises:
generating a set of initial object embeddings by an embedding layer of the image encoding subnetwork, wherein each initial object embedding is derived at least in part from a corresponding patch in the image; and
processing the set of initial object embeddings by a plurality of neural network layers, including one or more self-attention neural network layers of the image encoding subnetwork, to generate a set of final object embeddings.
