(EN) A method and device for image generation are provided. The method includes: obtaining a text describing a content of an image to be generated; extracting, using a text encoder, a text feature vector from the text; determining a semantic mask as spatial constraints of the image to be generated; and automatically generating the image using a generative adversarial network (GAN) model according to the semantic mask and the text feature vector.
(FR) L'invention concerne un procédé et un dispositif de génération d'images. Le procédé consiste à : obtenir un texte décrivant un contenu d'une image à générer ; extraire, à l'aide d'un codeur de texte, un vecteur de caractéristiques de texte à partir du texte ; déterminer un masque sémantique en tant que contraintes spatiales de l'image à générer ; et générer l'image automatiquement à l'aide d'un modèle de réseau antagoniste génératif (GAN) en fonction du masque sémantique et du vecteur de caractéristiques de texte.