PL

purzbeats/lora_tester

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

76 stars 品質 46 トレンド 18

バッチ LoRA 強度テスターとComfyUI の比較ギャラリー

概要

ローカルComfyUIサーバーを使用して複数のプロンプトと強度値を渡るシステム的にテストするためのツールキット。 バッチ生成スクリプトと、結果を比較するためのブラウザベースのギャラリーが含まれています。 同梱のcomfy localスキルを使ってClaudeコードで動作するようにしましたが、Pythonスクリプトとギャラリーワークスタンドアローンも。 - ポート8188でローカルで実行されているComfyUI - インストールされたモデルファイル: - z image turbo bf16.safetensors(diffusionモデル) - qwen 3 4b.safetensors(CLIPテキストエンコーダ) - ae.safetensors(VAE) - python 3.8 +(pip依存関係なし - stdlibのみを使用する) lora test.py のトップを編集して、プロンプトとデフォルト LoRA を設定します。 ブラウザでGallery.htmlを開き、プロジェクトから生成されたプロジェクトフォルダを選択します。 サーバ不要 -- ローカルファイルアクセスでブラウザ全体で動作します。 スクリプトは、Z-Image Turboパイプラインを使用してComfyUIジョブ/(prompt、強度)の組み合わせを1つ提出します.

概要(AI 翻訳)

ローカルComfyUIサーバーを使用して複数のプロンプトと強度値を渡るシステム的にテストするためのツールキット。 バッチ生成スクリプトと、結果を比較するためのブラウザベースのギャラリーが含まれています。

含まれているcomfy_localを経由してClaudeコードで動作するように構築しましたが、Pythonスクリプトとギャラリーワークスタンドアローンも。

箱にあるもの

| ファイル | お問い合わせ | お問い合わせ |【lora_test.py|ComfyUI APIによるプロンプトとLoRAの強みのマトリックス全体像を一括生成 | | [gallery.html | 閲覧、比較、および結果のエクスポートのためのシングルファイルブラウザアプリ | | [.claude/skills/comfy_local/skill.md | ヘッドレス・ComfyUIのやりとり(テキスト・ツー・イメージ・ツー・ビデオ・ロラ・テスト)のクロード・コードスキル |

前提条件

  • 港8188のローカルで動くComfyUI
  • Z-Image Turboモデルファイルをインストール:
  • [z_image_turbo_bf16.safetensors(拡散モデル)
  • [qwen_3_4b.safetensors(CLIPテキストエンコーダ)
  • [ae.safetensors (VAE)
  • Python 3.8+ (pip 依存関係なし – stdlib のみを使用する)

クイックスタート

##1. テストの構成

lora_test.pyの上部を編集して、プロンプトとデフォルト LoRA を設定します。

##2. テストを実行

##3. 結果を参照

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

LoRA Tester

A toolkit for systematically testing LoRA models across multiple prompts and strength values using a local ComfyUI server. Includes a batch generation script and a browser-based gallery for comparing results.

Built to work with Claude Code via the included comfy_local skill, but the Python script and gallery work standalone too.

What’s in the box

File What it does
lora_test.py Batch-generates images across a matrix of prompts and LoRA strengths via the ComfyUI API
gallery.html Single-file browser app for browsing, comparing, and exporting results
.claude/skills/comfy_local/skill.md Claude Code skill for headless ComfyUI interaction (text-to-image, image-to-video, LoRA testing)

Prerequisites

  • ComfyUI running locally on port 8188
  • Z-Image Turbo model files installed:
    • z_image_turbo_bf16.safetensors (diffusion model)
    • qwen_3_4b.safetensors (CLIP text encoder)
    • ae.safetensors (VAE)
  • Python 3.8+ (no pip dependencies – uses only stdlib)

Quick Start

1. Configure your test

Edit the top of lora_test.py to set your prompts and default LoRA:

LORA = "z_image_turbo\\my-lora.safetensors"

PROMPTS = [
    "a wizard casting a spell",
    "a sunset over mountains",
    "a cat sitting on a windowsill",
]

STRENGTHS = [0.0, 0.25, 0.5, 0.75, 1.0]

2. Run the test

# Use defaults from the script config:
python lora_test.py

# Or override via CLI:
python lora_test.py --lora "z_image_turbo\\my-lora.safetensors" --strengths "0,0.5,1.0" --name "my lora test"

# List available LoRAs on your ComfyUI server:
python lora_test.py --list-loras

3. Browse results

Open gallery.html in your browser and click Open Project to select the generated project folder from projects/.

No server needed – it runs entirely in the browser using local file access.

CLI Options

python lora_test.py [options]

--lora FILENAME     LoRA file path (e.g. "z_image_turbo\\my-lora.safetensors")
--strengths LIST    Comma-separated strength values (e.g. "0,0.25,0.5,0.75,1.0")
--name NAME         Project name (defaults to LoRA filename slug)
--notes TEXT        Optional notes saved to the manifest
--list-loras        List all available LoRAs on the ComfyUI server and exit

How it works

The script submits one ComfyUI job per (prompt, strength) combination using the Z-Image Turbo pipeline. All jobs are queued at once and processed sequentially by ComfyUI (~2 seconds per image on an RTX 5090).

  • Strength 0.00 generates a baseline image with no LoRA applied (the LoraLoader node is skipped entirely)
  • The same seed is used per prompt across all strengths, so you get an apples-to-apples comparison of just the LoRA’s effect

Each run creates a self-contained project folder:

projects/
GitHub で README 全文を見る

推奨ツール

別のキーワードを試すか、フィルタを外してください。

インストール

npx skillfish add purzbeats/lora_tester
MCP 初心者?mcpskill.org のガイドから始めましょう →