Skip to content

Deep learning image classification model using Convolutional Neural Networks (CNN) and ResNet9 to detect infected malaria cells

Notifications You must be signed in to change notification settings

braydonwang/Malaria-Cell-Detection-Model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Malaria-Cell-Detection-Model

Dataset can be found at https://www.kaggle.com/iarunava/cell-images-for-detecting-malaria

Cells

How I built it

  1. Download the dataset
  2. Import the dataset into PyTorch using ImageFolder (resize and crop each image)
dataset = ImageFolder(data_dir, tt.Compose([tt.Resize(64), 
                                            tt.RandomCrop(64),
                                            tt.ToTensor()]))
  1. Split dataset into two groups: training set and validating set
train_ds, valid_ds = random_split(dataset, [train_size, val_size])
  1. Prepare the set for training (using DataLoader and make_grid)
  2. Move the dataset to the GPU
  3. Define a neural network (ResNet9)
  4. Train the model
  5. Plot losses against epochs
  6. Test model and record the results

About

Deep learning image classification model using Convolutional Neural Networks (CNN) and ResNet9 to detect infected malaria cells

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published