mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 13:12:12 -03:00
- Create docs/metadata-json-schema.md with complete field reference - All base fields for LoRA, Checkpoint, and Embedding models - Complete civitai object structure with Used vs Stored field classification - Model-level fields (allowCommercialUse, allowDerivatives, etc.) - Creator fields (username, image) - customImages structure with actual field names and types - Field behavior categories (Auto-Updated, Set Once, User-Editable) - Add .specs/metadata.schema.json for programmatic validation - JSON Schema draft-07 format - oneOf schemas for each model type - Definitions for civitaiObject and usageTips - Add example metadata files for each model type - lora-civitai.json: LoRA with full Civitai data - lora-custom.json: User-defined LoRA with trigger words - lora-no-triggerwords.json: LoRA without trigger words - checkpoint-civitai.json: Checkpoint from Civitai - embedding-custom.json: Custom embedding Key clarifications: - modified: Import timestamp (Set Once, never changes after import) - size: File size at import time (Set Once) - base_model: Optional with actual values (SDXL 1.0, Flux.1 D, etc.) - model_type: Used in metadata.json (not sub_type which is internal) - allowCommercialUse: ["Image", "Video", "RentCivit", "Rent"] - civitai.files/images: Marked as Used by Lora Manager - User-editable fields clearly documented (model_name, tags, etc.)
58 lines
1.8 KiB
JSON
58 lines
1.8 KiB
JSON
{
|
|
"file_name": "anime_style_lora",
|
|
"model_name": "Anime Style LoRA",
|
|
"file_path": "/home/user/ComfyUI/models/loras/anime_style_lora.safetensors",
|
|
"size": 104857600,
|
|
"modified": 1710000000.0,
|
|
"sha256": "abc123def456789012345678901234567890123456789012345678901234abcd",
|
|
"base_model": "SDXL",
|
|
"preview_url": "/home/user/ComfyUI/models/loras/anime_style_lora.preview.png",
|
|
"preview_nsfw_level": 0,
|
|
"notes": "",
|
|
"from_civitai": true,
|
|
"civitai": {
|
|
"id": 12345,
|
|
"modelId": 67890,
|
|
"name": "v1.0",
|
|
"description": "Version 1.0 release",
|
|
"baseModel": "SDXL",
|
|
"trainedWords": ["anime style", "cel shading"],
|
|
"model": {
|
|
"name": "Anime Style LoRA",
|
|
"description": "A LoRA for creating anime-style images with cel shading effects",
|
|
"tags": ["anime", "style", "cel shading", "illustration"]
|
|
},
|
|
"files": [
|
|
{
|
|
"id": 11111,
|
|
"name": "anime_style_lora.safetensors",
|
|
"sizeKB": 102400,
|
|
"primary": true
|
|
}
|
|
],
|
|
"images": [
|
|
{
|
|
"id": 22222,
|
|
"url": "https://example.com/preview.png",
|
|
"nsfwLevel": 0
|
|
}
|
|
],
|
|
"creator": {
|
|
"id": 33333,
|
|
"name": "ModelCreator",
|
|
"image": "https://example.com/avatar.png"
|
|
}
|
|
},
|
|
"tags": ["anime", "style", "cel shading", "illustration"],
|
|
"modelDescription": "A LoRA for creating anime-style images with cel shading effects. Works best with SDXL models and anime checkpoints.",
|
|
"civitai_deleted": false,
|
|
"favorite": true,
|
|
"exclude": false,
|
|
"db_checked": true,
|
|
"skip_metadata_refresh": false,
|
|
"metadata_source": "civitai_api",
|
|
"last_checked_at": 1710100000.0,
|
|
"hash_status": "completed",
|
|
"usage_tips": "{\"strength_min\":0.3,\"strength_max\":0.8,\"strength\":0.6,\"clip_strength\":0.5}"
|
|
}
|