Skip to content

A basic study on CNNs aimed at improving image classification results using transfer learning with the VGG16. model.

Notifications You must be signed in to change notification settings

Honsei901/pica-pica-pj

Repository files navigation

Transfer Learning Using VGG16

Workflow

  1. Data Preparation

  2. Training

  • Load the data set in step 1.
  • Define the model, using the pre-trained VGG16 model as the base.
  • Set Adam as the optimizer and categorical_crossentropy as the loss function.
  • Train the model and evaluate its performance using metrics such as accuracy and loss.
  1. Save the Model
  • After training, save the model in .h5 format.
  1. Build a Simple Application for Prediction Using the Model
  • Build a web application using FastAPI to implement a feature where the user can upload images and perform predictions using the trained model.

Changes from the Initial Project

https://github.com/Honsei901/podargus-strigoides-pj

In the initial phase of this project, training was performed using only the collected data without applying transfer learning. However, since the results were not satisfactory, VGG16 was used, and the fully connected layers were added and optimized according to the current objective.

  • Changed the image size from 150 to 224.
  • Data normalization is performed during training rather than during data generation.

Operation Verification

cd docker
docker-compose up --build
  • Once all processes are completed, open the page at http://localhost:3000/.

  • Use the "Upload File" button to select an image of a car or motorcycle.

  • Click the "Estimate" button to view the results.

Reference

About

A basic study on CNNs aimed at improving image classification results using transfer learning with the VGG16. model.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published