分类 人工智能 下的文章

1、双语对照
来自这个视频:https://www.youtube.com/watch?v=Vi8jnLX1mKE
2、安装lobe主题
安装地址:https://github.com/lobehub/sd-webui-lobe-theme
3、ControlNet插件超强tile模型!高清修复✓更富细节✓分区放大图片✓
来自视频教程:https://www.youtube.com/watch?v=LQRCHVyQvhY

来自抖音“飞哥学AI"sd必备的四大lora模型
1、皮肤lora模型Skin & Hands (male/female) from Polyhedron
https://civitai.com/models/109043?modelVersionId=122580
2、图片细节优化lora模型 detail enhancer

来自抖音”郡的ai魔法日“5个写实的模型
1、麦橘写实
2、墨幽人造人
3、赛博无损
4、极氪写实max

从civitai找全部关键词,按照它要求作图,缺少什么插件和模型就安装什么,不懂就问ai
1、安装adtailer插件
https://github.com/Bing-su/adetailer
2、安装Stable Diffusion Dynamic Thresholding (CFG Scale Fix)
https://github.com/mcmonkeyprojects/sd-dynamic-thresholding
3、像ps一样修图?stable diffusion的新插件BMAB
1、视频教程:https://www.youtube.com/watch?v=9ExQzDO9cn0
插件地址:https://github.com/portu-sim/sd-webui-bmab.git

4、Dynamic Thresholding来更好控制cfg值
https://github.com/mcmonkeyprojects/sd-dynamic-thresholding

1、安装显卡驱动
https://www.nvidia.cn/drivers/lookup/
2、检查显卡是否安装成功
cmd输入:nvidia-smi
3、下载安装cuda,到相关网址选择合适的版本。
https://developer.nvidia.com/cuda-toolkit-archive
4、下载cuDNN及安装
需要nvidia账号登陆下载
在这里选择相关的版本:
https://developer.nvidia.com/cudnn-archive
将下载的文件解压复制到C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8覆盖文件。
5、cuDNN安装测试
C:\project>nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Sep_21_10:41:10_Pacific_Daylight_Time_2022
Cuda compilation tools, release 11.8, V11.8.89
Build cuda_11.8.r11.8/compiler.31833905_0
表明安装成功
6、安装pytorch版本
到下面网址安装pytorch版本:
https://pytorch.org/get-started/previous-versions/#conda

1、安装显卡驱动
https://www.nvidia.cn/drivers/lookup/
2、检查显卡是否安装成功
cmd输入:nvidia-smi
3、下载安装cuda,到相关网址选择合适的版本。
https://developer.nvidia.com/cuda-toolkit-archive
4、下载cuDNN及安装
需要nvidia账号登陆下载
在这里选择相关的版本:
https://developer.nvidia.com/cudnn-archive
将下载的文件解压复制到C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8覆盖文件。
5、cuDNN安装测试
C:\project>nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Sep_21_10:41:10_Pacific_Daylight_Time_2022
Cuda compilation tools, release 11.8, V11.8.89
Build cuda_11.8.r11.8/compiler.31833905_0
表明安装成功
6、安装pytorch版本
到下面网址安装pytorch版本:
https://pytorch.org/get-started/previous-versions/#conda

安装stable diffusion

一、创建stable deiffusion的conda环境。Install Python 3.10.6 (Newer version of Python does not support torch), checking "Add Python to PATH".

(1)cd c:\project
(2)git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
(3)cd stable-diffusion-webui
(4)webui-user.bat程序会自动产生venv

1、界面汉化
下载语言包,打开extentions--->install from url
https://github.com/VinsonLaro/stable-diffusion-webui-chinese
打开科学上网,如果安装失败,把本地连接的“代理”中的:“请勿将代理服务器用于本地地址”就可以下载扩展了。
下载后,重启,然后进入setting--->user interface---->user interface选择chinese
2、安装其他插件。视频讲解:https://www.youtube.com/watch?v=sKcK12hXzKQ
(1)安装civitai扩展插件,应用并重启
地址:https://github.com/civitai/sd_civitai_extension
(2)安装stable-diffusion-webui-images-browser插件
地址:https://github.com/AlUlkesh/stable-diffusion-webui-images-browser
(3)安装sd-webui-inpaint-anything插件
地址:https://github.com/Uminosachi/sd-webui-inpaint-anything
(4)安装a1111-sd-webui-tagcomplete插件
地址:https://github.com/DominikDoom/a1111-sd-webui-tagcomplete
(5)civitai下载lighting based picture control controlnet控制图像灯光和阴影效果
网址:https://civitai.com/models/80536/lighting-based-picture-control-controlnet
放置在models\controlnet文件夹下
(6)安装onebuttonpropt插件,自动提示词生成插件,该插件不会出现在插件列表中,在页面最下边脚本中找到。
网址:https://github.com/AIrjen/OneButtonPrompt
视频讲解:https://www.youtube.com/watch?v=cQZx4eQlr_w

