IP Library Granted Patent US 12,657,878
Granted Patent B2
US 12,657,878 · App. 17/941,060 · Granted Jun 16, 2026

Information processing apparatus, method for controlling the same, and non-transitory computer-readable storage medium

Inventor: Takato Kimura (Kanagawa, JP)
Assignee: CANON KABUSHIKI KAISHA
G06V10/7715G06T7/10G06V10/761G06V10/764G06V10/774G06V10/82G06V40/168G06T2207/20021G06T2207/20081G06T2207/20084G06T2207/30201
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,657,878
App. No.
17/941,060
Granted
Jun 16, 2026
Kind
B2
Abstract

This disclosure provide an apparatus which comprises an acquisition unit that acquires an image, a divider that divides the image into a plurality of partial images; a converter that converts the partial images into tokens having fixed dimensional vectors; an adder that adds a class-token having a vector of a dimension same as the two or more tokens to the tokens obtained by the converter; an encoder that updates the tokens obtained by the adder based on a relevance between the tokens to obtain final encoded representations; an acquiring unit that acquires an encoded representation corresponding to the class-token in the encoded representations obtained by the encoder as class-token encoded representations; and a combining unit that combines the class-token encoded representations to obtain a feature vector of the input image.

Claims (86)

1 . An image processing apparatus, comprising:

a processor; and

a memory including instructions, which when executed by the processor, cause the image processing apparatus to perform operations comprising:

acquiring an input image;

dividing the input image into a plurality of partial images;

converting the partial images into tokens having fixed dimensional vectors;

adding two or more class tokens having a vector of a dimension same as the tokens having fixed dimensional vectors to the tokens having fixed dimensional vectors;

updating the two or more class tokens based on a relevance between the two or more class tokens to obtain encoded representations;

acquiring class-token encoded representations corresponding to each of the two or more class tokens in the encoded representations; and

combining the two or more class encoded representations to obtain a feature vector of the input image, wherein

a learning is performed with a loss function including a regularization term that decreases at least one of a degree of similarity between the two or more class tokens and a degree of similarity between the class-token encoded representations.

2 . The apparatus according to claim 1 , wherein

combining the class-token encoded representations includes outputting a weighted sum of the class-token encoded representations as the feature vector of the input image.

3 . The apparatus according to claim 1 , wherein

combining the class-token encoded representations includes outputting a basic statistic of the class-token encoded representations as the feature vector of the input image.

4 . The apparatus according to claim 1 , wherein

combining the class-token encoded representations includes combining the class-token encoded representations by neural network to obtain the feature vector of the input image.

5 . The apparatus according to claim 1 , wherein

combining the class-token encoded representations includes:

adding one feature vector token to the class-token encoded representations;

obtaining second encoded representations from the class-token encoded representations; and

acquiring a feature vector encoded representation corresponding to a feature vector token in the second encoded representations as the feature vector of the input image.

6 . The apparatus according to claim 1 , wherein

updating the tokens includes calculating an attention map including a matrix of the number of tokens x the number of tokens having relationships between the respective tokens as elements, and

a learning is performed with a loss function including a regularization term, and the regularization term decreases at least one of a degree of similarity between the two or more class tokens, a degree of similarity between the class-token encoded representations, and a degree of similarity between the attention maps corresponding to the two or more class tokens.

7 . The apparatus according to claim 1 , wherein

the respective two or more class tokens are learned with common supervisory data.

8 . The apparatus according to claim 1 , wherein

the respective two or more class tokens are initialized with random values having values different from one another for learning.

9 . The apparatus according to claim 8 , wherein

the respective two or more class tokens are initialized so as to be orthogonal to one another for learning.

10 . A method of controlling an image processing apparatus, comprising the steps of:

(a) acquiring an input image;

(b) dividing the input image into a plurality of partial images;

(c) converting the partial images into tokens having fixed dimensional vectors to convert partial images divided in the dividing (b) into tokens;

