--- license: apache-2.0 task_categories: - text-to-image tags: - art - comic - illustration - lora - diffusion - flux - sdxl - monochrome - ink-drawing - graphic-novel size_categories: - n<1K configs: - config_name: default data_files: - split: train path: metadata.jsonl --- # 🖋️ Comic Illustration Style Dataset [![Hugging Face Dataset](https://img.shields.io/badge/🤗%20Hugging%20Face-Dataset-orange.svg)](https://huggingface.co/datasets/itslenoid/comic-illustration-dataset) [![Task: Text-to-Image](https://img.shields.io/badge/Task-Text--to--Image-blue.svg)](#) [![Format: ImageFolder](https://img.shields.io/badge/Format-ImageFolder%20Metadata-green.svg)](#) [![Target: FLUX%20%7C%20SDXL%20LoRA](https://img.shields.io/badge/Target-FLUX%20%7C%20SDXL%20LoRA-purple.svg)](#) A curated dataset of **86 high-contrast comic and graphic novel illustrations** paired with dense, natural language captions. Tailored specifically for **Text-to-Image Style LoRA training** on modern diffusion models (FLUX.1-dev / schnell, SDXL, and Stable Diffusion). --- ## 🎨 Visual Aesthetic & Style Profile - **Medium**: Black & white ink illustration, dynamic brushwork, cross-hatching, and screentone shading. - **Composition**: Multi-panel comic strips, cinematic angles, character vignettes, and environmental storytelling. - **Subjects**: Expressive characters in action, contemplative scenes, modern technology, and surreal objects. --- ## 📁 Repository Structure The dataset provides dual compatibility for both Hugging Face's web ecosystem and local trainer tools: ``` comic-illustration-dataset/ ├── README.md # Dataset card & documentation ├── metadata.jsonl # Standard HF ImageFolder manifest (for HF Dataset Viewer & `load_dataset`) ├── images/ # 86 JPEG illustrations │ ├── image1.jpeg │ └── ... └── captions/ # Synchronized individual caption files (for Kohya_ss / AI-Toolkit) ├── image1.txt └── ... ``` ### Metadata Format (`metadata.jsonl`) Each line in `metadata.jsonl` follows standard Hugging Face ImageFolder format: ```json { "file_name": "images/image1.jpeg", "text": "[TRIGGER], comic illustration, monochrome ink style. Two characters, one in the foreground and one in the background. The character in the foreground is seated at a desk, clutching a book and appears to be in the midst of a task or study.", "raw_caption": "The image shows a scene from a comic book. The central focus is on two characters, one in the foreground and one in the background. The character in the foreground is seated at a desk, clutching a book and appears to be in the midst of a task or study. He is wearing a", "image_id": "image1" } ``` --- ## 🏷️ The `[TRIGGER]` Token Every caption begins with the configurable placeholder: ``` [TRIGGER], comic illustration, monochrome ink style. ``` Before training, you can easily substitute `[TRIGGER]` with your own custom identifier (such as `ink_comic style` or `c0mic_art`): ```python # Quick substitution script import json custom_trigger = "ink_comic style" with open("metadata.jsonl", "r") as f_in, open("metadata_custom.jsonl", "w") as f_out: for line in f_in: item = json.loads(line) item["text"] = item["text"].replace("[TRIGGER]", custom_trigger) f_out.write(json.dumps(item) + "\n") ``` --- ## 🚀 Quickstart: Loading in Python You can load this dataset directly via the Hugging Face `datasets` library: ```python from datasets import load_dataset # Stream or download dataset dataset = load_dataset("itslenoid/comic-illustration-dataset", split="train") # Inspect sample sample = dataset[0] image = sample["image"] caption = sample["text"] print("Caption:", caption) image.show() ``` --- ## ⚙️ Recommended LoRA Training Recipes ### 1. FLUX.1-dev / FLUX.1-schnell (via AI-Toolkit or SimpleTuner) - **Target Network**: LoRA (Linear layers: `to_k, to_q, to_v, to_out.0`) - **Rank / Alpha**: `16 / 16` (or `32 / 32` for deeper style capture) - **Learning Rate**: `1.5e-4` to `2.5e-4` - **Resolution**: Aspect ratio bucketing with base resolution `1024x1024` - **Optimizer**: AdamW8bit or Prodigy - **Epochs**: ~80–120 epochs (with 86 images, ~3,500–5,000 total steps at batch size 2) ### 2. SDXL 1.0 (via Kohya_ss / OneTrainer) - **Target Network**: LoRA (UNet + Text Encoders) - **Rank / Alpha**: `32 / 32` - **UNet Learning Rate**: `1e-4` - **TE Learning Rate**: `4e-5` (train text encoder for first 50% steps, then freeze) - **Resolution**: `1024x1024` with aspect ratio bucketing enabled - **Caption Dropout**: 0.05 (to encourage unconditional prompt adherence) --- ## 🏛️ Provenance & Source The artwork in this dataset was curated from original illustrations published across technical, architectural, and philosophical essays on [**blog.macron1.io**](https://blog.macron1.io/). On the blog, these high-contrast ink drawings and comic panels accompany deep-dive articles exploring software architecture, distributed systems, machine learning engineering, and deliberate practice. Each piece was created to visually anchor complex engineering concepts through dynamic graphic novel compositions, cross-hatching, and surreal technical iconography. --- ## 📄 License & Attribution - **Dataset License**: Apache-2.0 - **Curated By**: [itslenoid](https://huggingface.co/itslenoid) - **Original Source**: [blog.macron1.io](https://blog.macron1.io/)