3、安装其他插件合集。视频讲解:https://www.youtube.com/watch?v=LlJF9oitE34
(1)双语对照插件biling
(2)config-presets
(3)openpose
4、controlnet教程。视频讲解:https://www.youtube.com/watch?v=qRKQ11f5g6k
5、sd进阶插件。视频讲解:https://www.youtube.com/watch?v=w6xTn_h4ZY0
6、5个Stable Diffusion必备基础插件推荐。讲解网址:https://www.youtube.com/watch?v=yZv_jLH93ko
(1)提示词反推工具。网址:https://github.com/toriato/stable-diffusion-webui-wd14-tagger
视频讲解:https://www.youtube.com/watch?v=2tcICGwmozw
7、制作美女视频所需的插件
(1)controlnet插件。https://github.com/lllyasviel/ControlNet
(2)adetailer插件。https://github.com/Bing-su/adetailer
(3)mov2mov插件。https://github.com/Scholar01/sd-webui-mov2mov
(4)roop插件。https://github.com/s0md3v/sd-webui-roop

8、制作美女视频插件
(1)插件ebsynth_utility
网址:https://github.com/s9roll7/ebsynth_utility
(2)补帧工具
(3)在使用该工具时无法生成mask需要安装pip install transparent-background
9、用于下载模型的miaoshouai-assistant插件
地址:https://github.com/miaoshouai/miaoshouai-assistant

二、启动stable diffusion

1、conda activate python_3.10.6
2、c:\project\stable-diffusion\webui-user.bat

Open WebUI 是目前最流行、功能最丰富的本地大模型 Web 界面之一,它将 Ollama(或其他兼容 API)的服务封装成一个类似 ChatGPT 的用户界面,极大地提高了本地使用大模型的体验。

一、 Open WebUI 的安装

Open WebUI 的安装方式有多种,其中最推荐和最常用的是使用 Docker 和 Python/Pip。

前提条件
已安装 Ollama 并确保其正在后台运行(默认监听端口为 11434)。

已安装 Docker (推荐方式) 或 Python 3.11/3.12 (Python 方式)。

方式一:使用 Docker (推荐,最简单快捷)

这是最稳定的安装方式,它将 Open WebUI 隔离在一个容器中,避免了依赖冲突。

运行 Docker 命令: 在命令行(Terminal 或 PowerShell)中运行以下命令。

对于没有 GPU 的环境 (CPU 或集成显卡):

Bash

docker run -d -p 3000:8080 -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main
对于带有 NVIDIA GPU 的环境 (需要先安装 NVIDIA Container Toolkit):

Bash

docker run -d -p 3000:8080 --gpus all --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:cuda
注意:

--add-host=host.docker.internal:host-gateway 确保容器内的 WebUI 能正确连接到运行在宿主机(你的电脑)上的 Ollama 服务。

-p 3000:8080 表示通过你电脑的 3000 端口访问 WebUI。

访问 WebUI: 打开你的浏览器,访问地址:http://localhost:3000

方式二:使用 Python/Pip (无需 Docker)

如果你不想使用 Docker,可以直接通过 Python 包管理器安装。

安装 Open WebUI:

Bash

pip install open-webui
启动服务:

Bash

open-webui serve
访问 WebUI: 打开你的浏览器,访问地址:http://localhost:8080

二、 Open WebUI 的首次配置与使用

1. 首次登录与账户创建

第一次访问 http://localhost:3000http://localhost:8080 时,系统会要求你创建一个本地用户账户(用户名、邮箱和密码)。

这个账户是本地的,用于管理你的聊天记录、设置等。

2. Ollama 连接 (通常是自动的)

如果你是按照上述 Docker 或 Python 步骤安装的,Open WebUI 会自动尝试连接到你本地运行的 Ollama 服务 (默认地址 http://localhost:11434)。

如果连接失败或 Ollama 运行在其他地方:

登录后,点击左下角的用户头像,进入 Admin Settings (管理设置)。

导航到 Connections (连接) 区域,找到 Ollama。

确保 Ollama API URL 被正确设置为 Ollama 服务实际运行的地址和端口 (例如:http://10.0.2.2:11434http://host.docker.internal:11434 或你自定义的地址)。

3. 模型管理与下载

下载模型:

进入 Admin Settings (管理设置) -> Connections (连接) -> Ollama -> Manage (管理)。

在这里,你可以查看本地已安装的模型,也可以输入模型名称(如 llama3:8b)来直接下载和安装 Ollama 仓库中的模型。

快捷方式: 在聊天界面的模型选择下拉框中,直接输入你想要的模型名称,如果本地没有,WebUI 会提示你下载。