#下载Cuda https://developer.nvidia.com/cuda-toolkit-archive 12.8.2 nvidia-smi nvcc –version
#下载ComfyUI git clone https://github.com/Comfy-Org/ComfyUI.git git clone https://github.com/Comfy-Org/ComfyUI-Manager.git 到 ComfyUI\custom_nodes
#安装虚拟环境及依赖 下载python 3.12.9 https://www.python.org/downloads/
激活虚拟环境并安装 C:\Users\xxxx\AppData\Local\Programs\Python\Python312\python.exe -m venv venv312 .\venv\Script\activate pip install -r requirements.txt
#pytorch换成2.8版本 https://pytorch.org/get-started/previous-versions/ pip uninstall torch torchvision torchaudio -y pip install torch==2.8.0 torchvision==0.23.0 torchaudio==2.8.0 –index-url https://download.pytorch.org/whl/cu128
#运行 python main.py 选择 模板 图像 根据提示下载文生图的模型
#加速 https://github.com/woct0rdho/triton-windows/releases https://github.com/woct0rdho/SageAttention/releases https://github.com/kingbri1/flash-attention/releases
#如果出现MMap的问题 python main.py –disable-dynamic-vram –disable-mmap