---
title: ComfyUI
canonical_url: "https://www.modelscope.cn/models/baizeBB/ComfyUI"
md_url: "https://www.modelscope.cn/models/baizeBB/ComfyUI.md"
repository: baizeBB/ComfyUI
chinese_name: "部署ComfyUI"
last_updated: 2025-02-12
pipeline_tag: text-to-image-synthesis
tasks:
  - text-to-image-synthesis
parameters: 29.4B
tensor_type:
  - F16
  - F32
  - BF16
  - F8_E4M3
library_name:
  - safetensors
  - gguf
  - pytorch
frameworks:
  - Pytorch
downloads: 2467
stars: 16
tags:
  - gguf
---

# ComfyUI

> ComfyUI - baizeBB 在 ModelScope 开源的模型。快速创建一个ComfyUI 点击右上角的Notebook快速开发->使用魔搭平台提供的免费实例->选方式二 GPU环境 -> 启动 -> 查看Notebook -> 挨个点击播放按钮,提示安装完成，继续点下一个播放按钮 安装步骤（如果只用ComfyUI本体，运行此流程的第1步和第8步即可）

- **Repository**: baizeBB/ComfyUI
- **Tasks**: text-to-image-synthesis
- **Parameters**: 29.4B
- **Tags**: gguf
- **Downloads**: 2467
- **Stars**: 16
- **Last updated**: 2025-02-12

Source: https://www.modelscope.cn/models/baizeBB/ComfyUI

---

### 快速创建一个ComfyUI
### 点击右上角的Notebook快速开发->使用魔搭平台提供的免费实例->选方式二 GPU环境 -> 启动 -> 查看Notebook -> 挨个点击播放按钮,提示安装完成，继续点下一个播放按钮
## 安装步骤（如果只用ComfyUI本体，运行此流程的第1步和第8步即可）

#### 1、安装ComfyUI本体（必须）


```python
import os
import subprocess
import sys

# ComfyUI仓库
git_url = "https://gitee.com/baoze-baby/comfy-ui-1.6.git"

if not os.path.exists('./ComfyUI'):
    # 在 git clone 命令后面加上 ComfyUI，指定克隆下来的文件夹名字
    subprocess.run(["git", "clone", git_url, "ComfyUI"]) 
    subprocess.run(["pip", "install", "-r", "./ComfyUI/requirements.txt"])
else:
    print("已经存在ComfyUI")
print('安装完成')

```



#### 2、安装插件（可选）
##### 这里插件安装很慢，如果长期使用，建议有一个自己的魔搭库，参考第5步的snapshot_download来下载,贼快。


