A computer-implemented method for automatically generating a cartoon-style video, comprising: acquiring a cartoon face image sequence of a target cartoon character from a received cartoon-style video, and generating a cartoon face contour figure sequence based on the cartoon face image sequence; generating a face image sequence for a real face based on the cartoon face contour figure sequence and a received initial face image of the real face, wherein a face expression in the face image sequence matches a face expression in the cartoon face image sequence; generating a cartoon-style face image sequence for the real face according to the face image sequence; and replacing a face image of the target cartoon character in the cartoon-style video with a cartoon-style face image in the cartoon-style face image sequence, to generate a cartoon-style video corresponding to the real face; wherein the generating a face image sequence for a real face based on the cartoon face contour figure sequence and a received initial face image of the real face comprises: for each cartoon face contour figure in the cartoon face contour figure sequence, performing sequentially following operations of generating a face image: generating a first face image based on the current cartoon face contour figure and face feature information of the initial face image, and determining a face image for the real face based on the first face image; and generating the face image sequence for the real face using the determined face images. acquiring a cartoon face image sequence of a target cartoon character from a received cartoon-style video, and generating a cartoon face contour figure sequence based on the cartoon face image sequence; generating a face image sequence for a real face based on the cartoon face contour figure sequence and a received initial face image of the real face, wherein a face expression in the face image sequence matches a face expression in the cartoon face image sequence; generating a cartoon-style face image sequence for the real face according to the face image sequence; and replacing a face image of the target cartoon character in the cartoon-style video with a cartoon-style face image in the cartoon-style face image sequence, to generate a cartoon-style video corresponding to the real face; wherein the generating a face image sequence for a real face based on the cartoon face contour figure sequence and a received initial face image of the real face comprises: for each cartoon face contour figure in the cartoon face contour figure sequence, performing sequentially following operations of generating a face image: generating a first face image based on the current cartoon face contour figure and face feature information of the initial face image, and determining a face image for the real face based on the first face image; and generating the face image sequence for the real face using the determined face images. generating a first face image based on the current cartoon face contour figure and face feature information of the initial face image, and determining a face image for the real face based on the first face image; and generating the face image sequence for the real face using the determined face images. <EOS>