Coder Social home page Coder Social logo

maybejourney's Introduction

Maybejourney

Midjourney UI: An elegantly designed, highly customizable interface, purpose-built to enhance the prompt engineering with ChatGPT.

Features

  • Midjourney with highly customizalbe UI
  • Describe, upsample and variation images
  • User gallery
  • ChatGPT prompt helper (Use / in the prompt input)

Installation

from https://github.com/George-iam/Midjourney_api#midjourney_api

  1. Create Discord account and create your server(instruction here: https://discord.com/blog/starting-your-first-discord-server)
  2. Create Midjourney account and invite Midjourney Bot to your server (instruction here: https://docs.midjourney.com/docs/invite-the-bot)
  3. Make sure generation works from your server
  4. Log in to Discord in Chrome browser, open your server's text channel, click on three points upper right corner, then More Tools and then Developer Tools. Select Network tab, you'll see all the network activity of your page.
  5. Now type any prompt to generate in your text channel, and after you press Enter to send message with prompt, you'll see in Network Activity new line named "interaction". Press on it and choose Payload tab and you'll see payload_json - that's what we need! Copy channelid, application_id, guild_id, session_id, version and id values, we'll need it a little bit later. Then move from Payload tab to Headers tab and find "authorization" field, copy it's value too.


  1. Copy and paste payload and header values to .streamlit/secrets.toml file. (Rename secrets.toml.template to secrets.toml)
  2. Get OpenAI API key from here and copy/paste into secrets.toml.
  3. Create MySQL or MariaDB for strore prompt and image data. Use the create syntax:
CREATE TABLE `prompts` (
  `id` bigint(20) unsigned NOT NULL,
  `user_id` varchar(64) DEFAULT NULL,
  `prompt` text DEFAULT NULL,
  `full_prompt` text DEFAULT NULL,
  `url` varchar(1024) DEFAULT NULL,
  `filename` varchar(256) DEFAULT NULL,
  `is_downloaded` tinyint(4) DEFAULT 0,
  `is_liked` tinyint(4) DEFAULT 0,
  `status` tinyint(4) DEFAULT -1,
  `created_at` timestamp NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  1. Run:
$ pip install -r requirements.txt
$ streamlit run Imagine.py

Dependency

  • htbuilder==0.6.1
  • openai==0.27.6
  • pandas==1.4.4
  • python-dotenv==1.0.0
  • Requests==2.30.0
  • streamlit==1.22.0
  • streamlit_extras==0.2.7
  • streamlit_pills==0.3.0
  • PyMySQL==1.0.3

Credits

Inquiry : Brad Lee [email protected]

Reference

maybejourney's People

Contributors

kairess avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

maybejourney's Issues

There are some program problems or bug.

When adding a picture as a reference picture, the parameters are abnormal.
For example submitted is:
https://cdn.discordapp.com/attachments/1097388640411320393/1112334804248186970/girl.jpg a girl
The output is:
https:cdndiscordappcomattachments10973886404113203931112334804248186970girljpg a girl --seed 1721528761 --ar 3:4 --q 1.0 --stylize 100 --v 5.1
Obviously, image links are filtered out of symbols.

When using Describe, the callback cannot be completed when the picture name contains spaces or is not in English.

Using the variant function, if Midjourney's settings enable Remix mode, the program will get stuck.

There is also the inability to view historical records, except for the works collected in the gallery.

When using the variant or upgrade function, the status prompt text is at the top. If I don’t look up, I always think that the program is stuck again.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.