# prepare-lora-image-dataset

Get an image LoRA dataset ready before paying for GPU time: every image captioned with the trigger word, minimum size met, duplicates removed. Stdlib checker reads PNG, JPEG and WebP.

- **Space:** image-video-lora-public (https://github.com/Tech-Realm/space-image-video-lora-public/tree/main/prepare-lora-image-dataset)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3
- **Routes:** python-stdlib; checks: 2
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use image-video-lora-public/prepare-lora-image-dataset` or MCP `get_pack image-video-lora-public/prepare-lora-image-dataset`
- **Files:** CHANGELOG.md, code/check_dataset.py, code/make_dataset.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/results.json, pack.yaml, refs/refs.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

## Goal

A folder of 15-40 images with matching .txt captions that all contain a rare trigger word, ready for any LoRA trainer.

## Steps

1. Collect 15-40 varied images of the subject/style (angles, light, backgrounds) that we have rights to.
2. Crop/resize so the short side is >= 512 (1024 for SDXL/FLUX quality).
3. Pick a rare trigger token (e.g. zxq) and caption each image: trigger + what changes (pose, setting).
4. `python3 code/check_dataset.py dataset --trigger zxq` until 0 problems.

## Edge cases

- Style LoRA: caption the content, not the style.
- Near-duplicates (same shot, tiny crop) are not caught: remove by eye.

## Don'ts

- Don't use scraped photos of real people without consent.
- Don't use a common word as the trigger.



---

Canonical URL: https://logicpacks.io/packs/image-video-lora-public/prepare-lora-image-dataset

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