```python
import os
import subprocess
import sys

def install_requirements(directory):
    requirements_path = os.path.join(directory, 'requirements.txt')
    if os.path.exists(requirements_path):
        print(f"Found requirements.txt in {directory}. Installing packages...")
        try:
            subprocess.run(['pip', 'install', '-r', requirements_path], check=True)
        except subprocess.CalledProcessError as e:
            print(f"Error installing requirements for {directory}: {e}")
            sys.exit(1)
    else:
        print(f"No requirements.txt found in {directory}.")


urls = [
    # ComfyUI 的 GGUF 模型支持
    "https://gitee.com/baoze-baby/ComfyUI-GGUF.git",
    # KJNodes，ComfyUI 的节点集合
    "https://gitee.com/baoze-baby/ComfyUI-KJNodes.git",
    # IC-Light，ComfyUI 的光照控制节点
    "https://gitee.com/baoze-baby/ComfyUI-IC-Light.git",
    # Crystools，ComfyUI 的水晶工具节点
    "https://gitee.com/baoze-baby/ComfyUI-Crystools.git",
    # FizzNodes，ComfyUI 的 Fizz 节点
    "https://gitee.com/baoze-baby/ComfyUI_FizzNodes.git",
    # TiledDiffusion，ComfyUI 的分块扩散节点
    "https://gitee.com/baoze-baby/ComfyUI-TiledDiffusion.git",
    # Comfyroll Custom Nodes，ComfyUI 的自定义节点集合
    "https://gitee.com/baoze-baby/ComfyUI_Comfyroll_CustomNodes.git",
    # WD14 Tagger，ComfyUI 的 WD14 标签器
    "https://gitee.com/baoze-baby/ComfyUI-WD14-Tagger.git",
    # Custom Scripts，ComfyUI 的自定义脚本
    "https://gitee.com/baoze-baby/ComfyUI-Custom-Scripts.git",
    # Advanced Reflux Control，ComfyUI 的高级回流控制
    "https://gitee.com/baoze-baby/ComfyUI_AdvancedRefluxControl.git",
    # IPAdapter Plus，ComfyUI 的 IPAdapter 增强版
    "https://gitee.com/baoze-baby/ComfyUI_IPAdapter_plus.git",
    # Experiments，ComfyUI 的实验性节点
    "https://gitee.com/baoze-baby/ComfyUI_experiments.git",
    # Impact Pack，ComfyUI 的 Impact 节点包
    "https://gitee.com/baoze-baby/ComfyUI-Impact-Pack.git",
    # LayerStyle，ComfyUI 的图层样式节点
    "https://gitee.com/baoze-baby/ComfyUI_LayerStyle.git",
    # Easy Use，ComfyUI 的易用节点
    "https://gitee.com/baoze-baby/ComfyUI-Easy-Use.git",
    # Tiled KSampler，ComfyUI 的分块 KSampler
    "https://gitee.com/baoze-baby/ComfyUI_TiledKSampler.git",
    # Ultimate SD Upscale，ComfyUI 的终极 SD 放大
    "https://gitee.com/baoze-baby/ComfyUI_UltimateSDUpscale.git",
    # Inspire Pack，ComfyUI 的 Inspire 节点包
    "https://gitee.com/baoze-baby/ComfyUI-Inspire-Pack.git",
    # FLuxtapoz，ComfyUI 的 FLuxtapoz 节点
    "https://gitee.com/baoze-baby/ComfyUI-Fluxtapoz.git",
    # Derfuu Modded Nodes，ComfyUI 的 Derfuu 修改版节点
    "https://gitee.com/baoze-baby/Derfuu_ComfyUI_ModdedNodes.git",
    # ControlNet Auxiliary Preprocessors，ComfyUI 的 ControlNet 辅助预处理器
    "https://gitee.com/baoze-baby/comfyui_controlnet_aux.git",
    # ComfyUI Manager，ComfyUI 的管理器
    "https://gitee.com/baoze-baby/ComfyUI-Manager.git",
    # Mixlab Nodes，ComfyUI 的 Mixlab 节点
    "https://gitee.com/baoze-baby/comfyui-mixlab-nodes.git",
    # FreeU Advanced，ComfyUI 的 FreeU 高级版
    "https://gitee.com/baoze-baby/FreeU_Advanced.git",
    # Use Everywhere，ComfyUI 的全局使用节点
    "https://gitee.com/baoze-baby/cg-use-everywhere.git",
    # Images Grid，ComfyUI 的图像网格插件
    "https://gitee.com/baoze-baby/images-grid-comfy-plugin.git",
    # Marigold，ComfyUI 的 Marigold 节点
    "https://gitee.com/baoze-baby/ComfyUI-Marigold.git",
    # AIGODLIKE ComfyUI Translation，ComfyUI 的中文汉化插件
    "https://gitee.com/baoze-baby/AIGODLIKE-ComfyUI-Translation.git",
    # Efficiency Nodes，ComfyUI 的效率节点
    "https://gitee.com/baoze-baby/efficiency-nodes-comfyui.git",
    # AlekPet Custom Nodes，ComfyUI 的 AlekPet 自定义节点
    "https://gitee.com/baoze-baby/ComfyUI_Custom_Nodes_AlekPet.git",
    # Power Noise Suite，ComfyUI 的强大噪声套件
    "https://gitee.com/baoze-baby/PowerNoiseSuite.git",
    # Advanced ControlNet，ComfyUI 的高级 ControlNet
    "https://gitee.com/baoze-baby/ComfyUI-Advanced-ControlNet.git",
    # SD PPP，ComfyUI 的 SD PPP 节点
    "https://gitee.com/baoze-baby/sd-ppp.git",
    # RgThree Comfy，ComfyUI 的 RgThree 节点
    "https://gitee.com/baoze-baby/rgthree-comfy.git",
    # Stability ComfyUI Nodes，ComfyUI 的 Stability 节点
    "https://gitee.com/baoze-baby/stability-ComfyUI-nodes.git",
    # WeiLin Prompt All in One，ComfyUI 的 WeiLin 多合一提示词节点
    "https://gitee.com/baoze-baby/WeiLin-ComfyUI-prompt-all-in-one.git",
    # Inpaint Crop and Stitch，ComfyUI 的修复、裁剪和缝合节点
    "https://gitee.com/baoze-baby/ComfyUI-Inpaint-CropAndStitch.git",
    # BizyAir 提示词反推
    "https://gitee.com/baoze-baby/BizyAir.git",
]

for url in urls:
    dir_name = url.split('/')[-1].replace('.git', '')  # 更正：移除 .git 后缀
    dir_path = os.path.join("./ComfyUI/custom_nodes/", dir_name)

    print(f"Cloning {url} into {dir_path}...")
    try:
        subprocess.run(["git", "clone", "--progress", url, dir_path], check=True, capture_output=True, text=True)
        install_requirements(dir_path)
    except subprocess.CalledProcessError as e:
        print(f"Error cloning {url}:")
        print(f"  Return code: {e.returncode}")
        print(f"  Stdout: {e.stdout}")
        print(f"  Stderr: {e.stderr}")
        sys.exit(1)

print('安装完成')

```