(d) adding two or more class tokens class tokens having a vector of a dimension same as the tokens to the tokens obtained in the converting (c);

(e) updating the tokens two or more class tokens obtained in the adding (d) based on a relevance between the tokens two or more class tokens to obtain encoded representations;

(f) acquiring class tokens class tokens encoded representations corresponding to each of the respective class-tokens in the encoded representations obtained in the updating (e) as class-token encoded representations; and

(g) combining the class-token encoded representations to obtain a feature vector of the input image, wherein

a learning is performed with a loss function including a regularization term that decreases at least one of a degree of similarity between the two or more class tokens and a degree of similarity between the class-token encoded representations.

11 . A non-transitory computer-readable storage medium storing a program which, when read and executed by a computer, causes the computer to perform steps of a method controlling an image processing apparatus, the method comprising the steps of:

(a) acquiring an input image;

(b) dividing the input image into a plurality of partial images;

(c) converting the partial images into tokens having fixed dimensional vectors to convert partial images divided in the dividing (b) into tokens having fixed dimensional vectors;

(d) adding two or more class tokens having a vector of a dimension same as the tokens to the tokens obtained in the converting (c);

(e) updating the two or more class tokens obtained in the adding (d) based on a relevance between the two or more class tokens to obtain encoded representations;

(f) acquiring class-token encoded representations corresponding to each of the respective class tokens in the encoded representations obtained in the updating (e) as class-token encoded representations; and

(g) combining the class-token encoded representations to obtain a feature vector of the input image, wherein

a learning is performed with a loss function including a regularization term that decreases at least one of a degree of similarity between the two or more class tokens and a degree of similarity between the class-token encoded representations.

12 . An image processing apparatus, comprising:

a processor; and

a memory including instructions, which when executed by the processor, cause the image processing apparatus to perform operations comprising:

acquiring an input image;

dividing the input image into a plurality of partial images;

converting the partial images into tokens having fixed dimensional vectors;

adding two or more class tokens having a vector of a dimension same as the tokens having fixed dimensional vectors to the tokens having fixed dimensional vectors;

updating the tokens based on a relevance between the tokens to obtain encoded representations;

acquiring class-token encoded representations corresponding to each of the respective two or more class tokens in the encoded representations; and

combining the class-token encoded representations to obtain a feature vector of the input image, wherein

combining the class-token encoded representations includes:

adding one feature vector token to the class-token encoded representations;

obtaining second encoded representations from the class-token encoded representations; and

acquiring a feature vector encoded representation corresponding to a feature vector token in the second encoded representations as the feature vector of the input image.

13 . An image processing apparatus, comprising:

a processor; and

a memory including instructions, which when executed by the processor, cause the image processing apparatus to perform operations comprising:

acquiring an input image;

dividing the input image into a plurality of partial images;

converting the partial images into tokens having fixed dimensional vectors;

adding two or more class tokens having a vector of a dimension same as the tokens having fixed dimensional vectors to the tokens having fixed dimensional vectors;

updating the tokens based on a relevance between the tokens to obtain encoded representations;

acquiring class-token encoded representations corresponding to each of the respective two or more class tokens in the encoded representations; and

combining the class-token encoded representations to obtain a feature vector of the input image, wherein

updating the tokens includes calculating an attention map including a matrix of the number of tokens x the number of tokens having relationships between the respective tokens as elements, and

a learning is performed with a loss function including a regularization term, and the regularization term decreases at least one of a degree of similarity between the two or more class tokens, a degree of similarity between the class-token encoded representations, and a degree of similarity between the attention maps corresponding to the class tokens.

14 . An image processing apparatus, comprising:

a processor; and

a memory including instructions, which when executed by the processor, cause the image processing apparatus to perform operations comprising:

acquiring an input image;

dividing the input image into a plurality of partial images;

converting the partial images into tokens having fixed dimensional vectors;

adding two or more class tokens having a vector of a dimension same as the tokens to the tokens;

updating the tokens based on a relevance between the tokens to obtain encoded representations;

