The invention belongs to the field of image processing, and provides a training method of a video optimization model and electronic equipment, and the method comprises the steps: inputting a fuzzy video into a preset video optimization model for alignment and deblurring and obtaining a first output image in an output video; determining an optical flow according to a label video, and transforming the first output image according to the optical flow to obtain a second output image; determining the difference between the first output image and the first label image and the difference between the second output image and the second label image, and adjusting the parameters of the video optimization model according to the differences until the training of the video optimization model is completed. The to-be-optimized video is subjected to alignment processing through the alignment module, the aligned image is subjected to video optimization through the trained video optimization model, the deblurred video can be obtained, meanwhile, the time domain consistency problem can be effectively optimized, and therefore the optimization efficiency of the blurred video can be effectively improved.