Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 0 additions & 3 deletions .idea/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/compiler.xml

This file was deleted.

21 changes: 0 additions & 21 deletions .idea/gradle.xml

This file was deleted.

22 changes: 0 additions & 22 deletions .idea/misc.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

51 changes: 51 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Tradify-Machine Learning

Welcome to Tradify-Machine Learning section. This project is a Product Based Bangkit Capstone Project Team C22-PS327.

# Member

- M2002F0123-Bryan Vergus S-Machine Learning
- M2224W2071-Wilda Nurjannah-Machine Learning

# Our Work

We're making a multi-class classification model to detect various Indonesian traditional foods.
Overall, there are already 8 classes we've trained:
1. Rendang
2. Putu Ayu
3. Bika Ambon
4. Pie Susu
5. Mochi
6. Kerak Telur
7. Pempek
8. Lapis Talas Bogor

Each class consist of 120 images that we split into 3 section: train, validation, and test.

# Tools We Used

- Python
- Tensorflow
- CutMix Generator
- Google Colab
- VGG-19 pre-trained Model

# How We Do It

Firstly we load the dataset that we've previously made. To build a model we should preprocess the data. We do several things such as rescaling (normalization), and augmentating the data twice. First using ImageGenerator from Keras and second using CutMix Generator. From ImageGenerator we costumized rotation, flip, zoom range and also shift. From CutMix Generator takes two image and label pairs to perform the augmentation.

After preprocessing we move to build the model.
To gain at least 80% accuracy we did several things, besides adding additional data augmentation we also used pretrained model, VGG-19 (because we have less training data). we choose this as the base model because it has similar layer to our first CNN model.

we load the pretrained model & weights, freeze all layers, and then create a new model by adding our own fully connected layer & also adding dropout. we take the VGG-19 layers until the blok4_pool. For first model we get 89% accuracy and for the second model we get 82% accuracy.


# Run Our Model

- Costum Your Own Model
You need to clone our repo because it contains the dataset and also the model. After that you can costumize the directory according to your local/cloud repo.
you don't need to unzip the file because we've already put code to unzip it. Don't forget to install the pre-requirement (tensorflow) and finally you can use our model (we also already put the converter).

- Use Existing Model
There are 2 existed model on our repo that you can try. Go to the aimed saved_model folder and download the model. We provide several formats such as .tflite, .json, .h5, and .pb. For implementing on Android Studio you can choose the .tflite model.

1 change: 0 additions & 1 deletion app/.gitignore

This file was deleted.

46 changes: 0 additions & 46 deletions app/build.gradle

This file was deleted.

21 changes: 0 additions & 21 deletions app/proguard-rules.pro

This file was deleted.

This file was deleted.

39 changes: 0 additions & 39 deletions app/src/main/AndroidManifest.xml

This file was deleted.

11 changes: 0 additions & 11 deletions app/src/main/java/com/example/tradify/MainActivity.kt

This file was deleted.

12 changes: 0 additions & 12 deletions app/src/main/java/com/example/tradify/ui/ForgetPasswordActivity.kt

This file was deleted.

12 changes: 0 additions & 12 deletions app/src/main/java/com/example/tradify/ui/SignupActivity.kt

This file was deleted.

12 changes: 0 additions & 12 deletions app/src/main/java/com/example/tradify/ui/SplashActivity.kt

This file was deleted.

12 changes: 0 additions & 12 deletions app/src/main/java/com/example/tradify/ui/signin/SigninActivity.kt

This file was deleted.

30 changes: 0 additions & 30 deletions app/src/main/res/drawable-v24/ic_launcher_foreground.xml

This file was deleted.

Binary file removed app/src/main/res/drawable/Logo.png
Binary file not shown.
Loading