Commit Graph
14 Commits
Author SHA1 Message Date
Vito Sansevero 1157714b80 docs: update README for v3.2.1 LoRA Manager integration (#52)
- Add LoRA Manager integration section with setup guide and CivitAI key docs
- Add folder filter section with rescan note for existing libraries
- Add v3.2.1 changelog entry, split from v3.2.0
- Add WIP notice for LoRA Manager feature
- Update AutoTag section to include WD14 models
- Fix stale references (KikoTextEncode, outdated file structure)
- Remove dated v2 development note
- Add screenshots for settings, integration, and filtered results
- Fix code review items: remove unused constant, add comments to empty excepts
- Bump version to 3.2.1
2026-04-03 18:13:51 -07:00
Vito Sansevero 3ee4a8b6a5 fix: resize downloaded images to 512px thumbnails locally (#52)
Civitai CDN returns 401 for /width=N/ thumbnail URLs with API key auth.
Instead, download the original and resize to 512px via PIL before saving.
Reduces disk usage from ~5MB to ~30-50KB per image.
2026-04-03 10:18:35 -07:00
Vito Sansevero 50f04a6223 perf: use 512px thumbnails and parallel downloads for LoRA images (#52)
Full-size civitai images averaged 5.6MB each (27GB total for 5K images).
Now requests /width=512/ thumbnails (~50-100KB) and downloads 8 in
parallel per LoRA. Expected speedup: ~100x smaller + 8x parallel.
2026-04-03 10:02:05 -07:00
Vito Sansevero 195cf2adb4 fix: reduce download timeout to 5s, update progress per LoRA (#52)
5K images at 15s timeout was painfully slow. Reduced to 5s fail-fast.
Progress now updates for every LoRA with image count, not every 5th.
2026-04-03 08:56:09 -07:00
Vito Sansevero 0e41e6d65c feat: add CivitAI API key setting for authenticated image downloads (#52)
Most civitai example images (especially NSFW) require authentication.
Adds API key field to the Integrations settings panel, passed as
Bearer token when downloading example images.
2026-04-03 08:41:41 -07:00
Vito Sansevero 451596fab3 feat: download civitai example images during LoRA import (#52)
Images from civitai.images[] are downloaded to data/lora_images/ cache
and linked to prompts alongside local preview files. Cached files are
reused on reimport. Image serving allows the cache directory.
2026-04-03 08:33:47 -07:00
Vito Sansevero 7713cecba6 fix: handle null civitai field, link all preview images (#52)
- Guard against civitai: null in metadata (was crashing the scan)
- Link all local preview images per LoRA, not just the first
- Add get_civitai_image_urls() for future remote image support
2026-04-03 08:24:45 -07:00
Vito Sansevero fea745deb9 fix: use example prompts instead of trigger words, serve LoRA preview images (#52)
- Prompt text now uses civitai example prompts (images[].meta.prompt)
  when available, falling back to model name instead of trigger words
- Image serving now allows paths within LoRA directories when the
  integration is enabled, fixing 403 errors on preview images
2026-04-03 08:20:20 -07:00
Vito Sansevero b71e4780e9 feat: discover LoRA dirs from extra_model_paths.yaml and folder_paths (#52)
Only models/loras under the ComfyUI root was checked. Now also parses
extra_model_paths.yaml and uses folder_paths.get_folder_paths('loras')
at runtime to find all configured LoRA directories.
2026-04-03 08:10:37 -07:00
Vito Sansevero 8c93acb2ce fix: use rglob to find metadata in lora subdirectories (#52) 2026-04-03 08:08:01 -07:00
Vito Sansevero bff70b6323 fix: find ComfyUI root via folder_paths and handle symlinked installs (#52) 2026-04-03 07:46:08 -07:00
Vito Sansevero 1a6cad42cb fix: simplify LoraManager heuristic to match real install structure (#52) 2026-04-03 07:42:05 -07:00
Vito Sansevero a2061e2977 fix: detect LoraManager with case-insensitive directory scan (#52) 2026-04-03 07:31:29 -07:00
Vito Sansevero 582bb052f7 feat: add LoRA utility module for LoraManager integration (#52)
Detection, metadata reading, trigger word cache, and prompt injection
for ComfyUI-Lora-Manager. All functions return empty results when
LoraManager is not installed.
2026-04-03 07:28:24 -07:00