๐Ÿ‘— AI Fashion Classifier with Smart Color Detection

Background Removal + K-Means Clustering for Accurate Colors

Model: Fashion-CLIP
Color Detection: K-Means Clustering
Background Removal: ๐ŸŸก Standard (GrabCut)

โœจ How it works:

  1. ๐Ÿ–ผ๏ธ Upload your fashion item image
  2. ๐Ÿ”„ Background is automatically removed
  3. ๐ŸŽจ K-means finds the dominant color from clothing only
  4. ๐Ÿ‘— Fashion-CLIP classifies the item type

๐Ÿ’ก Tips:

  • Clear, well-lit photos work best
  • Single clothing item preferred
  • Background will be auto-removed

๐Ÿ“ฆ For Best Results:

pip install rembg scikit-learn

๐Ÿ“ Example Queries

Type Example Categories
Indian red saree, green lehenga, blue kurta
Western black jeans, white shirt, blue dress
Formal black suit, white shirt, navy blazer
Footwear white sneakers, black boots, brown sandals

๐Ÿš€ Powered by:

  • Fashion-CLIP (patrickjohncyh/fashion-clip)
  • K-Means Clustering for dominant colors
  • rembg/GrabCut for background removal