How to Deploy and Run Openjourney (SIMPLE!)

March 01, 2023How to Deploy and Run Openjourney (SIMPLE!)

Deprecated: This blog article is deprecated. We strive to rapidly improve our product and some of the information contained in this post may no longer be accurate or applicable. For the most current instructions on deploying a model like Openjourney to Banana, please check our updated documentation.

Today we are demonstrating how you can deploy and run Openjourney to production on serverless GPUs. This video tutorial is beginner-friendly, very little knowledge of AI or coding experience is required to follow along and deploy your own Openjourney model.

We are using a Community Template that is optimized and ready for Banana's serverless deployment framework. This is the direct link to the Openjourney model template on Banana.

What is Openjourney?

Openjourney is a fine-tuned version of the Stable Diffusion model, that is trained on Midjourney images. This model was published by PromptHero.

Openjourney Deployment Tutorial

Video Notes & Resources:

We mentioned a few resources and links in the tutorial, here they are.

In the tutorial we used a virtual environment on our machine to run our demo model. If you are wanting to create your own virtual environment use these commands (Mac):

Add this code to your Python file. PART1:import banana_dev as banana import base64 from io import BytesIO from PIL import ImagePART2:image_byte_string = out["modelOutputs"][0]["image_base64"] image_encoded = image_byte_string.encode('utf-8') image_bytes = BytesIO(base64.b64decode(image_encoded)) image = Image.open(image_bytes) image.save("output.jpg")

Wrap Up

Reach out to us if you have any questions or want to talk about Openjourney. We're around on our Discord or by tweeting us on Twitter. What other machine learning models would you like to see a deployment tutorial for? Let us know!