Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.15 KB

README.md

File metadata and controls

44 lines (29 loc) · 1.15 KB

自用下载模型

使用方法

方法一:

python cd.py <模型主页地址> 

方法二:

python cd_plus.py <模型地址> <Hugging Face Token> <Civitai API Key> <Hugging Face 仓库 ID> <下载目录(可选)>

参数说明:

  • 模型主页地址: 模型在 Civitai 或 Hugging Face 上的页面地址.
  • 模型地址: 模型文件的直接下载地址.
  • Hugging Face Token: 你的 Hugging Face 访问令牌.
  • Civitai API Key: 你的 Civitai API 密钥.
  • Hugging Face 仓库 ID: 你想要上传模型的 Hugging Face 仓库 ID.
  • 下载目录(可选): 指定模型下载的目标目录,默认为当前目录.

示例:

方法一: 从 Civitai 下载模型

python cd.py https://civitai.com/models/12345/example-model

方法二: 从指定地址下载模型并上传到 Hugging Face

python cd_plus.py https://example.com/model.ckpt your_hf_token your_civitai_api_key your_repo_id ./my_models

注意:

  • 确保你已经安装了所需的 Python 库.
  • cd_plus.py 方法需要你拥有 Hugging Face 和 Civitai 的账户并获取相应的 API 密钥.