Coder Social home page Coder Social logo

final-project-group4's Introduction

Deep Learning Computer Vision Project

Overview

This project involves using deep learning techniques for computer vision tasks. The project includes multiple models for image classification, leveraging architectures like CNN, ResNet-101, and Vision Transformer (ViT), InceptionNet and Retinanet with Resnet50 as bacbone. Additionally, a Streamlit app is provided for easy model interaction.

Installation

Prerequisites

To get started, you need to install the required dependencies.

pip install -r requirements.txt

Streamlit App

To run the Streamlit app:

  1. Navigate to the application directory.
cd Code/app
  1. Download the pre-trained models.
wget https://storage.googleapis.com/dl-grp-4-bucket/model/model_cnn.pt
wget https://storage.googleapis.com/dl-grp-4-bucket/model/model_resnet_101.pt
wget https://storage.googleapis.com/dl-grp-4-bucket/model/model_vit_b_16.pt
  1. Start the Streamlit server.
python3 -m streamlit run image_classifier_app.py --server.port=8888

Dataset

To download the dataset, you need a Kaggle account.

  1. Create an account on Kaggle and generate an API token under your profile settings. Save the token as ~/.kaggle/kaggle.json.
vim ~/.kaggle/kaggle.json
  1. Accept the competition rules on the Kaggle competition page:
    Kaggle Competition Page.

  2. Download the dataset using the provided script:

chmod +x download_data/download_data.sh
./download_data/download_data.sh
  1. Process the dataset by running all cells in the following Jupyter Notebook:
download_data/final_dataset_excel_creation.ipynb

Alternative Dataset Download

To download the dataset directly:

wget https://storage.googleapis.com/dl-grp-4-bucket/dataset.zip
unzip dataset.zip

Training Models

The provided scripts allow you to train different models. Ensure the PATH variable in each script points to the parent directory where the dataset folder is located.

CNN Model

python3 Code/train_cnn.py

ResNet-101 Model

python3 Code/train_resnet_50.py

ViT Model

python3 Code/Code/train_torch_vit.py

InceptionNet Model

python3 Code/inception_net.py

final-project-group4's People

Contributors

meetdaxini avatar deborahaina avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.