Morpheus: A Dream Machine for AI Art Generation - HedgeDoc
<center> # Morpheus: A Dream Machine for AI Art Generation <big> **Giving you the power to create stunning and beautiful generative art** </big> *Written by Hanna Jodrey. Originally published 2023-09-26 on the [Monadical blog](* </center> We're excited and delighted to announce the launch of [Morpheus](, our brand-new, open-source, self-hosted, generative art WebUI and build pipeline! Named after the Greek god of dreams, our team created Morpheus with flexibility, accessibility, and fun in mind. Using Python and JavaScript, we originally developed Morpheus as a tool to iterate quickly on concept art for [Eon Rush](, a Multiplayer Online Battle Arena (MOBA) game we built in Unity for one of our clients. We also wanted to build a tool that was creative and fun for curious newbies just beginning to experiment with generative art, so it was intentionally designed to be easily navigable and accessible. ![]( *8K picture where a Greek-style god is playing video games. holographice, glowing, extremely detailed, studio photo, intricate details, highly detailed.* Morpheus allows artists and developers to use diverse generative models to create some staggering imagery. Use one of the built-in models (such as Stable Diffusion v1, v2, XL, or Openjourney) or upload your own fine-tuned Stable Diffusion model. Morpheus handles model requests, elastically spins up GPU instances, and enables uploading your images to an AWS S3 bucket. In other words, you don’t need to worry about managing the infrastructure yourself, even with large jobs. Built to be accessible to everyone, you don’t need to be a machine learning expert to use Morpheus. ![]( *Forest wanderer, painterly style, flat colours, illustration, bright and colourful, high contrast, Mythology, cinematic, detailed, atmospheric, 8k, corona render.* ## The Features Morpheus boasts some standout tools for creators and developers to enhance and customize their art. In addition to generating images based on both text prompts and other uploaded images, Morpheus also lets you change the style of an image, offers an integrated, collaborative painting system, allows you to modify sections of an existing image, and features a private image gallery. - **To generate an image based on a prompt,** just enter a text description of the image you want to create. - **To generate an image based on another image,** load your base image and, in the text prompt, describe the changes you want to see. - **Change the style of an image** by choosing different styles of art, such as Impressionism, Surrealism, Pop Art, Minimalism, or Abstract. You can also choose to have your image generated in the style of a particular artist. ![]( - **The integrated collaborative painting system** allows you to make initial sketches of the desired images. In an online editor, you can also collaborate with other users to create a collaborative painting. ![]( - **Inpainting** lets you modify your existing image by adding, removing, or replacing any part of it, simply by prompting the model. Why not turn a dog into a cat, or add an alien 👽 to a park bench? ![]( - **The Image Gallery** stores your images in a private folder. You can also create image collections to store similar concepts, which you can then use as base images to edit with AI models. ![]( ## The Details Let’s talk for a moment about the heavy lifting. We built the frontend with NextJs/React, while the backend, where all the magic happens, was developed with FastAPI. We also used PostgreSQL to store and manage data and AWS S3 to store the images and models. To handle the GPU power, run the models, and generate the art, we use [Ray]( We also use AWS EKS (Kubernetes cluster) to deploy everything online and scale up or down as needed. To manage the infrastructure, we use Terraform, and to send the code to production, we use Helm. In terms of non-functional requirements, Morpheus is a flexible beast and can work in a variety of different scenarios and platforms. Portability-wise, you can run the project on your local PC or deploy it in the cloud with just a few commands. Since Morpheus also runs on a Kubernetes cluster, you can switch between different cloud providers or platforms easily. It’s smart and scalable too; it allows you to set the minimum and maximum resources to be used in the project configuration files. Morpheus also uses a warm pool strategy, which means it can spin up new server instances if needed, and quickly. ![]( *Temple in ruins, forest, stairs, columns, cinematic, detailed, atmospheric, epic, concept art, matte painting, background, mist, photo-realistic, concept art, volumetric light, cinematic epic, 8k.* ## The Future Looking ahead, we have a few things up our sleeve! Namely, we’re going to expand our Gallery functions to create a public collection; you can look forward to sharing your favourite images with the rest of the world, or use any of the publicly available images as a base for new image generation. We’re also integrating a plugin system to create a Shopify-like marketplace, where we intend to connect multiple plugins developed by the community of users. What’s more, we’re creating a micro-framework to deploy models as plugins in the global system, and we’re currently building a payment system to allow users to access premium features, such as our 3D texturing and [Minecraft Skin Generator](link) plugins. We’re also exploring the possibility of adding text2video and image outpainting features. Lastly, we're considering Solana integration so that you can pay with crypto, while NFT and Blockchain integration would enable you to send the artwork directly to your wallet. ![]( *Futuristic photo studio, wide, stunning, ultra-high-definition (UHD), 8K, detailed, controlled, distinctive, rich, trending, precise, intricate, Blockchain technology.* At [Monadical](, we're proud to be a part of the growing community of tools and technologies that are making generative art more fun and accessible than ever before. We believe that, in collaboration with the creative minds of artists and dreamers, Morpheus has the potential to unlock unimagined possibilities in generative AI. Interested in checking it out for yourself? To get started, visit our website and [GitHub repository]( We can’t wait to see what you’ll dream up! 🚀🎨

Recent posts:

Back to top