当前位置:网站首页>Open Source | Commodity Recognition Recommender System
Open Source | Commodity Recognition Recommender System
2022-07-31 07:58:00 【thinking practice】
A project I did a few months ago,整理一下,比较简单,It is based on the data set图片分类(使用resnet50),Then pass the identification resultMatch recommendation database,进行推荐.
前端:html、js
后端:python-flask框架、pytorch框架
项目结构:

dataset_dir文件夹:Datasets are placed in this folder,Different types of pictures are placed in the corresponding types of folders,再通过
models文件夹:存放训练好的模型
static文件夹:Stores the required images displayed on the front-end web page
templates文件夹:Front-end web page template file
inference.py A file to test inference effects
label.py
from torchvision.datasets import ImageFolder
dataset=ImageFolder("C:/Users/forwhat/Desktop/recommend/cloth/train") #获取路径,All images are returneddata、label
print(dataset.class_to_idx) #View category names,及对应的标签.
print(dataset.imgs) #See all the pictures in the path,及对应的标签
label_level2.py
under_jeans =['https://detail.tmall.com/item.htm?id=636464038643','https://detail.tmall.com/item.htm?id=629142114736','https://item.taobao.com/item.htm?id=633482107680','https://item.taobao.com/item.htm?id=653135699650'
,'https://detail.tmall.com/item.htm?id=626092831491']
under_skirt = ['https://item.taobao.com/item.htm?id=667268983604','https://detail.tmall.com/item.htm?id=668100149427','https://detail.tmall.com/item.htm?id=586698989166','https://detail.tmall.com/item.htm?id=635332780625'
,'https://detail.tmall.com/item.htm?id=637917736279']
under_sporty = ['https://detail.tmall.com/item.htm?id=613077657236','https://detail.tmall.com/item.htm?id=580354266231','https://detail.tmall.com/item.htm?id=580354266231','https://detail.tmall.com/item.htm?id=653363447356','https://item.taobao.com/item.htm?id=579123847078'
,'https://detail.tmall.com/item.htm?id=42730275588']
under_suit = ['https://detail.tmall.com/item.htm?id=618731089852','https://detail.tmall.com/item.htm?id=618596933879','https://detail.tmall.com/item.htm?id=636256949983','https://detail.tmall.com/item.htm?id=636363512038'
,'https://item.taobao.com/item.htm?id=665038582357']
upper_casual = ['https://detail.tmall.com/item.htm?id=666855488772','https://detail.tmall.com/item.htm?id=667962767730','https://detail.tmall.com/item.htm?id=610974657070','https://detail.tmall.com/item.htm?id=645567560209'
,'https://detail.tmall.com/item.htm?id=644415535799']
upper_coat = ['https://item.taobao.com/item.htm?id=552053460493','https://item.taobao.com/item.htm?id=598306760200','https://detail.tmall.com/item.htm?id=665519667811','https://detail.tmall.com/item.htm?id=585993479022'
,'https://item.taobao.com/item.htm?id=649233831246']
upper_hoodie = ['https://detail.tmall.com/item.htm?id=666165898023','https://item.taobao.com/item.htm?id=652872409153','https://item.taobao.com/item.htm?id=628894958150','https://detail.tmall.com/item.htm?id=633528937891'
,'https://item.taobao.com/item.htm?id=656080489764']
upper_sporty = ['https://item.taobao.com/item.htm?id=628559051772','https://detail.tmall.com/item.htm?id=668803933152','https://detail.tmall.com/item.htm?id=655672026380','https://detail.tmall.com/item.htm?id=631357306618'
,'https://detail.tmall.com/item.htm?id=601009441405']
upper_suit = ['https://detail.tmall.com/item.htm?id=666236552324','https://detail.tmall.com/item.htm?id=668803933152','https://item.taobao.com/item.htm?id=625828294674','https://detail.tmall.com/item.htm?id=649272374842','https://detail.tmall.com/item.htm?id=666063758350'
,'https://item.taobao.com/item.htm?id=668250478482']
whole_dress = ['https://detail.tmall.com/item.htm?id=598268797504','https://item.taobao.com/item.htm?id=666364831194','https://detail.tmall.com/item.htm?id=667095587171','https://detail.tmall.com/item.htm?id=642013218199'
,'https://detail.tmall.com/item.htm?id=669133765583']split_dataset.pyThe script does a training set on the dataset、验证集、测试集的划分.
train.pyThe script trains on the dataset
数据集
Just fit the format,参考链接一
效果展示


Click a link to take a look

开源地址
参考资料
边栏推荐
猜你喜欢

双倍数据速率同步动态随机存储器(Double Data Rate Synchronous Dynamic Random Access Memory, DDR SDRAM)- 逻辑描述部分

开源|商品识别推荐系统

正则表达式绕过

【解决】mysql本地计算机上的MySQL服务启动后停止。某些服务在未由其他服务或程序使用时将自动停止

进程调度的基本过程

【Go报错】go go.mod file not found in current directory or any parent directory 错误解决

《c语言小游戏》入门级三子棋游戏(机器人加强版)

2022.07.18 _ a day

【科普向】5G核心网架构和关键技术

【Go语言入门教程】Go语言简介
随机推荐
深度学习通信领域相关经典论文、数据集整理分享
2022.07.14_Daily Question
完美指南|如何使用 ODBC 进行无代理 Oracle 数据库监控?
‘vite‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件。
最大似然估计和最小二乘法 含代码
2022.07.12 _ a day
Tasks and task switching
【微服务】Nacos集群搭建以及加载文件配置
Pygame Surface对象
安装部署KubeSphere管理kubernetes
linux redis6.2.6配置文件
Spark 在 Yarn 上运行 Spark 应用程序
《c语言小游戏》入门级三子棋游戏(机器人加强版)
关于yum源的配置及更新
多进程全局变量失效、变量共享问题
2022.07.13_Daily Question
Vscode: Project-tree plugin
初识NK-RTU980开发板
客户端navicat安装教程
实用生物信息学2:多组学数据整合和挖掘