EasyCraft: A Robust and Efficient Framework for Automatic Avatar Crafting

Suzhen Wang, Weijie Chen, Wei Zhang, Minda Zhao, Lincheng Li, Rongsheng Zhang, Zhipeng Hu, Xin Yu

Introduction

In modern role-playing games (RPGs), the ability to personalize an avatar’s facial structure and makeup is a cornerstone of player immersion. However, the manual process of adjusting hundreds of sliders to achieve a desired look is often tedious and time-consuming. While automated "photo-to-avatar" tools have been developed to alleviate this, they frequently struggle with the "style gap"—the discrepancy between stylized user inputs (like anime or sketches) and the specific aesthetic of a game engine. Furthermore, game engines act as non-differentiable "black boxes," making it difficult to train models that can accurately map images to engine parameters.

EasyCraft addresses these challenges with a novel, end-to-end framework that automates avatar creation from both photos and text descriptions. By utilizing a two-stage training process and a universal vision transformer, EasyCraft bridges the style gap and delivers state-of-the-art accuracy in real-time.

Methodology

The EasyCraft architecture is built upon two primary components: a Universal Translator for image-to-parameter mapping and a Text-to-Image bridge for processing natural language descriptions.

1. The Universal Translator

The core of the framework is a Vision Transformer (ViT) encoder paired with a Parameter Generation Module (an MLP). To ensure the system is robust across various artistic styles, the authors employed a two-stage training strategy:

  • Self-Supervised Pre-training: The ViT encoder is first trained using a Masked Autoencoder (MAE) approach on a massive dataset of 5.1 million images, including real photos, anime, and cartoons. By learning to reconstruct missing facial features across these diverse styles, the encoder develops a "unified feature distribution," making it effectively style-agnostic.
  • Engine-Specific Mapping: After pre-training, the ViT encoder is frozen. The MLP is then trained using data generated directly from the target game engine—specifically, pairs of random slider settings and their corresponding rendered images. Because the encoder’s features are universal, the MLP learns to map these features to game parameters even though it is only exposed to game-style images during this phase.

2. Text-to-Avatar via Stable Diffusion

To support text-based creation (e.g., "A regal flame queen"), EasyCraft incorporates a fine-tuned Stable Diffusion (SD) model. This model is trained to generate images that align with the game's specific visual style. These generated images are then processed by the Universal Translator to produce the final in-game avatar parameters.

Datasets and Implementation

The robustness of EasyCraft is supported by extensive data:

  • Pre-training: 5.1 million images from diverse sources such as AffectNet, CASIA-WebFace, CelebA, IMDB-WIKI, AnimeFace, and Danbooru.
  • Engine Data: 200,000 parameter-render pairs from two major RPGs: Justice Mobile and Naraka: Bladepoint Mobile.
  • Text-to-Image Data: 7,000 game-rendered images captioned via GPT-4o to fine-tune the Stable Diffusion component.

To handle complex makeup options, the authors also implemented a "condition mask" in the loss function. This prevents interference from invalid parameters when certain makeup styles (like multi-layered lipsticks) have varying requirements.

Key Results and Insights

EasyCraft demonstrates significant improvements over previous state-of-the-art methods in several key areas:

  • Visual Fidelity: The framework achieved a Fréchet Inception Distance (FID) score of 17.65, a marked improvement over the 40.69 achieved by earlier methods. This indicates that EasyCraft produces avatars that look like high-quality, user-created characters rather than distorted or "uncanny" outputs.
  • Style Robustness: Qualitative testing showed that EasyCraft successfully handles anime and sketch inputs where previous methods (such as F2P) often failed or produced garbled results.
  • Efficiency: The system is highly optimized for production environments. On an NVIDIA RTX 4090, the photo-to-avatar inference time is just 0.026 seconds, allowing for near-instantaneous character generation.
  • User Preference: In a comparative study, users preferred EasyCraft’s results 87% of the time for photo-based inputs and 77% of the time for text-based prompts.

Conclusion and Future Work

EasyCraft provides a robust solution to the style gap and engine complexity issues that have long hindered automatic avatar crafting. By freezing a pre-trained, style-agnostic encoder, the model avoids overfitting to specific game aesthetics, allowing it to generalize across diverse input types.

While highly effective, the framework does face limitations, such as occasional artifacts in the Stable Diffusion stage and the requirement to train a new MLP for each unique game engine. Future research will focus on tighter integration between the text-to-image and parameter-generation stages to further refine the precision of makeup and accessory placement.

Summary updated

BibTeX
@inproceedings{wang2025easycraft,
  author = {Suzhen Wang and Weijie Chen and Wei Zhang and Minda Zhao and Lincheng Li and Rongsheng Zhang and Zhipeng Hu and Xin Yu},
  title = {{EasyCraft: A Robust and Efficient Framework for Automatic Avatar Crafting}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00524},
}
Figure