看了就会 | Midjourney本地部署教程!完全不懂代码也没有关系!#midjourney #本地部署
TLDR本视频教程介绍了如何在本地部署开源项目midjourney,即使没有编码经验也能快速上手。首先创建文件夹并下载项目文件,然后安装Docker并根据作者提供的步骤执行部署。需要登录网页版Discord获取服务器ID、频道ID和用户Token作为参数。最后,通过修改配置文件并运行指令完成部署,即可在本地访问和使用midjourney。
Takeaways
- 😀 视频教程介绍了如何在本地部署Midjourney项目,即使是编程新手也能轻松完成。
- 📁 第一步是新建一个文件夹,建议放在C盘的admin文件夹中。
- 🔗 第二步包括两种下载项目的方法:手动下载或使用git命令。
- 💾 需要下载并安装Docker以进行后续部署。
- 🔍 需要登录网页版Discord获取服务器ID、频道ID和用户Token作为参数。
- 📝 将获取的参数填入Docker容器部署指令中,并调整为一行或使用连接符号。
- 🗑️ 如果之前部署过容器,需要先删除再重新部署。
- 🛠️ 需要将.evn.example文件重命名为.evn文件,并设置密码。
- 📜 运行指定的命令以启动项目,包括进入项目目录和执行启动命令。
- 🌐 完成部署后,可以通过指定网址访问本地部署的Midjourney。
- 🎉 本地部署的Midjourney与Discord操作几乎同步,可以生成图像并进行后续操作。
Q & A
什么是midjourney本地部署?
-midjourney本地部署是将midjourney项目在自己的电脑上运行,而不是依赖于远程服务器。这样可以更方便地进行个性化设置和操作。
部署midjourney前需要做哪些准备工作?
-首先需要在C盘的admin文件夹下新建一个文件夹,然后下载midjourney项目到这个文件夹里,可以通过手动下载或者使用git命令下载。
如何下载midjourney项目到本地?
-有两种方法:第一种是手动下载,访问GitHub上的项目页面,点击code按钮,然后选择download zip并下载到本地文件夹;第二种是使用git命令,在命令提示符中使用CD命令跳转到目标文件夹,然后输入git clone命令加上项目链接进行下载。
为什么需要安装Docker?
-因为midjourney的部署过程中需要使用Docker来运行容器,所以需要先在电脑上安装Docker。
如何获取Discord的服务器ID和频道ID?
-首先需要登录网页版的Discord,选择一个已有midjourney的服务器,点击右上角图标查看服务器信息,复制服务器ID和频道ID。
如何获取Discord的Authorization参数?
-在Discord网页版中随便发送一条消息,使用Shift+Ctrl+I快捷键打开反馈表单,在Network标签下找到messages的反馈,点击查看Authorization参数并复制。
如何将获取的参数填入Docker命令中?
-将服务器ID、频道ID和Authorization参数填入对应的Docker命令中,可以将指令复制到文本文件中编辑,然后将完整的命令输入到命令提示符中运行。
如何修改.evn.example文件为.evn文件?
-可以在命令提示符中运行重命名命令,或者在本地文件夹中手动重命名为.evn文件。
如何在.evn文件中设置密码?
-使用记事本打开.evn文件,在密码设置部分填入自定义的密码,然后保存退出文件即可。
如何运行midjourney项目的最后两条指令?
-在命令提示符中进入midjourney项目所在的文件夹目录,运行第一条命令后等待成功提示,然后运行第二条命令,成功后可以通过指定的网址访问本地部署的midjourney。
Outlines
📁 Local Deployment of Midjourney Project
This paragraph outlines the process of locally deploying a midjourney project, which is an open-source project available on GitHub. The presenter, a new YouTuber named 'Tech Goose Little Sister', guides viewers through the steps of setting up the project on their local machine. The process is simplified for beginners, even those without coding experience. The steps include creating a new folder in the admin directory on the C drive, downloading the project files either manually or via git commands, and installing Docker as required by the project. The presenter also explains how to obtain necessary parameters such as server ID, channel ID, and user token from a Discord server, which are crucial for the deployment process.
🔧 Final Steps for Midjourney Deployment and Usage
The second paragraph details the final steps for deploying the midjourney project locally. It instructs the user to run two specific commands in the command prompt (CMD) after navigating to the project directory. The presenter demonstrates how to modify the .env.example file to .env and fill in the required password. Once the commands are executed successfully, the user is able to access and use their locally deployed midjourney through a web interface. The interface allows for inputting prompts to generate content, and the presenter assures that the functionality is nearly identical to the official Discord version, with the added benefit of local image manipulation capabilities. The paragraph concludes with a promise of a more detailed, illustrated tutorial for those who need further clarification.
Mindmap
Keywords
💡midjourney
💡本地部署
💡GitHub
💡docker
💡服务器ID
💡频道ID
💡用户token
💡命令提示符
💡.evn文件
💡CMD
💡AI图像生成
Highlights
Midjourney项目已在GitHub上开源,提供本地部署教程。
即使不懂代码,也能通过简单步骤完成本地部署。
新建文件夹在C盘admin文件里,完成第一步操作。
项目可以通过手动下载或git命令下载到新建文件夹。
推荐新手使用手动下载方式,避免出错。
下载并安装Docker,保持运行状态。
根据作者提供的安装提示,部署Docker容器。
需要添加服务器ID和频道ID作为参数。
登录网页版Discord获取服务器ID和频道ID。
通过Discord网页版Network功能获取用户token。
将所有参数填入Docker指令中。
将Docker指令转换为一行或使用连接符号。
在命令提示符中输入Docker命令进行部署。
修改.evn.example文件为.evn文件。
在.evn文件中填入设置好的密码。
运行指定的两条指令完成最终部署。
通过本地部署的midjourney生成图像。
本地部署的midjourney与Discord操作同步。
本地部署教程结束,后续提供图文版教程。