Image generation method and device, electronic equipment and storage medium

CN118537426APending Publication Date: 2024-08-23TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF -1 Cites 1 Cited by

Patent Information

Application Number
CN202410641646.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-08-23

Smart Images

  • Figure CN118537426A
    Figure CN118537426A
Patent Text Reader

Abstract

The invention provides an image generation method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring a prompt text and a prompt image, and determining a sub-prompt text corresponding to the prompt image in the prompt text; determining a target feature position in text features corresponding to the prompt text according to the position of the sub-prompt text in the prompt text, and generating a second image feature according to the target feature position, the size of the text features and a first image feature corresponding to the prompt image; performing cross attention processing on the text feature and a preset first image hidden feature, and performing cross attention processing on the second image feature and the first image hidden feature to obtain a second image hidden feature; performing cross attention processing on the first text hidden feature and the second image hidden feature to obtain a third image hidden feature, and fusing the first text hidden feature and the third image hidden feature to obtain a fused feature; and decoding the fusion features to obtain a generated image. According to the embodiment of the invention, the image generation accuracy can be improved.
Need to check novelty before this filing date? Find Prior Art

Citation Information

Cited By

  • Robot refined target positioning method and device based on condition multi-mode prompt

    CN119417906A