#### 3、下载checkpoints模型


```python
import os

print('开始下载checkpoints模型')

# realisticVisionV51
!wget -c "https://modelscope.cn/api/v1/models/AI-ModelScope/realisticVisionV51_v51VAE/repo?Revision=master&FilePath=realisticVisionV51_v51VAE.safetensors" -O "./ComfyUI/models/checkpoints/realisticVisionV51.safetensors"

#下载dreamshaperXL
!wget -c "https://www.modelscope.cn/models/MusePublic/16_ckpt_SD_XL/resolve/57/57.safetensors" -O "./ComfyUI/models/checkpoints/dreamshaperXL_v21TurboDPMSDE.safetensors"

# laowang_ARCH_MIX_V0.3
!wget -c "https://modelscope.cn/models/baizeBB/ComfyUI/resolve/master/Models/laowang_ARCH_MIX_V0.3.safetensors" -O "./ComfyUI/models/checkpoints/laowang_ARCH_MIX_V0.3.safetensors"

# ReVAnimated
!wget -c "https://www.modelscope.cn/models/Yntec/ReVAnimated/resolve/master/rev_1.2.2.safetensors" -O "./ComfyUI/models/checkpoints/ReVAnimated_v122.safetensors"


print('模型安装完成')
```

#### 4、下载vae模型


```python
import os

print('开始下载vae模型')

# vae-ft-mse-840000
!wget -c "https://modelscope.cn/api/v1/models/YorickHe/majicmixRealistic_v6/repo?Revision=master&FilePath=v7/vae/diffusion_pytorch_model.bin" -O "./ComfyUI/models/vae/vae-ft-mse-840000-ema-pruned.bin"
# flux-ae
!wget -c "https://modelscope.cn/models/calcuis/flux1-gguf/resolve/master/ae.safetensors" -O "./ComfyUI/models/vae/flux-ae.safetensors"
# sdxl.vae
!wget -c "https://www.modelscope.cn/models/AI-ModelScope/sdxl-vae-fp16-fix/resolve/master/sdxl.vae.safetensors" -O "./ComfyUI/models/vae/sdxl.vae.safetensors"

print('模型安装完成')

```


#### 5、下载ipadapter模型、放大模型（可选）


