SuperAPI AI Directory

pixel_character_generator

Generating retro pixel game characters with Generative Adversarial Networks. Dataset "TinyHero" included.

Open website

About this tool

Purpose

This project aims to use generative adversarial networks (GANs) to generate retro pixel-style game characters, and provides a dataset named "TinyHero" for training and experimentation.

Main Capabilities

  • TinyHero Dataset: Contains 64x64-pixel retro pixel characters. All characters are randomly generated based on the Universal LPC spritesheet (author makrohn), covering gender, body type, skin color, and equipment. Each character has 4 different viewpoints.
  • DCGAN Model: Modified based on the PyTorch DCGAN tutorial, experimenting with latent vector size and feature map size, introducing soft labels and noisy labels, using Wasserstein loss to solve the mode collapse problem, and adding dropout to the generator and discriminator.
  • Conditional DCGAN: Can generate pixel characters based on a selected viewpoint. The discriminator must simultaneously determine real/fake and character angle, and the generator embeds viewpoint information through a trainable lookup table.
  • Deep Convolutional Autoencoder: Has the same architecture as DCGAN, but adds a fully connected layer on top of the encoder to project the convolutional output to a specified latent size. An embedding size of 40 can achieve good reconstruction quality, has denoising properties, and is simpler and more stable to train than GANs.

Usage

This project is a GitHub repository and includes related notebooks. Specific installation and running steps are not provided for now; refer to the files in the repository.

Applicable Scenarios

Suitable for scenarios such as game development, pixel art generation, and GAN research.

Limitations

Specific performance, fees, pricing, platform, results, or detailed usage steps are not provided for now.