PL

purzbeats/lora_tester

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

76 stars 품질 46 트렌드 18

Batch LoRA 강도 테스터 및 비교 갤러리 ComfyUI

개요

로컬 ComfyUI 서버를 사용하여 여러 개의 프롬프트 및 강도 값의 LoRA 모델을 체계적으로 테스트하는 도구 키트. 일괄 생성 스크립트와 브라우저 기반 갤러리를 포함합니다. 포함 된 comfy local 기술을 통해 Claude Code와 함께 작동하지만, Python 스크립트 및 갤러리 워크 독립도. - 포트 8188에서 로컬 실행중인 ComfyUI - 모델 파일 설치 : - z image turbo bf16.safetensors (diffusion model) - qwen 3 4b.safetensors (CLIP text encoder) - ae.safetensors (VAE) - Python 3.8+ (Pip Dependencies 없음 -- stdlib 만 사용) lora test.py의 상단을 편집하여 프롬프트와 기본 LoRA를 설정하십시오. 브라우저에서 gallery.html을 열고 프로젝트/에서 생성된 프로젝트 폴더를 선택합니다. 서버가 필요하지 않습니다 -- 로컬 파일 액세스를 사용하여 브라우저에서 완전히 실행됩니다. 스크립트는 Z-Image Turbo 파이프라인을 사용하여 (prompt, strength) 조합 당 하나의 ComfyUI 작업을 제출합니다.

개요(AI 번역)

로컬 ComfyUI 서버를 사용하여 여러 개의 프롬프트 및 강도 값의 LoRA 모델을 체계적으로 테스트하는 도구 키트. 일괄 생성 스크립트와 브라우저 기반 갤러리를 포함합니다.

포함 된 comfy_local] 기술을 통해 클로드 코드와 함께 작동하지만, 파이썬 스크립트 및 갤러리 워크 독립도.

상자에 있는 무엇이

파일 그것은 무엇
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 (클립 텍스트 인코더)
  • ae.safetensors (VAE)
  • Python 3.8+ (Pip Dependencies 없음 --만 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 가이드부터 시작하세요 →