```python
import os

print('开始下载ipadapter')

!mkdir -p ./ComfyUI/models/ipadapter/
!mkdir -p ./ComfyUI/models/clip_vision/

#clip_vision
!wget -c "https://modelscope.cn/api/v1/models/AI-ModelScope/IP-Adapter/repo?Revision=master&FilePath=sdxl_models%2Fimage_encoder%2Fmodel.safetensors" -O "./ComfyUI/models/clip_vision/CLIP-ViT-bigG-14-laion2B-39B-b160k.safetensors"
!wget -c "https://www.modelscope.cn/models/libfishopen/clip_vision/resolve/master/sigclip_vision_patch14_384.safetensors" -O "./ComfyUI/models/clip_vision/sigclip_vision_patch14_384.safetensors"
!wget -c "https://www.modelscope.cn/models/libfishopen/clip_vision/resolve/master/CLIP-ViT-H-14-laion2B-s32B-b79K.safetensors" -O "./ComfyUI/models/clip_vision/CLIP-ViT-H-14-laion2B-s32B-b79K.safetensors"
!wget -c "https://modelscope.cn/models/baizeBB/ComfyUI/resolve/master/Models/CLIP-ViT-H-fp16.safetensors" -O "./ComfyUI/models/clip_vision/clip_vision/CLIP-ViT-H-fp16.safetensors"

#ipadapter
!wget -c "https://modelscope.cn/api/v1/models/AI-ModelScope/IP-Adapter/repo?Revision=master&FilePath=models%2Fip-adapter_sd15.safetensors" -O "./ComfyUI/models/ipadapter/ip-adapter_sd15.safetensors"
!wget -c "https://modelscope.cn/api/v1/models/AI-ModelScope/IP-Adapter/repo?Revision=master&FilePath=models%2Fip-adapter_sd15_light_v11.bin" -O "./ComfyUI/models/ipadapter/ip-adapter_sd15_light_v11.bin"
!wget -c "https://modelscope.cn/api/v1/models/AI-ModelScope/IP-Adapter/repo?Revision=master&FilePath=models%2Fip-adapter-plus_sd15.safetensors" -O "./ComfyUI/models/ipadapter/ip-adapter-plus_sd15.safetensors"
!wget -c "https://modelscope.cn/api/v1/models/AI-ModelScope/IP-Adapter/repo?Revision=master&FilePath=models%2Fip-adapter_sd15_vit-G.safetensors" -O "./ComfyUI/models/ipadapter/ip-adapter_sd15_vit-G.safetensors"
!wget -c "https://modelscope.cn/api/v1/models/AI-ModelScope/IP-Adapter/repo?Revision=master&FilePath=sdxl_models%2Fip-adapter_sdxl_vit-h.safetensors" -O "./ComfyUI/models/ipadapter/ip-adapter_sdxl_vit-h.safetensors"
!wget -c "https://modelscope.cn/api/v1/models/AI-ModelScope/IP-Adapter/repo?Revision=master&FilePath=sdxl_models%2Fip-adapter-plus_sdxl_vit-h.safetensors" -O "./ComfyUI/models/ipadapter/ip-adapter-plus_sdxl_vit-h.safetensors"
!wget -c "https://modelscope.cn/api/v1/models/AI-ModelScope/IP-Adapter/repo?Revision=master&FilePath=sdxl_models%2Fip-adapter_sdxl.safetensors" -O "./ComfyUI/models/ipadapter/ip-adapter_sdxl.safetensors"


#放大模型
print('开始下载放大模型')
!wget -c "https://modelscope.cn/api/v1/models/cunkai/ComfyUI_Notebook/repo?Revision=master&FilePath=upscale/4x-UltraSharp.pth" -O "./ComfyUI/models/upscale_models/4x-UltraSharp.pth"
!wget -c "https://modelscope.cn/api/v1/models/cunkai/ComfyUI_Notebook/repo?Revision=master&FilePath=upscale/RealESRGAN_x4.pth" -O "./ComfyUI/models/upscale_models/RealESRGAN_x4.pth"
!wget -c "https://modelscope.cn/models/muse/4xNomos8kSCHAT-L/resolve/master/4xNomos8kSCHAT-L.pth" -O "./ComfyUI/models/upscale_models/4xNomos8kSCHAT-L.pth"


print('安装完成')
```



