The Anime Game Character Fusion Generator is a fun and creative side project designed to blend elements of anime characters with specific game themes, producing unique and visually appealing images. Leveraging the power of the cagliostrolab/animagine-xl-3.1 library for anime character generation and the igdb (Internet Game Database) API for accessing game data, this project offers users the ability to generate personalized profile pictures that reflect their favorite anime and gaming interests.
Anime Character Generation: Utilizes the cagliostrolab/animagine-xl-3.1 library to create anime-style characters.
Game Theme Integration: Integrates elements from specific games into the generated anime characters, allowing users to select their favorite games.
Profile Picture Generator: Generates images suitable for use as profile pictures on social media platforms, gaming forums, or other online communities, providing users with a personalized and visually striking representation of their interests.
Clone the repository from GitHub:
git clone https://github.com/your-username/anime-game-character-fusion.gitInstall dependencies using pip:
pip install -r requirements.txt(Optional) Install Sass and compile Sass file into CSS:
sass ./resources/form.scss ./resources/form.cssObtain API credentials for the igdb API and set them as environment variables TWITCH_CLIENT_ID & TWITCH_CLIENT_SECRET with your actual API key.
If you have an NVIDIA GPU with CUDA support and want to accelerate image generation, follow these additional steps:
Ensure you have CUDA installed on your system. Refer to the NVIDIA CUDA Toolkit documentation for installation instructions specific to your operating system.
Once CUDA is installed, reinstall pytorch:
pip uninstall torch
#command from link aboveRun the project as usual, and image generation should now benefit from GPU acceleration, resulting in faster processing times.
Note: CUDA support may require additional configuration and setup, and not all systems or GPUs may be compatible. Refer to the documentation provided by NVIDIA and the cagliostrolab/animagine-xl-3.1 library for more detailed information on enabling CUDA support.
Run the main script with your PYTHONPATH environment variable set to ".":
python src/main.pyFollow the gui to customize your anime character and select game elements to incorporate into the fusion.
Once satisfied with the selections, the generated image will be previewed and can be saved to the specified directory.
cagliostrolab/animagine-xl-3.1: A powerful library for generating anime-style characters with customizable attributes.
igdb API: Provides access to a vast database of game-related information, allowing integration of game elements into the generated images.
Contributions to the project are welcome! If you have ideas for new features, improvements, or bug fixes, feel free to submit a pull request. Please adhere to the established coding conventions and follow the project's code of conduct.
This project is licensed under the MIT License. See the LICENSE file for details.
cagliostrolab/animagine-xl-3.1 for providing a fantastic library for anime character generation.igdb API for enabling access to comprehensive game data.PySide6 developers for providing a powerful toolkit for creating cross-platform desktop applications with Python.NLTK developers for creating a comprehensive library for natural language processing tasks in Python.requests_cache developers for offering a convenient way to cache HTTP responses in Python applications.PyTorch developers for developing an efficient and flexible deep learning framework for research and production.thefuzz for providing a useful library for fuzzy string matching, enhancing the accuracy of character name search.