-
1.
公开(公告)号:US20230103013A1
公开(公告)日:2023-03-30
申请号:US17936109
申请日:2022-09-28
Inventor: Jianwei LI
Abstract: A method for processing an image includes: obtaining a face image to be processed, and dividing the face image to be processed into image patches; determining respective importance information of the image patches of the face image to be processed; obtaining a pruning rate of a preset vision transformer (ViT) model; inputting the image patches into the ViT model, and pruning inputs of network layers of the ViT model according to the pruning rate and the respective importance information of the image patches, to obtain a result outputted by the ViT model; and determining feature vectors of the face image to be processed according to the result outputted by the ViT model.
-
公开(公告)号:US20230162477A1
公开(公告)日:2023-05-25
申请号:US18151639
申请日:2023-01-09
Inventor: Jianwei LI
IPC: G06V10/764 , G06V10/72
CPC classification number: G06V10/764 , G06V10/72
Abstract: A method for training a model based on knowledge distillation includes: inputting feature vectors obtained based on trained sample images into a first coding layer and a second coding layer, in which the first coding layer belongs to a first model, and the second coding layer belongs to a second model; obtaining first feature vectors by aggregating output results of the first coding layer; determining second feature vectors based on outputs of the second coding layer; and updating the first feature vectors by performing a distillation on the first feature vectors and the second feature vectors.
-