This project harnesses the power of artificial intelligence to generate unique, personalized avatars based on a set of training images. The model used in this project is a variant of the Stable Diffusion model, known for its exceptional capabilities in image generation tasks.
Here are some example input training images and corresponding output images generated by the AI model:
Generated Avatars:
Avatar 1 - Style: Historic and Gaming Character
Avatar 2 - Style: Abstract Art
Avatar 3 - Style: Comic and Cyberpunk
This repository contains:
-
Google Colab Notebook: A pre-configured Google Colab notebook for training your model. The notebook includes steps for setting up the environment, loading the necessary pre-trained models, uploading training images, training the model, and saving the model checkpoints.
-
Regularization Images: A set of regularization images used for stabilizing the training process. You can add more images or replace these images as per your requirements.
-
Training Images Directory: A dedicated directory to upload your training images. The images you upload will be used to personalize the AI model, and should be representative of the avatars you wish to generate.
-
Trained Models: The final trained model checkpoints saved in a directory named "trained_models".
Follow these steps to create your own AI personalized avatars:
-
Clone or Download this Repository: You can clone this repository to your local machine or simply download it.
-
Setup the Environment: Install the necessary Python packages which are listed in the Google Colab notebook.
-
Download the Pre-trained Model: The Google Colab notebook contains steps to download a pre-trained model from Hugging Face. This pre-trained model serves as a starting point for training your personalized avatar model.
-
Upload Training Images: You can upload your own set of training images in the "training_images" directory. These images will be used to fine-tune the pre-trained model. Ensure the images are representative of the avatars you wish the AI to generate.
-
Train the Model: Run the training script in the Google Colab notebook. This script fine-tunes the pre-trained model on your training images.
-
Save and Use the Trained Model: After training, the resulting model checkpoint is saved in the "trained_models" directory. You can now use this model checkpoint to generate your own personalized avatars.