CPC G06V 10/771 (2022.01) [G06V 10/761 (2022.01)] | 20 Claims |
1. A method of training an image generation model, the method comprising:
acquiring a first image sample and a first text sample matched with the first image sample;
performing an enhancement on at least one type of sample in the first image sample and the first text sample according to a predetermined knowledge graph, so as to obtain at least one type of sample in a second image sample obtained by the enhancement and a second text sample obtained by the enhancement; and
training the image generation model according to a training set selected from a first training set, a second training set or a third training set, until the image generation model converges, wherein the first training set comprises the second image sample and the first text sample, the second training set comprises the first image sample and the second text sample, and the third training set comprises the second image sample and the second text sample.
|