The application discloses a method for training an action generation model, an action generation method, an action generation device and an action generation equipment, and relates to
machine learning of
artificial intelligence. The method comprises the following steps: calling an action
encoder to perform action
feature extraction on an action state of a virtual character to obtain an
action code; calling a style
encoder to perform style
feature extraction on the action state of the virtual character to obtain a style code; calling a decoder to decode the
action code and the style code to obtain a predicted action of the virtual character; calculating a style loss according to the style codes of different action states; calculating an action loss according to the action codes of different action states; calculating a reconstruction loss according to a real action corresponding to an action state and the predicted action; and training the action generation model according to the action loss, the style loss and the reconstruction loss. The method can distinguish the action styles of different virtual characters and improve the action quality of the generated virtual characters.