#### 6、下载controlnet模型（可选）


```python
import os

print('开始下载controlnet模型')

# xl_controlnet模型
!mkdir -p ./ComfyUI/models/controlnet/xl/
!wget -c "https://modelscope.cn/models/muse/sai_xl_canny_256lora/resolve/master/sai_xl_canny_256lora.safetensors" -O "./ComfyUI/models/controlnet/xl/sai_xl_canny_256lora.safetensors"
!wget -c "https://modelscope.cn/models/muse/sai_xl_depth_256lora/resolve/master/sai_xl_depth_256lora.safetensors" -O "./ComfyUI/models/controlnet/xl/sai_xl_depth_256lora.safetensors"
!wget -c "https://modelscope.cn/models/muse/sai_xl_sketch_256lora/resolve/master/sai_xl_sketch_256lora.safetensors" -O "./ComfyUI/models/controlnet/xl/sai_xl_sketch_256lora.safetensors"
!wget -c "https://liblibai-online.liblib.cloud/web/model/db69658d3cb44fde97ae6169982d4849/6c46c871a49bf9e74114f0e1f87d818426203fd62847e78043e4ce2d40834d53.safetensors" -O "./ComfyUI/models/controlnet/xl/mistoLine_fp16.safetensors"


# 1.5_controlnet模型
!mkdir -p ./ComfyUI/models/controlnet/1.5/
!wget -c "https://modelscope.cn/models/muse/control_v11p_sd15_scribble/resolve/master/control_v11p_sd15_scribble.pth" -O "./ComfyUI/models/controlnet/1.5/control_v11p_sd15_scribble.pth"
!wget -c "https://modelscope.cn/models/muse/control_v11p_sd15_softedge/resolve/master/control_v11p_sd15_softedge.pth" -O "./ComfyUI/models/controlnet/1.5/control_v11p_sd15_softedge.pth"
!wget -c "https://modelscope.cn/models/muse/control_v11f1p_sd15_depth/resolve/master/control_v11f1p_sd15_depth.pth" -O "./ComfyUI/models/controlnet/1.5/control_v11p_sd15_depth.pth"
!wget -c "https://modelscope.cn/models/muse/control_v11p_sd15_canny/resolve/master/control_v11p_sd15_canny.pth" -O "./ComfyUI/models/controlnet/1.5/control_v11p_sd15_canny.pth"
!wget -c "https://modelscope.cn/models/muse/control_v11p_sd15_lineart/resolve/master/control_v11p_sd15_lineart.pth" -O "./ComfyUI/models/controlnet/1.5/control_v11p_sd15_lineart.pth"
!wget -c "https://modelscope.cn/models/muse/control_v11p_sd15_mlsd/resolve/master/control_v11p_sd15_mlsd.pth" -O "./ComfyUI/models/controlnet/1.5/control_v11p_sd15_mlsd.pth"

print('安装完成')
```



#### 7、下载flux模型


