logo
0
0
WeChat Login
Forkfrompylover/comfyui-flows, behindmain230 commits
docs: 更新 README.md 中关于从 huggingface 下载模型的 token 信息

ComfyUI-flows

badge badge badge

介绍

ComfyUI-flows 旨在一键启动你的云 ComfyUI

当前 ComfyUI 默认版本为 0.3.27

分支即环境,通过选择不同的分支即可选择不同的 ComfyUI 环境,下面是各个分支的简介:

main:主分支默认环境

无内置模型

镜像环境:default

flux1:Flux1开发环境

  • 内置模型:
    • unet:
      • flux1-dev.safetensors
    • clip:
      • clip_l.safetensors
      • t5xxl_fp16.safetensors
    • vae:
      • ae.safetensors

镜像环境:flux

sd3.5: SD3.5开发环境

  • 内置模型:
    • checkpoints:
      • sd3.5_large.safetensors
      • sd3.5_medium.safetensors
    • clip:
      • clip_g.safetensors
      • clip_l.safetensors
      • t5xxl_fp16.safetensors

镜像环境:StableDiffusion

pony:Pony开发环境

  • 内置模型:
    • checkpoints:
      • hassakuXLIllustrious_v13StyleA.safetensors
      • ponyDiffusionV6XL_v6StartWithThisOne.safetensors
      • waiANINSFWPONYXL_v10.safetensors
    • vae:
      • sdxl_vae.safetensors

镜像环境:Pony

所有的环境中都内置了许多常用的自定义节点,方便大家的使用!

使用

  1. fork 本仓库
  2. 选择一个分支,点击ComfyUI启动按钮。
  3. 点击弹出窗口的 open,开始AI绘图!

下载模型

使用 coscmd 拉取腾讯云对象储存中模型(推荐)

推荐理由:coscmd 在cnb远程开发环境中走的是内网,下载速度更快,且不收下行流量费用,使用前提是需要把你的模型上传到腾讯云对象储存中。

  1. 配置 coscmd:
coscmd config -a YUOR_SECRET_ID -s YUOR_SECRET_KEY -b BucketName-APPID -r REGION

详细使用请参照官方文档

  1. 下载模型
coscmd download xxxx/checkpoints/xxx.safetensors /ComfyUI/models/checkpoints

通用下载方法

若需要从魔搭社区等可直接获取文件下载 url 的平台下载模型,可以使用wget、axel

以下是示例,从魔搭社区下载Counterfeit模型至cnb中

-c 参数表示断点续传,防止大文件中断时,需要重新下载。

# 下载checkpoint模型 wget -c https://www.modelscope.cn/models/AI-ModelScope/Counterfeit-V2.5/resolve/master/Counterfeit-V2.5_pruned.safetensors -O /ComfyUI/models/checkpoints/Counterfeit-V2.5_pruned.safetensors # 多线程下载 axel -n 10 https://www.modelscope.cn/models/AI-ModelScope/Counterfeit-V2.5/resolve/master/Counterfeit-V2.5_pruned.safetensors

huggingface 上下载模型

tokenhf_**** 在指定仓库下载指定模型,例如在仓库 openfree/flux-lora-korea-palace 下载模型 flux-lora-korea-palace.safetensors 到指定目录 /ComfyUI/models/loras 命令如下:

huggingface-cli download openfree/flux-lora-korea-palace --include "flux-lora-korea-palace.safetensors" --local-dir /ComfyUI/models/loras --token hf_****

civitai 上下载模型(还没加速使用不了)

token 为 xxxxxxxxxx

下载模型ID为 1478064 的模型重命名为 CyberRealisticPony.safetensors 到指定目录 /ComfyUI/models/checkpoints 命令如下:

wget -O /ComfyUI/models/checkpoints/CyberRealisticPony.safetensors "https://civitai.com/api/download/models/1478064?&token=xxxxxxxxxx" --content-disposition

修改环境配置

在本仓库.cnb.yml里,定义的环境配置如下:

... runner: cpus: 32 # 定义运行环境配置32C64G,可自行按需更改 tags: cnb:arch:amd64:gpu # 不建议修改 ...

若需要修改,参考自定义资源规格

About

AI生图

Language
Markdown92.5%
Shell7.5%