Commit Graph
4 Commits
Author SHA1 Message Date
slahiriandClaude Opus 4.5 e0b2f000b6 fix: improve classification accuracy and conflict resolution
Classification fixes:
- Add afro/african hairstyles, beard, facial hair to HAIR subcategory
- Add "rule of thirds" to photography composition patterns
- Filter long caption sentences (max 12 words)

Conflict resolution:
- Add gender conflict filtering (male vs female tags)
- Add ethnicity conflict resolution (asian vs african/dark-skinned)
- Add body shot mutual exclusivity (full body vs upper body)
- Add age conflict resolution (boy vs mature male)

False positive filtering:
- Higher confidence thresholds for fashion_segformer (0.6+)
- Filter common fashion false positives (glasses, headwear, shoes)
- Add META patterns for caption sentence starters
- Filter generic tags (general, original, fantasy, suggestive content)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-27 20:40:46 +05:30
slahiriandClaude Opus 4.5 6d57304db0 feat: add pose extraction and expand ethnicity keywords
Pose extraction:
- Add TokenSource.POSE with 0.95 reliability weight
- Add extract_from_pose() to tokenizer
- Route pose tokens to ACTION_POSE category via source-based routing
- Pose tags like "standing", "arms at sides", "facing viewer" now captured

Ethnicity expansion:
- Add 80+ ethnicity terms to SKIN subcategory
- Includes: South Asian (south indian, desi, punjabi, etc.)
- East Asian (japanese, korean, chinese, vietnamese, etc.)
- Middle Eastern (arab, persian, turkish, etc.)
- African (nigerian, ethiopian, etc.)
- Latin American (brazilian, mexican, etc.)
- Mixed/multiracial terms

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-27 19:49:50 +05:30
slahiriandClaude Opus 4.5 da21ad1806 feat(compose): add hybrid classifier with embeddings and LLM layers
Extends the classification pipeline with semantic and AI-powered layers:
- Layer 4: Embedding similarity using sentence-transformers (optional)
- Layer 4.5: LLM classification fallback (local/Anthropic/OpenAI/Gemini)
- Expanded dictionary keywords for 100% processed rate
- ClassifierConfig for configuring hybrid pipeline behavior

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-27 11:07:16 +05:30
slahiriandClaude Opus 4.5 574b976728 feat(compose): implement Phase 3 - Classification
Classification pipeline with 5-layer cascade:
- Layer 1: Florence analyze key mapping
- Layer 2: Source-based routing (photography, IQA, composition)
- Layer 3: Dictionary keyword matching with multi-category support
- Layer 5: Uncategorized fallback

Key features:
- Expanded keyword dictionaries for 90%+ classification rate
- Conflict resolution for mutually exclusive tokens
- Subject detail subcategories (hair, eyes, face, body, clothing, skin)
- Multi-category tokens (e.g., "looking at viewer" → action + eyes)

Test results: Calvin Klein 90.8%, Saree 84.0%, Cupcake 83.9%, Landscape 77.8%

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-27 10:27:32 +05:30