```python
import os

print('开始下载flux模型')


!mkdir -p ./ComfyUI/models/clip/
!mkdir -p ./ComfyUI/models/style_models/
!mkdir -p ./ComfyUI/models/unet/
!mkdir -p ./ComfyUI/models/loras/f1

# flux-clip模型
!wget -c "https://modelscope.cn/models/calcuis/flux1-gguf/resolve/master/clip_l.safetensors" -O "./ComfyUI/models/clip/clip_l.safetensors"

# t5xxl模型
!wget -c "https://modelscope.cn/models/calcuis/flux1-gguf/resolve/master/t5xxl_fp8_e4m3fn.safetensors" -O "./ComfyUI/models/clip/t5xxl_fp8_e4m3fn.safetensors"

# flux1-gguf-Q5模型
!wget -c "https://modelscope.cn/models/AI-ModelScope/FLUX.1-dev-gguf/resolve/master/flux1-dev-Q5_0.gguf" -O "./ComfyUI/models/unet/flux1-dev-Q5_0.gguf"

# flux1-Fill-gguf-Q5模型
!wget -c "https://modelscope.cn/models/baizeBB/ComfyUI/resolve/master/Models/flux1-fill-dev-Q5_0.gguf" -O "./ComfyUI/models/unet/flux1-fill-dev-Q5_0.gguf"

# flux1-fill-fp8模型
!wget -c "https://modelscope.cn/models/baizeBB/ComfyUI/resolve/master/Models/flux1-fill-dev-fp8.safetensors" -O "./ComfyUI/models/checkpoints/flux1-fill-dev-fp8.safetensors"

# flux1-fp8模型
!wget -c "https://modelscope.cn/models/baizeBB/ComfyUI/resolve/master/Models/flux1-dev-fp8.safetensors" -O "./ComfyUI/models/checkpoints/flux1-dev-fp8.safetensors"

# flux1-fp8模型
!wget -c "https://www.modelscope.cn/models/Alpha-VLLM/Lumina-Image-2.0/resolve/master/consolidated.00-of-01.pth" -O "./ComfyUI/models/checkpoints/Lumina-Image-2.0.pth"

# Lumina-Image-2.0
!wget -c "https://modelscope.cn/models/Shakker-Labs/FLUX.1-dev-ControlNet-Union-Pro/resolve/master/diffusion_pytorch_model.safetensors" -O "./ComfyUI/models/controlnet/FLUX.1-dev-ControlNet-Union-Pro.safetensors"

# FLUX-redux模型
!wget -c "https://modelscope.cn/models/muse/flux1-redux-dev/resolve/master/flux1-redux-dev.safetensors" -O "./ComfyUI/models/style_models/flux1-redux-dev.safetensors"

# FLUX-depth-lora
!wget -c "https://modelscope.cn/models/muse/flux1-depth-dev-lora/resolve/master/flux1-depth-dev-lora.safetensors" -O "./ComfyUI/models/loras/f1/flux1-depth-dev-lora.safetensors"

# FLUX-canny-lora
!wget -c "https://modelscope.cn/models/muse/flux1-canny-dev-lora/resolve/master/flux1-canny-dev-lora.safetensors" -O "./ComfyUI/models/loras/f1/flux1-canny-dev-lora.safetensors"

# FLUX-Turbo-lora
!wget -c "https://modelscope.cn/models/alimama-creative/FLUX.1-Turbo-Alpha/resolve/master/diffusion_pytorch_model.safetensors" -O "./ComfyUI/models/loras/f1/FLUX.1-Turbo-Alpha.safetensors"

!mkdir -p ./ComfyUI/models/RMBG/
urls = [
# 移除背景模型
"https://modelscope.cn/models/AI-ModelScope/RMBG-2.0.git"
]
for url in urls:
    dir = f"./ComfyUI/models/RMBG/{url.split('/')[-1].replace('.', '_')}"
    subprocess.run(["git", "clone", "--progress", url, dir])
    install_requirements(dir)

print('安装完成')
```

#### 8、下载Lora模型（可选）


