Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mydarapy/alexnet-implementation
This repository contains an implementation of the AlexNet convolutional neural network (CNN) architecture using the Pytorch framework. The model is trained on a dataset consisting of images of cats and dogs, with the objective of classifying images into these two categories.
https://github.com/mydarapy/alexnet-implementation
alexnet-pytorch cnn-model computer computervison image-classification neural-networks
Last synced: 4 days ago
JSON representation
This repository contains an implementation of the AlexNet convolutional neural network (CNN) architecture using the Pytorch framework. The model is trained on a dataset consisting of images of cats and dogs, with the objective of classifying images into these two categories.
- Host: GitHub
- URL: https://github.com/mydarapy/alexnet-implementation
- Owner: MyDarapy
- Created: 2024-02-21T10:33:36.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-26T23:35:37.000Z (11 months ago)
- Last Synced: 2024-11-09T02:44:59.530Z (about 2 months ago)
- Topics: alexnet-pytorch, cnn-model, computer, computervison, image-classification, neural-networks
- Language: Python
- Homepage: https://colab.research.google.com/drive/1TKCgDtQ8SbIj65hcNa-x_NOyBUNkdW6Z?usp=sharing
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### AlexNet for Cat and Dog Classification
This repository contains an implementation of the AlexNet convolutional neural network (CNN) architecture using Pytorch. The model is trained to classify images of cats and dogs.# About AlexNet
AlexNet is a convolutional neural network architecture proposed by Alex Krizhevsky, Ilya Sutskever, and Geoffrey Hinton. It gained significant attention after winning the ImageNet Large Scale Visual Recognition Challenge in 2012, demonstrating remarkable performance in image classification tasks. The architecture consists of five convolutional layers followed by three fully connected layers, along with max-pooling layers and ReLU activation functions.
![alex](https://github.com/MyDarapy/AlexNet-Implementation/assets/125401026/e8db13cc-413f-4f93-aba6-4deff730d662)# Dataset
The model is trained on a dataset containing images of cats and dogs. The dataset is divided into training and validation sets for model training and evaluation.
The dataset can be found here- https://drive.google.com/drive/folders/1-7jdS8Zt8JQBB6L8Ma545-HmP2qbtnbV?usp=sharing# Prerequisites
Python 3.10
PyTorch# Usage
Clone the Repository:git clone https://github.com/MyDarapy/alexnet-implementation.git
cd alexnet-cat-dogInstall Dependencies
- Torchvision
- PIL
- Numpy
- Matplotlib
- os
- TorchTraining:
python alexnetscatsanddogs.py
Replace path_to_image.jpg with the path to the image you want to classify.# Results
After training and evaluation, the model achieves a certain accuracy on the validation set. The performance can be further analyzed through confusion matrices, accuracy, precision, recall, and F1-score metrics.# Acknowledgments
The implementation is inspired by the original AlexNet paper and PyTorch's documentation.
The dataset used in this project is sourced from [source_link], and we acknowledge their contribution to making it publicly available.License
This project is licensed under the MIT License - see the LICENSE file for details.