This repository is the result of the implementation of my Final Project (Thesis) at the Yogyakarta Technological University in pursuing a bachelor's program in the department of Informatics. The title of my thesis is "IMPLEMENTATION OF DEEP LEARNING FOR PRODUCT IMAGE SEARCH SYSTEMS USING CONVOLUTIONAL NEURAL NETWORK (CNN) ALGORITHM".
The dataset used is the Real Fashion dataset from the kaggle website. The Real Fashion dataset contains 30,276 image data and consists of 7 categories with a total of 42 sub-categories in it. The 42 sub-categories in the dataset consist of objects commonly found in the marketplace in the fashion category.
Informasi Dataset :
Type | Information |
---|---|
Source | Kaggle Dataset : Real Fashion |
License | Unknown |
Category | clothing and accessories |
Rating | 4.4 |
File Type and Size | Folder (2 GB) |
- Clone this repo
- Install Python dependencies
$ git clone https://github.com/YogiDwiAndrian/Visual-Search-TA.git
$ cd Visual-Search-TA
$ pip install -r requirements.txt
The model is used to classify categories in the search process and is also used for image feature extraction which will then be added to the database. The model can be obtained from downloading the model that I have trained (Model Resnet) or you can train yourself by running the Tugas_Akhir.ipynb
program on Google Collaboratory. put the model in static/model/your_model.h5
Visual-Search-TA/
|->static/
| |->data/
| |->dataset/
| |->model/
| | |->model_resnet.h5
|->templates/
| |->index.html
|->connection.py
|->data2dataset.py
|->...
- Download
Kaggle Dataset : Real Fashion
and extract it into thestatic/data/
folder
Visual-Search-TA/
|->static/
| |->data/
| | |->(Extracted data)
| |->dataset/
| |->model/
|->templates/
|->connection.py
|->data2dataset.py
|->...
- After that, changing the structure of the data that originally contained a main-category, then each main-category containing sub-categories was changed to only sub-categories. Run the script
data2dataset.py
$ python data2dataset.py
Visual-Search-TA/
|->static/
| |->data/
| | |->dress/
| | | |->mini
| | | |->midi
| | | |->...
| | |->...
| |->dataset/
| | |->mini
| | |->midi
| | |->...
| |->model/
|->templates/
|->connection.py
|->data2dataset.py
|->...
- Adding feature extraction data and images to the database. Run the script
image2db.py
$ python image2db.py
OR
You can skip steps 1, 2, and 3 by downloading the sql data from the export data that I did ta.sql
. After successfully downloading it then just import it into your database.
The program is run using the Flask web framework, to run it by running the main.py
script.
$ python main.py
Then we just open it in our favorite browser, http://localhost:5000/ or http://localhost:5000/index, it will display the program page that is run. To stop the running Flask program, just type Ctrl+C
at the terminal/command prompt
- How to get the kaggle.json used to download Kaggle Dataset : Real Fashion is to go to https://www.kaggle.com. Then go to the Account tab of your user profile and select Create API Token. This will trigger the download of kaggle.json, a file containing your API credentials.
- If the program doesn't work properly, you can contact me via instagram or linkedin