```python
import os

print('开始下载lora模型')

!mkdir -p ./ComfyUI/models/loras/1.5

!mkdir -p ./ComfyUI/models/loras/xl

# AIGC机甲字体
!wget -c "https://www.modelscope.cn/models/baizeBB/ComfyUI/resolve/master/1.5/loras/AIGCziti_v1.0.safetensors" -O "./ComfyUI/models/loras/1.5/AIGC机甲字体_v1.0.safetensors"

# 爱丽丝Alice
!wget -c "https://www.modelscope.cn/models/baizeBB/ComfyUI/resolve/master/1.5/loras/Alice_v1.safetensors" -O "./ComfyUI/models/loras/1.5/爱丽丝Alice_v1.safetensors"

# Hyper-SD15-12steps
!wget -c "https://www.modelscope.cn/models/baizeBB/ComfyUI/resolve/master/1.5/loras/Hyper-SD15-12steps-CFG-lora.safetensors" -O "./ComfyUI/models/loras/1.5/Hyper-SD15-12steps-CFG-lora.safetensors"

# IvoryGoldAIv2
!wget -c "https://www.modelscope.cn/models/baizeBB/ComfyUI/resolve/master/1.5/loras/IvoryGoldAIv2.safetensors" -O "./ComfyUI/models/loras/1.5/IvoryGoldAIv2.safetensors"

# LCM-1.5
!wget -c "https://www.modelscope.cn/models/baizeBB/ComfyUI/resolve/master/1.5/loras/LCM-1.5-Lora.safetensors" -O "./ComfyUI/models/loras/1.5/LCM-1.5-Lora.safetensors"

# 微光Light-Art-Picture-Book
!wget -c "https://www.modelscope.cn/models/baizeBB/ComfyUI/resolve/master/1.5/loras/Light%20Art%20Picture%20Book.safetensors" -O "./ComfyUI/models/loras/1.5/微光Light-Art-Picture-Book.safetensors"

# 胖美迪PD_meichao
!wget -c "https://www.modelscope.cn/models/baizeBB/ComfyUI/resolve/master/1.5/loras/PD_meichao.safetensors" -O "./ComfyUI/models/loras/1.5/胖美迪PD_meichao.safetensors"

# add_detail
!wget -c "https://www.modelscope.cn/models/baizeBB/ComfyUI/resolve/master/1.5/loras/add_detail.safetensors" -O "./ComfyUI/models/loras/1.5/add_detail.safetensors"

# 线稿animeoutlineV4_16
!wget -c "https://www.modelscope.cn/models/baizeBB/ComfyUI/resolve/master/1.5/loras/animeoutlineV4_16.safetensors" -O "./ComfyUI/models/loras/1.5/线稿animeoutlineV4_16.safetensors"

# 盲盒blindbox
!wget -c "https://www.modelscope.cn/models/baizeBB/ComfyUI/resolve/master/1.5/loras/blindbox_v1_mix.safetensors" -O "./ComfyUI/models/loras/1.5/盲盒blindbox_v1_mix.safetensors"

# 电商场景设计
!wget -c "https://www.modelscope.cn/models/baizeBB/ComfyUI/resolve/master/1.5/loras/dianshangsheying_v8.safetensors" -O "./ComfyUI/models/loras/1.5/电商场景设计_v8.safetensors"

# 现代企业展厅
!wget -c "https://www.modelscope.cn/models/baizeBB/ComfyUI/resolve/master/1.5/loras/xiandaiqiyezhanting1.0.safetensors" -O "./ComfyUI/models/loras/1.5/现代企业展厅1.0.safetensors"

# 未来博物馆
!wget -c "https://www.modelscope.cn/models/baizeBB/ComfyUI/resolve/master/1.5/loras/zweilaibowuguang_v1.0.safetensors" -O "./ComfyUI/models/loras/1.5/未来博物馆_v1.0.safetensors"

print('安装完成')
```



#### 9、启动ComfyUI http://127.0.0.1:8188 （必须）
##### 你跑的图片在左侧的ComfyUI->output文件夹中可以找到
##### 运行ComfyUI的过程中安装插件，把下面的运行按钮点一下关掉重新打开。


```python
import subprocess
import torch
import os
import signal


def kill_process8188():
    cmd = "netstat -anp | grep :8188"
    result = os.popen(cmd).read()
    print(result)
    pids = []
    for line in result.splitlines():
        pid = int(line.split()[-1].split('/')[0])
        pids.append(pid)
    for pid in pids:
        os.kill(pid, signal.SIGKILL)
    
# 结束8188进程
kill_process8188()


if not torch.cuda.is_available():
    print("没有显卡的环境，CPU方式启动")
    subprocess.run(["python", "./ComfyUI/main.py", "--cpu"])
else:
    print("显卡启动")
    subprocess.run(["python", "./ComfyUI/main.py"])
```
