CPC G06N 3/088 (2013.01) [G06F 18/214 (2023.01); G06F 18/2193 (2023.01); G06N 3/045 (2023.01); G06V 20/41 (2022.01); G06V 20/49 (2022.01)] | 20 Claims |
1. A method for generating a time-lapse photography video with a neural network model, the method comprising:
obtaining, by a device comprising a memory storing instructions and a processor in communication with the memory, a training sample, the training sample comprising a training video and an image set corresponding to the training video;
obtaining, by the device, a basic time-lapse photography video by using a first generative adversarial network of a neural network model;
obtaining, by the device, an optimized time-lapse photography video based on the basic time-lapse photography video by using a generator in a second generative adversarial network of the neural network model;
obtaining, by the device, a discrimination result according to the optimized time-lapse photography video by using a discriminator in the second generative adversarial network;
generating, by the device, a loss of the second generative adversarial network according to the optimized time-lapse photography video, the basic time-lapse photography video, the training video, and the discrimination result, the loss comprising a ranking loss determined according to motion features respectively corresponding to the optimized time-lapse photography video, the basic time-lapse photography video, and the training video; and
optimizing, by the device, a set of network parameters of the second generative adversarial network according to the loss of the second generative adversarial network, until a training ending condition is satisfied.
|