To provide a training data generation method, a training data generation apparatus, an electronic device, and a computer-readable storage medium for generating visual question answering (VQA) training data.SOLUTION: A training data generation method 200 comprises: a step 210 for acquiring a first set of training data of a VQA system, including a first question for an image in the VQA system and a first answer corresponding to the first question; a step 220 for determining a second question related to the first question in terms of semantic; a step 230 for determining a second answer corresponding to the second question on the basis of the first question and the first answer and acquiring a second set of training data for the image in the VQA system. The second set of training data includes the second question and the second answer. Thus, the training data is automatically acquired at low costs and with high efficiency, an amount of training data is drastically increased, and accuracy of a VQA system model is improved.SELECTED DRAWING: Figure 2
展开▼