Ever fancied turning your sketches into stunning digital paintings? With the power of AI, this is now within reach! In this guide, we’ll explore how to use the Sketch to Art project, a modern AI application that helps you convert your casual drawings into breathtaking artwork. Let’s dive in!
Introduction
The Sketch to Art project utilizes cutting-edge AI technology to breathe life into your sketches, transforming them into beautiful paintings. You don’t need to be a professional artist; just a spark of creativity is all it takes!

Run it with Docker
Using Docker, you can quickly set up and run the application. Follow these simple steps:
- Clone the repository:
git clone https://github.com/mtobeiyf/sketch-to-art.git cd sketch-to-art - Build the Docker image:
docker build -t sketch-to-art:dev . - Run the application:
docker run -it --rm -p 8080:8080 -p 5001:5001 -p 5002:5002 sketch-to-art:dev
Now, head over to localhost:8080 in your browser, and enjoy the demo!
Theories Behind the Magic
The Sketch to Art project employs two essential techniques:
- Sketch Reconstruction: This is akin to a chef who takes a pile of uncut vegetables and transforms them into a delectable dish. Here, the algorithm reconstructs a detailed image from the rough sketch, akin to cooking up a beautiful visual from basic ingredients. The methodology behind this is the Conditional Adversarial Networks, also known as pix2pix.
- Style Transfer: Think of this as a painter who adjusts their technique based on the viewer’s preferences. Instead of sticking to one style, this method allows any picture to be used as a style guide, thanks to the Universal Style Transfer via Feature Transforms concept presented at NIPS2017.

Manual Installation
Backend
The server side is built using Python and Flask. Here are the steps to set it up:
- Navigate to the server directory, where the core service files reside, specifically app_pix.py for pix2pix translation and app_stylize.py for arbitrary style transfer.
- Prerequisites: Ensure you have Python and the following packages installed: tensorflow, keras, pillow, flask, gevent.
-
Install the required packages:
pip install -r server/requirements.txt - Run the application:
python app_xxx.py
Check the output in your terminal to confirm it’s running on ports 5001 and 5002.
Frontend
To set up the frontend interface, you’ll need:
Follow these commands to run the frontend:
- Clone the repository:
git clone git@github.com:mtobeiyf/sketch-to-art.git cd sketch-to-art -
Install dependencies:
yarn # or npm install - Run the application:
yarn dev # or npm run dev
Then, open your browser at http://localhost:8080 to access the site.
Troubleshooting Tips
If you encounter any issues while setting up or running the application, here are some tips:
- Ensure all dependencies are correctly installed: Double-check your installations of Python, Docker, and node packages.
- Error in Docker commands: Verify that Docker is installed and running. Look for potential typos in the commands.
- Server doesn’t respond: Ensure the correct ports (5001, 5002, 8080) are not blocked by other applications.
For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.
Final Words
At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.

