# WARNING
DUE TO LACK OF TIME AND MULTIPLE API'S UPDATES, THIS REPOSITORY IS NOT UP TO DATE, AND MAY BE DEPRICATED. I MAY CONSIDER COMING BACK TO THIS PROJECT LATER...
# MidJourney-Wrapper
## Presentation
The point of this bot is using [MidJouney](https://www.midjourney.com/home/) from an account other than the account you paid from.
To do so, there should be a Discord bot, which we will call DaVinci (see [Globals](https://github.com/Wildric-Auric/MidJourney-Wrapper/blob/main/Globals.py)), and the account subscribed to MidJourney, which we will call Salai, in the same server. Any discord user in the server can use DaVinci commands to generate images, their variations, upscale them...<br>
Warning though; you aren't allowed to use this software in the purpose of sharing your subscription with other people; this software is intended to be used only for learning purposes. If you infringe the rules, please know that you are solely responsible.
## Installation
* Clone the project.
* Install [requirements](https://github.com/Wildric-Auric/MidJourney-Wrapper/blob/main/requirements.txt) (only pycord version 2) and discord python api module if needed.
* Fill [Globals.py](https://github.com/Wildric-Auric/MidJourney-Wrapper/blob/main/Globals.py) with your data
* Run main.py;
## Implemented commands documentation
*MT stands for mandatory*
*OPT stands for optional*
### Generating idea
```
/mj_imagine [ MT : prompt (string)]
```
![ezgif-3-c4476f9a09](https://user-images.githubusercontent.com/70033490/185647413-1177b21a-2c2f-4f02-885e-c35d82179ba3.gif)
### Targetting image
Reply to MidJourney Bot message by the following command to target that piece of art for the next operation:
```
$mj_target
```
Notice that slash command is not used here because of discord not allowing Interactions during reply. Hence, there is no autocomplete, your reply is simply parsed to get the command.<br>
![ezgif-3-c4476f9a09](https://user-images.githubusercontent.com/70033490/185650795-06de185a-56ad-4c10-ac1d-34c5ca75b642.gif)
### Upscaling and variations
```
/mj_upscale [ MT : index (integer) ] [ OPT : reset_target (boolean) ]
```
*index* parameter takes values from 1 to 4; 1 is the index of top left image and 4 is the index of buttom right one.
The optional parameter *reset_target* indicates if target you have set before should be reset at the end of current operation; if that's done and you want to upscale image from same message with different index you should use *$mj_target* command again.
![ezgif-3-c4476f9a09](https://user-images.githubusercontent.com/70033490/185656154-ce31e7ba-29c9-4399-8086-5c7a4861ec26.gif)
Generated image:
![image](https://user-images.githubusercontent.com/70033490/185656359-895dbc6a-a0aa-47ff-a524-58a00b7edaa7.png)
Notice that we cannot use ```/mj_upscale_to_max``` on this output since we used *--hd* parameter which makes a sigle upscale maximized.<br>
This last command does not require a parameter and it resets target since no other operation is possible on this output other than upscaling to max. But remember that you need again to target what you need to upscale for the second time.<br>
There is another command that uses the output of ```/mj_imagine```:
```
/mj_upscale_to_max [ MT : index (integer) ] [ OPT : reset_target (boolean) ]
```
It behaves the same way as upscaling command.
## Additional information
Even though a request error is caught by the bot (a problem with MidJourney bot, a problem with the subscripted account...) since it shows up as HTTP request error, it does not caught errors done by the user; for example if there was a typo using MidJourney parameters like ```-hd``` instead of ```--hd``` MidJourney reports it to the subscripted user but DaVinci does not complain about it, so pay attention to your inputs. Also read the official user [documentation](https://midjourney.gitbook.io/docs/user-manual) of MidJourney.
*Enjoy!*
没有合适的资源?快使用搜索试试~ 我知道了~
2023 AIGC大型语言模型(LLM)实例代码合集.zip
共77个文件
ipynb:36个
py:14个
pyc:12个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
5星 · 超过95%的资源 2 下载量 89 浏览量
2023-09-28
14:37:12
上传
评论 1
收藏 69.01MB ZIP 举报
温馨提示
2023 AIGC大型语言模型(LLM)实例代码合集 1-ChatGLM使用 2-LangChain使用 3-ChatPDF实现 4-向量数据库 5-StableDiffusion & Midjourney
资源推荐
资源详情
资源评论
收起资源包目录
2023 AIGC大型语言模型(LLM)实例代码合集.zip (77个子文件)
AIGC大型语言模型(LLM)实例代码合集
2-LangChain使用
product_llm.py 8KB
PromptTemplate1.py 225B
LLMChain3.ipynb 4KB
ChatModel1.ipynb 4KB
LLMChain2.ipynb 5KB
LLMChain-ChatPromptTemplate1.ipynb 2KB
ChatModel_Memory.ipynb 2KB
LLMChain1.ipynb 1KB
ChatModel_Chain.ipynb 2KB
ChatModel_Agent.ipynb 3KB
indexes1.ipynb 8KB
ConversationChain1.ipynb 3KB
ChatPromptTemplate1.ipynb 2KB
4-向量数据库
chatpdf_faiss.ipynb 42KB
word2vec
utils
__init__.py 185B
segment.py 8KB
files_processing.py 8KB
create_word2vec.py 9KB
create_batch_data.py 5KB
__pycache__
__init__.cpython-311.pyc 404B
files_processing.cpython-35.pyc 8KB
files_processing.cpython-37.pyc 8KB
files_processing.cpython-36.pyc 8KB
segment.cpython-35.pyc 6KB
segment.cpython-37.pyc 7KB
__init__.cpython-35.pyc 329B
__init__.cpython-37.pyc 394B
__init__.cpython-36.pyc 313B
segment.cpython-311.pyc 11KB
segment.cpython-36.pyc 7KB
files_processing.cpython-311.pyc 14KB
journey_to_the_west
segment
segment_0.txt 2.27MB
source
journey_to_the_west.txt 1.23MB
word_seg.py 1KB
models
word2Vec.model 7.77MB
word_similarity.py 1KB
Case-Faiss使用
faiss_demo1.ipynb 25KB
faiss_text.ipynb 11KB
text_faiss1.ipynb 17KB
.ipynb_checkpoints
Untitled-checkpoint.ipynb 917B
faiss_demo1-checkpoint.ipynb 19KB
test1-checkpoint.ipynb 55KB
faiss_text-checkpoint.ipynb 10KB
text_faiss1-checkpoint.ipynb 17KB
text_similarity
chinese_stopwords.txt 3KB
faiss_demo1.py 2KB
kmeans_text.ipynb 22KB
.ipynb_checkpoints
faiss_demo1-checkpoint.ipynb 15KB
kmeans_text-checkpoint.ipynb 16KB
text_faiss1-checkpoint.ipynb 20KB
sqlResult.zip 39.85MB
5-StableDiffusion & Midjourney
stable_diffusion_webui
install.ipynb 50KB
run.ipynb 46KB
add.ipynb 6KB
MidJourney_bot
Globals.py 373B
LICENSE.md 7KB
main.py 4KB
Salai.py 3KB
requirements.txt 17B
README.md 4KB
1-ChatGLM使用
ptuning1.ipynb 96KB
AdvertiseGen
train2.json 93KB
train.json 51.27MB
dev2.json 4KB
dev.json 487KB
web_demo.py 6KB
demo1.ipynb 280KB
3-ChatPDF实现
三国演义第一回.pdf 116KB
chatpdf-2-query.ipynb 7KB
chatpdf-1.ipynb 2KB
indexes2.ipynb 7KB
chroma-1.ipynb 3KB
三国演义.pdf 3.75MB
langchain_chatglm部署.ipynb 63KB
chatpdf-2-embedding.ipynb 1.91MB
indexes1.ipynb 12KB
三国演义第1回.txt 2KB
共 77 条
- 1
资源评论
- annaleeya2023-10-30资源很赞,希望多一些这类资源。
- 2301_789664452024-07-27这个资源对我启发很大,受益匪浅,学到了很多,谢谢分享~
安全方案
- 粉丝: 2529
- 资源: 3960
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于javaweb的小说网站系统毕业论文.doc
- 这款创意新年贺卡设计适合送给亲友,包含多种风格,用户可以根据需要进行修改和打印 新春大屏祝福的效果 这个示例使用了HTML和CSS来创建一个全屏的祝福页面,您可以根据需要进行修改和扩展
- 基于java的酒店管理系统.doc
- 截图,代码 ,生成库文件等等 ppp
- 基于事件的网络舆情分析系统源码+项目说明(高分项目)
- 基于web的企业人事信息管理论文.doc
- MFC多工具栏如何保存状态(续)
- Python基于事件的网络舆情分析系统源码+项目说明(高分项目)
- 基于SSH网上体育用品销售系统开发与设计毕业设计论文.doc
- 基于JAVA的文章发布系统的设计与实现论文.doc
- 【vue框架开发】html中实现vue响应式表单组件
- 基于ssh校园门户网站毕业论文.doc
- 线性调频脉冲回波信号的仿真matlab
- 高校社团管理系统基于Java技术的设计与实现
- JavaScript常见函数
- 酒装箱输送线 sw18全套技术开发资料100%好用.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功