itslenoid's picture
docs: add provenance and source attribution to blog.macron1.io
78814e1
|
Raw History Blame Contribute Delete
5.55 kB
metadata
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 Task: Text-to-Image Format: ImageFolder Target: FLUX%20%7C%20SDXL%20LoRA

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:

{
  "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. <detailed visual scene description>

Before training, you can easily substitute [TRIGGER] with your own custom identifier (such as ink_comic style or c0mic_art):

# 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:

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.

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