comfyui-Lora-auto-downloader

comfyui-Lora-auto-downloader
★ 2

LORA下载CivitAI模型管理Token认证
根据JSON配置自动从CivitAI下载LORA与checkpoint模型,支持Token验证并保存到指定目录,简化批量模型管理。
💡 按配置批量自动从CivitAI下载并保存模型。
🍴 1 Forks💻 Python🔄 2025-08-27
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/9d76119b2ef2
📄 README

Kw_Json_Lora_CivitAIDownloader

This tool allows you to download models from CivitAI based on a JSON configuration that defines LORA and checkpoint models. It uses token-based authentication to download files from specified URLs and saves them to specified directories. based on CivitAIDownloader

Features

  • Directory Selection: Choose directories for saving LORA and checkpoint models.
  • JSON Input for Model Data: Configure models for download through a JSON structure that defines LORA and checkpoint details.
  • Token Authentication: Secure downloads with a CivitAI token.
  • Requirements

  • Python 3.x
  • Modules: requests, os, re, json
  • How to Use

    Set Up Directories: The script will automatically navigate to the models directory, three levels up from the script location, where it will look for directories specified in the configuration.

    Ensure that your LORA and checkpoint directories are subdirectories of the models directory, as the downloader will save files based on this structure.

    Prepare JSON Input (Example Below): Configure the models to download by preparing a JSON structure. This JSON includes the lora and checkpoint arrays with name and modelVersionId fields.

    Set Token and Model ID: For secure download, use your CivitAI token and model_id.

    JSON Configuration Example

    Create a JSON input for LORA and checkpoint models like this:

    json

    {

    “lora”: [

    {

    “name”: “A-Mecha_Musume_A_”,

    “modelVersionId”: “97207”,

    “strength”: “1.5”

    }

    ],

    “checkpoint”: [

    {

    “name”: “WAI-REAL_CN”,

    “modelVersionId”: “655516”

    }

    ],

    “positive”: “solo,spine,translucent,transparent,scars,”,

    “negative”: “score_6,score_5,score_4,pony,”

    }

    Save this JSON data in a file or copy it into the “Json_Lora” input field in the downloader.

    Required and Optional Inputs

    save_dir_lora: Directory where LORA files will be saved. This should be a directory inside the models directory.

    save_dir_checkpoint: Directory for checkpoint files, also inside models.

    Json_Lora: JSON string containing LORA and checkpoint model configurations.

    token_id: Your CivitAI token for authenticated access.