How kkyuhun94/dalda works
Main Components
a) Core Processing Pipeline:
• LLM Component (for prompt generation)
• Diffusion Model Component (IP-Adapter)
• Adaptive Guidance Scaling Module
• Classifier Training System
b) Data Flow Components:
• Input Dataset Handlers (Caltech101, Flowers102, Pets)
• Prompt Management System
• Augmentation Pipeline
• Output Generation System
┌─ Input Layer ─────────────────────┐
• Original Images │
• Dataset Handlers │
• ┘
• ↓
┌─ Processing Layer ────────────────┐
• ┌─ LLM Branch ─┐ ┌─ DM Branch ─┐ │
• Prompt Gen. │ │ IP-Adapter │ │
• ┘ └────────────┘ │
• ↓ ↓ │
• ┌─ Fusion Module ─┐ │
• Adaptive Scaling│ │
• ┘ │
• ┘
• ↓
┌─ Output Layer ──────────────────┐
• Augmented Images │
• Classifier Training │
• ┘
Detailed Component Breakdown
a) Dataset Handlers (from semantic_aug/datasets/):
• Connections to Caltech101, Flowers102, and Pets modules
• Few-shot dataset handling
b) Prompt Management (from prompt_for_LLM/):
• System prompts
• User prompts
• LLM integration
c) Augmentation Pipeline (from semantic_aug/augmentations/):
• DALDA implementation
• Generative augmentation process
d) Configuration System (from configs/):
• Different configuration options
• Adaptive vs Random scaling
Key Interactions to Highlight
• Data flow from input datasets through the augmentation pipeline
• Prompt generation and processing path
• Integration points between LLM and Diffusion Model
• Adaptive scaling mechanism
• Training data generation flow
Technical Details
• Python 3.10 environment
• External dependencies (IP-Adapter, diffusers, CLIP)
• Configuration management system
• Dataset preprocessing requirements
Implementation Notes
• Version information and dependency requirements