reconstruct whole recommendation pipeline and add new rec mode one-ask-for-all

This commit is contained in:
pangkaicheng
2025-12-12 17:37:07 +08:00
parent 0e9546aa1a
commit 85390d5e6d
12 changed files with 684 additions and 565 deletions

View File

@@ -7,26 +7,46 @@ OCCASION = [
"Garden Party / Daytime Event"
]
CATEGORY = {
FASHION_TAXONOMY = {
'clothing': [
'coats',
'jackets',
'blazers',
'puffer',
'cardigan',
'sweater',
'shirts',
't-shirts',
'pullover',
'polos',
'bodysuits',
'dresses',
'skirts',
'jeans',
'shorts',
'leggings',
'jumpsuits',
'swimwear',
# --- Tops ---
't-shirts', # T恤
'shirts', # 衬衫 (泛指梭织)
'blouses', # 女式衬衫
'polo shirts', # Polo衫
'tank tops', # 背心/坎肩
'camisoles', # 吊带背心
# --- Knits/Sweaters ---
'sweaters', # 毛衣 (泛指)
'cardigans', # 开衫
'pullovers', # 套头衫
'hoodies', # 连帽衫
'sweatshirts', # 圆领卫衣
'vests', # 马甲/背心 (外穿)
# --- Outerwear ---
'coats', # 大衣 (长款)
'jackets', # 夹克 (短款)
'blazers', # 西装外套
# --- Bottoms ---
'jeans', # 牛仔裤 (虽是材质,但在时尚界视为独立大类)
'trousers', # 西裤/正装长裤
'pants', # 长裤 (泛指休闲)
'joggers', # 束脚裤
'leggings', # 打底裤/紧身裤
'shorts', # 短裤
'skirts', # 半身裙
'skorts', # 裙裤
# --- One-Piece ---
'dresses', # 连衣裙
'jumpsuits', # 连体长裤
'bodysuits', # 连体紧身衣
'suits', # 套装 (西装套)
# --- Intimates/Swim ---
'bras', # 文胸
'underwear', # 内衣
'lingerie', # 性感内衣
'pajamas', # 睡衣套装
'swimwear', # 泳装
],
'shoes': [
'sneakers',
@@ -38,22 +58,37 @@ CATEGORY = {
'boots',
],
'bags': [
'bags'
'shoulder bags',
'crossbody',
'bucket bags',
'tote bags',
'clutch bags',
'backpacks',
'travel bags',
'luggage',
],
'accessories': [
# --- Jewelry & Watches ---
'necklaces',
'earrings',
'bracelets',
'jewellery',
'eyewear',
'scarves',
'rings',
'cufflinks',
'watches',
# --- Head/Face ---
'hats',
'gloves',
'eyewear',
# --- Body/Textile ---
'belts',
'socks',
'watches'
'scarves',
'gloves',
'ties',
'bow ties',
'pocket squares',
'socks',
]
}
ALL_CATEGORY = sum(CATEGORY.values(), [])
CATEGORY_LIST = list(FASHION_TAXONOMY.keys())
ALL_SUBCATEGORY_LIST = sum(FASHION_TAXONOMY.values(), [])
IGNORE_CATEGORY = ['socks']
IGNORE_SUBCATEGORY = ['socks']