acquiring class-token encoded representations corresponding to each of the respective two or more class tokens in the encoded representations; and

combining the class-token encoded representations to obtain a feature vector of the input image, wherein

the respective two or more class tokens are initialized with random values having values different from one another, and so as to be orthogonal to one another for learning.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 11, 2022
From: KIMURA, TAKATO
To: CANON KABUSHIKI KAISHA
Reel/Frame 061369/0444 →
Priority Claims (1)
JP 2021-150417 · Sep 15, 2021 · national
Continuity (1)
Related Publication 20230077498A1 · Mar 16, 2023
References Cited (28)
US 7680748B2 · Heisele · 2010 [cited by examiner]
US 8675974B2 · Iio · 2014 [cited by examiner]
US 9158971B2 · Gaidon · 2015 [cited by examiner]
US 11971955B1 · Chakraborty · 2024 [cited by examiner]
US 20110158535A1 · Iio · 2011 [cited by examiner]
US 20150248586A1 · Gaidon · 2015 [cited by examiner]
US 20210174162A1 · Le · 2021 [cited by applicant]
US 20210319243A1 · Jin · 2021 [cited by examiner]
US 20220036564A1 · Ye · 2022 [cited by examiner]
US 20220092366A1 · Chiu · 2022 [cited by examiner]
US 20240221128A1 · Chen · 2024 [cited by examiner]
CA 3002100A1 · 2019 [cited by examiner]
JP 6884871B2 · 2021 [cited by applicant]
WO 2018217948A1 · 2018 [cited by applicant]
WO 2021095213A1 · 2021 [cited by applicant]
Scalable Vision Transformers with Hierarchical Pooling, Zizheng Pan et al., arXiv, Aug. 2021, pp. 1-11 (Year: 2021). [cited by examiner]
Image Captioning: Transforming Objects into Words, Simao Herdade et al., NeurIPS, 2019, pp. 1-11 (Year: 2019). [cited by examiner]
Image Classification for Soybean and Weeds Based on ViT, Jingxin Liang et al, 2021, pp. 1-7 (Year: 2021). [cited by examiner]
Method for Diagnosis of Acute Lymphoblastic Leukemia Based on VIT-CNN Ensemble Model, Zhencun Jiang et al., Hindawi, Aug. 2021, pp. 1-12 (Year: 2021). [cited by examiner]
Training Vision Transformers for Image Retrieval, Alaaeldin El-Nouby et al., arXiv, Feb. 2021, pp. 1-10 (Year: 2021). [cited by examiner]
Face Transformer for Recognition, Yaoyao Zhong et al., arXiv, Apr. 2021, pp. 1-5 (Year: 2021). [cited by examiner]
An Image is Worth 16×16 words:. Transformers for Image Recognition at Scale, Alexey et al., arXiv, Jun. 2021, pp. 1-22 (Year: 2021). [cited by examiner]
CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classification, Chun-Fu (Richard) Chen et al., arXiv, Aug. 22, 2021, pp. 1-12 (Year: 2021). [cited by examiner]
Deng, J. et al. “ArcFace: Additive Angular Margin Loss for Deep Face Recognition” CVPR (Jun. 2019) pp. 4690-4699. [cited by applicant]
Dosovitskiy, A. et al., “An Image Is Worth 16×16 Words: Transformers for Image Recognition at Scale” ICLR 2021, arXiv: 2010.11929v2 (Jun. 2021) pp. 1-22. [cited by applicant]
Zhong, Y. et al., “Face Transformer for Recognition” arXiv:2103.14803v2 (Apr. 2021) pp. 1-5. [cited by applicant]
Chen, C-F et al., “CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classification” arXiv:2103.14899v2 (Aug. 2021) pp. 1-12. [cited by applicant]
Notice of Reasons for Refusal issued by the Japanese Patent Office on May 23, 2025 in corresponding JP Patent Application No. 2021-150417, with English translation. [cited by applicant]