AI Image Tools

Openjourney

OpenJourney is an AI model that uses text inputs to generate images in the style of Midjourney. It is currently under development by Muhammadreza Haghiri and is a free, open-source project. The model is designed to be simple yet effective, allowing users to easily create Midjourney-style images.

OpenJourney : Midjourney, but open source!

OpenJourney is a text-to-image AI model based on prompthero/midjourney-v4-diffusion and is currently under development by Muhammadreza Haghiri . The main goal of this model is to bring a simple yet effective way of bringing Midjourney style images to the FLOSS world.

Sample Image

An image of a forest

How to use with diffusers library

Installing necessary libraries

NOTE: This model currently works on a computer which has at least one NVIDIA GPU with CUDA support.

pip install diffusers transformers ftfy scipy accelerate

Logging in

For logging in, you have to use huggingface-cli login command.

Importing necessary libraries

import torch
from torch import autocast
from diffusers.models import AutoencoderKL
from diffusers import StableDiffusionPipeline

Creating the pipeline

pipe = StableDiffusionPipeline.from_pretrained("openjourney/openjourney", use_auth_token=True)
pipe = pipe.to("cuda")

(Optional) Disabling NSFW Filter

NOTE: Remember disabling this is not recommended, but since people had problems with some very basic prompts, we offer this. Remember AI art has a vast majority of users, so keep underage and sensitive users safe.

def dummy(images, **kwargs):
	return images, False

pipe.safety_checker = dummy

Image Generation

prompt = "painting of a building in a stunning landscape"
prompt = f"mdjrny-v4 style {prompt}"

with autocast("cuda"):
  image = pipe(prompt=prompt, num_inference_steps=100, width=512, height=512, guidance_scale=15).images[0]

image.save("image.png")

website

Follow AI Models on Google News

An easy & free way to support AI Models is to follow our google news feed! More followers will help us reach a wider audience!

Google News: AI Models
~ Sharing is Caring ~
    Download  

Size: 1.99 GB

License: creativeml-openrail-m

Related Posts

Hoshimachi Suisei (Hololive JP) RVC Model AI Voice

Hoshimachi Suisei (Hololive JP) RVC Model AI Voice

Experience the futuristic sound of AI Hoshimachi Suisei (Hololive JP) with our collection of songs featuring VITS Retrieval-based Voice Conversion.

Lil Durk RVC Model AI Voice

Lil Durk RVC Model AI Voice

Discover AI Lil Durk’s collection of songs featuring a diverse range of styles and languages, made possible through VITS Retrieval-based Voice Conversion methods.

German male TTS Model tacotron2 DDC Encoding Trained on thorsten Dataset at 22050Hz

German male TTS Model tacotron2 DDC Encoding Trained on thorsten Dataset at 22050Hz

German (Deutsch) male text-to-speech model trained at 22050 Hz and is available to synthesize the German language.