AmiPixel Helpers is a project designed to assist in the creation of pixel art animations using AI. Leveraging the power of diffusion models like Stable Diffusion and the motion capabilities of AnimateDiff, this tool allows you to generate sequences of pixel art images based on text prompts and optional initial images.
- Text-to-Pixel Art Animation: Generate animated sequences from descriptive text prompts.
- Base Image Support: Optionally use a starting pixel art image to guide the animation.
- Customizable Parameters: Control the number of animation frames, inference steps, and guidance scale.
- Utilizes Powerful AI Models: Built on top of Stable Diffusion v1.5 and the AnimateDiff motion adapter.
- Memory Optimization: Includes options for memory-efficient attention (using
xformers). - Simplified Workflow: Utilizes a
Makefilefor easy management of common tasks.
Follow these steps to get your environment set up and start generating pixel art animations.
- Python 3.8 or higher: Ensure you have Python installed.
- pipenv: This project uses
pipenvfor managing dependencies. You can install it withpip install pipenv. - CUDA-enabled GPU (Recommended): While you can run this on a CPU, a CUDA-enabled NVIDIA GPU is highly recommended for reasonable generation speeds. Ensure you have the appropriate NVIDIA drivers installed.
- Hugging Face Account and Token: You'll need a Hugging Face account to download the pre-trained models. Create an account here and generate an access token here.
- Git: To clone the repository.
-
Clone the repository:
git clone [https://github.com/shotah/amipixel-helpers.git](https://github.com/shotah/amipixel-helpers.git) cd amipixel-helpers -
Install dependencies using pipenv:
make install
-
Create a
.envfile: In the root of the project directory, create a file named.env. -
Add your Hugging Face token: Open the
.envfile and add the following line, replacingYOUR_HUGGING_FACE_TOKENwith your actual token:HUGGING_FACE_TOKEN=YOUR_HUGGING_FACE_TOKEN
The primary way to interact with this project is through the Makefile.
This project uses a Makefile to simplify common development tasks. You can see a list of available commands and their descriptions by running:
make help