Bringing Art to Life through AI
Text2Play is an innovative web application that transforms user prompts into a 2D platform video game. By leveraging AI techniques, it converts text into famous paintings and applies style transfer to create a unique game background.
- Word Vectorization: Utilizes BERT for word embeddings to understand and interpret user prompts.
- Style Transfer: Applies VGG19 with PyTorch to transfer the style of famous paintings onto the game's background.
- Game Generation: Integrates the generated background into a 2D platform game using Phaser.io.
- Backend: Python, Flask
- AI Models: BERT, VGG19, PyTorch
- Frontend: React, Phaser.io
- Deployment: Google Cloud Run, Docker, MLflow for model orchestration
- Clone the repository:
git clone https://github.com/gritchou/Text2Play.git
- Navigate to the project directory:
cd Text2Play
- Install dependencies:
make install
- Preprocess the dataset:
make preprocess-dataset
- Run the application:
make run
- Clone the frontend repository:
git clone https://github.com/gritchou/Text2Play-frontend.git
- Navigate to the frontend project directory:
cd Text2Play-frontend
- Install frontend dependencies:
yarn install
- Start the frontend application:
yarn start
- Enter a prompt describing the scene.
- The backend processes the prompt using BERT for word vectorization.
- VGG19 applies style transfer to create a game background.
- The frontend displays the 2D platform game with the generated background.
This project is licensed under the MIT License.