Skip to content

Video generation of anime content based on the first and last frame

Notifications You must be signed in to change notification settings

Kurokabe/GANime

Repository files navigation

GANime: Video generation of anime content conditioned on two frames

Paper | Presentation

tl;dr This is GANime, a model capable to generate video of anime content based on the first and last frame. This model is trained on a custom dataset based on the Kimetsu no Yaiba anime. It is composed of two model, a VQ-GAN for image generation, and a GPT2 transformer to generate the video frame by frame.

This project is a Master thesis realised by Farid Abdalla at HES-SO in partnership with Osaka Prefecture University (now renamed to Osaka Metropolitan University) in Japan. A PyTorch implementation is available on this repository.

All implementation details are available in this pdf.

Good results

For each pair of rows, the first row is the generated result and the second row is the ground truth.

Surprising results

For each pair of rows, the first row is the generated result and the second row is the ground truth.

Some results are quite surprising. For instance when the first and last frame are identical, the model is capable to generate some animations. For instance, some characters seems to be breathing even though the ground truth is still. When something appears suddenly (upper right video), the model made it appear with a fading effect.

The lower left picture with Zenitsu is interesting: it seems that the VQ-GAN learned that when generating an eye, it must put a pupil inside it, so generating a white eye did not make sense for the model.

For the clock (bottom-middle), the generated video moves the clock arms even though the first and last pictures are identical.

Dataset

Image

Dataset Link
Kimetsu no Yaiba link

Video

Dataset Link
Kimetsu no Yaiba link

Image

Dataset Link
Kimetsu no Yaiba link

Pretrained model

VQ-GAN

Dataset Model Link
MovingMNIST moving_mnist_image.yaml link
Kimetsu no Yaiba kny_image_full_vgg19.yaml link

Transformer

Dataset Model Link
Kimetsu no Yaiba kny_video_gpt2_medium.yaml.yaml link

VGG Weights

link

Instructions on how to train / generate will come later

About

Video generation of anime content based on the first and last frame

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages