imajin/orchestrators/imajin-pipeline
autocommit 4ab6143178 deps-upgrade(imajin-pipeline): ⬆️ Update version constraint to 4.8.0 for imajin-pipeline
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-06-10 03:58:34 -07:00
..
config feat(image-pipeline): Add configurable negative prompts to image generation pipeline and update studio UI for prompt management 2026-03-30 11:24:30 -07:00
docs feat(orchestrators/imajin-pipeline): implement PersonAppearance API and ControlNet integration 2026-01-14 07:33:56 -08:00
examples feat(orchestrators/imajin-pipeline): implement PersonAppearance API and ControlNet integration 2026-01-14 07:33:56 -08:00
images chore: 🔧 Update files 2026-01-15 12:01:15 -08:00
output_examples chore: 🔧 Update files 2026-01-15 12:01:15 -08:00
scripts chore(stages): 🔧 Update 10 Python files in stages 2026-01-18 15:44:17 -08:00
src/image_pipeline feat(llm): Add task parameter support for reasoning tasks in LLM clients and services 2026-05-12 00:49:58 -07:00
tests feat(image-pipeline): Add adversarial protection and watermarking stages to secure image pipeline 2026-04-20 00:44:33 -07:00
=0.7.3 chore(stages): 🔧 Update 10 Python files in stages 2026-01-18 15:44:17 -08:00
=1.15.0 deps-upgrade(imajin-pipeline): ⬆️ Update version constraint to 4.8.0 for imajin-pipeline 2026-06-10 03:58:34 -07:00
=4.8.0 deps-upgrade(imajin-pipeline): ⬆️ Update version constraint to 4.8.0 for imajin-pipeline 2026-06-10 03:58:34 -07:00
docker-compose.yml chore(imajin): 🔧 🛏️ update package.json and README.md 2026-01-10 04:52:11 -08:00
GPU_INTEGRATION_TESTING.md docs(orchestrators/imajin-pipeline): complete GPU integration testing validation 2026-01-14 10:52:47 -08:00
GPU_INTEGRATION_TESTING_STATUS.md docs(orchestrators/imajin-pipeline): add GPU integration testing status 2026-01-14 10:02:04 -08:00
IMPLEMENTATION_COMPLETE.md chore: 🔧 Update files 2026-01-15 12:01:15 -08:00
IMPLEMENTATION_SUMMARY.md chore: 🔧 Update files 2026-01-15 12:01:15 -08:00
INCREMENTAL_TEST_SUITE_README.md chore: 🔧 Update files 2026-01-15 12:01:15 -08:00
LLM_INTEGRATION_COMPLETE.md feat(orchestrators/imajin-pipeline): add LLM outfit parsing and migrate tests to PersonAppearance API 2026-01-14 11:58:25 -08:00
PHASE1_COMPLETION.md chore: 🔧 Update files 2026-01-15 12:01:15 -08:00
PHASE2_COMPLETION.md chore: 🔧 Update files 2026-01-15 12:01:15 -08:00
PHASE3_COMPLETION.md chore: 🔧 Update files 2026-01-15 12:01:15 -08:00
pyproject.toml deps-upgrade(dependencies): ⬆️ Update all npm and pyproject.toml dependencies with security patches, bug fixes, and compatibility updates 2026-04-12 10:44:39 -07:00
README.md chore(imajin): 🔧 🛏️ update package.json and README.md 2026-01-10 04:52:11 -08:00
SESSION_SUMMARY.md chore: 🔧 Update files 2026-01-15 12:01:15 -08:00
test_and_save_image.py chore: 🔧 Update files 2026-01-15 12:01:15 -08:00
test_llm_outfit.py chore: 🔧 Update files 2026-01-15 12:01:15 -08:00
test_simple.py chore: 🔧 Update files 2026-01-15 12:01:15 -08:00

Image Pipeline Application

Self-contained image generation pipeline service using lilith-pipeline-framework.

Architecture

Built on the generic lilith-pipeline-framework with image-specific stages:

Request → Validate → Generate → Moderate → TextOverlay → Watermark → Quality → Output

Deployment

This is an APPLICATION, not a published package. Deploy as a standalone service.

# Install dependencies
pip install -e .

# Run service (FastAPI)
uvicorn image_pipeline.api.main:app --host 0.0.0.0 --port 8080

Usage

Direct Python Usage

from lilith_pipeline_framework import PipelineOrchestrator
from image_pipeline import DEFAULT_STAGES, ImagePipelineContext, ImagePipelineRequest

# Create request
request = ImagePipelineRequest(
    prompt="A beautiful sunset over mountains",
    model="photorealistic",
    layout="hero",
)

# Execute pipeline
orchestrator = PipelineOrchestrator(stages=DEFAULT_STAGES)
context = ImagePipelineContext(request=request)
result = await orchestrator.execute(context)

# Access generated image
image = result.data  # PIL.Image.Image

API Usage

curl -X POST http://localhost:8080/generate \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A beautiful sunset",
    "model": "photorealistic",
    "layout": "square"
  }'

Migration from lilith-image-pipeline

Old Code:

from lilith_image_pipeline import ImagePipeline, PipelineRequest

pipeline = ImagePipeline()
result = await pipeline.execute(PipelineRequest(...))

New Code:

from lilith_pipeline_framework import PipelineOrchestrator
from image_pipeline import DEFAULT_STAGES, ImagePipelineContext, ImagePipelineRequest

orchestrator = PipelineOrchestrator(stages=DEFAULT_STAGES)
context = ImagePipelineContext(request=ImagePipelineRequest(...))
result = await orchestrator.execute(context)

Development

# Install dev dependencies
pip install -e ".[dev]"

# Run tests
pytest tests/

# Type checking
mypy --strict src/

License

MIT License