rtx5060部署stable-diffusion1.10.1版本注意事项

硬件:宏基暗影骑士7,rtx5060版本

nvidia-smi

查看安装版本nvcc -V

本地测试

1.一定要进入配置好的E:\stableDiffusion\venv 目录之后,启动虚拟环境再执行。

具体操作:

先找到配置文件:E:\stableDiffusion\stable-diffusion-webui\webui-user.bat

设置两个参数:

set PYTHON=E:\stableDiffusion\venv\Scripts\python.exe

set VENV_DIR=E:\stableDiffusion\venv

具体配置:(实际并不成功,最终使用webui.bat进行启动成功)

复制代码
@echo off

set PYTHON=E:\stableDiffusion\stable-diffusion-webui\venv\Scripts\python.exe
set GIT=
set VENV_DIR=E:\stableDiffusion\venv
set COMMANDLINE_ARGS=--lowvram --precision full --no-half --skip-torch-cuda-test  --xformers   --enable-insecure-extension-access 
set TORCH_CUDNN_V8_API_DISABLED=1
set force_download=True
set share=True
set TORCH_COMMAND=pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128
call webui.bat

保存之后,需要启动虚拟环境

复制代码
 .\activate.bat

启动之后,进入的界面如下

2.进入环境之后再执行安装组件torch torchvision torchaudio,这个安装会自动安装正确的版本。尽量不要自行安装版本

.\pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128

3.另起一个命令行窗口,执行webui.bat

注意:使用的是webui.bat而不是webui-user.bat。虽然我设置了很多参数,但是最终执行webui-user.bat发生了很多的错误。

另外不要关闭第一个命令行窗口,两个窗口都保留

4.启动后的效果:

看到有报错,不过没关系,可以先忽略。后续再优化即可,不影响基本的使用

5.成功的界面,汉化之后的样子(需要配置)

看到生成的一直小狗

6.千万注意网络,需要使用正确的网络才行,不能启用其他的软件的局域网网络,会造成网络混杂

相关推荐
Soujer3 天前
AUTOMATIC1111 stable-diffusion-webui:165k Star 的 AI 绘图 Web 界面,到底
stable diffusion·ai绘画·gradio·webui·a1111
syso_稻草人6 天前
qwen-image-2.1 文生图:动物七段结构提示词生成10张萌宠写真(含完整提示词与参数)
人工智能·stable diffusion·comfyui·qwen-image2.1
syso_稻草人13 天前
qwen-image-2.1 高清放大拆解:Qwen21LatentUpscale 潜空间 2x + denoise 0.35 修细节,12 组场景实测
人工智能·stable diffusion·prompt·comfyui·qwen-image2.1
syso_稻草人15 天前
qwen-image-2.1 姿态控制拆解:SDPose 提骨架 + Fun-ControlNet-Union 锁姿势,换人换景不换姿势
人工智能·stable diffusion·prompt·提示词优化·qwen-image
syso_稻草人20 天前
qwen-image-2.1 PE 增强编辑:QwenImage21_EditPromptRewrite 一句话中文扩写成完整编辑指令
人工智能·stable diffusion·prompt·comfyui·qwen-image2.1
Miss小乐1 个月前
stable-diffusion-webui安装教程和遇到的问题解决
stable diffusion
Είναι η κοπέλα2 个月前
Stable Diffusion文生图:本地 AI 绘画事实标准入门
人工智能·stable diffusion
瑶山2 个月前
stable-diffusion.cpp 参数全集整理(sd-cli.exe / sd-server.exe)
java·数据库·stable diffusion·参数全集
云间月13142 个月前
Stable Diffusion WebUI完整部署:从本地出图到7860远程访问
stable diffusion
霸道流氓气质2 个月前
Java调用StableDiffusion/ComfyUI图像生成:DAG工作流编排、WebSocket实时进度与Flux模型集成的生产级实战
java·websocket·stable diffusion