这是一个基于CLIP的时尚推荐系统,集成了MCP功能。它能够通过YOLO检测服装,利用CLIP进行编码,进而为用户推荐相似的商品,有效解决了时尚领域中商品推荐的难题,为用户提供了便捷、精准的购物体验。
git clone https://github.com/yourusername/FastMCP_RecSys.git
cd FastMCP_RecSys
pip install -r backend/app/requirements.txt
npm install
docker-compose up --build
用户只需上传一件衣服,系统就能按以下流程进行处理:用户上传一件衣服 → YOLO检测到衣服 → CLIP编码 → 推荐相似的衣服。
/项目根目录
│
├── /backend
│ ├── Dockerfile
│ ├── /app
│ │ ├── server.py # FastAPI应用程序代码
│ │ ├── /routes
│ │ │ └── clothing_routes.py
│ │ ├── /controllers
│ │ │ └── clothing_controller.py
│ │ │ └──clothing_tagging.py
│ │ │ └── tag_extractor.py # 待定:定义核心CLIP功能
│ │ ├── schemas/
│ │ │ └── clothing_schemas.py
│ │ ├── config/
│ │ │ └── tag_list_en.py $ 工具:https://jsoncrack.com/editor
│ │ │ └── database.py
│ │ │ └── settings.py
│ │ │ └── api_keys.py
│ │ └── requirements.txt
│ └── .env
│
├── /fastmcp
│ └── app
│ └── server.py
│
├── /frontend
│ ├── Dockerfile
│ ├── package.json
│ ├── package-lock.json
│ ├── /public
│ │ └── index.html
│ ├── /src
│ │ ├── /components
│ │ │ ├── ImageUpload.jsx
│ │ │ ├── DetectedTags.jsx
│ │ │ └── Recommendations.jsx
│ │ ├── /utils
│ │ │ └── api.js
│ │ ├── App.js # 主React组件
│ │ ├── index.js
│ │ ├── index.css
│ │ ├── tailwind.config.js
│ │ ├── postcss.config.js
│ │ └── .env
│ └── /public
│ └── .htaccess
└── README.md