Giter VIP home page Giter VIP logo

resnet101-implementation's Introduction

ResNet101 Implementation

This repository contains an implementation of the ResNet101 architecture in PyTorch. The implementation includes a modular design with separate classes for the ResNet model, custom dataset handling, evaluation and visualization, and a training class.

Table of Contents

Introduction

ResNet101 is a deep convolutional neural network architecture known for its success in image classification tasks. This implementation provides a clean and modular codebase for understanding and using the ResNet101 architecture.

Architecture

The ResNet101 model is implemented using PyTorch. The architecture includes residual blocks, custom dataset handling, and evaluation and visualization components.

  • ResidualBlock: Defines the building block for the ResNet model.
  • ResNet101v2: Implements the overall ResNet101 architecture.

Dataset

The implementation includes a custom dataset class for handling image data. You can easily replace the dataset with your own by modifying the CustomDataset class.

Evaluation and Visualization

The EvaluateVisualization class provides methods for plotting loss curves and confusion matrices during model evaluation.

Training

The ResNetTrainer class encapsulates the training process, making it easy to train the ResNet101 model on your dataset.

Usage

To use this implementation, follow these steps:

  1. Clone the repository:

    git clone https://github.com/yourusername/resnet101-implementation.git
  2. Install the required dependencies:

    pip install -r requirements.txt
  3. Modify the dataset path in the main.py file:

    data_dir = "path/to/your/dataset"
  4. Run the training script:

    python main.py

References

This implementation is inspired by the ResNet architecture proposed in the paper:

For additional insights, check out my Medium article on this implementation: Unveiling the Power of ResNet101v2: A Deep Dive into Image Classification

Feel free to contribute to this repository or open issues if you encounter any problems.

resnet101-implementation's People

Contributors

mbk2103 avatar

Stargazers

 avatar  avatar

Watchers

Kostas Georgiou avatar  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.